Repeating a subprogram
Example NC blocks
0 BEGIN PGM SUBPGREP 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 SUBPRGREP 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 10 and block 12 is repeated twice.
Subprogram 2 is repeated twice.
4 Main program SPGREP is executed from block 13 to block 19. End
of program.
HEIDENHAIN iTNC 530
Beginning of program section repeat 1
Subprogram call
The program section between LBL 1 and this block
(block 10) is repeated twice
Last block of the main program with M2
Beginning of subprogram
End of subprogram
285
Need help?
Do you have a question about the ITNC 530 - CONVERSATIONAL PROGRAMMING and is the answer not in the manual?