EasyManua.ls Logo

Siemens SINUMERIK 840DE

Siemens SINUMERIK 840DE
516 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...
Subprograms and Repetition of Program Sections
11.4 Program section repetition
Fundamentals
11-10 Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
Example of repetition of positions
N10 POSITION1: X10 Y20
N20 POSITION2: CYCLE(0,,9,8) ;Position cycle
N30 ...
N40 REPEATB POSITION1 P=5 ;Execute BLOCK N10 five times
N50 REPEATB POSITION2 ;Execute block N20 once
N60 ...
N70 M30
Example 5 squares with increasing width are to be produced
N5 R10=15
N10 Begin: R10=R10+1 ;Width
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 ;Execute area from N10 to N70 four times
N90 Z10
N100 M30
Example repeat program section from BEGIN to END
N5 R10=15
N10 Begin: R10=R10+1 ;Width
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 ;Execute area from N10 to N70 three times
N110 Z10
N120 M30

Table of Contents

Other manuals for Siemens SINUMERIK 840DE

Related product manuals