Motion Coordinator Technical Reference Manual
Trio BASIC Commands 8-77
Program Loops and Structures
WHILE
Type:
Program Structure
Syntax:
WHILE condition
Description:
The commands contained in the
WHILE..WEND
loop are continuously executed until
the condition becomes
FALSE
.
Execution then continues after the
WEND
.
Parameters:
Example:
WHILE IN(12)=OFF
MOVE(200)
WAIT IDLE
OP(10,OFF)
MOVE(-200)
WAIT IDLE
OP(10,ON)
WEND
WEND
Type:
Program Structure
Description:
Marks the end of a
WHILE..WEND
loop.
See also:
WHILE
Note:
WHILE..WEND
loop can be nested without limit other than program size.
condition:
Any valid logical Trio BASIC expression