Less than or equal LEQ
Passes power while A is less than or equal to B.
LEQ
AGlobal.Tank35BGlobal.TankLow40
| Tag | After two scans |
|---|---|
| Tank | 35 |
| TankLow | 40 |
How it works
Passes power while Source A is less than or equal to Source B; blocks it otherwise.
How it's used
Use LEQ when reaching the limit counts too.
LEQ
AGlobal.Tank40BGlobal.TankLow40
Global.LowAlarmOTE
| Tag | Value |
|---|---|
| Tank | 40 |
| TankLow | 40 |
| LowAlarm | 1 |
Tank is at 40. Equal passes, so LowAlarm is on.
Operands
| Operand | Data type | Read or write |
|---|---|---|
| A | DINT, REAL, STRING, CHAR or a number | Reads |
| B | DINT, REAL, STRING, CHAR or a number | Reads |
Common mistakes
- Expecting equality to failEqual values pass this comparison. Use LES when equal must fail.
Learn it in a lesson
- Comparing valuesIntermediate · 25 min