Multiply - GE PACSystems RX7i Cpu Programmer's Reference Manual

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

4.10.6

Multiply

When the MUL function receives power flow, it multiplies the two operands
IN1 and IN2 of the same data type and stores the result in the output variable
assigned to Q, also of the same data type.
The power flow output is energized when the function is performed, unless an
invalid operation or Overflow occurs. (For more information, refer to the
section on Overflow.)
Note: MUL_MIXED uses mixed data types. Be careful to avoid overflows.
The following REAL and LREAL operations are invalid for MUL:
0 x ∞
I1 and/or I2 is NaN (Not a Number).
Mnemonic Operation
MUL_INT
Q(16-bit) = IN1(16-bit) × IN2(16-
bit)
MUL_DINT
Q(32-bit) = IN1(32-bit) × IN2(32-
bit)
MUL_REAL
Q(32-bit) = IN1(32-bit) × IN2(32-
bit)
MUL_LREAL Q(64-bit) = IN1(64-bit) × IN2(64-
bit)
MUL_UINT
Q(16-bit) = IN1(16-bit) × IN2(16-
bit)
MUL_MIXED Q(32-bit) = IN1(16-bit) × IN2(16-
bit)
Operands for Multiply
Parameter Description
IN1
The first value to multiply; the value to the left of the multiply
sign (×) in the equation IN1 × IN2=Q.
IN2
The second value to multiply; the value to the right of the
multiply sign (×) in the equation IN1 × IN2=Q.
Q
The result of IN1 × IN2. If a MUL operation on signed
operands results in
value and there is no power flow.
If a MUL_UINT operation results in
around.
GFK-2950C
Chapter 4. Ladder Diagram (LD) Programming
Displays as
base 10 number with sign, up to 5 digits long
base 10 number with sign, up to 10 digits long
base 10 number, sign and decimals, up to 8 digits long
(excluding the decimals)
base 10 number, sign and decimals, up to 17 digits long
(excluding the decimals)
base 10 number, unsigned, up to 5 digits long
base 10 number with sign, up to 10 digits long
Overflow
, Q is set to the largest possible
Overflow
February 2018
Allowed Operands
All except S, SA, SB, SC No
All except S, SA, SB, SC No
All except S, SA, SB, SC
and constant
, Q wraps
Mnemonics:
MUL_DINT
MUL_INT
MUL_MIXED
MUL_REAL
MUL_LREAL
MUL_UINT
Optional
No
197

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents