Data Sheet

Runtime Commands
Advanced Digital Motor Controller User Manual 231
Syntax Serial: !P [cc] nn
Syntax Scripting: setcommand(_P, cc, nn)
setcommand(_MOTPOS, cc, nn)
Number of Arguments: 2
Argument 1: Channel
Min: 1 Max: Total Number of Motors
Argument 2: Destination Type: Signed 32-bit
Min: -2147M Max: +2147M
Where:
cc = Motor channel
nn = Absolute count destination
Example:
!P 1 10000 : make motor go to absolute count value 10000.
PR - Go to Relative Desired Position
Alias: MPOSREL HexCode: 11 CANOpen id: 0x200F
Description:
This command is used in the Position Count mode to make the motor move to an encoder
count position that is relative to its current desired position.
Syntax Serial: PR [cc] nn
Syntax Scripting: setcommand(_PR, cc, nn)
setcommand(_MPOSREL, cc, nn)
Number of Arguments: 2
Argument 1: Channel
Min: 1 Max: Total Number of Motors
Argument 2: Delta Type: Signed 32-bit
Min: -2147M Max: +2147M
Where:
cc = Motor channel
nn = Relative count position
Example:
!PR 1 10000 : while motor is stopped after power up and counter = 0, motor 1 will go to
+10000