Siemens SINUMERIK 840D sl Programming Manual page 95

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Note
Jump markers (labels)
Jump markers (labels) are always located at the beginning of a block. If a program number
exists, the jump marker is located immediately after the block number.
The following rules apply when naming jump markers:
• Number of characters:
• Permitted characters include:
• The first two characters must be letters or underscores.
• The name of the jump marker is followed by a colon (":").
Supplementary conditions
● The jump destination can only be a block with jump marker or block number, that is
● A jump instruction without jump condition must be programmed in a separate block. This
● For programs with jump instructions without jump conditions, the end of the program
Examples
Example 1: Jumps to jump markers
Program code
N10 ...
N20 GOTOF Label_1
N30 ...
N40 Label_0: R1=R2+R3
N50 ...
N60 Label_1:
N70 ...
N80 GOTOB Label_0
N90 ...
Job Planning
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
– At least 2
– A maximum of 32
– Letters
– Numbers
– Underscore symbols
located within the program.
restriction does not apply to jump instructions with jump conditions. In this case, several
jump instructions can be formulated in a block.
M2/M30 doesn't necessarily have to be be at the end of the program.
Comments
; Jump towards the end of the program to the jump
marker "Label_1".
; Jump marker "Label_0" set.
; Jump marker "Label_1" set.
; Jump in the direction of the beginning of the
program to the jump marker "Label_0".
Flexible NC programming
1.10 Program jumps and branches
95

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents