Advanced Graphic Data Manager
Commissioning and use during operation
111
The following functions expect a radian angle as the argument. If the angle is given as degrees, it
has to be converted to the radian by multiplying by pi()/180. Alternatively, the "rad" function can
be used:
In the following functions, the angle returned as a radiant is output with a value between –pi/2 and
+pi/2. If the result is to be expressed in degrees, the result has to be multiplied by 180/pi() or the
"grad" function has to be used:
Logical functions:
Function
Syntax
Description
Example
sin
sin(number)
Returns the sine of a number.
sin(pi()) -> sine of pi
radiant
sin(30*pi()/180) ->
sinus of 30 degrees
(0.5)
cos
cos(number)
Returns the cosine of the argument.
cos(1.047) =
0.500171
tan
tan(number)
Returns the tangent of the argument.
tan(0.785) = 0.99920
Function
Syntax
Description
Example
asin
asin(number)
Returns the arc sine or the inverse sine of a number
(inverse function). The arc sine expects a real argu-
ment in the range from -1 to +1. The unit conti-
nues to work with 0 for values outside this range.
arcsin(-0,5) = -0.5236
arcsin(-0,5)*180/pi()
= -30°
acos
acos(number)
Returns the arc cosine or the inverse cosine of a
number (inverse function). The arc cosine expects
a real argument in the range from -1 to +1. The
unit continues to work with 0 for values outside
this range.
arccos(-0,5) =
2.094395
atan
atan(number)
Returns the arc tangent or the inverse tangent of a
number (inverse function).
atan(1) = 0.785398
Function
Syntax
Description
Example
if
if(check;then_value;
otherwise_value)
Any number or expression is the check. The result
can be TRUE or FALSE. This argument can assume
any comparative calculation operator.
Then_value is the value returned if the check is
TRUE.
Otherwise_value is the value returned if the check
is FALSE.
if(x>10;1;0)
If the value x is greater
than 10, the function
returns 1.
Otherwise it returns 0.
or
or(true1;true2)
Returns TRUE if an argument is TRUE. Returns
FALSE if all arguments are FALSE.
Note:
see also operator "||"
or(2>1;3>2) = true
or(2<1;3>2) = true
or(2<1;3<2) = false
and
and(true1;true2)
Returns TRUE if both arguments are TRUE. If one
of the arguments is FALSE, this function returns
the value FALSE.
Note:
see also operator "&&"
and(2>1;3>2) = true
and(2<1;3<2) = false