Data Sheet
Runtime Queries
Advanced Digital Motor Controller User Manual 249
Reply:
CR=nn Type: Signed 32-bit Min: -2147M Max: 2147
Where:
cc = Motor channel
nn = Counts since last read using ?CR
D - Read Digital Inputs
Alias: DIGIN HexCode: 0E CANOpen id: 0x210E
Description:
Reports the status of each of the available digital inputs. The query response is a single
digital number which must be converted to binary and gives the status of each of the in-
puts. The total number of Digital input channels varies from one controller model to anoth-
er and can be found in the product datasheet.
Syntax Serial: ?D
Argument: None
Syntax Scripting: result = getvalue(_D, 1)
result = getvalue(_DIGIN, 1)
Reply:
D=nn Type: Unsigned 32-bit
Where:
nn = b1 + b2*2 + b3*4 + ... +bn*2^n-1
Example:
Q: ?D
R: D=17 : Inputs 1 and 5 active, all others inactive
DI - Read Individual Digital Inputs
Alias: DIN HexCode: 0F CANOpen id: 0x6400
Description:
Reports the status of an individual Digital Input. The query response is a boolean value (0
or 1). The total number of Digital input channels varies from one controller model to anoth-
er and can be found in the product datasheet.
Syntax Serial: ?DI [cc]
Argument: InputNbr
Min: 1 Max: Total Number of Digital Inputs