Not Equal

For integer, REAL, TIME, DATE, and STRING variables, compares input variables to determine whether the first is not equal to the second.
lrso_neq1
Arguments
i1
BOOL - SINT - USINT - BYTE - INT - UINT - WORD - DINT - UDINT - DWORD - LINT - ULINT - LWORD - REAL - LREAL - TIME - DATE - STRING
both inputs must have the same type
i2
BOOL - SINT - USINT - BYTE - INT - UINT - WORD - DINT - UDINT - DWORD - LINT - ULINT - LWORD - REAL - LREAL - TIME - DATE - STRING
o1
BOOL
TRUE if first <> second
Example
(* FBD example with "Is Not Equal to" Operators *)
lrso_neq2
(* ST Equivalence: *)
aresult := (10 <> 25); (* aresult is TRUE *) mresult := ('ab' <> 'ab'); (* mresult is FALSE *)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal