EasyManuals Logo

Siemens SINUMERIK 804D sl Programming Manual

Siemens SINUMERIK 804D sl
1334 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #522 background imageLoading...
Page #522 background image
3.2.3 Subprogram call
3.2.3.1 Subprogram call without parameter transfer
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 M2 or M30 set in the
main program is evaluated as M17 in this case (end of program with return to the calling
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.
Meaning
L: Address for the subprogram call
<number>: Name of the subprogram
Type: INT
Value: Maximum 7 decimal places
Notice:
Leading zeros are significant in names (⇒ L123, L0123 and
L00123 are three different subprograms).
<program name>: Name of the subprogram (or main program)
Work preparation
3.2 Subprogram technique
NC programming
522 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0

Table of Contents

Other manuals for Siemens SINUMERIK 804D sl

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 804D sl and is the answer not in the manual?

Siemens SINUMERIK 804D sl Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 804D sl
CategoryControl Systems
LanguageEnglish

Related product manuals