Industry Applied

Global industry.
Applied in Australia & New Zealand.

A bad-quality instrument value is not a zero in the shift average

One bad-quality sample can change both an average and the amount of time the average represents. Carry the quality flag with the number.

Industry Applied Editorial Published 2 min read

A process operator looking at instrument quality information. AI-generated editorial illustration.
AI-generated editorial illustration by Industry Applied · Industry Applied editorial artwork

An OPC UA DataValue carries status information with its value. If a report replaces a bad-quality reading with zero before aggregation, the result describes the substitution rule as much as the process. Keep quality and coverage visible alongside the statistic.

Compare three reporting choices

A tank temperature is logged at equal time intervals. Three good observations are 18, 20 and 22 °C. A fourth record is flagged bad. The mean of the three usable observations is 20 °C with 75% sample coverage. Substitution of zero gives 15 °C across four entries. If the previous good observation was 22 °C, carrying that value forward gives 20.5 °C. The difference is entirely due to handling the missing observation.

Only 18, 20 and 22 °C were accepted as good. The carry-forward case assumes the bad slot followed the 22 °C reading.
Figure 1. Only 18, 20 and 22 °C were accepted as good. The carry-forward case assumes the bad slot followed the 22 °C reading. Original figure by Industry Applied Editorial. Illustrative data.

Worked data

Reporting rule

Values used (°C)

Reported mean (°C)

Good observations

18, 20, 22

20

Substitute zero

18, 20, 22, 0

15

Carry forward

18, 20, 22, 22

20.5

Download the figures in this worked example (CSV)

Decide what the report is allowed to assert

The mean of the usable samples does not establish the true full-period mean. A missing interval during a process excursion can have a disproportionate effect. If a defined operating range is independently known, show a bounded result or flag the interval for review. If there is no defensible constraint, report the gap.

The OPC Foundation defines Good, Uncertain and Bad status severity. A site may have different quality rules for informal trends, contractual reporting and alarms. Store the original status and document the application rule. A chart that draws a continuous line across invalid data should disclose the gap or interpolation so the next shift can distinguish an observed recovery from a graphical join.

Sources

OPC Foundation · DataValue and StatusCode, part 4

Cover illustration by Industry Applied, generated with AI. A process operator looking at instrument quality information.

Related reading

Finding missing telemetry samples

0 views0 comments

Comments