EasyManua.ls Logo

Allen-Bradley Micro800

Allen-Bradley Micro800
652 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Arithmetic instructions Chapter 5
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015 101
Subtraction subtracts an Integer, Real, or Time value from another Integer, Real
or Time value.
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
Minuend in any Integer, Real or Time 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
Subtrahend in any Integer, Real or Time 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
Difference of the minuend and the subtrahend in any Integer, Real or Time
data type.
Output must be the same data type as inputs.
ENO Output BOOL Enable out.
Applies only to LD programs.
Example
(* ST equivalence: *)
ao10 := ai101 - ai102;
ao5 := (ai51 - 1) - ai53;
Subtraction

Table of Contents

Other manuals for Allen-Bradley Micro800

Related product manuals