Math And Numerical Functions Trigonometric Functions - Emerson PaCSystems VersaMax Series User Manual

Table of Contents

Advertisement

User Manual
GFK-1503F
Input/
Output
IN
ok
Q
Example
In the example, the square root of the integer number located at %AI001 is placed into the
result located at %R0003 whenever %I0001 is ON.
Figure 130
10.5.5

Math and Numerical Functions Trigonometric Functions

There are six Trigonometric functions: Sine, Cosine, Tangent, Inverse Sine, Inverse Cosine,
and Inverse Tangent.
Sine, Cosine, and Tangent
When a Sine, Cosine, or Tangent function receives power flow, it operates on IN, whose units
are radians, and stores the result in output Q. Both IN and Q are floating-point values.
Figure 131
The Sine, Cosine, and Tangent functions accept a broad range of input values, where
Instruction Set Reference
Choices
Description
All data types: R, AI, AQ,
A constant or reference for the value whose square root is
constant
to be calculated. If IN is less than zero, the function will not
pass power flow. Range for constants is
INT data type only: I, Q,
minimum/maximum DINT for double-precision signed
M, T, G
integer operations.
flow, none
The OK output is energized when the function is performed
without overflow, unless an invalid operation occurs.
All data types: R, AI, AQ
Output Q contains the square root of IN.
INT data type only: I, Q,
M, T, G
–2
63
< IN <+2
63
, (2
63
= 9.22x10
18
)
Chapter 10
Jan 2020
147

Advertisement

Table of Contents
loading

Table of Contents