User Manual

Table Of Contents
Runtime Queries
Advanced Digital Motor Controller User Manual 237
Syntax Serial: ?SNA [cc]
Argument: Channel
Min: 1 Max: Total Number Of Motors
Syntax Scripting: result = getvalue(_SNA, cc)
Reply:
SNA = aa Type: Unsigned 16-bit Min: 0 Max: 511
Where:
cc = Motor Channel
aa = Sensor Angle
SR - Read Encoder Speed Relative
Alias: RELSPEED HexCode: 07 CANOpen id: 0x2107
Description:
Returns the measured motor speed as a ratio of the Max RPM (MXRPM) configuration
parameter. The result is a value of between 0 and +/1000. As an example, if the Max RPM
is set at 3000 inside the encoder configuration parameter and the motor spins at 1500
RPM, then the returned value to this query will be 500, which is 50% of the 3000 max.
Note that if the motor spins faster than the Max RPM, the returned value will exceed
1000. However, a larger value is ignored by the controller for its internal operation.
Syntax Serial: ?SR [cc]
Argument: Channel
Min: 1 Max: Total Number of Encoders
Syntax Scripting: result = getvalue(_SR, cc)
result = getvalue(_RELSPEED, cc)
Reply:
SR = nn Type: Signed 16-bit Min: -1000 Max: 1000
Where:
cc = Motor channel
nn = Speed relative to max
SS - Read SSI Sensor Motor Speed in RPM
Alias: - HexCode: 6A CANOpen id: 0x213C
Description:
Reports the actual speed measured by the SSI sensors as the actual RPM value. To report
RPM accurately, the correct Counts per Revolution (SCPR) must be stored in the encoder
configuration.