EQEUEQUUSEQEQU Equal
Also called: equal to, EQU (Equal), equality, =
Passes power when IN1 = IN2.
What it does
The EQ / EQU comparison passes power when both values are equal.The EQ comparison passes power when both values are equal.The EQU comparison passes power when both values are equal.
When to use it
To detect an exact value: step number 3, counter at 10, selector in position 2.
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 equals 10.
Try it in the simulatorThe example opens in the free simulator; your own program stays as it was.
Behaviour in detail
- Both operands have the same type (BOOL, INT, DINT, REAL or TIME).
- With REALs, exact equality is rare because of rounding: prefer GE / LE or LIM.
- The comparison sits in series on the rung, like a contact.
European (IEC) and American styles
European: EQ.
American: EQU (Source A, Source B). Same behaviour; likewise NE ↔ NEQ, GT ↔ GRT, GE ↔ GEQ, LT ↔ LES and LE ↔ LEQ.