Data Sheet
Commands Reference
250 Advanced Digital Motor Controller User Manual V1.8, August 28, 2017
Syntax Scripting: result = getvalue(_DI, cc)
result = getvalue(_DIN, cc)
Reply:
DI=nn Type: Boolean Min: 0 Max: 1
Where:
cc = Digital Input number
nn = 0 or 1 state for each input
Example:
Q: ?DI
R: DI=1:0:1:0:1:0
Q: ?DI 1
R: DI=0
DO - Read Digital Output Status
Alias: DIGOUT HexCode: 17 CANOpen id: 0x6408
Description:
Reads the actual state of all digital outputs. The response to that query is a single number
which must be converted into binary in order to read the status of the individual output
bits. When querying an individual output, the reply is 0 or 1 depending on its status. The
total number of Digital output channels varies from one controller model to another and
can be found in the product datasheet.
Syntax Serial: ?DO
Argument: None
Syntax Scripting: result = getvalue(_DO, 1)
result = getvalue(_DIGOUT, 1)
Reply:
DO=nn Type: Unsigned 16-bit Min: 0 Max: 65536
Where:
nn = d1 + d2*2 + d3*4 + ... + dn * 2^n-1
Example:
Q: ?DO
R: DO=17 : Outputs 1 and 5 active, all others inactive
DR - Read Destination Reached
Alias: DREACHED HexCode: 22 CANOpen id: 0x211B
Description:
This query is used when chaining commands in Position Count mode, to detect that a
destination has been reached and that the next destination values that were loaded in the