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
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"
...
Example 4: Jump with jump condition
Program code
N40 R1=30 R2=60 R3=10 R4=11 R5=50 R6=20
N41 LA1: G0 X=R2*COS(R1)+R5 Y=R2*SIN(R1)+R6
N42 R1=R1+R3 R4=R4-1
N43 IF R4>0 GOTOB LA1
N44 M30
96
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
Comments
; Assignment of the initial values.
; Jump marker LA1 set.
; If the jump condition is
fulfilled, then a jump in the
direction of the beginning of the
program to jump marker LA1.
; End of program
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents