EasyManua.ls Logo

Siemens SINUMERIK 840Di sl - Commissioning operating area

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...
Program section repetition
11.1 Program section repetition
Fundamentals
Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
429
N110 X3 Y3
N120 ENDLABEL:
N130 DRILL()
;Change drill and drilling cycle
N140 THREAD(6)
;Load tap M6 and ;threading cycle
N150 REPEAT POS_1
;Repeat program section once from ;POS_1
up to ENDLABEL
N160 DRILL()
;Change drill and drilling cycle
N170 THREAD(8)
;Load tap M8 and ;threading cycle
N180 REPEAT POS_2
;Repeat program section once from ;POS_2
up to ENDLABEL
N190 M30
Supplementary conditions
Program section repetitions can be nested. Each call uses a subprogram level.
If M17 or RET is programmed during processing of a program section repetition, the
repetition is aborted. The program is resumed at the block following the REPEAT line.
In the actual program display, the program section repetition is displayed as a separate
subprogram level.
If the level is canceled during the program section repetition, the program resumes at the
point after the program section repetition call.
Example:
N5 R10=15
N10 Begin: R10=R10+1
;Width
N20 Z=10-R10
N30 G1 X=R10 F200
N40 Y=R10
;Level cancellation
N50 X=-R10
N60 Y=-R10
N70 END: Z10
N80 Z10
N90 CYCLE(10,20,30)
N100 REPEAT BEGIN END P=3
N120 Z10
;Resume program processing
N130 M30
Control structures and program section repetitions can be used in combination. There
should be no overlap between the two, however. A program section repetition should
appear within a control structure branch or a control structure should appear within a
program section repetition.
If jumps and program section repetitions are mixed, the blocks are executed purely
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.

Table of Contents

Other manuals for Siemens SINUMERIK 840Di sl

Related product manuals