Schematic

Commands Reference
220 Advanced Digital Motor Controller User Manual V1.8, August 28, 2017
Syntax Scripting: setcommand(_AX, cc, nn)
setcommand(_NXTACC, cc, nn)
Number of Arguments: 2
Argument 1: Channel
Min: 1 Max: Total Number of Motors
Argument 2: Acceleration Type: Signed 32-bit
Min: 0 Max: 500000
Where:
cc = Motor channel
nn = Acceleration value in 0.1 * RPM/s
B - Set User Boolean Variable
Alias: BOOL HexCode: 16 CANOpen id: 0x2015
Description:
Set the state of user boolean variables inside the controller. These variables can then be
read from within a user MicroBasic script to perform speciļ¬c actions.
Syntax Serial: !B nn mm
Syntax Scripting: setcommand(_B, nn, mm)
setcommand(_BOOL, nn, mm)
Number of Arguments: 2
Argument 1: VarNbr
Min: 1 Max: Total nbr of Bool Vars
Argument 2: Value Type: Boolean
Min: 0 Max: 1
Where:
nn = Variable number
mm = 0 or 1
Note:
The total number of user variables depends on the controller model and can be found in
the product datasheet.