Function
Subprograms can be called in the main program as well as in other subprograms. Subprograms can be nested to a maximum depth of 12 levels, including the main program level. That means that a main program may contain as many as 11 nested subprogram calls.
When working with Siemens cycles, 3 levels are required. If such a cycle is to be called from a subprogram, the call can be made up to the 9th level.
Programs can also be called on the basis of events following reset, part program start or end, or after the CNC has booted. Users can then make the basic function settings or can initialize functions using a part program command. A system variable can be used to scan the event, which activated the associated program.
|