EasyManua.ls Logo

Siemens SINUMERIK 840DE

Siemens SINUMERIK 840DE
516 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
Loading...
Subprograms and Repetition of Program Sections
11.3 Subprogram with program repetition
Fundamentals
11-6 Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
Note
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 issues the call is called again. This is generally an
undesirable effect and must be avoided by assigning unique names to subprograms and
main programs.
Call the subprograms with the INI file
Subprograms that do not require parameter assignment can be called from an initialization
file:
Example:
N10 MYINISUB1 ;Subprogram call without parameters
11.3 Subprogram with program repetition
Function
If a subprogram is to be executed several times in succession, the desired number of
program repetitions can be entered at address P in the block with the subprogram call.
Parameters
P Number of program passes or program repetitions
Value range P: 1…9999
Example
N40 FRAME P3
The subprogram FRAME must be executed 3 times in succession.

Table of Contents

Other manuals for Siemens SINUMERIK 840DE

Related product manuals