EasyManua.ls Logo

HEIDENHAIN TNC 320 - Repeating a subprogram

HEIDENHAIN TNC 320
724 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Subprograms and Program Section Repeats | Nesting
8
HEIDENHAIN | TNC 320 | ISO Programming User's Manual | 10/2017
331
Repeating a subprogram
Example
%UPGREP G71 *
...
N10 G98 L1*
Beginning of program section repeat 1
N11 L2,0*
Subprogram call
N12 L1,2*
Program section call with two repeats
...
N19 G00 G40 Z+100 M2*
Last block of the main program with M2
N20 G98 L2*
Beginning of subprogram
...
N28 G98 L0*
End of subprogram
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.

Table of Contents

Other manuals for HEIDENHAIN TNC 320

Related product manuals