Math And Numerical Functions; Math And Numerical Functions Add, Subtract, Multiply, Divide - GE VersaMax PLC User Manual

Table of Contents

Advertisement

10.5 Math and Numerical Functions

Input/ Output
enable
I1
162
GFK-1503E
For public disclosure
This section describes the Math and Numerical functions of the Instruction Set:
Standard Math Functions: Addition, Subtraction, Multiplication, Division
Modulo Division
Scaling Function
Square Root
Trigonometric functions
Logarithmic/Expontial functions
Convert to Degrees
Convert to Radians
Converting Data for the Math and Numerical Functions
The program may need to include logic to convert data to a different type before using a
Math or Numerical function. The description of each function includes information about
appropriate data types. The section Data Type Conversion Functions explains how to
convert data to a different type.
10.5.1 Math and Numerical Functions Add, Subtract,
Multiply, Divide
The standard math functions are Addition, Subtraction, Multiplication, and Division. The
Division function rounds down; it does not round to the closest integer. (For example, 24
DIV 5 = 4.)
When a math function receives power flow, the operation is performed on input
parameters I1 and I2. Parameters I1, I2, and output Q must be the same data type.
ADD_
Enable
INT
Input 1
I1 Q
Input 2
I2
The math functions pass power if there is no math overflow. If an overflow occurs, the
result is the largest value with the proper sign and no power flow.
10.5.1.1 Parameters of the Standard Math Functions
Choices
When the function is enabled, the operation is
flow
performed.
I1 contains a constant or reference for the first
All data types: R, AI, AQ,
value used in the operation. (I1 is on the left side
constant
of the mathematical expression, as in I1 + I2).
INT data type only: I, Q,
Range for constants in doubleprecision signed
M, T, G
integer operations is minimum/maximum DINT.
OK
Output
Description
VersaMax PLC User Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents