Siemens SINUMERIK 840D sl Function Manual page 671

Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

2.7.10.5
A part program section between a Start label and the key word: ENDLABEL
Functionality
Via REPEAT in part program block N150, the part program processing branches to the part
program block N120 that is labeled START_1 with a start label. This part program block and
all the part program blocks up to and including the part program block marked with the key
word ENDLABEL (N140) are repeated x number of times. 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 N170 following the REPEATinstruction.
:
N100 ...
N120 START_1: ...
N130 ...
N140 ENDLABEL: ...
N150 ...
N160 REPEAT START_1 END_1 P=n
N170 ...
:
Note
Label search direction
The program section marked with the Start and End labels can come before or after the
REPEATinstruction. The search initially commences toward the start of the program. If the
Start label is not found, a search is made in the direction of the program end.
If no keyword ENDLABEL is located between the Start label and the REPEAT instruction, the
part program section from the Start label to the REPEAT instruction is repeated.
Programming
Syntax:
Basic logic functions: Mode group, channel, program operation, reset response (K1)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
; Start label: START__1
; End label: Keyword ENDLABEL
; Repetition: START_1 until END_1
REPEAT <Label> [P=n]
Start label to which the instruction: REPEAT branches.
Label
Beginning of the part program section that is repeated.
Type: String
Number of repetitions
P
Number of repetitions
-{}-n
Type: Integer
Detailed description
2.7 Program operation mode
113

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840di slSinumerik 840dSinumerik 840diSinumerik 810dSinumerik 840d powerlineSinumerik 840de powerline ... Show all

Table of Contents