A modern plant produces far more data than anyone looks at, since each controller holds thousands of values, such as temperatures, pressures, speeds, counts, valve positions and alarm bits, many of which change several times a second, and very little of it reaches production planning or the quality and finance teams.
Companies usually respond with a project to "connect the machines to the cloud". Many of these projects end with a data lake full of time series that the business cannot interpret, because a value named DB12.DBD40 with a number next to it answers no question a planner or quality manager would ask, and some also open a network path into the control system that the plant's engineers never approved.
We think integrating plant data is first a matter of context and boundaries and only then of connectivity. The decisions that need the most care are what each signal means and where the line between the control and business networks sits, and once those are settled the choice of protocols is comparatively easy.
In brief
- Operational technology and information technology are run to different priorities, and plant operators will rightly reject an integration that ignores safety and availability.
- Raw tag values are of no use outside the control room until they carry context, meaning the asset, unit of measure, machine state and production order they belong to.
- Context costs least to add close to the source, at an edge layer inside the plant, because the people who know the machines work there.
- Data should flow outward from the control network through a demilitarized zone, with each connection initiated from the more trusted side and, by default, no inbound path for commands.
- A first project should take one line and one question, such as why the line stopped, and build the model and pipeline for that question, with a named owner, before adding more.
How OT and IT differ
Operational technology (OT) is the hardware and software that monitors and controls physical processes, including sensors, drives, programmable logic controllers (PLCs), supervisory control systems and the networks between them. Information technology (IT) is the business computing most technology leaders know best, and the two differ in ways that affect nearly every integration design decision.
| OT | IT | |
|---|---|---|
| First priority | Safety and availability of the process | Confidentiality and integrity of data |
| Timing | Deterministic, cycle times in milliseconds | Best effort is usually acceptable |
| Lifecycle | Equipment runs for decades | Systems refreshed every few years |
| Change | Planned around production stops, sometimes yearly | Weekly or daily releases |
| Patching | Slow, often needs vendor approval and requalification | Routine |
| Failure | A stopped line or a physical hazard | A degraded service |
These differences explain behavior the IT side sometimes reads as obstruction, since a controls engineer who refuses to let an unvetted software agent onto the network that runs a furnace is doing what the role requires, and an integration design must accept that from the start.
The reference models worth knowing
Three standards give both sides a shared vocabulary.
The Purdue model arranges an industrial site in levels. Level 0 is the physical process with its sensors and actuators, level 1 is basic control (the PLCs) and level 2 is supervisory control (operator screens and SCADA). Level 3 is site operations, including manufacturing execution systems (MES) and historians. Levels 4 and 5 are the business and enterprise networks, and common practice puts an industrial demilitarized zone between levels 3 and 4 so that nothing in the business network talks directly to control systems.
ISA-95 (published internationally as IEC 62264) defines models and terms for the interface between enterprise and control systems. We regard its equipment hierarchy (enterprise, site, area, work center, work unit) as the most useful naming scheme a plant data project can borrow.
IEC 62443 is a series of standards covering the security of industrial automation and control systems. Its central idea is to group assets with shared security requirements into zones and to control the conduits between them.
For a data project, they mainly establish each system's level and the conduits the project would add.
Protocols: getting data out
Machines at the bottom of the hierarchy communicate over fieldbus and industrial Ethernet protocols such as Modbus, PROFINET and EtherNet/IP. They were designed for closed control networks, and the older ones have no authentication at all, so they should stay inside the plant. Two other technologies carry most of the data upward.
OPC UA is a platform-independent standard from the OPC Foundation, which has also been published as IEC 62541. Beyond transport, it defines an information model that exposes data as typed, browsable nodes with metadata. Authentication and encryption are part of the standard as well. Most current controllers and SCADA systems can run as OPC UA servers, and gateways cover older equipment.
MQTT, an OASIS standard, is a lightweight messaging protocol based on publish and subscribe. Devices publish messages to topics on a broker and every authorized subscriber receives them, which suits plant data because the publisher opens the connection outward and need not know who the consumers are. MQTT says nothing about what a payload contains, and that gap is filled by Sparkplug, a specification maintained at the Eclipse Foundation that adds a defined topic structure, a payload format and state management on top of MQTT, so subscribers know when a device comes online or drops off.
A common pattern combines the two: OPC UA or native drivers read from controllers inside the plant and MQTT publishes outward. Whether data should move continuously or in periodic batches depends on the decision it feeds, which is the argument of batch or streaming.
Adding context to raw tags
A tag is a named value in a controller. Its name was chosen by whoever programmed that machine, usually an equipment vendor, many years ago, so two identical filling machines bought three years apart often use different tag names for the same signal. The values may differ too, as when one machine reports temperature in Celsius as a floating point number and the other as an integer in tenths of a degree.
To be of use outside the control room, each value needs answers to five questions.
- Which asset? Site, area, line, machine and component, named consistently throughout.
- What quantity? A plain name, a unit and a data type.
- When? A timestamp from a synchronized clock, with a known meaning (the time of sampling, of change or of receipt).
- In what state? Whether the machine was running, idle, in changeover, in fault or in cleaning.
- Making what? The production order, product and batch, which usually come from the MES or the ERP.
The fourth and fifth answers turn a time series into information. A given motor current means one thing while the machine is producing and another while it is being cleaned, and a reject count says little until it is tied to a product and an order.
This context is best added at the edge, inside the plant, in a layer that maps raw tags to a model before anything is published. The reason is that the people who know that FIL2_ST_W03 is the state word for filler two, and that bit four means "starved for bottles", work in the plant, and if raw tags go to a central team instead, that knowledge has to travel by email.
Many plants organize this as a unified namespace, a single hierarchy of topics on a broker to which every system publishes its current state. It is an architectural pattern (neither a product nor a standard) with the usual costs of event-driven architecture, chiefly that someone has to own the topic structure and schemas.
Why did line three stop
Consider a mid-size packaged food manufacturer with four filling lines. Management wants the overall equipment effectiveness of each line, the measure that combines availability, performance and quality, and the first attempt connects a gateway to the line three controllers, forwards every tag to a cloud platform and builds a dashboard on top.
That dashboard shows the line "down" for a large part of each shift, and the plant manager is right to dismiss it, because the only signal used was "filler speed is zero" and the figure counts planned changeovers, cleaning and lunch breaks as downtime. Its count of units produced also disagrees with the ERP, since the bottle counter resets at each changeover and the pipeline read every reset as a negative count, and nothing in the data shows which product was running during a stop.
The second attempt works back from the plant's question to the tags, and the team and the line's controls engineer agree on a small model for line three:
topic: acme/pune/packaging/line3/filler
metrics:
state: {type: enum, values: [running, idle, changeover, cleaning, fault, starved, blocked]}
stop_reason: {type: string, source: operator panel code, mapped}
speed: {type: float, unit: bottles_per_min}
good_count: {type: counter, unit: bottles, reset: on_order_change}
reject_count: {type: counter, unit: bottles, reset: on_order_change}
order_id: {type: string, source: MES}
product_code: {type: string, source: MES}
timestamp: source clock, time synchronized, UTC
An edge application reads the raw state word and operator codes from the controller, maps them to these states, joins the current order from the MES and publishes the changes outward. Because each counter is declared with a stated reset rule, the pipeline computes deltas correctly across resets.
The stop report can now show that most unplanned stops on line three were "starved" stops, in which the filler, with no fault of its own, was waiting for bottles from the upstream machine, a finding the plant can act on. The work aims to cut the time engineers spend arguing about whether the number is right, and success would be judged by whether the downtime figures reconcile with the shift log and the ERP production count.
The model doubles as a data contract, because it tells a controls engineer who is about to change the PLC program what downstream consumers depend on.
Crossing the boundary safely
The security design comes down to four rules.
- Data flows out, meaning connections are initiated from inside the plant toward the demilitarized zone and from there to the business network or cloud, and the business side never connects into the control network.
- Reading is kept separate from writing. A data project needs read access only. Sending setpoints or recipes back to machines is a separate project that needs its own risk assessment and approvals and usually a human confirmation step, and should not arrive by default because the protocol happens to support it.
- Controllers have no direct cloud connection. Devices at levels 1 and 2 talk to an edge layer or a broker inside the plant and never straight to the internet.
- The edge stores and forwards. The edge buffers data whenever the link to the outside fails, which it will at some point, and replays it once the link returns, so that an outage does not become a data gap or, worse, a reason for the line to stop.
These rules are a cross-team standard, best agreed once within an enterprise integration strategy rather than by each project.
Where to start
- Pick one line and one question. Unplanned downtime by reason makes a good first question, with energy per unit and scrap by product as reasonable alternatives.
- Put a controls engineer and a data engineer together. The model above needed both, since neither could have written it alone.
- Adopt a naming hierarchy based on the ISA-95 levels and apply it to that line, writing it down as a standard with a named owner as part of your data governance.
- Draw the network path on the Purdue levels and have plant security approve the conduits before anything is bought.
- Build the edge mapping and one pipeline into your existing data platform, and test it for counter resets, clock drift and gaps, since this is ordinary data engineering applied to an unusual source.
- Reconcile against a trusted record (the shift log or the ERP confirmations) before anyone is shown a dashboard.
- Add further lines only after that, reusing the model built for the first.
The business systems on the other side of the boundary (MES, ERP, maintenance, quality) are connected in a separate systems integration workstream, and our manufacturing page has more on the sector.



