NE (<>)
The NE instruction compares Integer, Real, Time, Date, and String input values to determine whether the first is not equal to the second.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
NE

Parameter | Parameter Type | Data Type | Description | |
---|---|---|---|---|
EN | Input | BOOL | Instruction enable.
Applies only to ladder diagram 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. |
NE examples
NE function block diagram example

NE ladder diagram program example

(* ST Equivalence: *) aresult := (10 <> 25); (* aresult is TRUE *) mresult := ('ab' <> 'ab'); (* mresult is FALSE *)
Provide Feedback