An analog input above the upper limit of the module range is over-range; below the lower limit it is under-range. It may be a genuine process condition (the pressure really did rise too high), or a false reading from a broken wire, a short or wrong wiring. If you cannot tell them apart, protection trips when it should not, or fails to trip when it should. The sections below cover the judgement and the handling.
An analog module converts a continuous signal such as 4-20 mA or 0-10 V into an integer. A signal above the module's rated range is over-range, one below it is under-range. The module usually sets an overflow or underflow flag on the converted value to distinguish "beyond what can be represented" from "at the edge of the range".
Do not judge from the scaled engineering value alone; look at the raw integer after conversion. With a typical rated range, exceeding the upper limit produces a value close to the overflow code, and under-range produces a negative value or one near zero. Compare the raw integer with the limits first, then decide whether to clamp or to alarm; this is more reliable than reading the engineering value.
Feeding an out-of-range value straight into a PID or a display causes problems. Add a clamp after acquisition: take the upper limit above it, the lower limit below it, and set an alarm bit. Clamping keeps the downstream calculation from saturating or diverging on an extreme value, and stops absurd numbers appearing on the display.
On a 4-20 mA loop, a value below about 3.6 mA is commonly treated as a broken wire. If the reading is far below the lower limit or even negative, check the wiring and the sensor supply first; if it only slightly exceeds the limits, it is more likely genuine process variation. A genuine limit should trigger a protective action such as stopping a pump or opening a bypass; a broken wire should alarm and bring the machine to a safe state.
An out-of-range alarm needs hysteresis so it does not trigger repeatedly near the threshold. A genuine limit should recover automatically once handled; a broken-wire fault usually needs manual acknowledgement after recovery, so a flaky sensor does not cause repeated start and stop.
| Out-of-range case | Handling | Value strategy | Alarm and recovery |
|---|---|---|---|
| Slightly above the upper limit | Clamp and alarm | Take the upper limit | Automatic recovery |
| Far above the upper limit (overflow code) | Treat as module overflow | Take the upper limit | Indicate the overflow cause |
| Slightly below the lower limit | Clamp and alarm | Take the lower limit | Automatic recovery |
| Far below or negative | Suspect a broken wire or wiring error | Do not take it; hold the last value | Check wiring and supply |
| 4-20 mA below 3.6 mA | Treat as a broken wire | Hold or take the lower limit | Interlock action, manual acknowledgement |
| Value constantly jittering | Add a filter or averaging | Use the filtered value | Set hysteresis against jitter |
| Limit requires a shutdown | Comparison plus interlock | Output a protective command | Protect pump and valves |
| Recovery needs acknowledgement | Set an acknowledge bit | Enable only after acknowledgement | Broken-wire cases reset manually |
| Display and alarm disagree | Check the scaling | Verify the limit settings | Unify the scaling basis |
In handling an out-of-range value, first decide "genuine or false", then "clamp or alarm". A genuine limit protects the equipment; a false one means checking the wiring. Put both decisions after acquisition and before the calculation, and everything downstream stays clean.
The acquisition, protection and earthing of analog signals follow GB 5226.1 and the equivalent international standard IEC 60204-1. Data representation and clamping arithmetic follow GB/T 15969.3, Programmable controllers, Part 3: Programming languages (equivalent to IEC 61131-3). The exact range, overflow codes and broken-wire criteria are as stated in the module manual in use.
Confirm the sensor supply and wiring are sound before treating an out-of-range value. Where the handling drives a pump stop or a valve open, check the process safety requirements and verify the logic with the machine stopped.