Serial Mode

8 years 7 months ago #29527083 by gerald
Serial Mode was created by gerald
I am sending a message from a pc(MRDS-a software) to motor controller through serial mode(USB) .How do I retrieve the receive message? What\'s the difference between Runtime commands /runtime queries and Microbasic?

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

8 years 7 months ago #29527085 by roboteq
Replied by roboteq on topic Re:Serial Mode
Runtime commands are commands that make the controller do something. They start with !

Runtime queries are used to read operating parameters like speed and amps

Microbasic can issue either. But you cannot send ASCII commands to Microbasic because there are no string capture and manipulation functions in the language.

If you want a script to react differently depending on serial data sent from your microcomputer, you need to use the !VAR command to send values that you can then read from a script using the getvalue(_VAR, n) function.

You can then store a result from a script using the setcommand(_VAR n) function and read back that value from serial using the ?VAR query.

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

Time to create page: 0.114 seconds