EasyManua.ls Logo

HEIDENHAIN TNC 620 Programming Station

HEIDENHAIN TNC 620 Programming Station
598 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
Repeating a subprogram
Example
0 BEGIN PGM UPGREP MM
...
10 LBL 1
Beginning of program section repeat 1
11 CALL LBL 2
Subprogram call
12 CALL LBL 1 REP 2
Program section call with two repeats
...
19 L Z+100 R0 FMAX M2
Last NCblock of the main program with M2
20 LBL 2
Beginning of subprogram
...
28 LBL 0
End of subprogram
29 END PGM UPGREP MM
Program execution
1 Main program UPGREP is executed up to NCblock11
2 Subprogram 2 is called and executed.
3 The program section between NCblock12 and NCblock10 is
repeated twice. This means that subprogram 2 is repeated twice
4 Main program UPGREP is executed from NCblock13 up to
NCblock19. Return jump to NCblock1 and end of program
8
HEIDENHAIN | TNC620 | Klartext Programming User's Manual | 01/2022
261

Table of Contents

Related product manuals