Skip to main content

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​

  1. Poll. The Site Runtime reads every tag in a group on the group's timer (default 1000 ms).
  2. Scale. The runtime applies the tag scaling: engineered = raw * decimal + bias, then optional precision rounding.
  3. Quality. Each sample gets a quality: good, uncertain, bad or unknown.
  4. 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).
  5. Fan out. Samples go to the alarm evaluator, to rules and to Uplinks (for example the UNS topic mii/uns/...).
  6. 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.
  7. Read. The Console queries history through mi-visual and 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.

MechanismWhereBehaviour
Collector bufferPlant stack and Lite4 hours and 40 GiB by default. Alarms and rules keep working locally.
Ingest outboxRemote runtimesDisk 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​

QualityIn TrendsMeaning
goodSolid lineNormal value
uncertainDashed lineShown, partly unreliable
badGap ("Bad, no value")Not a fact; shown as missing
unknownGapNot a fact; shown as unknown