CNC Z32 - Programming Guide (LATHES)
Anticipated exit condition --DO --LOOP (--EXIT DO)
An anticipated exit condition from a block loop execution may be expressed with:
--EXIT DO IF {condition}
The --EXIT DO instruction allows an anticipated exit from the --DO --LOOP structure when the specified condition is
true.
In the following example, blocks from N10 to N100 are repeated until the exit condition is verified. When the exit
condition is verified, the loop exit happens in block N50, the instructions from N50 and N100 are no more executed,
and the control passes to instruction N110.
--DO
N10
…
N50
--EXIT DO IF HA > 10
…
N100
--LOOP
N110
Warning: It is possible to use the --EXIT DO instruction also without the IF condition written on the
same program line; it is thus possible to write:
--DO
…
--IF HA>100
--EXIT DO
--END IF
…
--LOOP
65
Summary of Contents for CNC Z32 Florenz Series
Page 2: ......