Using the program name
When using the program name, e.g. in the context of a subprogram call, all combinations of
prefix, program name, and suffix are possible.
Example:
The subprogram with the program name "SUB_PROG" can be started using the following
calls:
1.
2.
3.
4.
Note
Main programs and subprograms with the same name
If there are main programs (.MPF) and subprograms (.SPF) with the same program name,
when the program name is used in the part program, the relevant suffix must be specified in
order that the program can be uniquely identified.
1.25.1.3
Nesting of subprograms
A main program can call subprograms which in turn call more subprograms. As such, the
sequences of the programs are nested within each other. Each program runs on a dedicated
program level.
Nesting depth
The NC language currently provides 16 program levels. The main program always runs at
the uppermost program level, 0. A subprogram always runs at the next lowest program level
following the call. Program level 1 is, therefore, the first subprogram level.
Division of program levels:
● Program level 0: Main program level
● Program level 1 to 15: Subprogram level 1 to 15
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
SUB_PROG
_N_SUB_PROG
SUB_PROG_SPF
_N_SUB_PROG_SPF
Flexible NC programming
1.25 Subprogram technique
...
...
151
Need help?
Do you have a question about the SINUMERIK 828D and is the answer not in the manual?
Questions and answers