A zero that appears and disappears on its own is usually data that did not arrive and was replaced by zero, not a measurement. Measure how often it happens, which points fall together and what is on the wire at that instant: no answer, an exception, or a zero delivered by the device or the gateway.
Symptom
Trends show vertical drops to zero lasting one or a few samples that return on their own to the previous value. They repeat: every few seconds, every quarter hour, every hour or always at the same time of day. The process or the network did not change, and the local display of the device still shows the measurement. The effects come later: low-level alarms that set and clear, totalizers with jumps, averages lower than reality or logic acting on a value that never existed.
What each register means, how exception responses work and how long a cycle takes is explained in Modbus register maps, data types and polling. Here the main clue is the repetition. If the drop always coincides with opening or closing a device, see measurement at zero during every switching operation.
Probable causes, from most to least likely
| Cause | Pattern in time | What confirms it | What rules it out |
|---|---|---|---|
| A read times out and is replaced by zero | Irregular or tied to communication load | Request with no or late response just before the zero | Correct, timely response that contains zeros |
| Polling cycle overloaded by a slow task | Every so many cycles | Coincides with reading a large block, a file or a dead device | Cycle time does not change when it happens |
| Another client querying the same device | That client own period | A second connection or master shows in the capture | The device has a single requester |
| Gateway publishes zero when its data ages | Follows the failure rate on the field side | Source side without answer and destination side with valid zeros | Source stable when destination shows zero |
| The device restarts | Intervals of hours or days | Uptime counter, event log or start-up sequence | The device records no restarts |
| The data resets by design | Exact: end of interval, hour or day | The map says it is a demand, period or partial register | It is an instantaneous measurement |
| Exception on part of the block | When the device operating mode changes | Exception response and every point of the block at zero | Points from different blocks drop |
| Physical fault tied to something recurrent | With a load start or temperature | Frame or network errors rising at those moments | Counters unchanged |
How to diagnose it
- Measure the period. Export the trend at the highest resolution and compute the time between drops. An exact interval points to something scheduled; a nearly regular one, to polling or another client; an irregular one, to the physical layer or network load.
- See what falls together. A single point: map, type or register behavior. A block: a failing request. A whole device: device or address. All devices on a port: bus, converter, gateway or network.
- Check quality and time of the zero sample. If the SCADA flags it good, someone turned it into a valid measurement; look for the substitution rule in the communication controller, the gateway and the calculations.
- Capture at the source over several periods. With a mirror port on Ethernet, or a serial analyzer connected in parallel on RS-485, classify each drop: no response, late response, exception or response with zeros.
- Read the exception codes. With a Modbus gateway, code 0A means it could not establish the path to the target and 0B that the target device did not respond. The first leads to the gateway; the second, to the field segment.
- Compare times. Measure the slowest response and compare it with the timeout. Count retries too: the same substitution rule may act after the first failure or after several.
- Isolate one at a time, with operations informed: stop the second client, remove the slow block from the poll or separate the device that does not answer. Change one thing and watch for at least several periods.
What to do
- Substitution by zero: replace it with last value plus invalid quality, and make alarms, averages and totalizers ignore invalid samples.
- Short timeout: set it from the measured response, with margin and few retries. If a powered-off device slows the others, remove it from the cycle or poll it less often.
- Overloaded polling: separate fast and slow reads; the symptoms of a cycle that cannot keep up are covered in polling so slow that changes are missed.
- Several clients: concentrate reads in one master or gateway and respect the number of connections the device admits.
- Gateway: set what it delivers when the source fails and make that condition travel as quality up to the SCADA. If the destination protocol does not carry it, publish a communication status point per device.
- Restarts: check auxiliary supply, terminals, temperature and event log; if the intermediary restarts, follow gateway that reboots every few hours.
- Reset by design: use the right register, cumulative or instantaneous as needed. For energy counters, see counter that returns to zero without warning.
- Physical layer: correct termination, biasing, reference and routing; the sequence for a serial bus is in Modbus RTU errors after extending the cable.
Trends, captures and communication settings can be reviewed remotely. Working on terminals, supplies or energized boards requires qualified personnel.
Illustrative example
A SCADA reads 12 meters every 5 s and sees zeros every 60 s. The normal cycle takes 2.4 s: 12 devices at 0.2 s. Once a minute a history block is added that costs 0.2 s per device, and one meter is also powered off and consumes 3 attempts of 1 s. That cycle takes 11 devices at 0.4 s plus 3 s: 7.4 s, more than the 5 s available. The controller cancels pending reads and writes zero into them. Removing the dead meter leaves 4.4 s, which fits, though with little margin; spreading the history reads and flagging invalid instead of zero fixes both cause and effect. Figures are illustrative.
Field checklist
- Period between drops measured and noted.
- Points that drop together identified.
- Quality and time of the zero samples checked.
- Substitution rules searched in SCADA, gateway and calculations.
- Capture covering several drops, classified by type.
- Slowest response time against the timeout.
- Number of clients querying the device.
- Restarts of device and gateway ruled out.
- Map checked: instantaneous, partial or cumulative.
What not to do
- Do not hide the zeros with a screen filter: calculations and history still receive them, and a real zero would be concealed.
- Do not disable protections, interlocks or alarms while investigating without authorization and a compensating measure.
- Do not change speed, timeout and map at once: you will not know what fixed it.
- Do not write registers to check communication.
- Do not connect the serial analyzer by opening the bus of a system in service without coordinating the interruption.
When to call us
If the captures do not explain the drop, if the zero feeds logic or energy balances, or if several gateways and protocols are involved, we review the polling plan, the quality rules and the configuration of each link. We configure it remotely.
Related guides
- Modbus: registers, exceptions and polling plan
- Modbus TCP answering with an exception
- Frozen values while the meter is alive
- DNP3, Modbus and IEC 61850 protocol gateway
- Modbus TCP device that stops answering
References
- Modbus Organization, MODBUS Application Protocol Specification (read functions and exception responses).
- Modbus Organization, MODBUS over Serial Line Specification and Implementation Guide.
- Modbus Organization, MODBUS Messaging on TCP/IP Implementation Guide.
- Device register map and manual of the communication controller or gateway.
Frequently asked questions
How do I know whether the zero comes from the device or the SCADA writes it?
Capture the frames at the instant of the drop. If the response carries zeros in the registers, the zero is born in the device or in the intermediary that answers. If there is no response or an exception arrives, the polling side writes the zero, following its rule for failed data.
Does increasing the timeout help?
It helps when the capture shows correct responses arriving after the master stopped waiting. It does not help if the device does not answer, replies with an exception or delivers zeros. Raising it without measuring also lengthens the cycle when a slave is down.
Should the SCADA show zero when a read fails?
It is not advisable. Zero is a possible value of power or current and it triggers wrong calculations, alarms and energy totals. It is better to keep the last value flagged as invalid or old, so that operators and calculations know the number is not current.