Tiza Group

Home / Guides / Testing, commissioning and faults

SCADA values that drop to zero every so often

Readings that fall to zero repeatedly and recover alone: use the period to find polling, timeout, gateway or device faults. Remote support.

By Shadai García, CEO and protection engineer at Tiza Group.

Short answer

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

CausePattern in timeWhat confirms itWhat rules it out
A read times out and is replaced by zeroIrregular or tied to communication loadRequest with no or late response just before the zeroCorrect, timely response that contains zeros
Polling cycle overloaded by a slow taskEvery so many cyclesCoincides with reading a large block, a file or a dead deviceCycle time does not change when it happens
Another client querying the same deviceThat client own periodA second connection or master shows in the captureThe device has a single requester
Gateway publishes zero when its data agesFollows the failure rate on the field sideSource side without answer and destination side with valid zerosSource stable when destination shows zero
The device restartsIntervals of hours or daysUptime counter, event log or start-up sequenceThe device records no restarts
The data resets by designExact: end of interval, hour or dayThe map says it is a demand, period or partial registerIt is an instantaneous measurement
Exception on part of the blockWhen the device operating mode changesException response and every point of the block at zeroPoints from different blocks drop
Physical fault tied to something recurrentWith a load start or temperatureFrame or network errors rising at those momentsCounters unchanged

How to diagnose it

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.

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.

WhatsApp