Industrial IoT
The water meter returned an exception. Why did the shift report show zero?
Treat a valid zero, a protocol exception and an unanswered poll as different outcomes before calculating minimum flow or data availability.
A valid zero is a measurement. A Modbus exception reports a problem with a request, and a timeout yields no response to interpret. If a data collector stores all three as the number zero, a minimum-flow report can suggest the pump stopped when the meter supplied no usable measurement.
Read six polls as three types of evidence
Suppose four valid readings are 4, 3, 0 and 5 L/s. Another poll returns an exception and a sixth receives no response. Of six scheduled polls, four contain measurements and one records verified zero. The average of the four valid equal-interval readings is 3 L/s. Treating the two failed polls as zero gives 2 L/s. Neither reading set alone establishes the true average across all six time slots.

Worked data
Outcome | Meaning | Polls |
Valid measurement | One was 0 L/s | 4 |
Exception response | Request could not be fulfilled | 1 |
No response | No measurement received | 1 |
Download the figures in this worked example (CSV)
Keep acquisition evidence beside the value
Store an acquisition timestamp, device identity, response status and unit. Preserve the documented exception code where supplied. A timeout should carry a null measurement or another explicitly supported invalid indicator, never a substitute number that downstream users will read as flow. Decide how charts show the gap and how availability is counted.
The Modbus Organization publishes the protocol and exception-response definitions. Device-specific register maps still determine what a returned value means. Some instruments can return a vendor-defined invalid sentinel in an otherwise valid response. Check the meter documentation and tag scaling before accepting a very large or unusually repeated value. Field trending and contractual reports can use different completeness thresholds, but they should share the same raw evidence.
Sources
Modbus Organization · Application Protocol Specification V1.1b3
Cover illustration by Industry Applied, generated with AI. Two metering instruments and an industrial communications cabinet.
Related reading
A valid zero is a measurement. A Modbus exception reports a problem with a request, and a timeout yields no response to interpret. If a data collector stores all three as the number zero, a minimum-flow report can suggest the pump stopped when the meter supplied no usable measurement.
Read six polls as three types of evidence
Suppose four valid readings are 4, 3, 0 and 5 L/s. Another poll returns an exception and a sixth receives no response. Of six scheduled polls, four contain measurements and one records verified zero. The average of the four valid equal-interval readings is 3 L/s. Treating the two failed polls as zero gives 2 L/s. Neither reading set alone establishes the true average across all six time slots.

Worked data
Outcome | Meaning | Polls |
Valid measurement | One was 0 L/s | 4 |
Exception response | Request could not be fulfilled | 1 |
No response | No measurement received | 1 |
Download the figures in this worked example (CSV)
Keep acquisition evidence beside the value
Store an acquisition timestamp, device identity, response status and unit. Preserve the documented exception code where supplied. A timeout should carry a null measurement or another explicitly supported invalid indicator, never a substitute number that downstream users will read as flow. Decide how charts show the gap and how availability is counted.
The Modbus Organization publishes the protocol and exception-response definitions. Device-specific register maps still determine what a returned value means. Some instruments can return a vendor-defined invalid sentinel in an otherwise valid response. Check the meter documentation and tag scaling before accepting a very large or unusually repeated value. Field trending and contractual reports can use different completeness thresholds, but they should share the same raw evidence.
Sources
Modbus Organization · Application Protocol Specification V1.1b3
Cover illustration by Industry Applied, generated with AI. Two metering instruments and an industrial communications cabinet.

