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 #326 background imageLoading...
Page #326 background image
Part 2: Commands
Moog Animatics SmartMotor Developer's Guide,Rev. L
Page 326 of 909
BREAK
Break from CASE or WHILE Loop
APPLICATION: Program execution and flow control
DESCRIPTION: Causes immediate exit from a WHILE or SWITCH control block
(loop)
EXECUTION: Immediate
CONDITIONAL TO: N/A
LIMITATIONS: For downloaded code only; cannot be used through a serial
port!
READ/REPORT: N/A
WRITE: N/A
LANGUAGE ACCESS: N/A
UNITS: N/A
RANGE OF VALUES: N/A
TYPICAL VALUES: N/A
DEFAULT VALUE: N/A
FIRMWARE VERSION: 5.x and later
COMBITRONIC: N/A
DETAILED DESCRIPTION:
BREAK is used by the WHILE...LOOP and SWITCH...ENDS flow-control blocks (loops). In both
structures, if BREAK is encountered, the program jumps out of that particular WHILE loop or
SWITCH structure. If the control blocks are nested, BREAK only exits the WHILE loop or
SWITCH structure that it is currently in.
The most common use of BREAK is to end each CASE of a SWITCH control structure. Without
the BREAK statement, the program would continue to execute into the next CASE, even if it is
not true.
EXAMPLE:
SWITCH a
CASE 1
PRINT("Hiya!",#13)
CASE 2
PRINT("Lo there!",#13)
BREAK
CASE 3
PRINT("Me here!",#13)
BREAK
DEFAULT
PRINT("Urp!",#13)
BREAK
ENDS
Part 2: Commands: BREAK

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