NEEUNEQUSNENEQ Not equal

Also called: not equal to, NEQ (Not Equal), inequality, <>

Passes power when IN1 ≠ IN2.

What it does

The NE / NEQ comparison passes power when the two values differ.The NE comparison passes power when the two values differ.The NEQ comparison passes power when the two values differ.

When to use it

To detect a mismatch: position different from the setpoint, a value that changed.

Operands

European mnemonicAmerican mnemonicNameData typeDirectionRequiredMeaning
IN1IN1Source ABOOL, INT, DINT, REAL, TIME / DINTInputYesFirst value (variable or constant).
IN2IN2Source BBOOL, INT, DINT, REAL, TIME / DINTInputYesSecond value (variable or constant).
MnemonicNameData typeDirectionRequiredMeaning
IN1Source ABOOL, INT, DINT, REAL, TIMEInputYesFirst value (variable or constant).
IN2Source BBOOL, INT, DINT, REAL, TIMEInputYesSecond value (variable or constant).
MnemonicNameData typeDirectionRequiredMeaning
IN1Source ABOOL, INT, DINT, REALInputYesFirst value (variable or constant).
IN2Source BBOOL, INT, DINT, REALInputYesSecond value (variable or constant).

Timing diagram

V151015251510H10123456789101112scans

Timing diagram checked against the simulator (the same engine as the editor).

Example

European style
American style

H1 turns on when V1 is not 10.

Try it in the simulatorThe example opens in the free simulator; your own program stays as it was.

Behaviour in detail

See also