.-
x-
L
i
6 Subprograms and Program Section Repeats
6.4 Nesting
30 LBL 1
31 LX+15Y+lOROFMAXM3
32 LZ+2 FMAX
33 CALL LBL 2
34 L X+45 Y+60 FMAX
35 CALL LBL 2
36 L X+75 Y+lO FMAX
37 CALL LBL 2
38 LBLO
39 LBL2
40 L M99
41 L IX+20 F9999 M99
42 L IY+20 M99
43 L IX-20 M99
44 LBLO
45 END PGM 3600610 MM
Move to first hole in each group, then call subprogram 2
Machine first hole, then move to and machine the other holes
-i
using the same cycle
Repeating program section repeats
Program layout
0
BEGIN PGM 3600611 MM
Program section between this block and LBL 2 (block 20) is
repeated twice
Program section between this block and LBL 1 (block 15) is
repeated once
0
7
e.g. 50
END PGM 3600611 MM
Sequence of program execution
Step 1: Main program 3600611 is executed up to block 27.
Step 2: Program section between block 27 and block 20 is repeated
twice.
Step 3: Main program 3600611 is executed from block 28 to block 35.
Step 4: Program section between block 35 and block 15 is repeated
once.
Step 5: Repetition of step 2 within step 0.
Step 6: Repetition of step 3 within step@.
Step 7: Main program 3600611 is executed from block 36 to block 50.
End of program.
L
TNC 370
6-I 1
L