Read/Write Multiple Serial Commands (FBL2360)

5 years 3 months ago #29533421 by syed
Hi,

I'm trying to find the right scripting sequence to be able to continuously send G commands to the FBL2360 controller and read some parameters back. These commands are sent over RS232 from an external controller. Sending G commands only works fine, no issues so far.

Just to have an added control, I'm trying to read back current and speed values from the controller over RS232. But when I send ?A and ?BS along with the !G command (with the right channel number) the response of the overall system goes down significantly as if the chain of G commands is being disrupted.

Is there a way where I can set telemetry on the FBL2360 and continuously receive Current and Speed values over RS232 without querying FBL2360?and then parse them in my external controller? Seems like polling this over and over again slows FBL2360 down.

Running on default RS232 settings.

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

5 years 3 months ago #29533422 by Gabriel_Isko
Replied by Gabriel_Isko on topic Read/Write Multiple Serial Commands (FBL2360)
You can use the print() command in a MicroBasic script to debug these values over serial at regular intervals.

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

5 years 3 months ago #29533423 by syed
I'm happy doing this but will this have any issues with the RS232 comms? As my main drive control script is running in an external controller. It's very much time critical and I'm not sure if the script can run in the background while the RS232 is used to drive the motors?

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

5 years 3 months ago #29533424 by Gabriel_Isko
Replied by Gabriel_Isko on topic Read/Write Multiple Serial Commands (FBL2360)
The script method shouldn't interfere with serial communications the controller is receiving. The response problem you were experiencing from your initial scenario occurred since you were sending out queries from your external controller. Sending these queries took up time on the motor controller's Rx serial line. The actual reporting of the telemetry information occurs over the motor controller's Tx line, so there shouldn't be any conflict.

If you don't want to write a script, you can also use the telemetry string option, which will accomplish the same thing. It's use is documented in page 291 of the User Manual . The telemetry string can also be set up from the configuration tab of Roborun+.

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

5 years 3 months ago #29533425 by syed
Yes that makes sense, cheers.

Will try setting up a cyclic telemetry and see how that works.
Thanks

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

Moderators: tonysantoni
Time to create page: 0.068 seconds