<jump
destination>:
Jump destination parameter
Possible data include:
<jump label>: Jump destination is the jump label set in the program
with a user-defined name:<jump label>:
<block number>: Jump destination is main block or sub-block number
(e.g.: 200, N300)
STRING type variable: Variable jump destination. The variable stands for a
jump label or a block number.
IF: 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.
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 Comment
N10 …
Work preparation
3.1 Flexible NC programming
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 465