Subtraction - Allen-Bradley Micro800 General Instructions Manual

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

Advertisement

Subtraction

Parameter
EN
i1
i2
o1
ENO
Subtraction subtracts an Integer, Real, or Time value from another Integer, Real
or Time value.
Arguments
Parameter
Data Type
Type
Input
BOOL
Input
SINT - USINT - BYTE - INT - UINT -
WORD - DINT - UDINT - DWORD -
LINT - ULINT - LWORD - REAL -
LREAL - TIME
Input
SINT - USINT - BYTE - INT - UINT -
WORD - DINT - UDINT - DWORD -
LINT - ULINT - LWORD - REAL -
LREAL - TIME
Output
SINT - USINT - BYTE - INT - UINT -
WORD - DINT - UDINT - DWORD -
LINT - ULINT - LWORD - REAL -
LREAL - TIME
Output
BOOL
Example
(* ST equivalence: *)
ao10 := ai101 - ai102;
ao5 := (ai51 - 1) - ai53;
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
Arithmetic instructions
Description
Function enable.
When Enable = TRUE, execute current addition computation.
When Enable= FALSE, there is no computation.
Applies only to LD programs.
Minuend in any Integer, Real or Time data type.
All inputs must be the same data type.
Subtrahend in any Integer, Real or Time data type.
All inputs must be the same data type.
Difference of the minuend and the subtrahend in any Integer, Real or Time
data type.
Output must be the same data type as inputs.
Enable out.
Applies only to LD programs.
Chapter 5
101

Advertisement

Table of Contents
loading

Table of Contents