Subprograms and Program Section Repeats | Subprograms
9
HEIDENHAIN | TNC 620 | Conversational Programming User's Manual | 10/2017
347
9.2 Subprograms
Operating sequence
1
The control executes the part program up to the CALLLBL
command for calling a subprogram
2 The subprogram is then executed until the subprogram end
LBL0
3 The control then resumes the part program from the block after
the subprogram call CALLLBL
Programming notes
A main program can contain any number of subprograms
You can call subprograms in any sequence and as often as
desired
A subprogram cannot call itself
Write subprograms after the block with M2 or M30
If subprograms are located before the block with M2 or M30
in the part program, they will be executed at least once even if
they are not called