Repeating A Subprogram - HEIDENHAIN TNC 426 B User Manual

Table of Contents

Advertisement

Repeating a subprogram

Example NC blocks
BEGIN PGM UPGREP MM
...
1
LBL 1
11
CALL LBL 2
12
CALL LBL 1 REP 2/2
...
19
L Z+1
R
FMAX M2
2
LBL 2
...
28
LBL
29
END PGM UPGREP MM
Program execution
1st step:
Main program UPGREP is executed up to block 11.
2nd step: Subprogram 2 is called and executed.
3rd step: Program section between block 12 and block 10 is
repeated twice. This means that subprogram 2 is
repeated twice.
4th step: Main program UPGREP is executed from block 13 to
block 19. End of program.
HEIDENHAIN TNC 426 B, TNC 430
www.EngineeringBooksPdf.com
Beginning of the program section repeat
Subprogram call
The program section between this block and LBL1
(block 10) is repeated twice
Last program block of the main program with M2
Beginning of subprogram
End of subprogram
245

Advertisement

Table of Contents
loading

Table of Contents