
IP 266 Machine Data, Modes and Traversing Programs
• G20: End of loop
G24: Start of loop
Loops may be nested. Subroutines which themselves contain loops may also
be called in a loop. The nesting depth for loops and subroutine calls together
may not exceed five. A continuous loop may be programmed only once, and
only at the highest level. A program invoked via an L function may not
contain a continuous loop.
G20: End of loop
G20
identifies the end of a program loop. A block containing G20 may con-
tain no other functions.
G24: Start of loop
The G24 function identifies the start of a program loop.
The number of loop passes must be specified via the F function.
Example 1: N20 G24 F5
.
.
.
.
.
.
N120 G20
A loop with five passes begins on
this line
The loop ends on this line
N20 G24 F0
.
.
.
.
.
.
.
N130 G20
Example 2:
When you specify a 0 as the
parameter for the number of loop
passes, you define the loop as
continuous loop.
End of the continuous loop.
EWA 4NEB 812 6057-02
5-77
Comentarios a estos manuales