User manual

TMCM-1180 and PD86-1180 TMCL Firmware V4.42 Manual (Rev. 1.08 / 2012-NOV-20) 25
www.trinamic.com
5.7.4 MVP (move to position)
With this command the motor will be instructed to move to a specified relative or absolute position or a pre-
programmed coordinate. It will use the acceleration/deceleration ramp and the positioning speed
programmed into the unit. This command is non-blocking that is, a reply will be sent immediately after
command interpretation and initialization of the motion controller. Further commands may follow without
waiting for the motor reaching its end position. The maximum velocity and acceleration are defined by axis
parameters #4 and #5.
Three operation types are available:
Moving to an absolute position in the range from - 8388608 to +8388607 (-2
23
to+2
23
-1).
Starting a relative movement by means of an offset to the actual position. In this case, the new
resulting position value must not exceed the above mentioned limits, too.
Moving the motor to a (previously stored) coordinate (refer to SCO for details).
Please note, that the distance between the actual position and the new one should not be more than
8388607 microsteps. Otherwise the motor will run in the wrong direction for taking a shorter way. If the
value is exactly 8388608 the motor maybe stops.
Internal function: A new position value is transferred to the axis parameter #2 target position”.
Related commands: SAP, GAP, SCO, CCO, GCO, MST
Mnemonic: MVP <ABS|REL|COORD>, 0, <position|offset|coordinate number>
Binary representation:
INSTRUCTION NO.
TYPE
MOT/BANK
VALUE
4
0 ABS absolute
0*
<position>
1 REL relative
0
<offset>
2 COORD
coordinate
0
<coordinate number (0
20)
*motor number is always O as only one motor is involved
Reply in direct mode:
STATUS
VALUE
100 OK
(don't care)
Example:
Move motor to (absolute) position 90000
Mnemonic: MVP ABS, 0, 9000
Binary:
Byte Index
0
1
2
3
4
5
6
7
8
Function
Target-
address
Instruction
Number
Type
Motor/
Bank
Operand
Byte3
Operand
Byte2
Operand
Byte1
Operand
Byte0
Checksum
Value (hex)
$01
$04
$00
$00
$00
$01
$5f
$90
$f6
Example:
Move motor from current position 1000 steps backward (move relative 1000)
Mnemonic: MVP REL, 0, -1000
Binary:
Byte Index
0
1
2
3
4
5
6
7
8
Function
Target-
address
Instruction
Number
Type
Motor/
Bank
Operand
Byte3
Operand
Byte2
Operand
Byte1
Operand
Byte0
Checksum
Value (hex)
$01
$04
$01
$00
$ff
$ff
$fc
$18
$18