Siemens Sinumerik 840D sl Programming Manual page 96

Job planning
Hide thumbs Also See for Sinumerik 840D sl:
Table of Contents

Advertisement

Flexible NC programming
1.10 Program jumps and branches
Examples
Example 1: Jumps to jump markers
Program code
N10 ...
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
N5 R10=100
N10 GOTOF "N"<<R10
...
N90 ...
N100 ...
N110 ...
...
Example 3: Jump to variable jump destination
Program code
DEF STRING[20] DESTINATION
DESTINATION = "Marker2"
GOTOF DESTINATION
Marker 1: T="Drill1"
...
Marker 2: T="Drill2"
...
96
Comments
; Jump towards the end of the program to the jump
marker "Label_1".
; Jump marker "Label_0" set.
; Jump marker "Label_1" set.
; Jump in the direction of the beginning of the
program to the jump marker "Label_0".
Comments
; Jump to the block whose block number is located in
R10.
; Jump destination
Comments
; Jump in the direction of the end of the program to
the variable jump destination DESTINATION.
; Jump destination
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
Job planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents