EasyManua.ls Logo

Siemens SINUMERIK 840DE SL - Page 471

Siemens SINUMERIK 840DE SL
1334 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...
P: Address for specifying the number of repetitions
<n>: Number of program section repetitions
Type: INT
The program section to be repeated is repeated <n> times. After the last
repetition, the program is resumed at the line following the REPEAT/REPEATB
line.
Note:
In the absence of a number being specified for P=<n>, the program section is
repeated just once.
Examples
Example 1: Repeat individual program line
Program code Comment
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 2: Repeat program section between jump marker and REPEAT statement:
Program code Comment
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 section from N10 to N70 four times.
N90 Z10
N100 M30
Example 3: Repeat section between two jump markers
Program code Comment
N5 R10=15
N10 Begin: R10=R10+1 ;Width
N20 Z=10-R10
N30 G1 X=R10 F200
N40 Y=R10
N50 X=-R10
Work preparation
3.1 Flexible NC programming
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 471

Table of Contents

Other manuals for Siemens SINUMERIK 840DE SL

Related product manuals