Add - GE PACSystems RX7i Cpu Programmer's Reference Manual

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

5.9.2

Add

Minimum number
Maximum number
of inputs = 2
of inputs = 8.
Operands of the ADD Function
Parameter Description
Solve Order Calculated by the FBD editor. NA
IN1 ... IN8
The values to be added.
Q
The sum of IN1 ... IN8. If an
Overflow
occurs, Q wraps
around.
Properties for ADD
Property
Valid Range
Number of Inputs
2 to 8
GFK-2950C
Chapter 5. Function Block Diagram (FBD)
Adds the operands IN1 and IN2 ... IN8 and stores the sum in Q.
IN1 ... IN8 and Q must be of the same data type.
The result is output to Q when ADD is performed without
Overflow, unless one of the following invalid conditions occurs:
(+ ∞)
IN1 and/or IN2 ... IN8 is NaN (Not a Number).
If an ADD operation results in Overflow, the result wraps
around. For example:
If an ADD_DINT, ADD_INT or ADD_REAL operation is
performed on 32767 + 1, Q will be set to -32768.
If an ADD_UINT operation is performed on 65535 + 16, Q
will be set to 15.
Allowed Types
INT, DINT, REAL, LREAL, UINT
Must be same data type as Q.
INT, DINT, REAL, LREAL, UINT
variable
Must be same data type as IN1 ....
IN8.
February 2018
Allowed Operands Optional
NA
No
All except S, SA, SB,
No
SC and data flow
All except S, SA, SB,
No
SC, constant and
data flow
259

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents