K1: Mode group, channel, program operation, reset response
9.9 Program operation mode
Basic Functions
572
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
9.9.11
Program section repetitions
9.9.11.1
Overview
Function
The program section repetition allows the repetition of any labeled section of a part program.
For more information on labels, please see:
References:
/PG/ Programming Manual Fundamentals; Program Jumps and Program Repetitions
Definition options of part program sections
The program repetition offers various options for defining a part program section that is supposed to be repeated:
• A single part program block
• A part program section after a start label
• A part program section between a start label and end label
• A part program section between a start label and the key word: ENDLABEL
References:
/PGA/ Job Planning Programming Manual; Chapter "Program Coordination"
9.9.11.2
Individual part program block
Functionality
Via
REPEATB
(B=Block) in part program block N150, the part program processing branches to the part program
block N120 that is labeled
START_1
. This is repeated x number of times. If P is not specified, the program section
is repeated exactly once. After the last repetition, the part program is continued with the part program block N160
following the
REPEATB
instruction.
:
N100 ...
N120 START_1: ...
; Label: START_1
N130 ...
N140 ...
N150 REPEATB START_1 P=n
; Repetition after: START_1
N160 ...
: