Schematic

Runtime Commands
Advanced Digital Motor Controller User Manual 233
Syntax Scripting: setcommand(_PX, nn, cc)
setcommand(_NXTPOS, nn, cc)
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 = Absolute count position
Example:
!P 1 5000 followed by !PX 1 -10000 : will cause motor to go to count position 5000 and
upon reaching the destination move to position -10000.
R - MicroBasic Run
Alias: BRUN HexCode: 0C CANOpen id: 0x2018
Description:
This command is used to start, stop and restart a MicroBasic script if one is loaded in the
controller.
Syntax Serial: !R [nn]
Syntax Scripting: setcommand(_R, nn)
setcommand(_BRUN, nn)
Number of Arguments: 1
Argument 1: [Option] Type: Unsigned 8-bit
Min: None Max: 2
Where:
nn =
None : Start/resume script
0 : Stop script
1 : Start/resume script
2 : Reinitialize and restart script