Download Print this page

Siemens Sinumerik 840D Operating Turning page 119

Hide thumbs Also See for Sinumerik 840D:

Advertisement

Program jumps and deletion blocks
2.1 Program jumps
In practice it is often necessary to interrupt the block-by-block execution of
the program and to jump to another part of the program.
Certain number of blocks should not be executed by the control unit for
instance when testing a program.
Since the control does not recognize the block numbers, the jump destina-
tion must always be identified by markers (labels).
The Marker may be any chain of characters followed by a colon, however,
the chain of characters must not be identical to any command of the con-
trol unit.
Example: N100 LBL8
If for instance a section of the program is to be left out, the jump instruction
GOTOF can be used.
This instruction searches for the jump destination only in the forward direc-
tion of the program. The program will then be continued from there on in
the normal manner.
N10 G18 G54 G64 LIMS=3000
N20 G00 X200 Z300
N30 GOTOF LBL8
N40 T1;
Roughing tool
N50 G96 S160 F0.2 M4 D1
N60 G00 X82 Z0.2 M8
N70 G01 X-1.6
N80 Z2
N90 G00 X200 Z300
N100 LBL8:
N110 T2;
Finishing tool
N120 G96 S200 F0.15 M4 D1
N130 G00 G42 X0 Z2 M8
N140 G01 Z0
To initiate a backward jump in the program the instruction GOTOB must be
used.
Caution!
The backward jump will result in an endless loop if the number of runs is
not limited (see section 4).
Note:
Markers will be ignored by the control unit if there is no jump command to
the marker. In no way will the execution of the program be affected by a
marker without a jump instruction.
840D/828D SINUMERIK Operate
Forward jump to the marker
„LBL8:"
The blocks N40 to N90 will be
ignored
The program will be continued
as from block N100
Page 3
Section 2
Notes
B509
B509

Advertisement

loading

This manual is also suitable for:

Sinumerik 828d