Object signal variants (test matrix)
Machine builders do not agree on how objects appear in the time series. A
material number, a serial, a cycle or a roll cut can be written in many ways.
This page lists the variants identify_objects and detect_objects are
tested against. Each variant is one small, labelled scenario; every scenario
states what the library must find and links to the test that checks it.
Every signal has one uuid and one data type (value_bool, value_integer,
value_double or value_string). Most historians add is_delta, which is
True on the row where the value was written by the machine and False on
rows that repeat the held value.
| Code | Process | Produced unit | Typical boundary | Typical inputs |
|---|
| P-D | Discrete, cycle machine (press, welding, assembly, CNC, test bench) | one part per cycle (serial) | a cycle signal | material / purchased-part / pre-product numbers, tool, program, operator |
| P-DN | Discrete, n parts per cycle (multi-cavity mould, nest) | n serials per cycle | cycle signal, n scans | as P-D |
| P-C | Continuous (extrusion, coating, wire drawing, film) | roll, coil, reel, length section | cut / reel change | material (often constant for hours or days), additive lots, order |
| P-B | Batch (mixing, curing, heat treatment) | batch / charge | batch start and end | recipe, raw-material lots |
| P-L | Line with several stations | the same serial at station after station | per-station cycle | per-station resources |
Different processes carry different kinds of objects, and each kind is
identified and handled differently: what its presence is, and how it relates
to the produced unit. The kind decides the presence rule and the link, not
the signal's data type.
| Kind | Role | Seen in | Presence | Link from the produced unit |
|---|
| Serial (part) | output unit, one per cycle | P-D, P-DN, P-L | its cycle; scan → next unit without a cycle signal | – (it is the unit) |
| Roll / coil / reel / section | output unit | P-C | cut → next cut | – (it is the unit) |
| Batch / charge | output unit | P-B | batch start → end | – (it is the unit) |
| Output article / product number | describes what the unit is (type, not instance) | all | held until change | attribute of the unit (article), not an input |
| Material number (input type) | input, type-level | all | held until change, often constant | made_from |
| Input lot / raw-material batch / incoming coil | input, instance-level | all | held until change, own clock (MAT6) | made_from (traceable lot) |
| Purchased-part / pre-product number | input, type-level | P-D, P-L | held until change | made_from |
| Component serial (traceable part built in) | input, instance-level, 1:1 | P-D (assembly), P-L | a scan inside the unit's cycle | contains (assembly genealogy, one component per unit) |
| Semi-finished serial (pre-product instance) | input from an earlier process | P-D after P-C (coil into a press) | held while being consumed | made_from |
| Work / production order | context, groups units | all | held until change | part_of |
| Sales order, customer | context | all | held until change | attribute of the order |
| Tool / mould / die / fixture | resource | P-D, P-C | held until change or tool-life reset (RES4) | made_with |
| Program / recipe / setup | resource | all | held until change | made_with |
| Operator / badge | resource | all | held until shift change / logout | made_by |
| Workpiece carrier / tray | transport | P-L, P-D | one loop through the line, re-appears | carried_by (presence of the unit on the carrier) |
| Container / package / SSCC | logistics, holds finished units | end of line | from first to last unit packed | part_of (packing), via packing_parent_uuid |
| Machine / station | location | all | constant | asset of the events, not an object link |
Two distinctions matter most and are tested explicitly:
- Type vs instance. A material number names what is used (one value for
thousands of units); an input lot or a component serial names which
physical piece was used. Both link with
made_from / contains, but only
an instance link answers "which units contain this faulty lot".
- Input vs description. The output article number describes the unit
itself and is an attribute; a material number on the same machine is an
input. From data alone the two can look alike (both long-held numbers);
the article number changes with the order and never independently of it,
an input may change on its own (MAT6) or be one of several slots (MAT4).
- Signal kinds use the spec's
semanticKind tokens: measurement,
setpoint, counter, status, state, alarm-flag, identifier,
parameter. Object signals are identifiers.
- Trace units are
lot, serial or container, identified as
{scheme, id} (e.g. lot:P-100:L2026-1020-A, gs1-sgtin, sscc).
namespace=True object ids follow the same type:value pattern.
- Genealogy edges carry a precision:
exact (the unit's own cycle), window
(an input held during the unit's presence) or order (only the order is
shared).
- The spec has no
is_delta flag and no production-cycle signal. A held
value may be re-sent by a heartbeat with its original timestamp; such
duplicates (same address, time and value) are dropped before analysis,
and a change is then known only from the value (variant ID7).
Common plastics processes and the objects they carry. The signal forms are
the expected ones for each process; they are the variants the scenarios
generate.
| Process | Type | Unit | Boundary signal | Plastics-specific objects and relations |
|---|
| Injection moulding | discrete | shot with n cavities → n parts | mould closed / open, eject pulse, shot counter | granulate grade and lot (made_from), masterbatch / colour, mould with cavities (made_with), per-shot quality values (cushion, injection time, peak pressure) as shot attributes |
| Insert / multi-component moulding | discrete | shot | as above | inserts consumed per shot; a pre-moulding that crosses one cycle boundary (work in progress) |
| Extrusion: profile, pipe, sheet | continuous | cut length | saw / cutter pulse, length counter | die (made_with), granulate lot, sections cut from a continuous stream |
| Blown / cast film, calendering | continuous | roll | winder reel change | one or two rolls in parallel (slit web) |
| Cable sheathing, extrusion coating | continuous | output reel | reel change, length counter | input reel (conductor, substrate) → output reel, linked by length range |
| Extrusion blow moulding | discrete on continuous parison | moulded part, n per cycle | mould close | one extruder feeding several clamping stations (shuttle) |
| Stretch blow moulding (two-stage) | discrete | bottle | blow cycle | preform lot from an injection-moulding process → bottle (cross-process genealogy) |
| Thermoforming (roll-fed) | discrete | formed sheet, n cavities | forming stroke, stacker count | film reel as input (often an extrusion roll) |
| Compounding | continuous | lot per container fill | container change | recipe, feeder components; compound lot becomes granulate input downstream |
| Rubber compounding | batch | mixer batch | drop-door pulse, batch counter | many ingredient lots per batch |
| Particle foam (EPS/EPP) | batch + discrete | block → n boards | steam-chest cycle | silo per grade and bulk density (container lot) |
| Rotational moulding | discrete, long cycles | part | arm cycle | several arms with independent cycles (parallel cycle streams) |
| SMC / BMC pressing | discrete | part | press cycle | matured SMC roll, resin supplier lot; traceability down to each raw-material batch |
Two plastics effects the matrix adds:
- Material lag. Granulate passes a dryer hopper and the conveying line
before it reaches the screw: a new lot reaches the parts only after the
residence time. The lot → part link is shifted by that lag.
- Regrind. Sprues, flash, edge trim and rejects are ground and fed back
in a set share. The regrind share is a measurement, not an object; the
regrind loop makes a part's input partly an earlier part.
| Code | Variant | What the data looks like |
|---|
| ID1 | hold + repeat | written once (is_delta=True), repeated every 1–5 s (is_delta=False) until the next value |
| ID2 | change only | one row per new value, nothing in between |
| ID3 | pulse | the value is present for one or a few samples, then the signal is empty / "" / 0 until the next part |
| ID4 | cleared between units | the value is held during the unit and cleared ("", 0, NULL) when the unit leaves |
| ID5 | data type | text, integer, float with .0, zero-padded text (000123), GS1 / prefixed formats |
| ID6 | same-value re-setup | the same number is set again; only is_delta=True shows the new setup |
| ID7 | no is_delta column | changes are known only from value changes and sampling |
| ID8 | misreads | NOREAD, ????????, 0, 65535, truncated reads in between |
| ID9 | coarse polling | the value is read every 15–60 min |
| Code | Variant | What the data looks like |
|---|
| CY1 | level bool | True for the whole cycle (e.g. door closed, clamp closed, in-process) |
| CY2 | inverted level | False during the cycle (e.g. door open = False while running) |
| CY3 | start and end pulses | two bools: a short True at start, another at end |
| CY4 | part counter | an integer counter that increments at the end of each cycle (resets now and then) |
| CY5 | step / state number | an integer or text step (0 idle, 10..90 steps) or state (IDLE, RUN) |
| CY6 | cycle-time value | a value_double with the last cycle's duration, written at cycle end |
| CY7 | no cycle signal | only the serial scan marks the unit |
| Code | Variant |
|---|
| SC1 | at cycle start |
| SC2 | mid-cycle |
| SC3 | at cycle end (label printed / marked after processing) |
| SC4 | before the cycle starts (scanned while loading, door still open) |
| SC5 | after the cycle ended (scanned when unloading) |
| SC6 | no serial: the unit exists only as a counter increment |
| Code | Variant | What the data looks like |
|---|
| CO1 | unit id | a roll / coil / reel number that changes at the cut |
| CO2 | length counter reset | a metre or length counter that drops to 0 at the cut, no unit id |
| CO3 | cut pulse | a bool pulse at the cut |
| CO4 | no unit | only material and order; the order is the unit |
| Code | Variant |
|---|
| MAT1 | constant over the whole recording |
| MAT2 | changes rarely (about once a day), at an order change |
| MAT3 | changes at batch / roll boundaries |
| MAT4 | several input slots (bill of materials: component 1..n), each its own signal |
| MAT5 | changes while a unit is in progress (splice in a continuous line): the unit uses both |
| MAT6 | an input lot (incoming coil, raw-material lot) changes on its own clock, independent of output units |
| MAT7 | input set before the first unit and never again written (only one is_delta=True row, then repeats) |
| Code | Variant |
|---|
| RES1 | tool / mould number, constant for long periods |
| RES2 | program / recipe number (integer) |
| RES3 | operator badge, changes at shift change |
| RES4 | tool change shown only by a tool-life counter reset |
| Code | Variant |
|---|
| FLOW1 | lag: an input lot reaches the units only after a residence time (dryer, hopper, conveying line) |
| FLOW2 | length-mapped input: an input reel is consumed over a length range of the output |
| FLOW3 | parallel outputs: two rolls / n cavities / n stations from one stream |
| FLOW4 | work in progress across a cycle boundary (pre-moulding, preform in a rotary mould) |
| FLOW5 | one feeder, several stations (shuttle blow moulding, one extruder for several clamps) |
| FLOW6 | heartbeat duplicates: a held value re-sent with its original timestamp |
| Code | Variant |
|---|
| TOP1 | one machine, one station |
| TOP2 | several stations in a line, the same serial passes each station |
| TOP3 | parallel cells sharing a station name |
| TOP4 | two independent lines in one frame (links must not cross lines) |
For every scenario the expected result is stated in these terms:
- Screening and type: each object signal is an identifier of the right type
(serial, material, roll, batch, order, tool, operator); every non-object
signal (cycle bool, counter, step, cycle time, states) is not.
- Presences: one presence per unit. A serial's presence is its cycle when
a cycle signal exists (CY1–CY6), from scan to the next unit otherwise.
- Cycle signal: the cycle signal of each serial (
cycle_uuid).
- Object kind: each object signal gets the right kind from section 2
(output unit, input type, input instance, component, order, resource,
carrier, container, description), and the kind decides its presence rule.
- Usage links: every serial / roll / batch links to each input and
resource held during its presence with the qualifier of its kind
(
made_from, contains, made_with, made_by, carried_by), including
constant inputs; the output article number is an attribute, not a link.
- Production nesting: unit → batch / order / material where the data
shows it (
part_of).
- No false links: nothing across lines, nothing from states, shift
labels or clock-driven ids.
The full cross product is far too large. The scenarios below cover every
variant of every dimension at least once and every pair of the dimensions
that interact (ID × CY, CY × SC, MAT × process type) at least once. Each row
is one generated scenario with ground-truth labels.
| # | Process | ID | CY / CO | SC | MAT | RES | TOP |
|---|
| D01 | P-D | ID1 | CY1 | SC2 | MAT1 ×2 | RES1 | TOP1 |
| D02 | P-D | ID2 | CY2 | SC1 | MAT2 | RES2 | TOP1 |
| D03 | P-D | ID3 | CY3 | SC3 | MAT4 ×3 | RES3 | TOP1 |
| D04 | P-D | ID4 | CY4 | SC4 | MAT1 | RES1 | TOP1 |
| D05 | P-D | ID5 (int) | CY5 | SC5 | MAT6 | RES4 | TOP1 |
| D06 | P-D | ID1 + ID8 | CY6 | SC2 | MAT7 | RES2 | TOP1 |
| D07 | P-D | ID7 | CY1 | SC2 | MAT2 | RES3 | TOP1 |
| D08 | P-D | ID1 | CY7 | – | MAT1 | RES1 | TOP1 |
| D09 | P-D | – | CY4 | SC6 | MAT1 | RES1 | TOP1 |
| D10 | P-DN | ID3 ×4 | CY1 | SC2 | MAT1 | RES1 | TOP1 |
| D11 | P-L | ID1 | CY1 per station | SC1 | MAT4 per station | RES1 | TOP2 |
| D12 | P-L | ID1 | CY2 | SC2 | MAT1 | RES3 | TOP3 |
| D13 | P-D | ID1 | CY1 | SC2 | MAT1 | RES1 | TOP4 |
| D14 | P-D | ID9 | CY4 | SC2 | MAT2 | RES2 | TOP1 |
| C01 | P-C | ID1 | CO1 | – | MAT1 | RES2 | TOP1 |
| C02 | P-C | ID6 | CO2 | – | MAT2 (re-setup same value) | RES3 | TOP1 |
| C03 | P-C | ID2 | CO3 | – | MAT5 (splice) | RES1 | TOP1 |
| C04 | P-C | ID1 | CO4 | – | MAT2 + MAT6 | RES3 | TOP1 |
| C05 | P-C | ID7 | CO1 | – | MAT1 | – | TOP4 |
| C06 | P-C | ID9 | CO1 | – | MAT3 | RES2 | TOP1 |
| B01 | P-B | ID1 | batch start/end bool | – | MAT4 (raw lots) | RES2 | TOP1 |
| B02 | P-B | ID4 | step number | – | MAT3 | RES3 | TOP1 |
Scenarios for the object kinds of section 2 (each adds the named kind to a
base scenario):
| # | Base | Adds | Must find |
|---|
| K01 | D01 | component serial scanned once per cycle (ID3) | contains, one component per serial |
| K02 | D01 | output article number changing with the work order | attribute article, no made_from |
| K03 | C01 | input lot changing on its own clock next to a constant material number | both made_from, the lot as instance |
| K04 | D11 | workpiece carrier pool looping through 4 stations | carried_by per station visit, carrier loops |
| K05 | D01 | coil serial of a pre-product feeding a press (semi-finished) | made_from the coil for every part made while it is held |
| K06 | D04 | container filled with 20 parts | part_of packing |
| K07 | D02 | sales order and customer next to the work order | order part_of, customer attribute of the order |
| K08 | C02 | tool life counter only (RES4) | tool presence from counter resets |
Plastics scenarios (section 2):
| # | Process | Variants | Must find |
|---|
| PL01 | injection moulding, 4 cavities | CY1 mould closed, ID3 part marks per cavity, MAT6 granulate lot, FLOW1 dryer lag 2 h | 4 parts per shot, lot → part shifted by the lag, mould made_with |
| PL02 | injection moulding without part ids | CY4 shot counter, SC6 | shots as units, n = cavities, lot and mould links on the shot |
| PL03 | insert moulding | CY1, insert lot per shot | inserts made_from, one per part |
| PL04 | multi-component, rotary platen | CY1, FLOW4 | the pre-moulding spans two cycles, the finished part links both |
| PL05 | profile extrusion | CO3 saw pulse + CO2 length counter, MAT2 granulate | sections with lengths, granulate lot per section |
| PL06 | blown film, slit web | CO1 roll ids, FLOW3 two rolls | two rolls per reel change, both made_from the same lot |
| PL07 | cable sheathing | CO1, FLOW2 conductor reel | output reel ← conductor reel(s) by length range |
| PL08 | extrusion blow moulding, shuttle | CY1 per station, FLOW5 | parts per station, all made_from the one extruder's lot |
| PL09 | two-stage stretch blow | CY1, preform lot input | bottle ← preform lot (cross-process) |
| PL10 | roll-fed thermoforming | CY1 stroke, CY4 stacker count, input film reel | formed sheets ← film reel |
| PL11 | compounding | CO1 container fill ids, recipe | compound lot per container, recipe made_with |
| PL12 | rubber mixer | B: drop pulse + batch counter, several ingredient lots | batch made_from each ingredient lot |
| PL13 | rotational moulding carousel | several arms, CY1 per arm, long cycles | parts per arm, no cross-arm links |
| PL14 | any of the above via the spec's data path | FLOW6 heartbeats, ID7 no is_delta | same results after dropping duplicates |
Each scenario's status (supported, partly supported with numbers, not
supported with the reason) is reported by the variant test suite and listed
in the table in the next section once it runs.
To be filled from tests/test_object_variants.py.