8-76 Trio BASIC Commands
Program Loops and Structures
Trio Motion Technology
WAIT LOADED
Type:
Command
Description:
Suspends program execution until the base axis has no moves buffered ahead other
than the currently executing move
Note:
This is useful for activating events at the beginning of a move, or at the end of a
move when multiple moves are buffered together.
Example:
Switch output 45 ON at start of
MOVE(350)
and
OFF
at the end
MOVE(100)
MOVE(350)
WAIT LOADED
OP(45,ON)
MOVE(200)
WAIT LOADED
OP(45,OFF)
WAIT UNTIL
Type:
Command
Syntax:
WAIT UNTIL
condition
Description:
Repeatedly evaluates the condition until it is true then program execution contin-
ues.
Parameters:
Example 1:
WAIT UNTIL MPOS AXIS(0)>150
MOVE(100) AXIS(7)
In this example the program waits until the measured position on axis 0 exceeds 150
then starts a movement on axis 7.
Example 2:
The expressions evaluated can be as complex as you like provided they follow the
Trio BASIC syntax, for example:
WAIT UNTIL DPOS AXIS(2)<=0 OR IN(1)=ON
This waits until demand position of axis 2 is less than or equal to 0 or input 1 is on.
condition:
A valid Trio BASIC logic expression.