User Manual

Table Of Contents
Runtime Queries
Advanced Digital Motor Controller User Manual 261
Where:
cc = Motor channel
nn = Number of sensor errors
SNA - Read Sensor Angle
Alias: - HexCode: 79 CANOpen id: -
Description:
On brushless controller operating in sinusoidal mode, this query returns the real time val-
ue of the rotor’s angle sensor of brushless motor. This query is useful for verifying trouble-
shooting sin/cos and SPI/SSI sensors. Angle are reported in 0-511 degrees..
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