Detailed description
2.7 Program operation mode
2.7.10.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
REPEATBinstruction.
:
N100 ...
N120 START_1: ...
N130 ...
N140 ...
N150 REPEATB START_1 P=n
N160 ...
:
Note
Label search direction
The part program block identified by the label can appear before or after the REPEATB
statement. The search initially commences toward the start of the program. If the label is not
found, a search is made in the direction of the program end.
Programming
Syntax:
110
; Label: START_1
; Repetition after: START_1
REPEATB <Label> [P=n]
Start label to which the instruction: REPEAT branches
Labe
l
Type: String
Number of repetitions
P
Number of repetitions
-{}-
n
Type: Integer
Basic logic functions: Mode group, channel, program operation, reset response (K1)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0