Installation guide
88 Programming Commands
DIST Trajectory Parameter
ACTION: Returns the distance moved from the start of the last commanded mo-
tion.
PROGRAM SYNTAX: DIST(axis) - used in an expression
REMARK: The axis specifies the number of the axis (1-8).
Returns a positive number, regardless of the move direction.
EXAMPLE: x=DIST(2)
Returns the last incremental distance moved in axis 2.
DO ... LOOP Program Flow Command
ACTION: Repeats a block of statement while a condition is true or until a condi-
tion becomes true.
PROGRAM SYNTAX1: DO {UNTIL | WHILE} [condition]
[statement block]
[EXIT DO]
[statement block]
LOOP
PROGRAM SYNTAX2: DO
[statement block]
[EXIT DO]
[statement block]
LOOP {UNTIL | WHILE} [condition]
PROGRAM SYNTAX3: DO
[statement block]
[EXIT DO]
[statement block]
{UNTIL | WHILE} [condition]
REMARK: Syntax1 allows the condition to be tested at the top of the loop. Syntax
2 and 3 allows the condition to be tested at the bottom of the loop
therefore the loop will always execute at least once.
EXIT DO is an alternate exit from a DO ... LOOP.
EXIT DO transfers control to the statement below the above syntax’s
and can only be used in a DO ... LOOP statement.
EXAMPLE: DO
statements
WHILE EVENT1(1) <>1 ‘continue the loop while event1 does not
equal 1










