Skip to main content
Version: 0.0.98

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.

1. Process types​

CodeProcessProduced unitTypical boundaryTypical inputs
P-DDiscrete, cycle machine (press, welding, assembly, CNC, test bench)one part per cycle (serial)a cycle signalmaterial / purchased-part / pre-product numbers, tool, program, operator
P-DNDiscrete, n parts per cycle (multi-cavity mould, nest)n serials per cyclecycle signal, n scansas P-D
P-CContinuous (extrusion, coating, wire drawing, film)roll, coil, reel, length sectioncut / reel changematerial (often constant for hours or days), additive lots, order
P-BBatch (mixing, curing, heat treatment)batch / chargebatch start and endrecipe, raw-material lots
P-LLine with several stationsthe same serial at station after stationper-station cycleper-station resources

2. Object kinds and how each is handled​

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.

KindRoleSeen inPresenceLink from the produced unit
Serial (part)output unit, one per cycleP-D, P-DN, P-Lits cycle; scan → next unit without a cycle signal– (it is the unit)
Roll / coil / reel / sectionoutput unitP-Ccut → next cut– (it is the unit)
Batch / chargeoutput unitP-Bbatch start → end– (it is the unit)
Output article / product numberdescribes what the unit is (type, not instance)allheld until changeattribute of the unit (article), not an input
Material number (input type)input, type-levelallheld until change, often constantmade_from
Input lot / raw-material batch / incoming coilinput, instance-levelallheld until change, own clock (MAT6)made_from (traceable lot)
Purchased-part / pre-product numberinput, type-levelP-D, P-Lheld until changemade_from
Component serial (traceable part built in)input, instance-level, 1:1P-D (assembly), P-La scan inside the unit's cyclecontains (assembly genealogy, one component per unit)
Semi-finished serial (pre-product instance)input from an earlier processP-D after P-C (coil into a press)held while being consumedmade_from
Work / production ordercontext, groups unitsallheld until changepart_of
Sales order, customercontextallheld until changeattribute of the order
Tool / mould / die / fixtureresourceP-D, P-Cheld until change or tool-life reset (RES4)made_with
Program / recipe / setupresourceallheld until changemade_with
Operator / badgeresourceallheld until shift change / logoutmade_by
Workpiece carrier / traytransportP-L, P-Done loop through the line, re-appearscarried_by (presence of the unit on the carrier)
Container / package / SSCClogistics, holds finished unitsend of linefrom first to last unit packedpart_of (packing), via packing_parent_uuid
Machine / stationlocationallconstantasset 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).

Alignment with the Open Manufacturing spec​

  • 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).

Plastics processes​

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.

ProcessTypeUnitBoundary signalPlastics-specific objects and relations
Injection mouldingdiscreteshot with n cavities → n partsmould closed / open, eject pulse, shot countergranulate 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 mouldingdiscreteshotas aboveinserts consumed per shot; a pre-moulding that crosses one cycle boundary (work in progress)
Extrusion: profile, pipe, sheetcontinuouscut lengthsaw / cutter pulse, length counterdie (made_with), granulate lot, sections cut from a continuous stream
Blown / cast film, calenderingcontinuousrollwinder reel changeone or two rolls in parallel (slit web)
Cable sheathing, extrusion coatingcontinuousoutput reelreel change, length counterinput reel (conductor, substrate) → output reel, linked by length range
Extrusion blow mouldingdiscrete on continuous parisonmoulded part, n per cyclemould closeone extruder feeding several clamping stations (shuttle)
Stretch blow moulding (two-stage)discretebottleblow cyclepreform lot from an injection-moulding process → bottle (cross-process genealogy)
Thermoforming (roll-fed)discreteformed sheet, n cavitiesforming stroke, stacker countfilm reel as input (often an extrusion roll)
Compoundingcontinuouslot per container fillcontainer changerecipe, feeder components; compound lot becomes granulate input downstream
Rubber compoundingbatchmixer batchdrop-door pulse, batch countermany ingredient lots per batch
Particle foam (EPS/EPP)batch + discreteblock → n boardssteam-chest cyclesilo per grade and bulk density (container lot)
Rotational mouldingdiscrete, long cyclespartarm cycleseveral arms with independent cycles (parallel cycle streams)
SMC / BMC pressingdiscretepartpress cyclematured 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.

3. Variant dimensions​

ID: how an identifier value is written​

CodeVariantWhat the data looks like
ID1hold + repeatwritten once (is_delta=True), repeated every 1–5 s (is_delta=False) until the next value
ID2change onlyone row per new value, nothing in between
ID3pulsethe value is present for one or a few samples, then the signal is empty / "" / 0 until the next part
ID4cleared between unitsthe value is held during the unit and cleared ("", 0, NULL) when the unit leaves
ID5data typetext, integer, float with .0, zero-padded text (000123), GS1 / prefixed formats
ID6same-value re-setupthe same number is set again; only is_delta=True shows the new setup
ID7no is_delta columnchanges are known only from value changes and sampling
ID8misreadsNOREAD, ????????, 0, 65535, truncated reads in between
ID9coarse pollingthe value is read every 15–60 min

CY: how a cycle (discrete unit boundary) is written​

CodeVariantWhat the data looks like
CY1level boolTrue for the whole cycle (e.g. door closed, clamp closed, in-process)
CY2inverted levelFalse during the cycle (e.g. door open = False while running)
CY3start and end pulsestwo bools: a short True at start, another at end
CY4part counteran integer counter that increments at the end of each cycle (resets now and then)
CY5step / state numberan integer or text step (0 idle, 10..90 steps) or state (IDLE, RUN)
CY6cycle-time valuea value_double with the last cycle's duration, written at cycle end
CY7no cycle signalonly the serial scan marks the unit

SC: where the serial is scanned relative to the cycle​

CodeVariant
SC1at cycle start
SC2mid-cycle
SC3at cycle end (label printed / marked after processing)
SC4before the cycle starts (scanned while loading, door still open)
SC5after the cycle ended (scanned when unloading)
SC6no serial: the unit exists only as a counter increment

CO: how a continuous unit boundary is written​

CodeVariantWhat the data looks like
CO1unit ida roll / coil / reel number that changes at the cut
CO2length counter reseta metre or length counter that drops to 0 at the cut, no unit id
CO3cut pulsea bool pulse at the cut
CO4no unitonly material and order; the order is the unit

MAT: how inputs (material, purchased part, pre-product) relate to units​

CodeVariant
MAT1constant over the whole recording
MAT2changes rarely (about once a day), at an order change
MAT3changes at batch / roll boundaries
MAT4several input slots (bill of materials: component 1..n), each its own signal
MAT5changes while a unit is in progress (splice in a continuous line): the unit uses both
MAT6an input lot (incoming coil, raw-material lot) changes on its own clock, independent of output units
MAT7input set before the first unit and never again written (only one is_delta=True row, then repeats)

RES: resources​

CodeVariant
RES1tool / mould number, constant for long periods
RES2program / recipe number (integer)
RES3operator badge, changes at shift change
RES4tool change shown only by a tool-life counter reset

FLOW: material flow effects​

CodeVariant
FLOW1lag: an input lot reaches the units only after a residence time (dryer, hopper, conveying line)
FLOW2length-mapped input: an input reel is consumed over a length range of the output
FLOW3parallel outputs: two rolls / n cavities / n stations from one stream
FLOW4work in progress across a cycle boundary (pre-moulding, preform in a rotary mould)
FLOW5one feeder, several stations (shuttle blow moulding, one extruder for several clamps)
FLOW6heartbeat duplicates: a held value re-sent with its original timestamp

TOP: topology​

CodeVariant
TOP1one machine, one station
TOP2several stations in a line, the same serial passes each station
TOP3parallel cells sharing a station name
TOP4two independent lines in one frame (links must not cross lines)

4. What must be found​

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.

5. Scenario set​

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.

#ProcessIDCY / COSCMATRESTOP
D01P-DID1CY1SC2MAT1 ×2RES1TOP1
D02P-DID2CY2SC1MAT2RES2TOP1
D03P-DID3CY3SC3MAT4 ×3RES3TOP1
D04P-DID4CY4SC4MAT1RES1TOP1
D05P-DID5 (int)CY5SC5MAT6RES4TOP1
D06P-DID1 + ID8CY6SC2MAT7RES2TOP1
D07P-DID7CY1SC2MAT2RES3TOP1
D08P-DID1CY7–MAT1RES1TOP1
D09P-D–CY4SC6MAT1RES1TOP1
D10P-DNID3 ×4CY1SC2MAT1RES1TOP1
D11P-LID1CY1 per stationSC1MAT4 per stationRES1TOP2
D12P-LID1CY2SC2MAT1RES3TOP3
D13P-DID1CY1SC2MAT1RES1TOP4
D14P-DID9CY4SC2MAT2RES2TOP1
C01P-CID1CO1–MAT1RES2TOP1
C02P-CID6CO2–MAT2 (re-setup same value)RES3TOP1
C03P-CID2CO3–MAT5 (splice)RES1TOP1
C04P-CID1CO4–MAT2 + MAT6RES3TOP1
C05P-CID7CO1–MAT1–TOP4
C06P-CID9CO1–MAT3RES2TOP1
B01P-BID1batch start/end bool–MAT4 (raw lots)RES2TOP1
B02P-BID4step number–MAT3RES3TOP1

Scenarios for the object kinds of section 2 (each adds the named kind to a base scenario):

#BaseAddsMust find
K01D01component serial scanned once per cycle (ID3)contains, one component per serial
K02D01output article number changing with the work orderattribute article, no made_from
K03C01input lot changing on its own clock next to a constant material numberboth made_from, the lot as instance
K04D11workpiece carrier pool looping through 4 stationscarried_by per station visit, carrier loops
K05D01coil serial of a pre-product feeding a press (semi-finished)made_from the coil for every part made while it is held
K06D04container filled with 20 partspart_of packing
K07D02sales order and customer next to the work orderorder part_of, customer attribute of the order
K08C02tool life counter only (RES4)tool presence from counter resets

Plastics scenarios (section 2):

#ProcessVariantsMust find
PL01injection moulding, 4 cavitiesCY1 mould closed, ID3 part marks per cavity, MAT6 granulate lot, FLOW1 dryer lag 2 h4 parts per shot, lot → part shifted by the lag, mould made_with
PL02injection moulding without part idsCY4 shot counter, SC6shots as units, n = cavities, lot and mould links on the shot
PL03insert mouldingCY1, insert lot per shotinserts made_from, one per part
PL04multi-component, rotary platenCY1, FLOW4the pre-moulding spans two cycles, the finished part links both
PL05profile extrusionCO3 saw pulse + CO2 length counter, MAT2 granulatesections with lengths, granulate lot per section
PL06blown film, slit webCO1 roll ids, FLOW3 two rollstwo rolls per reel change, both made_from the same lot
PL07cable sheathingCO1, FLOW2 conductor reeloutput reel ← conductor reel(s) by length range
PL08extrusion blow moulding, shuttleCY1 per station, FLOW5parts per station, all made_from the one extruder's lot
PL09two-stage stretch blowCY1, preform lot inputbottle ← preform lot (cross-process)
PL10roll-fed thermoformingCY1 stroke, CY4 stacker count, input film reelformed sheets ← film reel
PL11compoundingCO1 container fill ids, recipecompound lot per container, recipe made_with
PL12rubber mixerB: drop pulse + batch counter, several ingredient lotsbatch made_from each ingredient lot
PL13rotational moulding carouselseveral arms, CY1 per arm, long cyclesparts per arm, no cross-arm links
PL14any of the above via the spec's data pathFLOW6 heartbeats, ID7 no is_deltasame 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.

6. Status​

To be filled from tests/test_object_variants.py.