Camille Bauer LINAX A325 Operating Instructions Manual page 111

Table of Contents

Advertisement

Advanced Graphic Data Manager
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:
Function
Syntax
sin
sin(number)
cos
cos(number)
tan
tan(number)
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:
Function
Syntax
asin
asin(number)
acos
acos(number)
atan
atan(number)
Logical functions:
Function
Syntax
if
if(check;then_value;
otherwise_value)
or
or(true1;true2)
and
and(true1;true2)
Commissioning and use during operation
Description
Returns the sine of a number.
Returns the cosine of the argument.
Returns the tangent of the argument.
Description
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.
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.
Returns the arc tangent or the inverse tangent of a
number (inverse function).
Description
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.
Returns TRUE if an argument is TRUE. Returns
FALSE if all arguments are FALSE.
Note: see also operator "||"
Returns TRUE if both arguments are TRUE. If one
of the arguments is FALSE, this function returns
the value FALSE.
Note: see also operator "&&"
Example
sin(pi()) -> sine of pi
radiant
sin(30*pi()/180) ->
sinus of 30 degrees
(0.5)
cos(1.047) =
0.500171
tan(0.785) = 0.99920
Example
arcsin(-0,5) = -0.5236
arcsin(-0,5)*180/pi()
= -30°
arccos(-0,5) =
2.094395
atan(1) = 0.785398
Example
if(x>10;1;0)
If the value x is greater
than 10, the function
returns 1.
Otherwise it returns 0.
or(2>1;3>2) = true
or(2<1;3>2) = true
or(2<1;3<2) = false
and(2>1;3>2) = true
and(2<1;3<2) = false
111

Advertisement

Table of Contents
loading

Table of Contents