HEIDENHAIN TNC 620 User Manual page 318

Hide thumbs Also See for TNC 620:
Table of Contents

Advertisement

8
Subprograms and program section repeats
8.5
Nesting
Repeating a subprogram
Example NC blocks
%UPGREP G71 *
...
N10 G98 L1*
N11 L2,0*
N12 L1,2*
...
N19 G00 G40 Z+100 M2*
N20 G98 L2*
...
N28 G98 L0*
N99999999 %UPGREP G71 *
Program execution
1 Main program UPGREP is executed up to block 11.
2 Subprogram 2 is called and executed.
3 Program section between block 12 and block 10 is repeated
twice. This means that subprogram 2 is repeated twice.
4 Main program UPGREP is executed from block 13 up to block
19. Return jump to block 1 and end of program.
318
Beginning of program section repeat 1
Subprogram call
Program section call with two repeats
Last block of the main program with M2
Beginning of subprogram
End of subprogram
HEIDENHAIN | TNC 620 | ISO Programming User's Manual | 9/2016

Advertisement

Table of Contents
loading

Table of Contents