User Manual

Table Of Contents
Commands Reference
222 Advanced Digital Motor Controller User Manual V2.1, December 3, 2020
Arguments: 2
Argument 1: Channel Type: Unsigned 8-bit
Min: 1 Max: otal number of motors
Argument 2: Value Type: Unsigned 32-bit
Where:
cc = Motor channel
nn = Torque slope
Runtime Queries
Runtime queries can be used to read the value of real-time measurements at any time
during the controller operation. Real-time queries are very short commands that start with
?” followed by one to three letters. In some instances, queries can be sent with or with-
out a numerical parameter.
Without parameter, the controller will reply with the values of all channels. When a nu-
merical parameter is sent, the controller will respond with the value of the channel select-
ed by that parameter.
Example:
Q:?T
R: T=20:30:40
Q: ?T2
R: T=30
All queries are stored in a history buffer that can be made to automatically recall the
past 16 queries at a user-selectable time interval. See “Query History Commands” on
page 197.
Routine queries can be sent from within a MicroBasic Script using the getvalue() function.
TABLE 15-12. Runtime Queries
Command Argument Description
A Channel Read Motor Amps
AI InputNbr Read Analog Inputs
AIC InputNbr Read Analog Input after Conversion
ANG Channel Read Rotor Angle
ASI Channel Read Raw Sin/Cos sensor
B VarNbr Read User Boolean Variable
BA Channel Read Battery Amps
BCR Channel Read Brushless Count Relative
BS Channel Read BL Motor Speed in RPM
BSC SensorNumber Read Battery State of Charge in percentage
BSR Channel Read BL Motor Speed as 1/1000 of Max RPM