P
ar
t
1: P
rog
ra
m
ming
Moog Animatics SmartMotor™ Developer's Guide, Rev. L
Page 137 of 909
MP
' set to position mode (required if currently in another mode)
VT
=100000
' set velocity to 100000
ADT
=1000
' set accel/decel to 1000
PRT
=2000
' set commanded relative position move to 2000
G
' Go (Start moving 2000 counts)
TWAIT
' wait until move is complete
G
' Go (move 2000 counts again)
TWAIT
' wait until move is complete
G
' Go (One more time)
Follow Mode with Ratio (Electronic Gearing)
Follow Mode with Ratio (MFR) allows a motor to follow a standard TTL quadrature external
encoder input signal, or internal clock, at a user-defined ratio.
By default, Follow mode runs continuously at a ratio of 1:1 in terms of input counts to distance
moved.
The user can freely select either the external encoder or fixed rate internal clock as the input
source. The fixed rate internal clock runs at 8000 counts per second by default, but can be
influenced by the PID commands. The SRC command defines whether to follow the internal
counter or external encoder.
NOTE:
Changed MFR values do not take effect until after the next G command.
The following list details the minimum requirements for a move to occur in Follow mode:
• Set Incoming counts multiplier
MFMUL=###
may be negative or positive
• Set Incoming counts divisor
MFDIV=###
may be negative or positive
• Calculate above ratio and mode
MFR
•
Go command to initiate the move
G
start following the encoder
NOTE:
If the external encoder is not moving, no motion will occur. Commanded
position must be different than present position to cause a move.
CAUTION:
Do not switch between gear modes while in operation. When a
transition is made, the profile must be stopped or the motor must be turned
off.
Electronic Gearing and Camming over CANopen
Beginning with firmware 5.x.4.30 or later, the SmartMotor provides precise time
synchronization over CANopen between motors for electronic gearing and camming
applications (for example, traverse and take-up spooling). The CANopen objects related to
this are: 1005h, 1006h, 2207h, 2208h, 2209h, 220Ah-220Dh. For details on these objects refer
to the
SmartMotor CANopen Guide
. For a sample user program, see CAN Bus - Time Sync
NOTE:
This capability is currently available on Class 5 SmartMotors only.
Part 1: Programming: Follow Mode with Ratio (Electronic Gearing)
Содержание SmartMotor
Страница 1: ...Developer s Guide Class 5 Later SmartMotor Technology with TM ...
Страница 909: ...PN SC80100003 002 Rev L ...