Ryan Kalagin

Plant Monitor: smart monitoring retrofitted to retread curing machines

Independent sensors and a cure-aware dashboard for the autoclaves, presses and steam generators a plant already owns.

By Ryan Kalagin, In progress

The Plant Monitor dashboard showing every machine as a tile: three autoclaves and a steam system with two presses either side of their generator, each with live readings and cure progress.
The plant view, running against the simulated plant. Every machine is a tile with its state, live readings and progress through the cure.
Status
Software built and tested against a simulated plant. Pilot installation next
Machines
Autoclaves, curing presses and steam generators of any make
Temperature
Pt100 resistance thermometers, 3-wire
Pressure
2-wire 4-20 mA transmitters on steam siphons
Field I/O
DIN-rail Modbus RTU modules in IP65 enclosures
Network
RS-485 daisy chain on shielded twisted pair
Gateway
Industrial mini PC running Python, FastAPI and SQLite
Access
Browser dashboard on site and remotely
Integration
None. Read-only and independent of the machine’s controls

A retread plant runs on three things: heat, pressure and time. The machines that supply them are built to last. Autoclaves, curing presses and steam generators routinely run for decades and most plants operate a mix of brands and generations side by side.

What those machines rarely have is a memory. A typical machine knows its own setpoints and lights a red lamp when something goes badly wrong. It does not record what happened during a cure. It cannot tell anyone who is not standing next to it. It has no idea whether this month’s cycles look different from last year’s.

Plant Monitor is an independent layer of sensors and software that fits onto equipment a plant already owns. It records every cure, judges it against the recipe it was meant to follow and puts the whole plant on a dashboard that operators and managers can open on any device, on site or away from it. It is being developed with a large tyre manufacturer, with their plants available for the pilot installations.

Retrofit, not replace

The mechanical heart of a curing machine rarely wears out. A pressure vessel, a mould and a steam circuit that are properly maintained keep doing their job long after the electronics around them look dated. Replacing a machine to get modern monitoring means a large capital outlay, weeks of downtime, new services, operator retraining and a fresh round of commissioning. All of that to fix what is really an information problem.

Retrofitting attacks the information problem directly. A handful of industrial sensors, a small enclosure of catalogue I/O modules and one computer per site give an existing machine most of what a new connected one would offer: live readings, cure records, trend analysis and remote alerts. The cost is a small fraction of a replacement machine and the installation can be done between production runs.

Integration was the other deciding factor. Earlier in my career I spent three years as a field engineer installing, commissioning and repairing retreading machinery across Europe. That work made one thing very clear: no two plants are alike. A single site might run machines from three manufacturers, each with its own PLC, its own wiring conventions and its own idea of what a fault looks like. Building an interface to every one of those control systems would turn each installation into a bespoke integration project. So the system was designed from the start to need nothing from them.

Design rules

  • Nothing on the machine changes. Sensors go into existing spare instrument ports. No pressure vessel is drilled, welded or modified.
  • No connection to the machine’s controls. The system never reads from or writes to a PLC, so it works the same on any brand or age of machine.
  • Advisory, not safety. The machine’s own controls and safety systems stay fully in charge. The only output Plant Monitor drives is a warning beacon.
  • Catalogue hardware, owned software. Every field component is an off-the-shelf industrial part an electrician can replace in minutes. All of the logic is software I wrote and own.
  • Lite. One small computer per site, a single database file and a dashboard that needs nothing installed.

Sensors and where they go

The new sensors are secondary to the machine’s own. They are there to observe, cross-check and record.

Autoclaves

An autoclave cures a full load of retreads at once inside a pressurised chamber. Each one gets at least three temperature probes at the top, centre and bottom of the chamber. The centre is usually the coldest point and the last to come up to temperature, so it is the probe that matters most.

Two pressure transmitters measure the chamber and the tyre envelopes. The envelopes are normally held around 1.5 bar below chamber pressure and that differential is what presses the envelope onto the tread. If the gap collapses or widens, an envelope has leaked or a regulator has drifted. The retread is at risk even when the chamber reading looks perfect.

Steam generators and curing presses

In a press line one steam generator usually feeds two presses. It stays on standby around the clock and starts heating in the early hours so the presses are ready when the shift arrives. Plant Monitor reads the generator’s steam outlet temperature and pressure plus the temperature of the condensate return tank the two presses share.

Each press has a probe on its steam inlet and three more on the steam leaving each part of the mould: sector 1, sector 2 and the sidewall plates. These are parallel routes, so in a healthy press they sit within about 4 °C of each other. A pressure transmitter on the bladder air line acts as the press’s clock. Bladder pressure tells the software exactly when a cure starts, holds and ends.

Each press also has a serial barcode scanner. The operator scans the casing before loading it and the cure record carries that tyre’s identity from then on.

Why Pt100 resistance thermometers

All temperatures are measured with Pt100 probes wired as 3-wire. A Pt100 is a platinum element whose resistance rises predictably with temperature: 100 Ω at 0 °C and about 138.5 Ω at 100 °C. Platinum stays stable for years, is accurate to a fraction of a degree and is comfortable well beyond the 160 °C these machines reach. The third wire lets the input module measure the resistance of the cable itself and cancel it out. Without it a long cable run would read as extra temperature.

Why 4-20 mA pressure transmitters

Pressure is measured with 2-wire 4-20 mA transmitters. A current loop was chosen over voltage or digital sensors for four reasons.

  • Distance. A current loop works over hundreds of metres. Digital buses such as I2C work over centimetres.
  • Noise. A plant is full of contactors, motors and drives. A current signal is far less affected by induced noise than a voltage is.
  • Live zero. Zero pressure is 4 mA, not 0 mA. Anything below about 3.6 mA means the loop is broken, so a cut cable shows up as a fault instead of a believable zero.
  • Loop power. The transmitter takes its power from the same two wires that carry its signal.

On steam every transmitter is mounted on a siphon. The coiled pipe fills with condensate so the transmitter senses pressure through a column of water at a safe temperature instead of live steam. Without one the electronics overheat and drift until they fail.

Wiring and the field enclosure

Each machine has its own IP65 enclosure mounted close by. Inside is a short length of DIN rail carrying a fused 24 V DC power supply, an RTD input module, a 4-20 mA analogue input module, terminals for every field cable and a relay output for the beacon. Every conductor is ferruled and labelled with its sensor tag. Nothing in the box needs designing or certifying from scratch. Each module is an industrial CE-marked catalogue part that runs on 24 V and speaks Modbus RTU.

Wiring diagram of one autoclave: three 3-wire Pt100 probes into an RTD input module, two 4-20 mA pressure transmitters on siphons into an analogue input module, a relay output to a beacon and a fused 24 V supply, all on DIN rail in an IP65 enclosure with an RS-485 bus leaving to the next machine.
Field wiring at one autoclave. The probes sit in existing spare ports and every wire runs outward from the machine. Nothing connects to its controls.

The enclosures are linked by Modbus RTU over RS-485. One shielded twisted pair runs from enclosure to enclosure and back to the gateway as a daisy chain. A single segment can carry up to 32 devices over roughly 1,200 m. A whole plant shares one cable and adding a machine means extending the run instead of pulling a new cable back to the office.

A few details make the difference between a bus that works on the bench and one that survives a factory.

  • Termination. A 120 Ω resistor across the pair at each end of the bus stops signal reflections.
  • Shielding. The cable shield is bonded to earth at one end only so it can never carry current between two parts of the building.
  • Isolation. The gateway connects through an isolated USB to RS-485 converter. Earth potential is rarely identical across a large building and isolation keeps any difference away from the computer.
  • Routing. Signal cables run apart from mains and motor cabling and cross it at right angles where they must cross.
  • Addressing. Every module has its own bus address and every sensor is a channel on a module. The software maps each sensor tag to its address and channel, so nothing is hard-coded.
# Autoclave 1: sensor tag, role, module address, channel, range
AC1-TT-TOP   chamber_temp_top      module 1   ch 0
AC1-TT-MID   chamber_temp_middle   module 1   ch 1
AC1-TT-BOT   chamber_temp_bottom   module 1   ch 2
AC1-PT-CHM   chamber_pressure      module 2   ch 0   0-10 bar
AC1-PT-ENV   envelope_pressure     module 2   ch 1   0-10 bar
Plant architecture: I/O enclosures on two autoclaves and a steam system share one RS-485 bus to an isolated converter and gateway PC, which serves the dashboard on the site network and reaches off-site viewers and SMS alerts through a cellular router.
The whole site on one bus. The gateway is the only part with an operating system and a disk.

I considered putting a microcontroller with Wi-Fi on each machine and decided against it. Steel structures, steam and electrical noise are exactly the conditions wireless struggles with. A custom board would also need its own analogue design, EMC testing and certification before it could go near a customer’s plant. Catalogue modules on shielded copper are proven, cheap to replace and familiar to every industrial electrician.

From raw register to trusted reading

The gateway is a small industrial PC running a Python polling service. Every five seconds it reads each module over the bus. That is plenty: a cure lasts hours and faster sampling would only add noise and disk use.

What comes back are raw integers. An RTD module reports tenths of a degree in a signed 16-bit register, so 1178 means 117.8 °C and anything above 32767 is a negative number in two’s complement. A 4-20 mA module reports its input as 0 to 65535. The software converts that to milliamps and then to bar using each transmitter’s calibrated range.

Every reading leaves the scaling step with a quality flag: good, open circuit, over range or out of range. A reading that cannot be trusted carries no value at all, so nothing further down the chain ever has to guess whether a number is real.

raw register → scaled value → quality flag → database
             → cure state machine → dashboard and alerts

RTD module       1178   →  117.8 °C                good
4-20 mA module  41959   →  12.80 mA  →  5.50 bar    good
4-20 mA module      0   →   0.00 mA  →  no value    open circuit

Readings go into SQLite, a single database file that is easy to back up and needs no administration. Raw five-second data is kept for 90 days and then thinned to one-minute averages with minimum and maximum. The figures that matter for each cure are calculated once when it closes and stored with it, so cure records and long-term trends stay intact after the raw data is thinned. A small FastAPI web server sits on top and serves the dashboard.

Defining a cure in software

This is the hardest part of the project and where most of its value lies. With no connection to the machine’s controls, nothing tells the software when a cure starts or ends. It has to work that out from the sensors alone, reliably, on machines it has never seen before.

Each machine type has its own state machine. Every change of state has to hold for a set number of consecutive readings before the software acts on it, so a single spike or dropout can never start or end a cure.

Autoclave cycles

An autoclave cure starts when chamber pressure rises through a start threshold and keeps rising. It moves into hold when the governing probe enters the target band. It finishes when the chamber vents and pressure falls back towards ambient.

Which probe governs is a deliberate choice. Every tyre in the load has to be cured, so by default the cure is judged on the coldest probe rather than the average. The spread between the hottest and coldest probe is tracked separately because a widening spread points to poor steam circulation.

Chart of an autoclave cure: three chamber temperatures rising into a target band with the centre probe lagging, chamber pressure rising to 5.5 bar with the envelope held 1.5 bar below, divided into idle, heat-up, hold and vent phases.
How an autoclave cure is recognised and judged, with illustrative curves. The centre probe lags the others and governs the cure.

Time above a threshold is not a good enough test of cure on its own. Rubber vulcanisation depends on time and temperature together. The reaction rate roughly doubles for every 10 °C, so the software integrates the governing temperature over the whole cycle into equivalent minutes at the target temperature.

equivalent_minutes = Σ  Δt × 2 ^ ((T - T_target) / 10)

def equivalent_cure_minutes(samples, reference_c, doubling_c=10.0):
    total = 0.0
    for prev, cur in zip(samples, samples[1:]):
        dt = (cur.ts - prev.ts) / 60.0
        if dt <= 0 or dt > 5:          # a gap in the data is not cure time
            continue
        mean_t = (prev.temp_c + cur.temp_c) / 2.0
        total += dt * 2.0 ** ((mean_t - reference_c) / doubling_c)
    return total

A cycle that sagged below the band twice for a few minutes can pass every individual threshold and still be short on total cure. The equivalent figure catches it. It also shows the opposite case, where cycles run longer than they need to and waste steam and throughput.

Press cycles

A press cures one tyre at a time in 60 to 85 minutes. Here the bladder pressure is the clock. A rise from zero through about 2 bar marks the start. The bladder inflates to about 17 bar and holds there for the cure. A drop back to zero marks the end. Defining the edges of that cycle took more care than it sounds.

  • Inflation should take around four minutes. Beyond five the cure is noted and beyond ten it fails.
  • A burst bladder shows up in two ways: it never reaches hold pressure or it collapses part way through the cure. Both are caught and named as such.
  • The sidewall plates have their steam cut part way through the cure at a time set by the recipe. Their probes stop counting about a minute before that cut-off because the press’s own valve timer and the software’s copy of it will never agree to the second. One cooling reading must not fail a good cure.
  • A cure already running when the gateway starts is recorded as incomplete rather than failed and is left out of the health trends.
Chart of a press cure: bladder pressure rising through 2 bar, inflating to 17 bar in about four minutes, holding and dropping to zero at the end, with a burst bladder shown collapsing mid-cure. Above it the three mould sector temperatures, with the sidewall plates cooling after the steam cut-off.
Bladder pressure marks the start, hold and end of a press cure. Illustrative curves.

Warm-up and readiness

Presses heat once per shift. The generator starts around 2am so the line is ready when the day shift arrives. Each warm-up is recorded: how long the generator took to reach pressure and how long each mould sector took to come into band.

A press counts as ready when all three sectors are within a set margin of target and the inlet is not much hotter than the coldest sector. A large gap means the mould is still soaking up heat. An alert goes out if a press is not ready by the time the plant sets and again if it drops out of readiness during the shift.

Generator outlet pressure has a direct effect on the mould. At its normal 5 bar the mould sees about 155 °C. Each bar short costs roughly 8 °C, which is how the software decides when a generator sagging under load deserves a low outlet pressure alert.

Recipes that change

No two loads are identical. Tyre size, tread compound and thickness all change the cure. Plant Monitor stores named cure profiles that can be applied to a machine from a list. Each machine also records the physical limits it was commissioned with. Operators can adjust settings freely inside those limits and the dashboard refuses anything outside them.

Every change creates a new version of that machine’s settings and every cure is judged against the version in force when it ran. Changing a recipe today never rewrites the verdict on last month’s cures.

Tuning without a factory

Cure logic cannot be developed at three hours per test. I built a plant simulator that runs a genuine Modbus server and hands out raw registers exactly as real modules do, so the same polling code runs against it unchanged. It runs a three-hour cure in a few minutes and injects faults on demand: a slow heat-up, a dip during hold, a flat-lined sensor, a broken wire and a pressure leak.

Moving from the simulator to a real plant is a change to the serial port in the configuration file, not to the code. The first pilot cycles will be recorded and replayed through the same logic at speed to tune the thresholds against real machines.

Control and insight

Once cures are being recorded the plant gains a level of visibility its machines never had.

The live plant

Every machine appears as a tile, laid out the way the plant floor is. A steam system shows its two presses either side of the generator that feeds them. Each tile shows the machine’s state, its live readings and how far through the cure it is. Clicking a tile opens that machine in full, with every sensor drawn as a numbered dot where it physically sits and the same number and colour on its chart trace.

Autoclave 1 opened in full: a drawing of the chamber with each sensor as a numbered dot, a list of live readings and two charts of the cure, one zoomed into the target band.
One autoclave in full. Each numbered dot is a sensor where it physically sits. The second chart zooms into the target band at one degree per grid line.

Cure records and traceability

Every completed cure is sealed with its full temperature and pressure curves, the settings version it was judged against, a pass or fail with the reasons in plain words and the number on the machine’s own cycle counter. With the scanned casing number attached, any tyre can be traced back to the exact cure it went through. For a retreader supplying fleet contracts that record is the answer to an audit or a warranty claim. Each record also carries a seal: a SHA-256 hash of its contents chained to the record before it, so any later change to a record would show.

The cure records table listing presses and autoclaves with factory cycle numbers, scanned casing barcodes, timings, the settings each cure was judged against and pass or fail.
Cure records with factory cycle numbers and scanned casings. The failed autoclave cure says exactly why it failed.
A single sealed autoclave cure record: heat-up, hold and cure achieved, the settings it was judged against, the whole cure chart with its phases shaded and a zoomed chart of the hold.
One sealed cure record: the curves with heat-up and hold shaded, what each probe saw and the exact settings version it was judged against.

Machine health

The figures from each cure are trended across as many cycles as the user chooses, up to the full history. They are compared with baseline cures the plant marks as known good. This is where preventive maintenance comes from. On an autoclave, a longer heat-up points to the steam supply, pressure drifting during hold points to seals and valves and a slower cool-down points to insulation or the vent. A generator taking longer to reach pressure points to scaling or a tiring burner. A press taking longer to inflate points to its air supply.

Each finding states what was observed and why it matters instead of just flagging a number. The health view also looks upstream. If both presses on one generator are heating slowly the finding points at the generator, because one weak boiler should read as one problem rather than two slow presses.

Machine health for Autoclave 1: heat-up time, probe spread, pressure drift in hold, envelope gap and cool-down time compared with baseline cures and each marked steady, above a bar chart of heat-up time per cure.
Machine health for one autoclave across every cure on record, compared with its baseline cures.

Settings, sensors and the change log

Machines, sensors and input modules are added through step-by-step wizards. The software knows which modules exist and which channels are free, so the wizards only ever offer a channel that exists, matches the sensor type and is not already taken. Each channel can be read live before it is committed, so wiring is checked rather than assumed. The dashboard draws exactly the sensors configured for each machine, with no assumed layout.

Every sensor records its transmitter range and calibration date. During calibration a sensor’s readings are flagged and kept out of cure detection. The correction is applied from then on. Trial runs can be marked as tests on one machine or across the whole plant. They are kept and badged but left out of pass rates and health trends. Every settings change and every sealed cure record is written to a change log with who made it and when.

The cure settings form for Autoclave 1 at version 1, with a cure profile picker and fields for temperature, pressure, timing, minimum cure and cure detection, each with a short explanation.
Versioned cure settings for one machine. A named cure profile fills the form and saving creates the next version.

Watching its own sensors

A local alarm lamp cannot tell the difference between a machine that is fine and a sensor that has failed. Plant Monitor can. Broken loops and impossible readings are flagged as sensor faults rather than passed on as data. Dedicated sensor health alarms, such as a reading that stops moving, are part of the next stage.

Visible from anywhere

The dashboard is a web page served by the gateway. The office PC, a supervisor’s phone and a tablet mounted by an autoclave all see the same live view with nothing to install. The on-site display and the remote view are the same code.

Off-site access is designed to run through an industrial cellular router at the plant over a private VPN. Nothing on the plant network is exposed to the open internet and remote access does not depend on the factory’s broadband or its IT department. A manager at home at 4am can see whether the presses will be ready before anyone arrives.

Alerts follow the same thinking with three independent paths.

  • Local. A beacon and sounder at the machine driven from the relay output. It works with no network at all.
  • Email. Reports and lower-priority notices over the site’s internet connection.
  • SMS. Sent from a cellular modem with its own SIM, so a critical alert still goes out when the site’s broadband is down.

Alerts carry a severity and an acknowledgement loop. An unacknowledged critical alert escalates to the next person on the rota after a set time and then to the owner. Related alerts are grouped so a generator fault sends one message about the cause, not a separate message for every machine it feeds.

The live view, cure records and on-screen alerts are built and tested. The beacon output, email and SMS escalation arrive with the hardware.

Lessons from the build so far

  • Silence is the worst failure a monitor can have. An early version stopped polling if one bad sample raised an error, which left the dashboard showing stale numbers that looked live. Each poll is now guarded and logged, any error appears on the plant view and monitoring carries on.
  • The database has opinions. SQLite takes a write lock on any update, even one that changes nothing. The poller was clearing alerts with a blind update on every sample and starving the dashboard of the database. It now checks before it writes and never holds a transaction open while it waits for the next poll.
  • Never assume a sensor layout. Machines of the same type can carry different numbers of sensors. The dashboard draws exactly what has been configured for each machine and nothing else.

Where it’s heading

The software is built and tested end to end against the simulated plant. Next is a bench rig with real modules, a Pt100 in hot water and a pressure transmitter on a hand pump, to prove the whole chain from physical quantity to dashboard. After that comes the first pilot installation on a single machine, recording real cycles to tune detection. Email and SMS escalation, sensor health alarms and printable cure certificates for individual tyres follow.

The wider idea goes beyond retreading. Plenty of industries run sound equipment that is decades old and only needs better information to run better. Retrofit monitoring gives them that without the cost of new machines.