EasyManuals Logo

Moog SmartMotor User Manual

Moog SmartMotor
909 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #685 background imageLoading...
Page #685 background image
Part 2: Commands
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.
PRINT(" EnterRUN to start",#13) 'Prompt user for RUN
RUN? 'Run command requested; stop program
'execution until "RUN" command is received
PRINT(" LOADING TRAJECTORY",#13)
ADT=100 'Set target accel/decel
VT=1000000 'Set target velocity
PT=1000000 'Set target position
MP 'Mode Position
PRINT(" EXECUTING TRAJECTORY",#13)
G 'Begin motion.
END 'Required END
Program output is:
Enter RUN to start
LOADINGTRAJECTORY
EXECUTING TRAJECTORY
RELATED COMMANDS:
END End Program Code Execution (see page 431)
GOSUB(label) Subroutine Call (see page 463)
GOTO(label) Branch Program Flow to a Label (see page 465)
LOAD Download Compiled User Program to Motor (see page 518)
LOCKP Lock Program (see page 521)
PAUSE Pause Program Execution (see page 617)
RESUME Resume Program Execution (see page 672)
RUN? Halt Program Execution Until RUN Received (see page 684)
UP Upload Compiled Program and Header (see page 758)
UPLOAD Upload Standard User Program (see page 760)
Part 2: Commands: RUN?

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Moog SmartMotor and is the answer not in the manual?

Moog SmartMotor Specifications

General IconGeneral
BrandMoog
ModelSmartMotor
CategoryServo Drives
LanguageEnglish

Related product manuals