Download Print this page

Siemens Sinumerik 840D Operating Turning page 122

Hide thumbs Also See for Sinumerik 840D:

Advertisement

Section 3
Notes
B509
B509
Repetitions of parts of the program
If a certain number of NC-blocks is to be repeated at another part of the
program, the instruction REPEAT is available.
The instruction requires a start marker as a jump destination. An end
marker can possibly be included for clarity.
The end marker is only really necessary if the repeat instruction is not di-
rectly in the succeeding block of the part of the program to be repeated
(see Section 4).
Example without end marker, single repeat:
N30 T1;
N40 G96 S160 F0.2 M4 D1
N50 G00 X82 Z0 M8
N60 G01 X-1.6
N70 Z3
N80 G00 X80; raw dimension
N90 LBL10:
N100 G00 G42 X=IC(-4) Z1
Jump to start
N110 G01 Z-20
label
N120 X=IC(6)
N130 G00 G40 Z4
N140 G01 X=IC(-6)
N150 REPEAT LBL10
N160 G00 X200 Z300
After the blocks N90 to N140 have been repeated the program will be con-
tinued with block N160.
Note:
The program section (N90 to N140) is already executed once during the
normal run of the program. With the "REPEAT"-instruction this will be car-
ried out a second time.
If a program section is to be repeated several times, the number of repeti-
tions must be stated with the address "P" (see page 7).
Page 6
Roughing tool
Single repetition of
the program section
Program continua-
tion after the repeti-
tion
840D/828D SINUMERIK Operate

Advertisement

loading

This manual is also suitable for:

Sinumerik 828d