Skip to content

Machine data from legacy equipment without replacing it: a step-by-step retrofit

B2Bnetwork team · · 6 min

IT in manufacturing

In brief

You can collect data from old machines without replacing them: read what the machine already signals (its stack light, counter, current draw) or add a simple sensor and an edge gateway that forwards the data. A retrofit starts with a survey of the machines and sorting them into classes. Then you choose three signals per machine (running, stopped, part count), install the readout without touching the PLC program, check the data with operators and only then build reports.

Why you do not need new machines

A lathe from the nineties, a press without a PLC or an injection molding machine with a proprietary protocol still make good parts. What is missing is information on when they run, when they stand still and how much they produced. Those three facts are enough to calculate the availability and performance parts of OEE, see real changeover times and stop arguing about shift reports.

A retrofit, meaning adding data readout to an existing machine, costs a fraction of a new machine and needs no production stop longer than fitting a sensor. One rule matters: read, do not control. Passive readout does not change how the machine behaves, so it does not touch its safety functions. Any change to the PLC program or the safety circuits should be agreed with the person responsible for machine safety, because that is a different kind of work, covered in The Machinery Regulation 2023/1230 and machine software.

Surveying the machines: four classes

The first step is a list of machines and what each has on board. In a mid-sized plant there are usually four classes.

ClassWhat the machine hasHow to read dataWhat you get
Aa PLC with Ethernet, often OPC UAdirectly from the OPC UA server or via a gatewaystates, counters, process parameters, alarms
Ban older PLC with a serial port or vendor protocola gateway with the right communication driver, e.g. Modbusstates and counters, sometimes parameters
Crelay control, a stack light, a mechanical countera digital input module on the light signal and counter pulserunning, stopped, fault, cycle count
Dno signals at allan external sensor: a current transformer, proximity or vibration sensorrunning and stopped from current draw, cycles from the sensor

For classes A and B, ask the machine builder or integrator whether reading from the port affects the PLC cycle and whether it voids the warranty. For classes C and D, a qualified electrician and the cabinet wiring diagram are enough.

Three signals to start and what they give you

The temptation to read everything at once ends with thousands of tags nobody looks at. Start with three signals per machine:

  1. Running: the machine is executing a cycle (from the green light, a PLC output or motor current above a threshold).
  2. Stopped or fault: the machine is idle, with faults distinguished if there is a separate light.
  3. Part or cycle count: one pulse per cycle, from the machine counter or a sensor at the outfeed.

From these signals you get run and idle time, the number of stops, cycle time and performance against the standard. Downtime reasons are added by the operator or by an AI Worker working from shift notes, as described in A downtime log with an AI Worker. Process parameters (temperature, pressure, force) come later, for a specific quality problem or for predictive maintenance.

The retrofit step by step

StepWhat you doWhat to watch
1. Machine listclass, PLC, cabinet diagram, responsible personflag machines without documentation right away
2. Signal choicethree signals per machine, a definition of "running" and "stopped"one definition for every hall
3. Installing the readoutinput module, current transformer, sensor, cable to the gatewayinstall during a break, no change to the PLC program
4. Edge gatewayreceiving signals, timestamps, buffering when the network is downthe gateway in its own network zone, not the office network
5. Data modelone name for plant, hall, line, machine and signalnames that match machine codes in the ERP and MES
6. Operator checkcomparing the counter with the shift sheet for a few daysexplain discrepancies before the first report
7. First reportavailability and stops on one linea report for the shift supervisor, not only for management

Step 6 is the one most often skipped, and it decides whether people trust the data. If a sensor double counts when the machine vibrates, or the light shows green in manual mode, the first report will show nonsense and people will stop believing it. A few days of comparison with the shift sheet catch these errors.

Edge gateway, network and security

An edge gateway is a small industrial computer next to the machine or in a cabinet in the hall. It reads signals, timestamps them, buffers them during network outages and forwards them, usually over MQTT or OPC UA. Both protocols are compared in OPC UA and MQTT.

The gateway connects the machine network to the network where servers live, so it becomes a new path for an attacker. NIST SP 800-82 and the IEC 62443 standards recommend dividing the network into zones and controlling traffic between them. In practice this means the gateway only sends data out, does not accept commands from the office network, and has its own account and updates. Network segmentation is covered in OT security in the plant, and the path from the gateway to the cloud in PLC data in the cloud.

What drives the cost of a retrofit

Prices per machine vary several times over, so it is more useful to know the factors that change them:

  • machine class: reading from an OPC UA server is mostly configuration, a sensor on a class D machine means hardware and installation,
  • distances and cabling: machines spread across a hall need more cable or wireless links,
  • the number of different protocols: each vendor protocol needs its own communication driver in the gateway,
  • network security requirements: a new network zone and firewall are a one-time project that serves further machines,
  • reporting: a ready-made availability dashboard costs less than a data model for several plants, as in the case study on an OEE platform built on line data.

B2Bnetwork engineers build the data layer and reports on shop floor data as part of our Data and reporting service: one KPI definition, data quality checks and a report that matches the machine counter.

Questions and answers

Does a retrofit require stopping production?

Usually only while the sensor or input module is installed, which can be done during a break, a changeover or planned downtime. Reading from the OPC UA server of a newer machine needs no stop at all. The PLC program stays unchanged, so the machine runs exactly as before after installation.

Does adding a sensor affect the machine's warranty and safety?

An external sensor that only measures current or counts cycles does not change how the machine works. Connecting to a PLC port or changing its program is different: ask the builder about warranty terms and agree the change with whoever is responsible for machine safety. Safety functions are never connected to the data collection system.

How many machines should we connect first?

One line or cell with a clear problem: frequent stops, disputes about output, a bottleneck. A few machines are enough to test the sensors, gateway, data model and report. Once the data matches the shift sheet, apply the same pattern to the rest of the hall.

What should we do with the data once it flows?

Start with availability and a list of stops for the shift supervisor, because that person can react during the day. Then OEE per line under one definition, and only after that process parameters for quality and maintenance analysis. Data that nobody looks at is worth no longer collecting.

What it looks like in a project

Connecting the shop floor with your business systems? Talk to an engineer who has worked on MES and OT.

Let's talk

Read more: IT in manufacturing

All in IT in manufacturing →