Add - GE PACSystems RX7i Cpu Programmer's Reference Manual

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

Chapter 4. Ladder Diagram (LD) Programming
4.10.3

Add

When the ADD function receives power flow, it adds the two
operands IN1 and IN2 of the same data type and stores the sum in
the output variable assigned to Q, also of the same data type.
The power flow output is energized when ADD is performed, unless an invalid operation or Overflow
occurs. (For more information, refer to the section on Overflow.)
Mnemonic
Operation
ADD_INT
Q(16-bit) = IN1(16-bit) + IN2(16-
bit)
ADD_DINT
Q(32-bit) = IN1(32-bit) + IN2(32-
bit)
ADD_REAL
Q(32-bit) = IN1(32-bit) + IN2(32-
bit)
ADD_LREAL Q(64-bit) = IN1(64-bit) + IN2(64-
bit)
ADD_UINT
Q(16-bit) = IN1(16-bit) + IN2(16-
bit)
Operands of the ADD Function
Operand Description
IN1
The value to the left of the plus sign (+) in the equation
IN1+IN2=Q.
IN2
The value to the right of the plus sign (+) in the equation
IN1+IN2=Q.
Q
The result of IN1+IN2. If an ADD of signed operands results in
Overflow
, Q is set to the largest possible value and there is no
power flow.
If an ADD_UINT operation results in
192
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
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
Overflow
, Q wraps around.
Mnemonics:
ADD_DINT
ADD_INT
ADD_REAL
ADD_LREAL
ADD_UINT
Allowed Operands
Optional
All except S, SA, SB, SC No
All except S, SA, SB, SC No
All except S, SA, SB, SC
No
and constant.
GFK-2950C

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents