User Manual

Table Of Contents
Commands Reference
216 Advanced Digital Motor Controller User Manual V2.1, December 3, 2020
Syntax Scripting: SetCommand(_PLT, ee, nn)
Arguments: 2
Argument 1: Element Type: Unsigned 8-bit
Min: 1 Max: 2 × Total number of motors
Argument 2: Value Type: Unsigned 8-bit or Signed 8-bit
Where:
ee =
1: Minimum Position Limit channel 1
2: Maximum Position Limit channel 1
3: Minimum Position Limit channel 2
4: Maximum Position Limit channel 2
2 × (m - 1) + 1: Minimum Position Limit channel m.
2 × (m - 1) + 2: Maximum Position Limit channel m.
where m = number of motor
POS – Target Position (DS402)
Alias: POS HexCode: 5C CANOpen id: 0x607A
Description:
This command is used to set the commanded position that the drive should move to in
position profile mode using the current settings of motion control parameters such as
velocity, acceleration, deceleration, motion profile type etc. The value is interpreted as ab-
solute or relative depending on the abs/rel flag in the Control Word.
Syntax Serial !POS cc nn
Syntax Scripting SetCommand(_POS, cc, nn)
Arguments: 2
Argument 1: Channel Type: Unsigned 8-bit
Min: 1 Max: Total number of motors
Argument 2: Value Type: Signed 32-bit