840D/828D SINUMERIK Operate Page 7
B509
B509
Notes
Section 3
Repetitions of parts of the program
Example with end label and multiple repeat:
With the instruction “REPEAT LBL12 EBE12 P4” the program blocks N90
to N150 are repeated a total of 4 times. After that the program will be con-
tinued with block N210.
Note:
Make sure at all times that the markers are written correctly. The control
unit treats these labels as a character chain; an incorrect input can lead to
considerable interruptions in the program.
Repetition
4 times
N80 G00 X80; Raw dimension
N90 LBL12:
N100 G00 G42 X=IC(-4) Z1
N110 G01 Z-20
N120 X=IC(6)
N130 G00 G40 Z4
N140 G01 X=IC(-6)
N150 EBE12:
N160 G00 X200 Z300
N170 T7; Roughing tool 2
N180 G96 S180 F0.25 M4 D1
N190 G00 G42 X74 Z4 M8
N200 REPEAT LBL12 EBE12 P4
N210 G00 X200 Z300