Siemens SINUMERIK 840D sl Programming Manual page 466

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

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents