EasyManua.ls Logo

Siemens SINUMERIK 840Di sl - 11 Program Section Repetition

Siemens SINUMERIK 840Di sl
560 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Fundamentals
Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
425
Program section repetition
11
11.1 Program section repetition
Function
Program section repetition allows you to repeat existing program sections within a program
in any order. The block or program sections to be repeated are identified by labels.
For more information on labels, please see:
Fundamentals of NC Programming, "Language Elements of Programming Language"
References: /PGA/Job Planning Programming Manual; Flexible NC Programming,
"CASE Statement" and "Control Structures"
Programming repeat block
LABEL: xxx
yyy
REPEATB LABEL P=n
Zzz
The program line identified by a label is repeated P=n times. If P is not specified, the
program section is repeated exactly once. After the last repetition, the program is continued
at the line zzz following the REPEATB line.
The 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 in this
direction, the search continues toward the end of the program.
Programming repeat area starting at label
LABEL: xxx
yyy
REPEAT LABEL P=n
zzz
The program section between the label with any name and the REPEAT statement is
repeated P=n times. If the block with the label contains further statements, these are
executed again on each repetition. If P is not specified, the program section is repeated
exactly once. After the last repetition, the program is continued at the line zzz following the
REPEAT line.

Table of Contents

Other manuals for Siemens SINUMERIK 840Di sl

Related product manuals