Skip to content

Digital twin: what it is used for in manufacturing

B2Bnetwork team · · 6 min

IT in manufacturing

In brief

A digital twin is an electronic representation of a real machine, line or process, fed with data from that object, that lets you observe its state and how it changes. In manufacturing it is used for virtual commissioning of a line before assembly, for testing MES and control software on simulators instead of on a running shop floor, for comparing actual operation with the model in maintenance and for checking plan changes before they go live. A twin's value comes from the decision it supports, not from the fidelity of its 3D graphics.

What a digital twin is

In its report IR 8356, NIST describes digital twins as electronic representations of real-world entities that let you observe their state and changes of state. In practice a twin has three elements: a model of the object, data from that object and a connection that keeps the model in line with reality.

The term is used loosely, so it helps to separate it from related things:

What it isData from the objectWhat it is for
CAD or 3D modelnonemachine design and documentation
Simulationnone, or historical datacomparing options before a decision
Digital shadowlive, one wayviewing state and analysis
Digital twinlive, model updated with dataassessing state, forecasting, decisions that flow back to the object

A twin does not have to look like the machine. A thermal model of a furnace written as a few equations and fed with temperature readings is a full twin if it lets you predict when the charge will reach temperature.

What it is used for in manufacturing

UseWhat is modeledWhich dataWhat it gives you
Virtual commissioningline, control logic, roboticscontroller program, input and output signalsprogram errors surface before assembly, not during startup
MES and integration testingmachines as signal generatorsstates, counters, alarmstesting without stopping production
Condition monitoringmachine behavior in normal operationvibration, temperature, currentdeviation from the model as an early warning of a fault
Planning and what-if analysismaterial flow, buffers, changeoverscycle times, plan, downtimeassessing a plan or layout change before rollout
Operator trainingpanel and process responsefailure scenariospracticing situations you do not want to trigger on the shop floor

The second row usually pays back fastest. A team testing a new MES version on virtual machines can also check scenarios that are hard to trigger on the shop floor: a dropped link, an alarm in the middle of an order, two signals in the same millisecond. That is how MES test automation with virtual machines was built. The third row links the twin to predictive maintenance.

What it consists of

A typical twin in a plant has five layers:

  1. Model: physical (equations, simulation), logical (a machine state machine) or statistical (a model trained on data).
  2. Data: readings from controllers and sensors, most often over OPC UA. The OPC UA information model and companion specifications for groups of machines give you a ready structure to start from. Details are in the article OPC UA and MQTT.
  3. Synchronization: the mechanism that updates the model's state and keeps time, units and identifiers consistent.
  4. Analytics: comparing model and measurement, forecasts, scenarios.
  5. Interface: what the process engineer, planner or service technician sees, plus any commands flowing back to systems.

Object identifiers are best based on the plant hierarchy (plant, hall, line, machine), the same one MES and ERP use. Otherwise the twin becomes yet another data island.

Synchronization frequency matters too. A twin for planning changes can update once per shift, because the planner looks a day ahead. A twin for monitoring a compressor's condition needs data every few seconds, and a virtual machine for testing control logic has to respond in real time. This requirement shapes the architecture more than the choice of modeling tool.

How to start: one goal, one object

  1. Name the decision. “Will changing the order sequence shorten changeovers on line 2” is a goal. “A digital twin of the plant” is not.
  2. Set the fidelity you need. Planning needs cycle and changeover times. Virtual commissioning needs every controller signal.
  3. Collect the data and check its quality. Gaps, clock drift and inconsistent units break a model faster than errors in the equations.
  4. Build a minimal model and compare it with reality. Replay a few weeks of history on the model and check how far the result is from what happened on the shop floor.
  5. Plan for maintenance. Every change to the machine, the controller program or the recipe has to reach the model, or the twin stops being a twin.

Virtual machines are also useful for embedded software, where tests on a simulator come before tests on a bench with real hardware, as we describe in the article Embedded software: HIL testing.

Risks: accuracy, security and upkeep

The NIST IR 8356 report highlights two groups of issues: trust in the twin and its security. Trust starts with accuracy. A model that drifts away from reality leads to bad decisions more confidently than having no model, because the result looks credible. That is why accuracy has to be measured continuously, not only at acceptance.

Security is a particular concern for two-way twins. If the twin can change machine setpoints, it becomes a channel into the controller and must be treated as part of the OT network: in the right zone, with access control and change logging. The rules for splitting the network are described in the article OT security in the plant. NIST also reminds readers to physically protect the hardware the twin runs on, because physical access is often enough to get around many digital safeguards.

Questions and answers

What is the difference between a digital twin and a simulation?

A simulation runs on assumptions or historical data and is used to compare options. A digital twin is permanently connected to the real object and updated with its data, so it shows the current state and lets you forecast what happens next. The same simulation becomes part of a twin once a live data stream from the machine starts feeding it.

Does a digital twin require a 3D model?

No. A 3D model helps with virtual commissioning of robotics and with operator training, but in maintenance or planning a logical or statistical model and good data are enough. Graphics are the most expensive and least necessary part of many projects, so they are worth adding only when they support a specific decision.

Does a mid-sized plant need a digital twin?

Usually not a full twin of the whole plant. What pays off is a twin of one object with a clear goal: virtual machines for MES testing, a model of the compressor room for maintenance or a line model for changeover planning. The prerequisite is automated data collection from machines, so that step has to come first.

How does a digital twin help with software testing?

It stands in for machines you cannot stop or break for the sake of a test. A virtual machine generates the same signals as the real one, including in failure situations, so MES, SCADA or controller software can be tested automatically, repeatably and in a CI pipeline. Tests on the real line are left for final acceptance.

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