Program Example For Jumps - Siemens SINUMERIK User Manual

Hide thumbs Also See for SINUMERIK:
Table of Contents

Advertisement

Programming example for comparison operators
R1>1
1 < R1
R1<R2+R3
R6>=SIN( R7*R7)
Programming example
N10 IF R1 GOTOF LABEL1
G0 X30 Z30
N90 LABEL1: G0 X50 Z50
N100 IF R1>1 GOTOF LABEL2
G0 X40 Z40
N150 LABEL2: G0 X60 Z60
G0 X70 Z70
N800 LABEL3: G0 X80 Z80
G0 X100 Z100
N1000 IF R45==R7+1 GOTOB LABEL3
M30
Several conditional jumps in the block:
N10 MC1: G0 X20 Z20
N20 G0 X0 Z0
N30 IF R1==1 GOTOB MC1 IF R1==2 GOTOF MA2 ...
N40 G0 X10 Z10
N50 MA2: G0 X50 Z50
N60 M30
Note
The jump is executed for the first fulfilled condition.
11.15.3

Program example for jumps

Task
Approaching points on a circle segment:
Existing conditions:
Start angle: 30° in R1
Circle radius: 32 mm in R2
Position spacing: 10° in R3
Number of points: 11 in R4
Position of circle center in Z: 50 mm in R5
Position of circle center in X: 20 mm in R6
Programming and Operating Manual (Turning)
01/2017
;R1 greater than 1
;1 less than R1
;R1 less than R2 plus R3
; R6 greater than or equal to SIN (R7) squared
;If R1 is not null then go to the block having LABEL1
;If R1 is greater than 1 then go to the block having
LABEL2
;If R45 is equal to R7 plus 1 then go to the block
having LABEL3
129

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 808dSinumerik 808d advanced

Table of Contents