Repeating program section repeats, 5 nesting – HEIDENHAIN iTNC 530 (340 420) ISO programming User Manual
Page 377
HEIDENHAIN iTNC 530
377
9.5 Nesting
Program execution
1
Main program UPGMS is executed up to block N170.
2
Subprogram 1 is called, and executed up to block N390.
3
Subprogram 2 is called, and executed up to block N620. End of
subprogram 2 and return jump to the subprogram from which it
was called.
4
Subprogram 1 is executed from block N400 up to block N450. End
of subprogram 1 and return jump to the main program SUBPGMS.
5
Main program UPGMS is executed from block N180 up to block
N350. Return jump to block 1 and end of program.
Repeating program section repeats
Example NC blocks
Program execution
1
Main program REPS is executed up to block N270.
2
Program section between block N270 and block N200 is repeated
twice.
3
Main program REPS is executed from block N280 to block N350.
4
Program section between block N350 and block N150 is repeated
once (including the program section repeat between block N200
and block N270).
5
Main program REPS is executed from block N360 to block
N999999 (end of program).
%REPS G71 *
...
N150 G98 L1 *
Beginning of program section repeat 1
...
N200 G98 L2 *
Beginning of program section repeat 2
...
N270 L2.2 *
Program section between this block and G98 L2
...
(block N200) is repeated twice.
N350 L1.1 *
Program section between this block and G98 L1
...
(block N150) is repeated once.
N999999 %REPS G71 *