Symptom
One tag, a group of tags, or every tag from a device displays with a bad or uncertain quality indicator, shows a question mark or a hatch pattern, or reads a default value while the driver reports an error.
The short answer
Tag Shows Bad Quality
Quality is the driver’s statement about whether it trusts the value. Bad quality with a not-connected substatus means the driver cannot reach the device. Bad quality with a configuration error means the device answered and refused: the address is out of range, the data type does not fit the register, or the tag no longer exists in the controller. Uncertain means the value is old or was substituted. Read the substatus; it splits the problem in half before any measurement is made.
Key points
- Bad quality is a category, not a diagnosis; the substatus says whether it is the link, the address, or the data type.
- All tags from a device bad means the connection; some tags bad means those addresses.
- A register beyond what the device has, or a float requested at a register that holds an integer, comes back bad with a configuration error.
- A tag renamed or deleted in the controller after a download is bad in SCADA until SCADA is updated.
- Uncertain quality usually means the last value is being held past its update interval.
Possible causes and what to check
| Possible cause | What to check |
|---|---|
| Device not reachable | Every tag from the device is bad, substatus not connected or communication failure. The driver diagnostics show timeouts. Ping the device and check the link. |
| Address out of range | Specific tags are bad with an illegal address or configuration error. The device does not have that register or that point. Compare the address against the device map. |
| Data type mismatch | The tag is configured as a float or a string at an address the device serves as an integer, or the byte order is wrong. Read the raw registers and compare. |
| Tag missing in the controller | On tag-based controllers, the tag was renamed, deleted, or its scope changed. The driver cannot find it. Compare the SCADA tag list to the controller. |
| Access denied | A controller or server security setting refuses the driver, or refuses writes. The driver log names it. |
| Device busy or connection limit | Intermittent bad quality across many tags when other clients connect. The device has run out of connections or is overloaded by the poll rate. |
| Scan group too fast for the link | Tags flip between good and bad as polls time out on a slow radio or cellular link. Lengthen the timeout and slow the group. |
| Value held stale | Uncertain quality with an old timestamp. The driver is holding the last value because the update failed and the configuration says to hold. |
What quality is
Every value that comes through an OPC or a native driver carries a quality: good, bad, or uncertain, with a substatus that says why. It is the driver telling the display and the historian how much to trust the number, and it is the reason a well-built display shows a hatched box instead of a stale level. Reading the quality, not just the value, is the whole of the diagnosis at the SCADA end.
| Quality | Substatus | Meaning | Where to look |
|---|---|---|---|
| Bad | Not connected, communication failure | The driver cannot reach the device | The link, the device, the address on the network |
| Bad | Configuration error, illegal address | The device answered and refused the request | The tag address against the device register map |
| Bad | Device failure | The device reported an internal fault | The device itself |
| Bad | Not found | No such tag in the controller | The controller tag list after the last download |
| Uncertain | Last usable value | The update failed and the driver is holding the old value | The link, and the hold configuration |
| Uncertain | Sub-normal, sensor not accurate | The device says the value is questionable | The instrument and the controller validation |
| Good | Local override | The value is forced in SCADA | Who forced it and why |
Scope first
Before anything else, note how many tags are bad. Every tag from a device is a connection problem, and the address of every tag is irrelevant. Some tags from a device, with others good, is an address or type problem on those tags, and the connection is fine. One tag is that tag. The scope halves the work before a single setting is opened.
Address and type
A Modbus device serves a defined set of registers, and a request for one outside the set comes back with an exception, which the driver reports as bad. A device with holding registers 40001 through 40100 refuses a read of 40101. A float occupies two registers and a request that starts on the second half of one reads garbage or is refused. Byte and word order within a float differ between devices, and a wrong order produces a plausible wrong number with good quality, which is worse. The register map in the device manual, read with the offset convention of the driver in mind, settles all of it. The Modbus pages on this site cover the offset problem.
Tag-based controllers
On a controller addressed by tag names, SCADA asks for the tag by name and the controller looks it up. A tag renamed, moved into a program scope, or deleted in the last download no longer exists under the old name, and every SCADA reference to it goes bad at once, with a not-found or similar substatus. The fix is to update the SCADA tag, and the prevention is to treat a tag rename as a change to SCADA as well as to the controller.
Intermittent bad
Quality that flickers between good and bad on a slow link is a poll that sometimes times out. The driver asks, the radio takes longer than the timeout, the driver marks it bad, the answer arrives, the next poll succeeds. Lengthen the timeout to cover the real round trip, slow the scan group so the link is not saturated, and reduce the number of separate requests by grouping contiguous addresses. The device-times-out page covers the link side.
Frequently asked questions
- What is the difference between bad and uncertain quality?
- Bad means the driver has no trustworthy value: the device is unreachable or refused the request. Uncertain means the driver has a value it does not fully trust, usually the last good one held past its update time, or one the device flagged as questionable.
- Why is one tag bad when the rest from the same device are good?
- That tag’s address does not exist on the device, or its data type does not match what the register holds. The connection is fine. Check the address against the register map and the type against what the device serves.
- All my tags went bad after a PLC download. Why?
- Tags were renamed, moved to a different scope, or deleted in the new program, or the download changed the controller path. Compare the SCADA tag list to the controller’s and update the references.
- Can a value be wrong with good quality?
- Yes. A float read with the wrong word order, or an integer read from the wrong register, returns a number the driver has no reason to doubt. Good quality means the transaction succeeded, not that the mapping is right.
Related topics
- Values Frozen On ScreenThe HMI shows numbers that are not changing while the plant runs. Whether the controller, the communication driver, the tag server, or the display stopped, and the order to check them in.
- Wrong Register DataThe poll succeeds and the numbers are nonsense: an offset by one, the wrong table, swapped words in a 32-bit value, a float read as an integer, signed read as unsigned, a scale factor not applied, a stale gateway value, or the wrong unit answering.
- Device Times OutA polled device that answers late or not at all: how to read the driver counters, tell a dead device from a slow one, and find the timeout setting, the bus loading, the radio latency, the duplicate address, or the device that is simply too busy to answer.
- Modbus TCPModbus over Ethernet: what the MBAP header changes, why the CRC disappears, how the unit identifier works, and what does not get easier just because it is on Ethernet.
- OPC UAWhat OPC UA is for, how its information model, security, and transports differ from OPC Classic, where it belongs in a plant, and what to check before relying on it.
- Alarms Not AnnunciatingThe condition is real and nothing happened on the screen or the phone: where an alarm can be lost between the controller and the operator, from the alarm bit and the tag quality to the alarm server, the display filter, the shelved and suppressed lists, the audible, and the notifier.
Direct contact
Have a controls question?
Reach Eric Sullivan directly about anything on this site, a controls or automation topic, or one of his personal projects.