# Show bad and stale values

> How screen objects mark a value that is Bad, not readable, Uncertain or stale - a red x, a blue lock, an amber question mark, a dashed outline - how gauges show it on their face (BAD QUALITY, NOT READABLE with a padlock), how to choose the project's quality style, and what colour conditions, interlocks and moving objects do with a value that cannot be trusted.

Product: eaxScada · Type: How-to guide · Editions: Starter, Pro, Enterprise
Source: https://eaxware.com/docs/eaxscada/how-to/show-bad-and-stale-values/
Status: migrated page, not yet verified against the current code.

## Goal

No object on an operator screen shows a value that cannot be trusted as if it were good. A transmitter whose sensor failed is marked Bad, a value forced by an operator is marked Uncertain, and when the browser loses the server every live object shows that its value is old.

## What operators see

| The value | Marker | Tooltip |
|---|---|---|
| **Bad**: the device reports a fault, the tag is missing, or no value has arrived | a red **✕**; with the default style the object is also veiled grey | the tag, its quality and its age |
| **Not readable**: the signed-in account, or the station's viewer identity, may not read the tag | a blue **lock**; otherwise the object is treated exactly as for Bad: with the default style it is veiled grey, and no value is shown | "Not readable for this account", then the tag |
| **Uncertain**, or **Overridden** (forced) | an amber **?**; the value is still shown and used | the tag and its quality |
| **Stale**: the link to the server is down, or a tag missed three of its expected updates | a dashed outline and a clock; the last value stays | how old the value is |
[Image: The pressure transmitter PI-201 reads a tag that does not exist: it is greyed, marked with a red x, and shows no value.]
[Image: The pressure transmitter PI-201 reads a tag that does not exist: it is greyed, marked with a red x, and shows no value.]

A Bad value with the default overlay style.
When the WebSocket drops, every live object gets the dashed outline at once (well under a second) and keeps its last value; it returns to normal once the browser has subscribed its views again and the server's snapshots of their tags are in. A WebSocket that stays open while nothing reaches it (a pulled cable, a connection a router or firewall forgot, a server stopped without closing it) is found by the server's 5 s heartbeat: 20 to 24 s after its last frame the page treats it as dropped, with the same outline, and reconnects ([A link that goes silent](/docs/eaxscada/reference/live-data-socket/#a-link-that-goes-silent)). Before 29 November such a link was never seen as down. Live trends stop where the link went down and show a grey **Live link down** band over the outage, never a line across it ([When the live link goes down](/docs/eaxscada/explanation/historian/#when-the-live-link-goes-down)). Time-based staleness per tag works for tags that state an expected period; the server does not send one yet, so today the outline comes from the link state.

Gauges and the markers take that link state only from the page's live data link, never from the socket being open. A reconnected socket counts as down until its first frame arrives ([A reopened socket that delivers nothing](/docs/eaxscada/reference/live-data-socket/#a-reopened-socket-that-delivers-nothing)): until then a gauge shows its last value dimmed with **NO LINK - STALE**, and every live object keeps the dashed outline. Before 29 November, a gauge that appeared in that moment drew its last value as live.

The server sends a page only the tags its views show ([How live values reach screens](/docs/eaxscada/explanation/live-values/)). A page, dock, popup or inner screen you open for the first time stays hidden until the server's snapshot of its tags arrives, for at most 2 seconds; a value still missing then is shown Bad "No value received", never as the value the object was designed with. An inner screen's objects show their tags' live values and quality like the page's (before this release they kept the values they were designed with). A multi-state indicator without a value shows its fallback state, never its first state. A tag the account may not read, a tag the server does not know, and a tag over the page's limit are shown Bad with no value ("not readable for this account", "unknown tag", "too many tags on this page"), never with an old value.

### A tag the account may not read

A tag that the signed-in account may not read gets a blue lock instead of the red ✕. On a view-only station, the account is the station's viewer identity. The tooltip says "Not readable for this account" and names the tag. The lock only tells operators why the value is missing. Everything else is as for Bad: the value is never shown as good or as a number, and colour conditions, interlocks and moving objects treat it as Bad (see the table below). To show the value, give the account read rights on the tag.

The lock shows only when every Bad tag of the object is not readable. If one tag is Bad from the device, missing, or its expression fails, the object shows the red ✕: a device fault is never hidden behind a lock.
[Image: Signed in as an operator who may not read pump P-202's tags: the pump P-202 symbol and its speed transmitter SI-202 are greyed with a blue lock, the gauge SI-202 shows a dash, a padlock and NOT READABLE; on pump P-201 the transmitter PI-201 reads a tag that does not exist and keeps the red x, and the setpoint gauge SC-201 reads 60.0 %.]
[Image: Signed in as an operator who may not read pump P-202's tags: the pump P-202 symbol and its speed transmitter SI-202 are greyed with a blue lock, the gauge SI-202 shows a dash, a padlock and NOT READABLE; on pump P-201 the transmitter PI-201 reads a tag that does not exist and keeps the red x, and the setpoint gauge SC-201 reads 60.0 %.]

A blue lock for tags the account may not read, a red x for a missing tag.
### One marker per object

Each object shows one marker, for the worst state of the tags it reads, in this order:

1. Bad from the device, a missing value, or an evaluation error: red ✕.
2. Not readable for this account: blue lock.
3. Uncertain: amber ?.
4. Stale: dashed outline.

Markers do not stack. When the markers of several objects would overlap, or a small object sits inside a small bound object (a status pill or a badge, for example), they merge into one marker. The merged marker is drawn on the largest object of the group, with the worst state of the group. Its tooltip lists every tag of every object in the group. Each object keeps its own grey veil or hatching.

### Gauges show quality on their face

A [gauge](/docs/eaxscada/reference/generated/widgets/gauges/gauge/), a dial gauge drawn by the live gauge engine, and the gauge and sparkline tiles of a dashboard grid show quality on their own face, not with the markers above:

| What the gauge reads | What its face shows |
|---|---|
| A Bad value from the device | a dash and **BAD QUALITY**, no number, needle, bar or trend |
| Every Bad tag it reads is not readable for the signed-in account | a dash, a padlock and **NOT READABLE** on a blue label (**NO ACCESS** on a narrow gauge), no number, needle, bar or trend |
| One tag Bad from the device and another not readable | a dash and **BAD QUALITY**: a device fault is never hidden behind the padlock |
| A setpoint, output or target tag the account may not read | no marker and no number for that tag; the face follows the value tag |
| Uncertain, or stale | the value, dimmed, labelled **UNCERTAIN** or **NO LINK - STALE** |

A gauge bound to an expression shows the quality of the tags the expression reads, as if it read them itself. When an input goes Bad, the gauge shows a dash and BAD QUALITY and never keeps the last good number. When every Bad input is not readable, it shows NOT READABLE with the padlock. An evaluation error or a result that is not a number also gives the dash and BAD QUALITY. Uncertain or stale inputs keep the value, dimmed, with its label.

### Dashboard cards whose query failed or was refused

The cards of the Dashboard workspace read their values through dashboard queries. The server refuses the whole query when it names a tag the account may not read. **A query that failed or was refused never shows its previous values.** The cards keep only the names, tag paths and units of its last answer, with no value and Bad quality. Text values are removed too: an old state such as RUNNING is never shown or exported as current.

| The card's query | What the card shows |
|---|---|
| Failed (the server could not answer, the range changed and the new read failed) | a dash and **BAD** (**BAD QUALITY** on a gauge) for each value of the query, never its last value |
| Refused: it names a tag the account may not read | a dash, a padlock and **NOT READABLE** on a blue label, for each value of the query |
| A current-value tag that becomes unreadable for the account while the dashboard is open | a dash, a padlock and **NOT READABLE** at once, on the gauge and stat cards |
| Refused next to a value that is Bad from the device, on a card with transformations | a dash and **BAD**: a device fault is never hidden behind the padlock |

Each value stays bound to its own query. The stat and bar gauge cards keep one cell or bar per tag of the failed query, named from the query, also before its first answer. On the gauge card, the PV, SP and OUT are each bound to their own query: when the PV query fails, the PV shows a dash, and the SP is never drawn as the PV. A dial whose only query failed shows a dash and BAD QUALITY. On the stat, gauge and bar gauge cards the header chip says QUERY FAILED when every query failed, and PARTLY FAILED when the others answered. A failed query is retried every 30 s. To show a refused value, give the account read rights on the tag. What every card type does is in [Dashboard cards](/docs/eaxscada/reference/dashboard-cards/#a-query-that-failed-or-was-refused).

### Local tags fed by an eaxPLC that stops reporting

A local tag that a script pinned to an eaxPLC writes goes Bad when that PLC sends neither status nor values for 20 s: its objects show the red ✕ as for any Bad value. The same when the PLC still reports but its script is stopped or crashed there (no status saying it runs for 20 s), and within 5 s when the script is disabled, unpinned, deleted or pinned to another PLC. A running script that does not change a value leaves its tags Good. The tag keeps its last value, marked Bad, never as a Good reading. The PLC's next value makes it Good again. The badge reads "Bad" in every case; the reason is in the tag's `quality_reason` for clients of the API. A tag an operator or a script on eaxScada wrote since is not touched. Details: [Tags fed by an eaxPLC that stops reporting](/docs/eaxscada/reference/eaxtags-local-tags/#tags-fed-by-an-eaxplc-that-stops-reporting).

### Values a script computes on eaxScada

A local tag that a script on eaxScada computes takes the quality of the tags it is computed from. When an input is Bad or missing, the tag keeps its last value and goes Bad: its objects show the red ✕, never a value computed from a frozen or zero input. An Uncertain input gives the amber ?, a simulated input the SIM mark. The same when the script keeps failing, is disabled or deleted, or stops writing the tag while an input is not Good. Only a new value written from Good inputs makes it Good again. A writable tag (an operator's setpoint) is never marked. Details: [Quality of a script's values](/docs/eaxscada/reference/eaxtags-scripts/#quality-of-a-scripts-values).

### A browser tab shown again

While a browser tab is hidden, the markers keep track of every quality change. When the tab is shown again, all markers are sorted out and drawn at once, with the current quality. A frame lost while the tab was hidden no longer stops the passes that come after it.

## Choose the style

1. Open **Project → Open / Switch Project... → Operator runtime**.
2. In **Values that are not Good (Bad, Uncertain, stale) are shown with**, choose:
   - **An overlay on the object** (default): Bad objects are veiled grey and marked;
   - **A corner marker**: the markers only, for dense screens;
   - **Hatching over the object**: Bad objects are hatched, visible in grey-scale and to colour-blind operators.
3. **Save runtime settings** and deploy.

The style changes only how much of the object is covered. In every style the markers and the outline are shown.

## What a Bad value does to an object

| Object behaviour | With a Bad value |
|---|---|
| A colour condition (bands of colours by value) | not applied: the object turns neutral grey `#9ca3af`, no blink. Before, a Bad value read as 0 and could pick the green "normal" band. |
| A colour or state binding (fill, liquid, running, valve state) | neutral grey, never the colour of the last good value |
| A command's interlock (disabled condition) | the command is **disabled**, unless its **If the interlock reads a Bad value** is **Allow** (use it for stop commands) |
| A visibility condition | the object is shown, marked Bad |
| Position, size or rotation from a tag | the object stays where it is |
| An expression that reads several tags | Bad when any tag it reads is Bad (`tag()`, `tags['...']` and `tags.get()` alike) |
| A phone card row | the same markers; a Bad value shows `-` |
| An alarm on the tag | held in its state (no trip, no clear); the tag's "Signal unreadable" alarm stands instead. See [Alarms: values that cannot be read](/docs/eaxscada/explanation/alarms/#values-that-cannot-be-read). |

## Verify

- Bind a value display to a tag that does not exist: it shows the red ✕ and the tooltip names the tag. The Problems panel lists it as `broken-tag`.
- Sign in with an account that has no read right on a tag a value display reads: it shows the blue lock, no value, and the tooltip says "Not readable for this account".
- With the same account, open a gauge bound to that tag: it shows a dash, the padlock and NOT READABLE, with no needle and no number.
- Stop the server of a test panel: within a second every live object has the dashed outline; start it again and the outline goes away.
- Cut the network between a test panel and its server further along (unplug the server's cable at the switch), so that the panel's socket stays open: within 24 s every live object has the dashed outline, **GATEWAY OFFLINE** shows, and a live trend shows **Live link down** from the last frame the panel received, not from the detection. Plug the cable in again: the page reconnects and the outline goes away.

## Related

- [Project settings: quality style](/docs/eaxscada/reference/project-settings/#values-that-are-not-good-are-shown-with)
- [Style object states](/docs/eaxscada/how-to/style-object-states/): the Bad quality state of commands.
- [Enforce interlocks on the server](/docs/eaxscada/how-to/enforce-interlocks/): Bad interlock values on the server.
