5 nesting, Types of nesting, Nesting depth – HEIDENHAIN TNC 410 ISO Programming User Manual
Page 346: Subprogram within a subprogram, 5 nestin g 9.5 nesting

320
9 Programming: Subprograms and Program Section Repeats
9.5 Nestin
g
9.5 Nesting
Types of nesting
n
Subprograms within a subprogram
n
Program section repeats within a program section repeat
n
Subprograms repeated
n
Program section repeats within a subprogram
Nesting depth
The nesting depth is the number of successive levels in which
program sections or subprograms can call further program sections or
subprograms.
n
Maximum nesting depth for subprograms: 8
n
Maximum nesting depth for calling main programs: 4
n
You can nest program section repeats as often as desired.
Subprogram within a subprogram
Example NC blocks
%UPGMS G71 *
...
N170 L1.0 *
Subprogram at label G98 L1 is called.
...
N350 G00 G40 Z+100 M2 *
Last program block of the
main program (with M2)
N360 G98 L1 *
Beginning of subprogram 1
...
N390 L2.0 *
Subprogram at label G98 L2 is called.
...
N450 G98 L0 *
End of subprogram 1
N460 G98 L2 *
Beginning of subprogram 2
...
N620 G98 L0 *
End of subprogram 2
N999999 %UPGMS G71*