5 nesting9.5 nesting – HEIDENHAIN TNC 426B (280 472) ISO programming User Manual
Page 263

247
HEIDENHAIN TNC 410, TNC 426, TNC 430
9.5 Nesting9.5 Nesting
Repeating a subprogram
Example NC blocks
%UPGREP G71 *
...
N100 G98 L1 *
N110 L2.0 *
N120 L1.2 *
...
N190 G00 G40 Z+100 M2 *
N200 G98 L2 *
...
N280 G98 L0 *
N999999 %UPGREP G71 *
Program execution
1st step:
Main program UPGREP is executed up to block N110.
2nd step: Subprogram 2 is called and executed.
3rd step:
Program section between block N120 and block N100
is repeated twice. Subprogram 2 is called twice.
4th step:
Main program UPGREP is executed from block N130
to block N190. End of program.
Beginning of the program section repeat
Subprogram call
The program section between this block and G98 L1
(block N100) is repeated twice.
Last program block of the main program with M2
Beginning of subprogram
End of subprogram
Lkap9.pm6
29.06.2006, 08:07
247