P
ar
t
1: P
rog
ra
m
ming
Moog Animatics SmartMotor™ Developer's Guide, Rev. L
Page 175 of 909
Dual Trajectory Example Program
In the following program, the SmartMotor moves to its origin and then instantly begins
gearing to an external encoder. It then performs a relative move on top of the gearing
relationship, with the relative move governed by the VT= and ADT= limits.
MP
(1)
'Choose position mode from column 1
MFR
(2)
'Choose follow mode from column 2 at same time
PT
=0
'This command only relevant to position move
VT
=100000
'This command only relevant to position move
ADT
=10
'This command only relevant to position move
MFMUL
=1
'This command only relevant to follow mode
MFDIV
=1
'This command only relevant to follow mode
G
(1)
'Position move starts
TWAIT
(1)
'Wait for position move only
G
(2)
'Start Follow mode
WAIT
=1000
'Wait for one second
PRT
=1000
'Prepare for a relative move on top of
'the Follow mode
G
(1)
'Execute the relative position move
TWAIT
(1)
'Wait for position move to finish
PT
=0
'Command position 0 of the position mode
'frame of reference
G
(1)
S
'Stop all moves (follow and position)
MP
'Position mode exclusively. Note there is no
'parentheses to make only position mode
PT
=0
G
'Motor returns to position 0 in terms of actual
'position because this is only position mode
Synchronized Motion
All SmartMotors equipped with the CAN port option come with Combitronic™ capability, which
is basically the unification of all SmartMotors on a CAN network. With Combitronic technology
comes the ability to perform multiple-axis, synchronized motion. The following is the
command set that enables multi-axis synchronized linear moves.
Synchronized-Target Commands
The following are synchronized-target commands. For more details on these commands, see
Part 2: SmartMotor Command Reference on page 238.
PTS(), PRTS()
Position Target Synchronized Abs. and Rel.
These commands allow the user to identify two or three axis positions (posn) and associated
axis CAN addresses (axisn) to cause a synchronized multi-axis move where the combined
path velocity is controlled. For multiple-axis machines that are not using two motors to drive
an axis, use the following syntax.
PTS(pos1;axis1,pos2;axis2[,pos3;axis3])
Part 1: Programming: Dual Trajectory Example Program
Содержание SmartMotor
Страница 1: ...Developer s Guide Class 5 Later SmartMotor Technology with TM ...
Страница 909: ...PN SC80100003 002 Rev L ...