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 mnemonic | American mnemonic | Name | Data type | Direction | Required | Meaning |
|---|---|---|---|---|---|---|
| IN1 | IN1 | Source A | BOOL, INT, DINT, REAL, TIME / DINT | Input | Yes | First value (variable or constant). |
| IN2 | IN2 | Source B | BOOL, INT, DINT, REAL, TIME / DINT | Input | Yes | Second value (variable or constant). |
| Mnemonic | Name | Data type | Direction | Required | Meaning |
|---|---|---|---|---|---|
| IN1 | Source A | BOOL, INT, DINT, REAL, TIME | Input | Yes | First value (variable or constant). |
| IN2 | Source B | BOOL, INT, DINT, REAL, TIME | Input | Yes | Second value (variable or constant). |
| Mnemonic | Name | Data type | Direction | Required | Meaning |
|---|---|---|---|---|---|
| IN1 | Source A | BOOL, INT, DINT, REAL | Input | Yes | First value (variable or constant). |
| IN2 | Source B | BOOL, INT, DINT, REAL | Input | Yes | Second value (variable or constant). |
Timing diagram
Timing diagram checked against the simulator (the same engine as the editor).
Example
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
- Same types as EQ (BOOL, INT, DINT, REAL, TIME).
- With REALs, two nearly equal values count as different.