Siemens SINUMERIK 802D sl Programming And Operating Manual page 110

Hide thumbs Also See for SINUMERIK 802D sl:
Table of Contents

Advertisement

Programming
3.10 Program jumps
Comparison operations
Operators
= =
< >
>
<
> =
< =
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
R1>1
1 < R1
R1<R2+R3
R6>=SIN( R7*R7)
Programming example
N10 IF R1< >0 GOTOF LABEL1
...
N90 LABEL1: ...
N100 IF R1>1 GOTOF LABEL2
...
N150 LABEL2: ...
...
N800 LABEL3: ...
...
N1000 IF R45==R7+1 GOTOB LABEL3
Several conditional jumps in the block:
N10 MA1: ..
...
N20 IF R1==1 GOTOB MA1 IF R1==2 GOTOF MA2 ...
...
N50 MA2: ...
3-80
Meaning
Equal to
Not equal to
greater than
less than
greater than or equal to
less than or equal to
; R1 greater than 1
; 1 less than R1
; R1 less than R2 plus R3
; R6 greater than or equal to SIN (R7)2
Programming and Operating manual, 06/2006, 6FC5398-4CP10-0BA0
; If R1 is not null then go to the block hav-
ing 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
Grinding

Advertisement

Table of Contents
loading

Table of Contents