Repeating a subprogram, 10 .5 nesting – HEIDENHAIN iTNC 530 (340 49x-04) ISO programming User Manual
Page 517
Advertising
HEIDENHAIN iTNC 530
517
1
0
.5 Nesting
Repeating a subprogram
Example NC blocks
Program execution
1
Main program UPGREP is executed up to block N110.
2
Subprogram 2 is called and executed.
3
Program section between block N120 and block N100 is repeated
twice. Subprogram 2 is repeated twice.
4
Main program UPGREP is executed once from block N130 to block
N190. End of program.
%UPGREP G71 *
...
N100 G98 L1 *
Beginning of program section repeat 1
N110 L2.0 *
Subprogram call
N120 L1.2 *
Program section between this block and G98 L1
...
(block N100) is repeated twice
N190 G00 G40 Z+100 M2 *
Last block of the main program with M2
N200 G98 L2 *
Beginning of subprogram
...
N280 G98 L0 *
End of subprogram
N99999999 %UPGREP G71 *
Advertising