Skip to content
watt2work
Back to the blog

How do you reuse a digital twin on a second production line?

Moving a barcode reader makes a second packaging line count a carton too early. Which rules and acceptance tests can the team carry over from its digital twin?

Watt2Work5 min read
Share via QR code
A carton rests on a flat conveyor belt beside a monitor showing a three-dimensional drawing of the belt and carton.
The model shows where the carton sits on the belt. Counting it as complete also takes confirmation that the next station received it. AI-generated illustration.

The screen says one carton is complete. The carton is still on the conveyor, waiting for the next station. On the first packaging line the barcode reader sat at the exit. On the second, the reader sits farther upstream, with room for cartons to wait before discharge. An engineer who copied the first line’s model can follow that one carton to find the work that needs doing again.

The most valuable things to carry over are the rule for counting a completed carton and the examples that test it. The team still has to establish which event on the second line satisfies that rule.

Line A, Line B, the carton identifier, the work order and the sequence of events were created for this example. The counts are expected test outcomes. Both illustrations were generated with AI for this article.

Where is the carton when the barcode is read?

Top views of two lines, with arrows pointing right. The scan line sits just before the handover boundary on the upper line and several carton lengths upstream on the lower line.
Cartons move left to right. The dashed line marks the barcode scan. The solid vertical line on the right marks the transfer to the next station. On Line A (top) these points sit close together. On Line B (bottom) a scanned carton has room to wait. AI-generated schematic.

On both lines, the manufacturing execution system (MES) keeps the completed-carton count for each work order. The production lead gives the team a simple rule. Count each carton once, when the next station confirms receipt. On Line A, scanning and handover happen in quick succession. A team that tests only an uninterrupted run can easily miss the distinction.

On Line B, carton K-17 can be scanned and then wait in the buffer. If the team copies the old mapping, the MES adds one carton to work order WO-42. The receiving station’s log is still empty. The reader really did see the carton. The count went up early because the model interpreted “scanned” as “received.”

What can the team take from the first model?

In virtual commissioning, engineers can test how control software behaves against a model of the line before the physical installation is ready. Here the offline part of the digital twin represents carton position, the reader and the receiving station’s acknowledgement. Those details matter to the counter. A detailed physical model of the conveyor motor would answer a different engineering question. NIST AMS 400-2 · Chalmers University of Technology

Illustrative engineering decisions when moving from Line A to Line B.
What Line A providesWork to do on Line B
One carton, one handover, one countConfirm with the production lead that both work orders use the same definition of handover.
Models of conveyor and reader behaviorUpdate the buffer and reader position to match the layout of Line B.
Event mapping between the programmable logic controller (PLC) and the MESCheck which station produces each scan and handover on B and how each event identifies the carton and its work order.
Tests for a normal run and repeated scansKeep the expected outcome. Rerun the tests with B’s events and add a case for a carton waiting in the buffer.

A signal can keep its name across projects even after the reader has moved. A useful mapping record tells the engineer which physical point the signal represents, which production decision uses it and which revision of the layout the team checked.

Three checks with a single carton

Start the WO-42 count at zero in the offline model and follow carton K-17 through these events in order. Ask the production lead to write the expected totals before the run. That gives the team a reference independent of what the screen happens to show.

Three consecutive events for K-17 and the expected running total after each one.
Event in the modelWO-42 countReason
K-17 is scanned and waits in the buffer.0The receiving station has yet to acknowledge it.
The next station confirms receipt of K-17.1This is the first valid handover for this carton.
The same handover message arrives a second time.1This carton has already been counted on this work order.

A count of one on the first row tells the team to inspect where the scan feeds the counter. A count of two on the last row means the same handover was processed twice. A smooth demonstration run could hide either error. Save the model revision, event mapping and test sequence with the result. The next time the layout changes, the team can ask the same question again.

What still needs checking on site?

Even if the model returns all three expected totals, the team still needs to establish where the reader is installed and which station actually confirms receipt. The commissioning lead can compare the current layout with timestamped records from an authorized test carton. The production lead checks that the carton appears once on the correct work order. The handover file records the layout revision, result and person who accepted it.

To estimate how much engineering work carried over, open the records from two comparable installations. Count the person-hours spent adapting the model, mapping signals and rerunning acceptance tests separately. Mark the tests engineers had to reopen on site. Where the scope changed, identify the part of the effort that went into new work. The next project estimate can then draw on what the team actually did.

Put the two line layouts side by side and pick one carton. Which two records let you point to where it was scanned and where the next station received it?

Sources

The NIST report describes how to define a manufacturing digital twin around a use case. Research at Chalmers University of Technology examines how to test control software against a model before installing a production station. Watt2Work developed the carton example and its acceptance criteria for this article.

  1. NIST AMS 400-2 · Use Case Scenarios for Digital Twin Implementation Based on ISO 23247
  2. Chalmers University of Technology · Towards an integrated framework for modeling, control, and validation of production systems