Repeating A Subprogram - HEIDENHAIN TNC 620 User Manual

Conversational programming cnc control; nc software 817600-03; 817601-03; 817605-03
Hide thumbs Also See for TNC 620:
Table of Contents

Advertisement

8
Programming: Subprograms and Program Section Repeats
8.5
Nesting

Repeating a subprogram

Example NC blocks
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 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
292
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 | Conversational Programming User's Manual | 10/2015

Advertisement

Table of Contents
loading

Table of Contents