90+ detectors for production, quality, engineering, maintenance and energy
Long-format signals in (systime, uuid, value_*), plain DataFrames out
OCEL 2.0 / XES event logs from any result, for process mining
Questions from the plant, answered in a few lines
Five everyday plant situations: a film extrusion line, dryer temperature loops, an extruder, an injection moulding machine. The data comes from ts-shape's plant simulators, tagged and timed the way a historian logs it; every chart is real ts-shape output, and the code is under each chart.
Production · OEE
Why did film line 2 stop on Monday and Tuesday?
Two days of one extrusion line, six shifts, from its run signal, part counter and alarm tags, with no mapping of which alarm means what: 23 stops cost 6 hours and OEE was 68.9%. ts-shape finds the alarm that rises before each stop: die-pressure alarms cause 49% of the lost time (31 min per stop), web breaks 41%.The code behind this chart
import ts_shape
from ts_shape import MachineStateEvents, OEEEvents
from ts_shape.events.profiling.stops import StopProfileEvents
# film extrusion line 2, Monday 06:00 to Wednesday 06:00 (six shifts)
Hand it the raw PLC tags of the dryer: it pairs setpoint, process value and controller output itself, measures every setpoint change in the shift and diagnoses each loop. TIC-102 overshoots by 59%, TIC-103 settles in only 18% of its setpoint changes.The code behind this chart
import ts_shape
from ts_shape import ControlLoopProfileEvents
# three dryer temperature loops, logged every 2 s over one shift
Data: one row per loop, medians over its setpoint steps
Loop
Diagnosis
Steps
Overshoot
Settle time
Steps settled
TIC-101 dryer zone 1
ok
13
2.1%
207 s
77%
TIC-102 dryer zone 2
oscillating
21
58.7%
94 s
95%
TIC-103 dryer zone 3
sluggish
22
47.0%
529 s
18%
Quality · SPC
Is the extruder melt temperature drifting before parts go out of spec?
Last week's in-control shift sets the control limits (227.1–232.8 °C). Today the melt temperature creeps up through the shift: the Nelson run rules flag the shifted mean (shaded), without a break from 10:08 on, and 49 readings end up beyond the upper limit. One call returns both, ready to alarm on.The code behind this chart
import pandas as pd
import ts_shape
from ts_shape import StatisticalProcessControlEvents
# extruder 3 melt temperature (°C, one reading a minute): last week's
# in-control shift sets the limits, today's early shift is checked
What does a moulded part cost in energy, and when is it wasted?
Injection moulding machine IMM-07 over two shifts, from its cumulative kWh meter and shot counter: a median of 0.35 kWh per part, up to 0.45 in half hours with an interruption, while the machine keeps drawing idle power. At the best half hour's rate the 996 parts would have needed 47 kWh less.The code behind this chart
import ts_shape
from ts_shape import EnergyEfficiencyEvents
from ts_shape.utils.counters import counter_increments
# injection moulding machine IMM-07, early and late shift, two articles
A Granger test of every tag logged near the loop against its temperature, with a Bonferroni-corrected p-value: Setpoint (TIC-101 SP) and Heating valve (TIC-101 OP) drive it; the look-alikes (line speed setting, hall temperature, bypass damper) do not. Transfer entropy and lead-lag are in the same class.The code behind this chart
import ts_shape
from ts_shape import CrossSignalAnalytics
# dryer zone 1: its temperature loop plus the other tags logged nearby