Caution
The following applies to every subprogram call: The subprogram call must always be
programmed in a separate NC block.
Subprogram call with program repetition and parameter transfer:Parameters are transferred
only when the program is called, i.e. on the first run. The parameters remain unchanged for
the remaining repetitions. If you want to change the parameters during program repetitions,
you must make the appropriate provision in the subprogram.
11.4
Program section repetition
Function
Instead of using subprograms, you can repeat existing program sections in any order. The
block or program sections to be repeated are identified by labels. For more information on
labels, please see:
References:
/PG/Programming Guide Fundamentals, chapter "Language elements of the programming
language"
/PGA/Programming Guide Advanced, chapter "CASE instruction", "Control structures"
Fundamentals
Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
Subprograms and Repetition of Program Sections
11.4 Program section repetition
11-7