Reference Manual
IVC-2D
248
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
Appendix
A.4
Operator Priority
The operators have the following priority:
Highest priority
( )
.
V
x
S
a
A
b
S
a
R
b
Functions, for example
sin(
x
)
* / %
+ -
< >
Lowest priority
,
Example
=Not( S3R1 * V( 5 * S2R1 ) < 10 )
This expression uses the first result from program step 3 (
S3R1
), and a value from the
table (
V( 5 * S2R1 )
). Which table row to get the value from is calculated by using a
result from program step 2.
Assume that we have the following values:
Variable Value
Result 1 from step 2
S2R1 7
Result 1 from step 3
S3R1 6
Row 35 in the table
V35 2
The expression is resolved in the following way:
=Not( S3R1 * V( 5 * S2R1 ) < 10 )
=Not( S3R1 * V( 5 * 7 ) < 10 )
=Not( S3R1 * V35 < 10 )
=Not( S3R1 * 2 < 10 )
=Not( 6 * 2 < 10 )
=Not( 12 < 10 )
=Not( 0 )
1(TRUE)