12.98
2
840D
840D
NCU 572
NCU 571
NCU 573
Nesting depth
Nesting of subprograms
A subprogram can itself contain subprogram calls.
The subprograms called can contain further
subprogram calls etc.
The maximum number of subprogram levels or the
nesting depth is 12.
This means:
A main program can contain 11 nested subprogram
calls.
Restrictions
It also possible to call subprograms in interrupt
routines. For work with subprograms you must keep
four levels free or only nest seven subprogram calls.
For SIEMENS machining and measuring cycles you
require three levels. If you call a cycle from a
subprogram you must do this no deeper than level 5
(if four levels are reserved for interrupt routines).
Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
FM-NC
810D
840Di
Subprograms, Macros
2.1 Using subprograms
Main
progr.
Sub-
progr.
Sub-
progr.
2
max.11
Sub-
progr.
2-93