Chapter 10 Compare instructions
266 Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
For Integer, Real, Time, Date, and String values, Not Equal compares input values
to determine whether the first is not equal to the second.
Arguments
Parameter Parameter Type Data Type Description
EN Input BOOL Function enable.
When Enable = TRUE, execute current compare computation.
When Enable = FALSE, there is no computation.
Applies only to LD programs.
i1 Input BOOL - SINT - USINT - BYTE - INT -
UINT - WORD - DINT - UDINT -
DWORD - LINT - ULINT - LWORD -
REAL - LREAL - TIME - DATE - STRING
All inputs must be the same data type.
i2 Input BOOL - SINT - USINT - BYTE - INT -
UINT - WORD - DINT - UDINT -
DWORD - LINT - ULINT - LWORD -
REAL - LREAL - TIME - DATE - STRING
o1 Output BOOL TRUE if first <> second
Not equal (<>) operator ST language example
(* ST Equivalence: *)
aresult := (10 <> 25); (* aresult is TRUE *)
mresult := ('ab' <> 'ab'); (* mresult is FALSE *)