Siemens SINUMERIK 840D sl Programming Manual page 465

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

<jump
destination>:
IF:
Note
Jump labels
Jump labels are always located at the beginning of a block. If a program number exists, the
jump label is located immediately after the block number.
The following rules apply when naming jump labels:
● Number of characters:
– Minimum 2
– Maximum 32
● Permissible characters are:
– Letters
– Numbers
– Underscores
● The first two characters must be letters or underscores.
● The name of the jump label is followed by a colon (":").
Supplementary conditions
● The jump destination can only be a block with jump label or block number that is
located within the program.
● A jump statement without jump condition must be programmed in a separate block. This
restriction does not apply to jump statements with jump conditions. In this case, several
jump statements can be formulated in a block.
● For programs with jump statements without jump conditions, the end of the program M2/M30
does not necessarily be at the end of the program.
Examples
Example 1: Jumps to jump labels
Program code
N10 ...
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Jump destination parameter
Possible data include:
<jump label>:
<block number>:
STRING type variable:
Keyword to formulate the jump condition.
The jump condition permits all comparison and logical operations (result: TRUE
or FALSE). The program jump is executed if the result of this operation is TRUE.
Comment
3.1 Flexible NC programming
Jump destination is the jump label set in the program
with a user-defined name:<jump label>:
Jump destination is main block or sub-block number
(e.g.: 200, N300)
Variable jump destination. The variable stands for a
jump label or a block number.
Work preparation
465

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents