Fanuc Power Mate i-D/H Operator Manual

3. HIGH–SPEED RESPONSE
FUNCTION
PROGRAMMING
(Power Mate i–H)
B–63174EN/03
274
Example)
WHILE [#i EQ #j] DO1 ;
(1)
Processing1
(1) While the specified condition
is satisfied (#i = #j), the
processing1 from DO to END
is executed.
(2) If the specified condition is
not satisfied (#i #j), the
processing2 is executed.
Processing2
(2)
END1 ;
Nesting
1 The identification numbers (1 to 3) can be used as many times as
required.
WHILE [] DO1;
Processing
END1;
:
WHILE [] DO1;
Processing
END1;
2 DO loops can be nested to a maximum depth of three levels.
WHILE [] DO1;
:
WHILE [] DO2;
:
WHILE [] DO3;
Processing
END3;
:
END2;
:
END1;
3 Control can be transferred to the outside of a loop.
WHILE [] DO1;
:
IF [] GOTO n;
:
END1;
:
Nn;

Leave a Reply

Your email address will not be published. Required fields are marked *