User Manual

Table Of Contents
Commands Reference
224 Advanced Digital Motor Controller User Manual V2.1, December 3, 2020
TABLE 15-12. Runtime Queries
Command Argument Description
MGT Channel Read Magsensor Track Position
MGY Channel Read Magsensor Gyroscope
MGX SensorNumber Read MagSensor Tape Cross Detection
P Channel Read Motor Power Output Applied
PHA CurrentSensorNumber Read Phase Amps
PI InputNbr Read Pulse Inputs
PIC InputNbr Read Pulse Input after Conversion
S Channel Read Encoder Motor Speed in RPM
SCC None Read Script Checksum
SEC Channel Read Sensor Errors
SDT Element Read Raw Redirect Received Frame as string
SNA Channel Read Sensor Angle
SR Channel Read Encoder Speed Relative
SS Channel Read SSI Sensor Motor Speed in RPM
SSR Channel Read SSI Sensor Speed Relative
STT Fault Indication STO Self-Test Result
T SensorNbr Read Temperature
TM Element Read Time
TR Channel Read Position Relative Tracking
TRN None Read Control Unit type and Controller Model
UID Element Read MCU Id
V SensorNumber Read Volts
VAR VarNumber Read User Integer Variable
A - Read Motor Amps
Alias: MOTAMPS HexCode: 00 CANOpen id: 0x2100
Description:
Measures and reports the motor Amps, in Amps*10, for all operating channels. For brush-
less controllers this query reports the RMS value. Note that the current flowing through
the motors is often higher than this flowing through the battery.
Syntax Serial: ?A [cc]
Argument: Channel
Min: 1 Max: Total Number of Motors
Syntax Scripting: result = getvalue(_A, cc)
result = getvalue(_MOTAMPS, cc)
Reply:
A = aa Type: Signed 16-bit Min: 0