Programming and Operating Manual (Turning)
01/2017
129
Programming example for comparison operators
; R6 greater than or equal to SIN (R7) squared
;If R1 is not null then go to the block having LABEL1
N100 IF R1>1 GOTOF LABEL2
;If R1 is greater than 1 then go to the block having
LABEL2
N1000 IF R45==R7+1 GOTOB LABEL3
;If R45 is equal to R7 plus 1 then go to the block
having LABEL3
Several conditional jumps in the block:
N30 IF R1==1 GOTOB MC1 IF R1==2 GOTOF MA2 ...
Note
The jump is executed for the first fulfilled condition.
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