Programming and Operating Manual (Milling)
130 6FC5398-4DP10-0BA6, 09/2017
;Selected string for the label (jump label) or block number
;Introduction of the jump condition
;Arithmetic parameter, arithmetic expression for formulating the cond
ition
= = Equal to
> greater than
> = greater than or equal to
< = less than or equal to
The comparison operations support formulating of a jump condition. Arithmetic expressions can also be compared.
The result of comparison operations is "satisfied" or "not satisfied." "Not satisfied" sets the value to zero.
Programming example for comparison operators
; R6 greater than or equal t o SIN (R7) squared
;If R1 is not null then go to the bloc k 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 eq ual to R7 plus 1 then go to the block
having LABEL3
Several conditional jumps in the block :
N20 IF R1==1 GOTOB MC1 IF R1==2 GOTOF MA2
Note
The jump is executed for the first fulfilled condition.