Limit test LIM
Passes power for Low ≤ Test ≤ High; reversed: Test ≥ Low or Test ≤ High.
LIM
LowGlobal.MinPress20TestGlobal.Pressure55HighGlobal.MaxPress90
| Tag | After two scans |
|---|---|
| MaxPress | 90 |
| MinPress | 20 |
| Pressure | 55 |
How it works
Passes power while Test is between Low and High, both ends included. If Low is above High, it passes outside that band instead.
How it's used
Use LIM to check a value is inside a band.
LIM
LowGlobal.MinPress20TestGlobal.Pressure55HighGlobal.MaxPress90
Global.PressureOKOTE
| Tag | Value |
|---|---|
| MinPress | 20 |
| Pressure | 55 |
| MaxPress | 90 |
| PressureOK | 1 |
Pressure is between 20 and 90, so PressureOK is on.
Operands
| Operand | Data type | Read or write |
|---|---|---|
| Low | DINT, REAL or a number | Reads |
| Test | DINT, REAL or a number | Reads |
| High | DINT, REAL or a number | Reads |
Common mistakes
- Swapping Low and HighIf Low is above High, LIM passes outside the band instead of inside it.