Siemens SINUMERIK 840DE Programming Manual page 404

Hide thumbs Also See for SINUMERIK 840DE:
Table of Contents

Advertisement

Subprograms and Repetition of Program Sections
11.4 Program section repetition
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
• 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
Example:
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
• Control structures and program section repetitions can be used in combination. There
• If jumps and program section repetitions are mixed, the blocks are executed purely
Example:
N10 G1 F300 Z-10
N20 BEGIN1:
N30 X=10
N40 Y=10
N50 GOTOF BEGIN2
11-12
repetition is aborted. The program is resumed at the block following the REPEAT line.
subprogram level.
point after the program section repetition call.
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.
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.
;Width
;Level cancellation
;Resume program processing
Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
Fundamentals

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents