P
ar
t
2: C
omman
d
s
Moog Animatics SmartMotor™ Developer's Guide, Rev. L
Page 685 of 909
EXAMPLE:
(user program with possible halt)
In Class 5, issuing the RUN command causes top-down execution through the entire program
no matter where the RUN? command is placed.
(" Enter RUN to start",#13)
'Prompt user for RUN
RUN?
'Run command requested; stop program
'execution until "RUN" command is received
(" LOADING TRAJECTORY",#13)
ADT=
100
'Set target accel/decel
VT=
1000000
'Set target velocity
PT=
1000000
'Set target position
MP
'Mode Position
(" EXECUTING TRAJECTORY",#13)
G
'Begin motion.
END
'Required END
Program output is:
Enter RUN to start
LOADING TRAJECTORY
EXECUTING TRAJECTORY
RELATED COMMANDS:
End Program Code Execution (see page 431)
Subroutine Call (see page 463)
Branch Program Flow to a Label (see page 465)
Download Compiled User Program to Motor (see page 518)
Pause Program Execution (see page 617)
Resume Program Execution (see page 672)
Halt Program Execution Until RUN Received (see page 684)
Upload Compiled Program and Header (see page 758)
Upload Standard User Program (see page 760)
Part 2: Commands: RUN?
Содержание SmartMotor
Страница 1: ...Developer s Guide Class 5 Later SmartMotor Technology with TM ...
Страница 909: ...PN SC80100003 002 Rev L ...