Addition - Allen-Bradley Micro800 General Instructions Manual

Programmable controllers
Hide thumbs Also See for Micro800:
Table of Contents

Advertisement

Chapter 5
Arithmetic instructions

Addition

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

Advertisement

Table of Contents
loading

Table of Contents