K1: Mode group, channel, program operation, reset response
9.9 Program operation mode
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
573
Programming
9.9.11.3
A part program section after a start label
Functionality
Via
REPEAT
in part program block N150, the part program processing branches to the part program block N120
that is labeled
START_1
. This part program block and all of the following part program blocks (N130 and N140)
are repeated x number of times up to the part program block that contains the
REPEAT
instruction (N150). If P is
not specified, the part program section (N120 - N140) is repeated exactly once. After the last repetition, the part
program is continued with the part program block N160 following the
REPEAT
instruction.
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.
Syntax:
REPEATB <Label> [P=n]
Labe
l
Start label to which the instruction:
REPEAT
branches
Type: String
P
Number of repetitions
?{}?
n
Number of repetitions
Type: Integer
:
N100 ...
N120 START_1: ...
; Start label: START_1
N130 ...
N140 ...
N150 REPEAT START_1 P=n
; Repetition after: START_1
N160 ...
:
Note
Label search direction
The part program block marked with the Start label must come before the
REPEAT
instruction.
Содержание SINUMERIK 828D Turning
Страница 34: ...Basic Functions 34 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 146: ...A3 Axis Monitoring Protection Zones 2 6 Data lists Basic Functions 146 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 328: ...F1 Travel to fixed stop 6 5 Data lists Basic Functions 328 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 816: ...K2 Axis Types Coordinate Systems Frames 10 9 Data lists Basic Functions 816 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1198: ...P4 PLC for SINUMERIK 828D 14 6 Function interface Basic Functions 1198 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1752: ...Appendix 20 2 Overview Basic Functions 1752 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1774: ...Glossary Basic Functions 1774 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...