Math And Numerical Functions Trigonometric Functions - GE VersaMax PLC User Manual

Table of Contents

Advertisement

Input/ Output
enable
IN
ok
Q
Instruction Set Reference
For public disclosure
IN < 0
IN is NaN (Not a Number)
Otherwise, OK is set OFF.
Enable
INT
Input
N
10.5.4.1 Parameters of the Square Root Function
Choices
When the function is enabled, the operation is
flow
performed.
A constant or reference for the value whose
All data types: R, AI, AQ,
square root is to be calculated. If IN is less than
constant
zero, the function will not pass power flow.
INT data type only: I, Q,
Range for constants is minimum/maximum DINT
M, T, G
for double-precision signed integer operations.
The OK output is energized when the function is
flow, none
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
10.5.4.2 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.
%I0001
INT
%AI001
IN Q
10.5.5 Math and Numerical Functions Trigonometric
Functions
There are six Trigonometric functions: Sine, Cosine, Tangent, Inverse Sine, Inverse
Cosine, and Inverse Tangent.
10.5.5.1 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.
OK
Output
Q
Description
%R0003
GFK-1503E User Manual 167

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents