Siemens SINUMERIK 840D sl Programming Manual page 105

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Examples
Example 1: Repeat individual program line
Program code
N10 POSITION1: X10 Y20
N20 POSITION2: CYCLE(0,,9,8)
N30 ...
N40 REPEATB POSITION1 P=5
N50 REPEATB POSITION2
N60 ...
N70 M30
Example 2: Repeat program section between jump marker and REPEAT statement
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 Z=10+R10
N80 REPEAT BEGIN P=4
N90 Z10
N100 M30
Example 3: Repeat section between two jump markers
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: Z=10
N80 Z10
N90 CYCLE(10,20,30)
N100 REPEAT BEGIN END P=3
N110 Z10
N120 M30
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
1.11 Repeat program section (REPEAT, REPEATB, ENDLABEL, P)
Comment
; Position cycle
; Execute BLOCK N10 five times.
; Execute block N20 once.
Comment
; Width
; Execute section from N10 to N70 four times.
Comment
; Width
; Execute section from N10 to N70 three times.
Flexible NC programming
105

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents