Subprogram Call; Subprogram Call Without Parameter Transfer - Siemens SINUMERIK 828D Programming Manual

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

1.25.3

Subprogram call

1.25.3.1

Subprogram call without parameter transfer

Function
A subprogram is called either with address L and subprogram number or by specifying the
program name.
A main program can also be called as a subprogram. The end of program
main program is evaluated as
program).
Note
Accordingly, a subprogram can also be started as a main program.
Search strategy of the control:
Are there any *_MPF?
Are there any *_SPF?
This means: if the name of the subprogram to be called is identical to the name of the main
program, the main program that issued the call is called again. This is generally an
undesirable effect and must be avoided by assigning unique names to subprograms and
main programs.
Note
Subprograms not requiring parameter transfer can also be called from an initialization file.
Syntax
L<number>/<program name>
Note
The subprogram call must always be programmed in a separate NC block.
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
in this case (end of program with return to the calling
M17
Flexible NC programming
1.25 Subprogram technique
or
set in the
M2
M30
181

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents