Siemens SINUMERIK 828D Programming Manual page 96

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Flexible NC programming
1.11 Repeat program section (REPEAT, REPEATB, ENDLABEL, P)
Further information
● Program section repetitions can be nested. Each call uses a subprogram level.
● If
● In the actual program display, the program section repetition is displayed as a separate
● If the level is canceled during the program section repetition, the program resumes at the
Program code
N5 R10=15
N10 BEGIN: R10=R10+1
N20 Z=10-R10
N30 G1 X=R10 F200
N40 Y=R10
N50 X=-R10
N60 Y=-R10
N70 END: Z10
N80 Z10
N90 CYCLE(10,20,30)
N100 REPEAT BEGIN END P=3
N120 Z10
N130 M30
● Check structures and program section repetitions can be used in combination. There
● If jumps and program section repetitions are mixed, the blocks are executed purely
96
or
is programmed during processing of a program section repetition, the
M17
RET
repetition is canceled. The program is resumed at the block following the
subprogram level.
point after the program section repetition call.
Example:
should be no overlap between the two, however. A program section repetition should
appear within a check structure branch or a check structure should appear within a
program section repetition.
sequentially. For example, if a jump is performed from a program section repetition,
processing continues until the programmed end of the program section is found.
Comments
; Width
; Interrupt level
; Resume program execution.
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
line.
REPEAT
Job planning

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents