HBL1650 RS-232 Can

6 years 1 month ago #29530187 by Trainee
HBL1650 RS-232 Can was created by Trainee
Hello,

I have got a HBL1650. May I know which connectors on the HBL1650 allows RS-232 and CAN connections? Is it the 25-pin connector or 9-pins connector?

Please Log in or Create an account to join the conversation.

6 years 1 month ago #29530190 by TechSupport
Replied by TechSupport on topic HBL1650 RS-232 Can
Refer to to the datasheet for pinouts.
The following user(s) said Thank You: Trainee

Please Log in or Create an account to join the conversation.

6 years 1 month ago #29530203 by Trainee
Replied by Trainee on topic HBL1650 RS-232 Can
I wish to control a three phase dc brushless motor using HBL1650 with a Can connection but I have no idea how to do so. I don't quite understand how to configure the CAN even though I have read the user manuel from page 117 until 134.Can somebody give me some guidance please?

Please Log in or Create an account to join the conversation.

6 years 1 month ago #29530204 by TechSupport
Replied by TechSupport on topic HBL1650 RS-232 Can
You have to make sure you are not connected via USB. Doing so will reset the can settings. Also, a 120 Ohm resistor is to be placed between the Can bus lines on your connections.

Set a node ID to your controller.

Pick out the can mode you want.

The easiest to work with is the can mini. You can use Var 1 - 16 and write a script that tells the controller how to interpret data on those var variables.

Your can bus device must send out the can bus signals to the controller. If you use something like P-can, you can see if the can bus is being seen by your device.

It all depends on what type of can bus mode you plan on using.
The following user(s) said Thank You: Trainee

Please Log in or Create an account to join the conversation.

6 years 1 month ago #29530205 by Trainee
Replied by Trainee on topic HBL1650 RS-232 Can
Ok thanks alot! I plan on using CANopen but since miniCan is the easiet I will first start with it. Right now I just want to make a simple program that make the motor works. How should I set the node ID? Is there a certain thing to follow before setting the node ID or I can just set any number to it?

I had already connect a 120ohm resistor at the CANH and CANL. When I disconnected the USB, the Roborun doesn't detect anything and the interface shows nothing. Why is that so?

Please Log in or Create an account to join the conversation.

6 years 1 month ago #29530206 by TechSupport
Replied by TechSupport on topic HBL1650 RS-232 Can
In the configuration settings.

Node ID is for the controller.

Then there is a Listen Node ID: that is the id number that the controller will listen to.
The following user(s) said Thank You: Trainee

Please Log in or Create an account to join the conversation.

6 years 1 month ago #29530207 by TechSupport
Replied by TechSupport on topic HBL1650 RS-232 Can
Once you sent the can message to the var variable, you can query from the controller if it has received that data.

?var

It will return a 16 bit string.

Default in 0's if nothing has changed.

var = 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0

Refer to page 120 of the user manual for more information on how to send and receive.
The following user(s) said Thank You: Trainee

Please Log in or Create an account to join the conversation.

6 years 1 month ago #29530208 by Trainee
Replied by Trainee on topic HBL1650 RS-232 Can
I have a PCAN-USB adapter from Peak System that I wanted to use to connect between PC and the HBL1650 controller.

The PCAN-USB adapter has a USB connector to the PC and another D9 connector.

In this case, what is the appropriate way to connect this adapter to the Roboteq controller? Can I straight away connect them since on the Roboteq front there is a D9 connector?

Or should I connect two wires to the pin 2 and 7 of the D9 connectors on the Roboteq which represents CANH and CANL and to the pin 2 and 7 of the PCAN-USB adapter? and with a 120ohms connected in between?

Can somebody help me please?

Please Log in or Create an account to join the conversation.

6 years 1 month ago #29530209 by TechSupport
Replied by TechSupport on topic HBL1650 RS-232 Can
You connect two wires to the pin 2 and 7 of the D9 connectors on the Roboteq which represents CANH and CANL and to the pin 2 and 7 of the PCAN-USB adapter with a 120ohms connected in between.
The following user(s) said Thank You: Trainee

Please Log in or Create an account to join the conversation.

6 years 2 weeks ago #29530363 by Trainee
Replied by Trainee on topic HBL1650 RS-232 Can
I have read the user manuel page 119 on how to transmit Raw frames. If I configure Roborun in RawCAN mode to connect between PC and Roboteq HBL1650, what is the equivalent command of !G 1000 in RawCAN mode? How do I configure !CS ee nn as stated in page 119 to have the same command as !G 1000 in serial command?

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.100 seconds