7.7.8.2
Logical functions
Table 5: Logical functions
Function
Syntax
Result
type
Description
any
any(array)
BOOL
Check if any array element is true.
all
all(array)
BOOL
Check if all array elements are true.
count
count(array) NUM
Count all true values in a boolean array.
contains
con‐
tains(array,
x)
BOOL
Check if a value x is present in an array.
element
ele‐
ment(array,
index)
Any
Get an element out of an array by index.
array
array(x1, ...)
Any
Create an array of list elements, array index starts at
zero.
size
size(array)
NUM
Calculate the size of an array.
7.7.8.3
Mathematical operators
Table 6: Mathematical operators
Operator
Syntax
Result
type
Description
+
x + y
NUM
Addition
-
x - y
NUM
Subtraction
-
-x
NUM
Negation
*
x * y
NUM
Multiplication
/
x / y
NUM
Division
^
x^y
NUM
Exponentiation
.
x.y
NUM
Decimal
7.7.8.4
Mathematical functions
Table 7: Mathematical functions
Functions
Syntax
Result
type
Description
min
min(x1, ...)
NUM
Find the minimum value in a list of elements or an array.
max
max(x1, ...)
NUM
Find the maximum value in a list of elements or an array.
sum
sum(x1, ...)
NUM
Sum of all elements in a list or an array.
abs
abs(x)
NUM
Absolute value of x.
round
round(x,
dec)
NUM
Round x to an integer or to a fixed number of decimals.
mod
mod(x,y)
NUM
Calculate x modulo y.
sqrt
sqrt(x)
NUM
Calculate the square root of x.
sin
sin(x)
NUM
Calculate the sine of x in radians.
cos
cos(x)
NUM
Calculate the cosine of x in radians.
tan
tan(x)
NUM
Calculate the tangent of x in radians.
asin
asin(x)
NUM
Calculate the arcsine of x in radians.
acos
acos(x)
NUM
Calculate the arccosine of x in radians.
atan
atan(x)
NUM
Calculate the arctangent of x in radians.
7
OPERATION
48
O P E R A T I N G I N S T R U C T I O N S | TriSpector1000
8021808/12ID/2019-01 | SICK
Subject to change without notice