Repeating A Subprogram - HEIDENHAIN TNC 620 User Manual

Klartext programming
Hide thumbs Also See for TNC 620:
Table of Contents

Advertisement

Subprograms and program section repeats | Nesting

Repeating a subprogram

Example
0 BEGIN PGM UPGREP MM
...
10 LBL 1
11 CALL LBL 2
12 CALL LBL 1 REP 2
...
19 L Z+100 R0 FMAX M2
20 LBL 2
...
28 LBL 0
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
HEIDENHAIN | TNC 620 | Klartext Programming User's Manual | 01/2022
Beginning of program section repeat 1
Subprogram call
Program section call with two repeats
Last NC block of the main program with M2
Beginning of subprogram
End of subprogram
8
261

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 620 eTnc 620 programming station

Table of Contents