Chapter 4. Ladder Diagram (LD) Programming
GFK-2950C
February 2018
65
4.1.3
Trig Functions
Mnemonics:
SIN_REAL
SIN_LREAL
COS_REAL
COS_LREAL
TAN_REAL
TAN_LREAL
The SIN, COS, and TAN functions are used to find the trigonometric sine, cosine, and tangent,
respectively, of an input whose units are radians. When one of these functions receives power flow,
it computes the sine (or cosine or tangent) of IN and stores the result in output Q.
The SIN, COS, and TAN functions accept a broad range of input values, where
–
2
63
< IN < 2
63
,
(2
63
is approximately 9.22x10
18
). Input values outside this range will produce incorrect
results.
The power flow output is energized unless the following invalid condition occurs:
■
IN or Q is a NaN (Not a Number)
Operands of Trig Functions
Parameter Description
Allowed Operands
Optional
IN
Number of radians.
–
2
63
< IN < 2
63
All except variables located in %S
—
%SC
No
Q
Trigonometric value of IN (REAL or LREAL) All except constants and variables
located in %S
—
%SC
No
Example
The COS of the value in V_R00001 is placed in V_R00033.
Summary of Contents for PACSystems RX7i
Page 357: ......
Page 466: ...Chapter 9 Diagnostics GFK 2950C February 2018 451...