Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 347 of 909
EXAMPLE: (Fast Index Find, Report Bx)
MP 'Set buffered velocity mode
ADT=1000 'Set fast accel/decel
VT=4000000 'Set fast velocity
PRT=RES*1.1 'Set relative distance just beyond one shaft turn
Ai(0) 'Clear and arm index capture
O=0 'Force change to position register
G 'Start fast move
TWAIT 'Wait till end of trajectory
PT=I(0) 'Go back to index
G 'Start motion
TWAIT 'Wait until end of trajectory
O=0 'Set origin at index
IF Bx(0)
PRINT("On Index Pulse",#13)
ENDIF
RELATED COMMANDS:
R
Bi(enc) Bit, Index Capture, Rising (see page 304)
R
I(enc) Index, Rising-Edge Position (see page 471)
Part 2: Commands: Bx(enc)