Less Than - Allen-Bradley Micro800 General Instructions Manual

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

Advertisement

Chapter 10
Compare instructions

Less than

Parameter
EN
i1
i2
o1
264
For Integer, Real, Time, Date, and String values, Less Than compares input values
to determine whether the first is less than the second.
Arguments
Data Type
Parameter
Type
Input
BOOL
Input
SINT - USINT - BYTE - INT - UINT -
WORD - DINT - UDINT - DWORD -
LINT - ULINT - LWORD - REAL -
LREAL - TIME - DATE - STRING
Input
SINT - USINT - BYTE - INT - UINT -
WORD - DINT - UDINT - DWORD -
LINT - ULINT - LWORD - REAL -
LREAL - TIME - DATE - STRING
Output
BOOL
Less than (<) operator ST language example
(* ST Equivalence: *)
aresult := (10 < 25); (* aresult is TRUE *)
mresult := ('z' < 'B'); (* mresult is FALSE *)
(* IL equivalence: *)
LD
LT
ST
LD
LT
ST
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
Description
Function enable.
When Enable = TRUE, execute the input comparison.
When Enable = FALSE, there is no comparison.
Applies only to LD programs.
All inputs must be the same data type.
TRUE if i1 < i2.
10
25
aresult
'z'
'B'
mresult

Advertisement

Table of Contents
loading

Table of Contents