Learn PLCs free
Programming Guides13 min read4 722 words

Digital Twin in Manufacturing: How It Works and the Plant-Floor Data Path

Digital twins in manufacturing — types, use cases, benefits, and the real data pipeline that feeds them: PLC tags and sensors through OPC UA to the twin model.

IAE
Senior PLC Programmer
15+ years hands-on experience • 50+ automation projects completed
PLC
Programming Excellence

A digital twin in manufacturing is a real-time virtual model of a physical asset, process, or system that receives continuous data from its physical counterpart and uses that data to monitor performance, run simulations, and predict future states — enabling decisions that would be impossible or unsafe to test on live equipment.


What Is a Digital Twin in Manufacturing?

The term "digital twin" was popularized in aerospace and has since become one of the defining concepts of Industry 4.0. In a manufacturing context, a digital twin is not a static 3D model or a one-time simulation export. It is a living model — one that ingests live sensor readings, PLC tag values, and process telemetry on a continuous basis and reflects the current physical state of the asset or system it represents.

The key distinction that separates a genuine manufacturing digital twin from a CAD model or off-line simulation is bidirectional data synchronization. The physical asset drives the model. The model, in turn, generates insights — anomaly alerts, predictive maintenance forecasts, process optimization recommendations — that feed back to the physical world through engineering decisions or, in more advanced deployments, closed-loop control.

Digital twins are not a single technology. They sit at the intersection of industrial communication protocols, data historians, physics-based simulation, machine learning, and visualization tooling. Understanding what each layer contributes is essential before any deployment decision — and that understanding starts with the data path that makes the twin live.

Manufacturing digital twin data pipeline: PLC tags through OPC UA historian to twin model and analytics A horizontal flow diagram showing how PLC tag data travels through OPC UA, a time-series historian, and into a digital twin model that outputs predictive maintenance and process optimization insights. Manufacturing Digital Twin — Live Data Pipeline PLC / Sensors Position tags Speed / torque Temperature Vibration Alarms / counters 100 ms–1 s OPC UA Subscriptions MonitoredItems Historical Access Historian Time-series DB AVEVA PI / Ignition MQTT broker Twin Model Physics-based Data-driven ML Hybrid model State update loop Continuous sync Insights Predictive maintenance RUL estimates Process optimization Root cause analysis Dashboard / alerts

Tag selection, sampling rates, and OPC UA namespace design determine twin fidelity

Manufacturing digital twin data pipeline — PLC tags and field sensors through OPC UA subscriptions and a time-series historian into the twin model, generating predictive maintenance and process optimization insights.

Types of Digital Twins in Manufacturing

The manufacturing industry uses four recognized levels of digital twin, each with a different scope and data complexity.

Component Twin

A component twin models a single physical part — a motor, a bearing, a valve, a servo drive. It is the simplest level and often the starting point for organizations building toward broader twin coverage. Component twins are well suited to predictive maintenance use cases because the twin aggregates vibration, temperature, current draw, and runtime data for a single replaceable unit and compares that profile against known-good baselines.

Asset Twin

An asset twin models a complete machine or piece of equipment — a CNC machining center, a robot cell, an injection molding press. Multiple component twins may contribute to a single asset twin. At this level the twin can represent the full operational state of a machine: axes in motion, spindle load, coolant flow, alarm registers, and cycle counts. Asset twins are the most common deployment in discrete manufacturing because the scope maps naturally to a single line item on a maintenance budget.

Process Twin

A process twin models a production process rather than a physical machine — the sequence of operations, throughput rates, queue depths, quality yields, and energy consumption across multiple assets. Process twins are common in continuous and batch manufacturing (chemicals, food and beverage, pharmaceuticals) where the interaction between unit operations matters as much as the behavior of any individual piece of equipment. For discrete manufacturers, a process twin might cover a weld cell or a paint line as an end-to-end flow.

System Twin (Factory Twin)

A system twin or factory twin integrates asset twins and process twins into a plant-wide model. It represents the full production environment — material flow, logistics, energy, and maintenance — and enables facility-level simulations: what happens to throughput if one press goes offline, or if a supplier disruption reduces raw material availability by 30 percent? System twins require the most data infrastructure but deliver the widest strategic value.

Four types of manufacturing digital twins: component, asset, process, and system twin scope hierarchy A vertical stack hierarchy showing the four levels of manufacturing digital twins from a single component bearing up through asset machine, process production line, to system factory twin. Four Types of Manufacturing Digital Twins System / Factory Twin Full plant: material flow, logistics, energy, maintenance, all assets Use case: throughput simulation, disruption planning Process Twin Production process: throughput, queue depth, quality yields, energy Use case: weld cell, paint line, batch reactor optimization Asset Twin Complete machine: CNC machining center, robot cell, injection press Use case: predictive maintenance, virtual commissioning Component Twin Single part: motor, bearing, valve, servo drive Use case: RUL estimation, vibration signature monitoring
Four manufacturing digital twin levels — from a component twin monitoring a single bearing up through asset, process, and full factory system twin scope.

How a Digital Twin Works

At its core a digital twin operates through a continuous loop:

  1. Sense — physical sensors and PLC outputs capture real-world state.
  2. Transmit — industrial communication protocols carry that state to software layers outside the control network.
  3. Model — a software representation ingests the transmitted data and updates internal state.
  4. Analyze — analytics, physics-based simulation, or machine learning runs against the updated model.
  5. Act — results surface as dashboards, alerts, recommendations, or closed-loop control signals.

The fidelity of the twin depends directly on the quality, latency, and completeness of step 2. This is where the controls engineer's role becomes decisive — and where most vendor explainers stop short of the actual detail.


How Plant-Floor Data Feeds a Manufacturing Digital Twin

This is the section that matters to anyone responsible for building or maintaining the data pipeline. The twin is only as good as what reaches it.

Step 1 — PLC Tags and Field Sensors at the Source

Every measurable state in a modern manufacturing cell is represented as a PLC tag — a named memory address that holds the current value of an input, output, internal register, or derived calculation. A servo axis position is a tag. A conveyor belt running status is a tag. A weld current setpoint is a tag. A temperature reading from a PT100 input card is a tag.

Field sensors that are not wired directly to a PLC input card — standalone IIoT sensor nodes, HART-over-4–20 mA instruments, smart actuators on IO-Link — either publish directly to the network layer or are aggregated by an edge device that presents them alongside PLC tags in a unified namespace.

Tag selection matters. Not every tag in a PLC program is useful to the twin. A controls engineer performing a tag audit for a digital twin project typically categorizes tags into:

  • High-frequency process variables (position, speed, force, pressure, temperature) — sampled at 100 ms to 1 s intervals for physics-model fidelity.
  • State and mode registers (machine mode, recipe number, alarm bits) — sampled at 1–5 s intervals for context.
  • Counters and accumulators (cycle count, part count, energy meter) — logged on change or at 1-minute intervals for performance analytics.
  • Quality and traceability data (vision inspection results, torque records, SPC measurements) — logged per-part or per-batch.

Poor tag selection is one of the most common causes of a digital twin that looks impressive in a demo but delivers no operational insight in production.

Step 2 — OPC UA as the Protocol Bridge

OPC UA (OPC Unified Architecture, IEC 62541) is the dominant standard for carrying PLC tag data from the control layer to higher-level systems in modern industrial environments. It replaced proprietary OPC Classic (DCOM-based) and is now the primary connectivity layer between PLCs and any software that consumes live process data — historians, MES platforms, cloud connectors, and digital twin engines.

An OPC UA server runs on the PLC, on a dedicated gateway, or on an edge PC connected to the control network. The server exposes a structured address space — a hierarchical namespace where each node represents a tag, a device property, or a method. An OPC UA client (the historian, the cloud connector, or the twin platform itself) subscribes to nodes and receives change notifications when tag values update.

For digital twin data pipelines the two most important OPC UA features are:

  • Subscriptions and MonitoredItems — rather than polling every tag on a fixed cycle, the client tells the server which tags to watch and at what sampling interval. The server delivers a notification only when a value changes beyond a defined deadband. This dramatically reduces network traffic compared to polling while preserving data fidelity for fast-moving process variables.
  • Historical Access (HA) — OPC UA's built-in historical access service allows the twin engine to backfill data it missed during a network interruption or to retrieve a time-series window for model initialization. This is essential for physics-based twins that need a run-in period of historical data before their state estimates become reliable.

PLC vendors including Siemens (S7-1500 integrated OPC UA server from firmware 2.0), Allen-Bradley (via FactoryTalk Linx Gateway), Beckhoff (TwinCAT OPC UA server), and Mitsubishi (via MX OPC UA module) all offer OPC UA server implementations. For PLCs without native OPC UA support, software gateways translate proprietary protocols (EtherNet/IP, PROFINET, Modbus TCP) into OPC UA on an edge device — a common pattern when integrating legacy equipment into a new twin project. This is covered in detail in the IIoT PLC integration guide.

Step 3 — Historian or Message Broker: Temporal Storage Before the Twin

Raw OPC UA streams are rarely consumed directly by the twin model. A persistence layer sits between the protocol bridge and the modeling engine.

Process historians (time-series databases optimized for high-frequency industrial data) store every tag value with millisecond timestamps. They provide the twin engine with a queryable time-series API, handle data compression without losing resolution for fast transients, and act as a buffer when the twin engine is offline for maintenance. OSIsoft PI (now AVEVA PI System), Aveva Historian, Ignition's Tag Historian, and open-source options such as TimescaleDB and InfluxDB are common choices at this layer.

Message brokers (MQTT brokers, Apache Kafka clusters, or cloud-native event streams such as AWS IoT Core or Azure IoT Hub) are used when the architecture prioritizes low-latency event delivery over queryable historical storage — common in edge-to-cloud twin architectures where the twin model runs in the cloud and latency between event and model update is a design constraint.

Many production architectures use both: the historian preserves the full time-series record for analytics and compliance, while the broker delivers real-time events to the twin engine.

Step 4 — The Twin Model Ingests and Updates State

The twin model itself can take several forms depending on the use case:

  • Physics-based models (finite element analysis, kinematics, thermodynamics) represent the governing equations of the physical system. They are accurate but computationally expensive and require significant engineering effort to build and validate.
  • Data-driven models (machine learning regression, neural networks, statistical process models) are trained on historical tag data and learn the input-output relationships of the real system without requiring explicit physics equations. They are faster to build and update but require large amounts of high-quality training data.
  • Hybrid models embed a simplified physics structure and use data-driven methods to tune the model's parameters continuously as operating conditions drift.

The model update rate — how often the twin refreshes its state from incoming data — is a design parameter that must balance computational cost against responsiveness. A predictive maintenance twin monitoring bearing condition may update every 10 minutes. A virtual commissioning twin shadowing a live robot cell may need sub-second synchronization.


Virtual Commissioning: The Controls Engineer's Use Case

Virtual commissioning is the practice of testing a PLC program and HMI configuration against a digital twin of the machine before the physical hardware exists or is available on the factory floor. It is one of the highest-value near-term applications of digital twin technology for controls engineers and integrators.

Virtual commissioning workflow: CAD export, physics simulation, PLC OPC UA connection, sequence validation, and site handover A five-step horizontal flow diagram showing the virtual commissioning process from CAD model export through physics configuration, PLC connection, logic validation, and final site commissioning. Virtual Commissioning Workflow — Controls Engineer Perspective 1. CAD Export Mechanical team exports machine model to sim environment 2. Physics Config Mass, inertia, friction, actuator force curves, signal I/O map 3. PLC Connect OPC UA or soft-PLC image runs real program against sim I/O 4. Validate Logic Sequences, safety interlocks, motion profiles, HMI fault scenarios 5. Site Commissioning 60–80% of logic bugs removed before hardware ships to site

Virtual commissioning compresses on-site startup time by 30–50% on complex machinery

Virtual commissioning workflow — from CAD export through physics configuration, PLC-to-simulation OPC UA connection, and logic validation, eliminating 60–80% of FAT bugs before site delivery.

In a traditional project timeline, PLC programming and physical machine build happen in parallel. The first time the program runs against the real machine is during Factory Acceptance Testing (FAT), often on a tight schedule with the customer present. Bugs found at FAT are expensive: travel costs, schedule pressure, and the risk of discovering a fundamental design error after steel is cut.

Virtual commissioning moves FAT earlier. The PLC program connects — via OPC UA or a vendor-specific simulation interface — to a kinematics and physics model of the machine. The control logic sees simulated I/O that responds to outputs exactly as the real hardware would. Sequence logic, safety interlocks, motion profiles, and HMI behavior can all be validated before the first piece of physical hardware is commissioned.

The controls engineer's workflow in a virtual commissioning project typically follows this sequence:

  1. Mechanical design team exports the machine model from CAD to a simulation environment.
  2. The simulation environment is configured with physics properties (mass, inertia, friction, actuator force curves) and a signal interface that maps simulation states to PLC I/O addresses.
  3. The PLC is connected to the simulation via OPC UA or a virtual PLC rack (software PLC running the real program image).
  4. The controls engineer runs through the full operating sequence, fault scenarios, and safety function tests against the simulated machine.
  5. Findings are documented and the program is corrected before shipping to site.

Virtual commissioning does not eliminate physical commissioning — mechanical tolerances, sensor calibration, and real-world disturbances still require on-site validation — but it reliably moves 60–80% of logic bugs into the development phase where they are far cheaper to fix. The digital twin that supports virtual commissioning often becomes the long-term operational twin for predictive maintenance after the machine enters production.


Key Use Cases for Digital Twins in Manufacturing

Virtual Prototyping and Product Development

Before a component design is committed to tooling, a digital twin of the manufacturing process can evaluate whether the proposed geometry, material, and tolerance stack can actually be produced at the required yield. Process simulation identifies interference risks, thermal distortion effects, and fixturing challenges at the design stage rather than during first article inspection.

Predictive Maintenance

A component or asset twin that tracks vibration signatures, thermal profiles, motor current harmonics, and cycle fatigue accumulation can predict failure windows with enough lead time to schedule maintenance during planned downtime rather than responding to unplanned stops. The twin does not simply monitor thresholds — it maintains a model of degradation and estimates remaining useful life. For the data pipeline discussion above, this use case depends heavily on high-frequency sensor data from accelerometers and temperature transmitters feeding through the OPC UA subscription layer.

Process Optimization

A process twin fed with quality measurement data alongside process parameter histories can identify correlations that are invisible to operators managing one variable at a time. Weld spatter rates correlated with wire feed speed and shielding gas flow across ten thousand cycles reveal optimal parameter windows that improve first-pass yield without requiring designed experiments on the live line.

Factory Layout Planning and Throughput Analysis

A system twin that represents material flow, machine cycle times, buffer capacities, and shift schedules enables plant engineers to simulate the impact of layout changes, product mix shifts, or new equipment introductions before any capital is committed. This application does not require real-time data synchronization — it uses historical throughput data to calibrate a discrete-event simulation model. The manufacturing automation guide covers the workflow design principles that underpin this use case.

Remote Monitoring and Operator Support

A synchronized asset twin enables remote experts to observe machine state in real time without physical presence. This is particularly valuable for distributed fleets — packaging machines, compressors, HVAC units — where the cost of on-site diagnosis for every fault is prohibitive. The twin provides the context needed to diagnose a fault pattern remotely and dispatch a technician with the right parts and a validated repair procedure. AI in industrial automation is increasingly being used to layer anomaly detection and root-cause analysis on top of the raw twin data stream.


Benefits of Digital Twins in Manufacturing

Reduced unplanned downtime is the most frequently cited and most readily quantified benefit. A twin that provides 48–72 hours of warning before a bearing failure allows maintenance to be scheduled on the next planned shutdown rather than the next unplanned stop, eliminating both the direct cost of the unplanned event and the production loss.

Shorter commissioning timelines are delivered by virtual commissioning projects that shift debugging effort earlier in the project schedule where it costs less to resolve.

Improved product quality results from process twins that maintain tighter operating windows by surfacing parameter drift before it crosses into out-of-spec territory.

Faster root cause analysis is enabled because the twin retains a complete time-series history of all process variables leading up to a quality escape or machine fault, removing the guesswork that characterizes post-incident investigations on plants without comprehensive data historians.

Reduced energy consumption is achieved by system twins that identify non-productive load — motors running under no load, compressed air leaks driving compressor runtime, HVAC systems overcooling unoccupied areas — by correlating energy meter data with production state.

Manufacturing digital twin benefits: downtime reduction, commissioning speed, quality improvement, root cause analysis, energy savings A horizontal bar chart comparing the relative business impact of five key digital twin benefits in manufacturing: unplanned downtime reduction, commissioning time savings, product quality improvement, root cause analysis speed, and energy waste reduction. Digital Twin Business Impact — Key Manufacturing Benefits

Unplanned Downtime Reduction Very High

Commissioning Time Savings High (30–50%)

First-Pass Quality Yield High

Root Cause Analysis Speed High (weeks → minutes)

Energy Waste Identification Medium–High

Impact magnitude based on industry deployment case studies; results vary by asset type and data pipeline maturity

Manufacturing digital twin benefits ranked by business impact — unplanned downtime reduction and commissioning time savings deliver the highest near-term ROI in most discrete manufacturing deployments.

Knowledge transfer and training are supported by twins that allow new operators and engineers to explore machine behavior and fault scenarios in simulation without risk to production equipment or personnel safety.


Implementation Challenges

Data Infrastructure Gaps

The single most common obstacle is the absence of a reliable, structured data path from PLC to historian. Legacy PLCs without OPC UA support require gateway devices and careful network segmentation. Plants with flat, undocumented network topologies require significant infrastructure work before any twin project can begin. An honest data infrastructure audit — covering network topology, PLC firmware versions, existing historian coverage, and tag naming conventions — should precede any twin project scope definition.

IT/OT Network Convergence

OPC UA communication from the OT network to historian or cloud layers crosses the IT/OT boundary, which carries cybersecurity implications. Unmanaged data flows from the control network to enterprise or cloud systems create attack surface. Industrial DMZ architectures with a data diode or one-way gateway are the established pattern for managing this boundary without blocking the data flows the twin depends on.

Model Maintenance

A physics-based twin built to represent a machine at commissioning drifts from reality as mechanical wear, replacement components, and process recipe changes accumulate. Maintaining model accuracy requires a defined update process and engineering ownership — the twin is a living asset, not a one-time deliverable. Data-driven and hybrid models partially address this through continuous re-training, but they require ongoing data quality monitoring to avoid silent model degradation.

Organizational Readiness

Digital twin projects require collaboration between controls engineers, IT infrastructure teams, data engineers, and domain process experts. Organizations where these groups operate in siloed reporting structures — with different budget owners and conflicting priorities — frequently stall at the data pipeline layer. Defining ownership of the OPC UA namespace, the historian configuration, and the twin model update process at project outset is as important as any technical decision. Understanding the digital twin vs simulation distinction also matters for aligning stakeholder expectations early.

Return on Investment Clarity

Without a clear definition of which decisions the twin will improve and how that improvement translates to measurable value, digital twin projects accumulate cost without delivering outcomes. The most successful deployments start narrow — a single asset twin focused on one measurable KPI — and expand only after demonstrating value at the initial scope.


Frequently Asked Questions

What is a digital twin in manufacturing?

A digital twin in manufacturing is a real-time virtual model of a physical asset, process, or system that receives continuous data from sensors and PLC outputs, reflects the current state of its physical counterpart, and enables monitoring, simulation, and prediction without interacting with the live equipment.

What are the types of digital twins in manufacturing?

The four recognized types are component twins (a single part such as a bearing or motor), asset twins (a complete machine or piece of equipment), process twins (a production process across multiple assets), and system twins (a plant-wide model integrating assets, processes, material flow, and logistics).

How does a digital twin get its data?

Plant-floor data originates as PLC tag values and field sensor readings. OPC UA carries that data from the control layer to a process historian or message broker. The twin model subscribes to the historian or broker, ingests the time-series data, and updates its internal state on a continuous basis. The controls engineer defines which tags to expose, at what sampling rates, and through which network path — decisions that determine the quality and completeness of the twin's live data feed.

What are the benefits of a digital twin in manufacturing?

The primary benefits are reduced unplanned downtime through predictive maintenance, shorter project commissioning timelines through virtual commissioning, improved product quality through tighter process control, faster root cause analysis through complete data historization, reduced energy consumption by identifying non-productive loads, and improved knowledge transfer for engineering and operator training.

#digitaltwin#digitaltwin manufacturing#industry4.0#OPCUA#virtualcommissioning#smartmanufacturing
Share this article:

Related Articles