4 program as subprogram – HEIDENHAIN TNC 410 User Manual
Page 209

9 Programming: Subprograms and Program Section Repeats
196
9.4 Program as Subprogram
Programming a program section repeat
ú
To mark the beginning, press the LBL SET key and
enter a LABEL NUMBER for the program section you
wish to repeat.
ú
Enter the program section.
Calling a program section repeat
ú
Press the LBL CALL key and enter the label number of
the program section you want to repeat as well as the
number of repeats (with Repeat REP).
9.4 Program as Subprogram
1 The TNC executes the part program up to the block in which
another program is called with CALL PGM.
2 Then the other program is run from beginning to end.
3 The TNC then resumes the first (calling) part program with the
block behind the program call.
Operating constraints
■
No labels are needed to call any program as a subprogram.
■
The called program may not contain the miscellaneous functions
M2 or M30.
■
The called program must not contain a program call into the
calling program.
Calling any program as a subprogram
ú
To select the functions for program call, press the
PGM CALL key.
ú
Press the PROGRAM soft key.
ú
Enter the name of the program to be called. Using soft
keys you can also indicate the type of program you
wish to call and where the program is stored (see
table at right).
You can also call a program with Cycle 12 PGM CALL.
BEGIN PGM A
25 CALL PGM B
END PGM A
BEGIN PGM B
END PGM B
Function
Soft key
Call externally stored
programs
Call conversational programs
Call ISO programs
Convert a CALL PGM EXT block
to CALL PGM INT (call internally
stored program)
Call program type defined in the
”Program input” MOD function.