Programming and Operating Manual (Milling)
6FC5398-4DP10-0BA6, 09/2017
129
Unconditional program jumps
Fu n ctionality
NC programs process their blocks in the sequence in which they were arranged when they were written.
The processing sequence can be changed by introducing program jumps.
The jump destination can be a block with a
or with a
. This block must be located within the program.
The unconditional jump instruction requires a separate block.
GOTOF label
;Jump forward (in the direction of the last block of the program)
;Jump backwards (in the direction of the first block of the program)
;Selected string for the label (jump label) or block number
See the following illustration for an example of unconditional jumps:
Conditional program jumps
Fu n ctionality
Jump conditions
are formulated after the
. If the jump condition (
) is satisfied, the jump takes
place.
The jump destination can be a block with a
or with a
. This block must be located within the program.
Conditional jump instructions require a separate block. Several conditional jump instructions can be located in the same
block.
By using conditional program jumps, you can also considerably shorten the program, if necessary.
IF condition GOTOF label
GOTOF
;Jump direction forward (in the direction of the last block of the pr
ogram)
GOTOB
;Jump direction backwards (in the direction of the fir
st block of the program)