4 separate program as subprogram, Operating sequence, Programming notes – HEIDENHAIN TNC 410 ISO Programming User Manual
Page 345: Calling any program as a subprogram

HEIDENHAIN TNC 410, TNC 426, TNC 430
319
9.4 Separ
a
te
Pr
og
ra
m
as
Su
bp
ro
gr
am
9.4 Separate Program as
Subprogram
Operating sequence
1
The TNC executes the part program up to the block in which
another program is called with %.
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.
Programming notes
n
No labels are needed to call any program as a subprogram.
n
The called program must not contain the miscellaneous functions
M2 or M30.
n
The called program must not contain a call with % into the calling
program (endless loop).
Calling any program as a subprogram
U
U
U
U
To select the program call functions, press the % key,
enter the name of the program you wish to call and
confirm your entry with the END key.
% A G71 *
% B
N99999 % A G71 *
% B G71 *
N99999 % B G71 *
You can also call a program with Cycle G39.
If you want to call a conversational dialog program, enter
the file type .H behind the program name.
For the TNC 426, TNC 430:
The program you are calling must be stored on the hard
disk of your TNC.
You need only enter the program name if the program you
want to call is located in the same directory as the program
you are calling it from.
If the called program is not located in the same directory
as the program you are calling it from, you must enter the
complete path, e.g. TNC:\ZW35\ROUGH\PGM1.H