Subprogram With Program Repetition - Siemens SINUMERIK 840DE Programming Manual

Hide thumbs Also See for SINUMERIK 840DE:
Table of Contents

Advertisement

Subprograms and Repetition of Program Sections

11.3 Subprogram with program repetition

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
Example
N40 FRAME P3
The subprogram FRAME must be executed 3 times in succession.
11-6
Number of program passes or program repetitions
Value range P: 1...9999
Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
Fundamentals

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents