8
Repeating program section repeats
Example
0 BEGIN PGM REPS MM
...
15 LBL 1
...
20 LBL 2
...
27 CALL LBL 2 REP 2
...
35 CALL LBL 1 REP 1
...
50 END PGM REPS MM
Program execution
1 Main program REPS is executed up to NC block 27
2 The program section between NC block 27 and NC block 20 is
repeated twice
3 Main program REPS is executed from NC block 28 up to
NC block 35
4 The program section between NC block 35 and NC block 15 is
repeated once (including the program section repeat between
NC block 20 and NC block 27)
5 Main program REPS is executed from NC block 36 up to
NC block 50. Return jump to NC block 1 and end of program
260
Subprograms and program section repeats | Nesting
Beginning of program section repeat 1
Beginning of program section repeat 2
Program section call with two repeats
The program section between this NC block and LBL 1
(NC block 15) is repeated once
HEIDENHAIN | TNC 620 | Klartext Programming User's Manual | 01/2022