Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 653 of 909
EXAMPLE: (Dual-trajectory spool winding program)
SRC(2) 'Set signal source to internal 8K counts/sec
MFMUL=100 'Default is 1
MFDIV=100 'Default is 1
MFA(500,1) 'Set ascend ratio distance of 500 slave counts
MFD(500,1) 'Set descend ratio distance of 500 slave counts
MFR(2) 'Calculate ratio, set mode for SECOND TRAJECTORY
MFSLEW(8000,1) 'Stay at slew ratio for 8000 counts of the slave
MFSDC(100,1) 'Dwell for 100 counts, auto repeat in reverse direction
G(2) 'Begin to follow master signal in SECOND trajectory
MP(1) 'Set FIRST TRAJECTORY mode to Position mode
VT=100000 'Set velocity to run over top of gearing
ADT=100 'Set accel/decel to run over gearing
PRT=1000 'Set relative move
G(1) 'Shift all motion 1000 counts in positive direction
RELATED COMMANDS:
ADT=formula Acceleration/Deceleration Target (see page 257)
R
EL=formula Error Limit (see page 419)
G Start Motion (GO) (see page 456)
MP Mode Position (see page 582)
R
PRA Position, Relative Actual (see page 632)
R
PRC Position, Relative Commanded (see page 635)
R
PT=formula Position, (Absolute) Target (see page 658)
R
VT=formula Velocity Target (see page 788)
Part 2: Commands: PRT=formula