Subroutines With Save Mechanism - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Nesting of subroutines
A subroutine can itself contain subroutine calls. This subroutine also contains another
subroutine call, etc.
The maximum number of program levels or the nesting depth is 12.
This means: Up to 11 nested subroutine calls can be issued from the main program.
Restrictions on subroutines in interrupt routines and the cycle processing
It is also possible to call subroutines in interrupt routines. For work with subroutines you must
keep four levels free or only nest seven subroutine calls.
For SIEMENS machining and measuring cycles you require three levels. If you call a cycle
from a subroutine you must do this no deeper than level 5 (if four levels are reserved for
interrupt routines).
2.2

Subroutines with SAVE mechanism

2.2
Function
For this, specify the additional command SAVE with the definition statement with PROC.
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Subroutines, Macros
2.2 Subroutines with SAVE mechanism
2-3

Advertisement

Table of Contents
loading

Table of Contents