HBL1650 RS-232 Can
8 years 5 months ago #29530367
by TechSupport
Replied by TechSupport on topic HBL1650 RS-232 Can
You will need to write a micorbasic script that tells the controller how to process your raw can data.
The following user(s) said Thank You: Trainee
Please Log in or Create an account to join the conversation.
8 years 5 months ago #29530369
by Trainee
Replied by Trainee on topic HBL1650 RS-232 Can
Can you give some examples please?
In the user manuel it is stated that CAN and USB cannot co-exist together. So Roborun software is unusable if HBL1650 is connected with a CAN adapter right? I have to send the !CS ee nn query using another software? How can this query interact with the microbasic script in the HBL1650?
In the user manuel it is stated that CAN and USB cannot co-exist together. So Roborun software is unusable if HBL1650 is connected with a CAN adapter right? I have to send the !CS ee nn query using another software? How can this query interact with the microbasic script in the HBL1650?
Please Log in or Create an account to join the conversation.
8 years 5 months ago #29530376
by TechSupport
Replied by TechSupport on topic HBL1650 RS-232 Can
You use usb for the can device connection. You can't connect and talk to the HBL controller via usb when you are operating via can bus.
You use the can bus to talk to the controller via can bus lines.
You write a microbasic script to make the controller do something with the can data it receives.
You use the can bus to talk to the controller via can bus lines.
You write a microbasic script to make the controller do something with the can data it receives.
The following user(s) said Thank You: Trainee
Please Log in or Create an account to join the conversation.
8 years 5 months ago - 8 years 5 months ago #29530384
by Trainee
Replied by Trainee on topic HBL1650 RS-232 Can
OK thanks. I wrote a simple programme just to test if the motor works :
top:
pending = GetValue(_CF)
canID = GetValue(_CAN, 1)
print("pending : ", pending, "\n")
print("canID : ", canID, "\n")
wait(1000)
goto top
I then run the script and send a serial command !CS 1 100. I expected to get canID : 1000 but it gave canID : 0.
Why is that so? Can you help me out please?
top:
pending = GetValue(_CF)
canID = GetValue(_CAN, 1)
print("pending : ", pending, "\n")
print("canID : ", canID, "\n")
wait(1000)
goto top
I then run the script and send a serial command !CS 1 100. I expected to get canID : 1000 but it gave canID : 0.
Why is that so? Can you help me out please?
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
Time to create page: 0.060 seconds