3 program section repeats, Label g98, Operating sequence – HEIDENHAIN TNC 410 ISO Programming User Manual
Page 344: Programming notes, Programming a program section repeat, Calling a program section repeat

318
9 Programming: Subprograms and Program Section Repeats
9
.3 Pr
og
ra
m
Sectio
n Rep
eats
9.3 Program Section Repeats
Label G98
The beginning of a program section repeat is marked by the label G98
L
. A program section repeat ends with Ln,m, where m is the number
of repeats.
Operating sequence
1
The TNC executes the part program up to the end of the program
section (L1.2).
2
Then the program section between the called label and the label
call L 1.2 is repeated the number of times entered after the
decimal point.
3
The TNC then resumes the part program after the last repetition.
Programming notes
n
You can repeat a program section up to 65 534 times in succession.
n
The TNC always executes the program section once more than the
programmed number of repeats.
Programming a program section repeat
U
U
U
U
To mark the beginning, select the function G98 and
confirm with the ENT key.
U
U
U
U
Enter a label number for the program section to be
repeated and confirm with the END key.
Calling a program section repeat
U
U
U
U
Press the L key. Enter the label number for the
program section to be repeated, and the number of
repetitions after the comma.
% ...
G98 L1 *
L1,2 *
N99999 % ...
98