Input
Output
OK
Enable
SIN_
REAL
IN Q
–2
63
< IN <+2
63
, (2
63
= 9.22x10
18
)
10.5.5.2
Inverse Sine, Cosine, and Tangent
When an Inverse Sine, Cosine, or Tangent function receives power flow, it operates on IN
and stores the result in output Q, whose units are radians. Both IN and Q are
floating-point values.
The Inverse Sine and Cosine functions accept a narrow range of input values, where
-1 < IN < 1
Given a valid value for the IN parameter, the Inverse Sine Real function produces a result
Q such that:
ASIN (IN)
<
<
2
π
2
π
Q
=
The Inverse Cosine Real function produces a result Q such that:
ACOS(IN) = 0 < Q < π
The Inverse Tangent function accepts the broadest range of input values, where
− ∞ ≤ IN ≤ + ∞
Given a valid value for the IN parameter, the Inverse Tangent Real function produces a
result Q such that:
ATAN (IN)
<
<
2
π
2
π
Q
=
10.5.5.3
Parameters of the Trigonometric Functions
Input/ Output
Choices
Description
enable
flow
When the function is enabled, the operation is
performed.
IN
R, AI, AQ, constant
IN contains the constant or reference real value
to be operated on.
ok
flow, none
OK is energized when the function is performed
without overflow, unless an invalid operation
occurs and/or IN is NaN.
Q
R, AI, AQ
Output Q contains the trigonometric value of IN.
10.5.5.4
Example
In the example, the Cosine of the value in %R0001 is placed in %R0033.
168
GFK-1503E
VersaMax PLC User Manual
For public disclosure
Summary of Contents for VersaMax PLC
Page 16: ...Notes 16 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 38: ...Notes 38 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 50: ...Notes 50 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 92: ...Notes 92 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 112: ...Notes 112 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 224: ...Notes 224 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 292: ...Notes 292 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 316: ...Notes 316 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 317: ......