Flexible NC programming
1.11 Repeat program section (REPEAT, REPEATB, ENDLABEL, P)
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
91
1.11 Repeat program section (REPEAT, REPEATB, ENDLABEL, P)
Function
Program section repetition allows you to repeat existing program sections within a program
in any order.
The program lines or program sections to be repeated are identified by jump markers
(labels).
Note
Jump markers (labels)
Jump markers are always located at the beginning of a block. If a program number exists,
the jump marker is located immediately after the block number.
The following rules apply when naming jump markers:
• Number of characters:
– Minimum 2
– Maximum 32
• The following characters are permitted:
– Letters
– Numbers
– Underscores
• The first two characters must be letters or underscores.
• The name of the jump marker is followed by a colon (":").
Syntax
1. Repeat individual program line:
<jump marker>: ...
...
REPEATB <jump marker> P=<n>
...
2. Repeat program section between jump marker and REPEAT statement:
<jump marker>: ...
...
REPEAT <jump marker> P=<n>
...