Program code Comment
N20 GOTOF Label_1 ; Jump toward end of program to
; jump label "Label_1".
N30 …
N40 Label_0: R1=R2+R3 ; Jump label "Label_0" set.
N50 …
N60 Label_1: ; Jump label "Label_1" set.
N70 …
N80 GOTOB Label_0 ; Jump toward beginning of program
; to the jump label "Label_0."
N90 …
Example 2: Indirect jump to the block number
Program code Comment
IF <condition> == TRUE
R10=100 ; Assign jump destination
ELSE
R10=110 ; Assign jump destination
ENDIF
; Jump toward end of program to the block whose block number is located in R10
N10 GOTOF "N"<<R10
...
N90 ...
N100 ... ; Jump destination
N110 ...
...
Example 3: Jump to variable jump destination
Program code Comment
DEF STRING[20] DESTINATION
IF <condition> == TRUE
DESTINATION = "Label1" ; Assign jump destination
ELSE
DESTINATION = “Label2" ; Assign jump destination
ENDIF
; Jump toward end of program to the variable jump destination "Content of DESTINA-
TION."
GOTOF DESTINATION
Label1: T="Drill1" ; Jump destination 1
...
Label2: T="Drill2" ; Jump destination 2
...
Work preparation
3.1 Flexible NC programming
NC programming
466 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0