Repeating A Subprogram - HEIDENHAIN iTNC 530 User Manual

Hide thumbs Also See for iTNC 530:
Table of Contents

Advertisement

Repeating a subprogram

Example NC blocks
%SUBPGREP G71 *
...
N10 G98 L1 *
N11 L2,0 *
N12 L1,2 *
...
N19 G00 G40 Z+100 M2 *
N20 G98 L2 *
...
N28 G98 L0 *
N99999999 %SUBPGREP G71 *
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.
266
Beginning of program section repeat 1
Subprogram call
Program section between this block and G98 L1
(block N10) is repeated twice
Last block of the main program with M2
Beginning of subprogram
End of subprogram
Programming: Subprograms and Program Section Repeats

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents