Chapter 5 Arithmetic instructions
68 Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
Addition adds two or more Integer, Real, Time, or String values.
Addition operation
The Addition function supports additional inputs.
Arguments
Parameter
Parameter
Type
Data Type Description
EN Input BOOL Function enable.
When Enable = TRUE, execute current addition computation.
When Enable = FALSE, there is no computation.
Applies only to LD programs.
i1 Input SINT - USINT - BYTE - INT
- UINT - WORD - DINT -
UDINT - DWORD - LINT -
ULINT - LWORD - REAL -
LREAL - TIME - STRING
Addend in Real, Time, or String data type.
All inputs must be the same data type.
i2 Input SINT - USINT - BYTE - INT
- UINT - WORD - DINT -
UDINT - DWORD - LINT -
ULINT - LWORD - REAL -
LREAL - TIME - STRING
Addend in Real, Time, or String data type.
All inputs must be the same data type.
o1 Output SINT - USINT - BYTE - INT
- UINT - WORD - DINT -
UDINT - DWORD - LINT -
ULINT - LWORD - REAL -
LREAL - TIME - STRING
Sum of the input values in Real, Time, or String fomat.
Input and output must use the same data type.
ENO Output BOOL Enable out.
Applies only to LD programs.
Example
(* ST equivalence: *)
ao10 := ai101 + ai102;
ao5 := (ai51 + ai52) + ai53;