Math Functions - GE PACSystems RX7i Cpu Programmer's Reference Manual

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

4.10 Math Functions

Your program may need to include logic to convert data to a different data type before using a Math
or Numerical function. The description of each function includes information about appropriate data
types. Refer to the Conversion Functions section to understand how to convert one data type to a
different data type.
Function Mnemonics
Absolute
ABS_DINT, ABS_INT,
Value
ABS_REAL, ABS_LREAL
Add
ADD_DINT, ADD_INT,
ADD_REAL,
ADD_LREAL, ADD_UINT
Divide
4
DIV_DINT, DIV_INT,
DIV_MIXED, DIV_REAL,
DIV_LREAL, DIV_UINT
Modulus MOD_DINT, MOD_INT,
MOD_UINT
Multiply
4
MUL_DINT, MUL_INT,
MUL_MIXED,
MUL_REAL,
MUL_LREAL, MUL_UINT
Scale
SCALE
Subtract SUB_DINT, SUB_INT,
SUB_REAL, SUB_LREAL,
SUB_UINT
To avoid Overflows when multiplying or dividing 16-bit numbers, use the Conversion Functions to convert the numbers to
4
a 32-bit data type.
GFK-2950C
Chapter 4. Ladder Diagram (LD) Programming
Description
Finds the absolute value of a double- precision integer (DINT), signed
single-precision integer (INT), or floating-point (REAL or LREAL) value. The
mnemonic specifies the value's data type.
Addition. Adds two numbers.
Division. Divides one number by another and outputs the quotient.
Note:
Take care to avoid
divisions.
Modulo Division. Divides one number by another and outputs the
remainder.
Multiplication. Multiplies two numbers.
Note:
Take care to avoid
multiplications.
Scales an input parameter and places the result in an output location.
Subtraction. Subtracts one number from another.
February 2018
Overflow
conditions when performing
Overflow
conditions when performing
189

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents