The data path
A sample is one value of one tag at one time, with a quality. This page follows it from the PLC to your screen.
Sequence
Steps
- Poll. The Site Runtime reads every tag in a group on the group's timer (default 1000 ms).
- Scale. The runtime applies the tag scaling:
engineered = raw * decimal + bias, then optional precision rounding. - Quality. Each sample gets a quality:
good,uncertain,badorunknown. - Buffer. The collector appends samples to a disk buffer first. By default it keeps 4 hours (
MI_BUFFER_RETENTION) up to 40 GiB (MI_BUFFER_MAX_BYTES). - Fan out. Samples go to the alarm evaluator, to rules and to Uplinks (for example the UNS topic
mii/uns/...). - Store. The collector writes batches to the plant historian. A remote runtime sends them over HTTPS to
mi-ingest, which writes the historian and acknowledges only after the write. - Read. The Console queries history through
mi-visualand shows it in Trends, dashboards, OEE and reports.
Store-and-forward
If the link to the historian or the Console is down, the runtime keeps collecting.
| Mechanism | Where | Behaviour |
|---|---|---|
| Collector buffer | Plant stack and Lite | 4 hours and 40 GiB by default. Alarms and rules keep working locally. |
| Ingest outbox | Remote runtimes | Disk outbox, default cap 10 GiB. Live first, then backlog: batches younger than 10 s go first, and backlog is shed first under load. |
When the outbox cap or the disk guard is reached, the oldest data is dropped and counted (droppedRows). The runtime state becomes outbox_full. Batches are deduplicated by runtime and sequence, so a resend never creates duplicate rows.
Quality in practice
| Quality | In Trends | Meaning |
|---|---|---|
good | Solid line | Normal value |
uncertain | Dashed line | Shown, partly unreliable |
bad | Gap ("Bad, no value") | Not a fact; shown as missing |
unknown | Gap | Not a fact; shown as unknown |