Chapter10 Subprogram function TC-32B
2004/01/16 10 - 2 eTCOMNCPR10-1.doc
10
10 Function of Subprogram
When a program contains fixed sequences or frequently repeated patterns, these sequences or
patterns may be entered into the memory as a subprogram.
The subprogram can be called out in the memory operation mode.
A subprogram called by the main program can also call another subprograms.
Max 8 fold nesting is available.
eNCPR11.01.ai
One calling command can call a subprogram repeatedly.
10.1 Making Subprogram
Generally, a subprogram is made by the following format.
(Note 1) Specify M99 at the last block of subprogram.
(Note 2) If another G or M code is commanded in the M99 block, an alarm is
generated.
The axis movement is not available even by commanding X, Y or Z
address.
main program sub program
sub program
sub program A sub program B
calling calling
M99; M9
M99 ;