A digital twin isn't a 3D rendering for the boardroom. It's a living copy of your line, wired to the real thing, that tells you what's happening, what just happened and what to look at next. Here's what that looks like on a bottling line, and how to build one in Nexus.
By the Airogine team7 min read
Line 1, a PET bottling line, running live in Nexus. Click any machine and the panel on the right follows it.
Meet Line 1
Line 1 bottles soft drinks in Hall B. Syrup leaves tank T-100 and meets water in blender M-100. From there, every bottle runs the gauntlet:
filled, capped, labelled, checked by a camera, packed into cases and stacked onto pallets by a robot arm.
T-100Syrup tank
M-100Blender
F-200Filler
C-300Capper
L-400Labeller
V-500Inspector
P-600Case packer
R-700Palletizer
In the twin, all of that fits on one screen. Each machine carries a small readout with the number that matters most for it: the tank's
level, the blender's pressure, the fill volume (499.6 mL, if you're wondering), the capper's torque, the inspector's rejects, cases
packed and pallets built. A green tag says Running. When a machine is starved, blocked or faulted, its colour tells you before you've read a
word.
Across the top is the line's scorecard: OEE against target, availability, performance, quality, good bottles against the shift plan, and
energy per thousand bottles. Under the drawing is the story of the shift: output by hour against plan, line speed against setpoint, and where
the downtime went.
Then there's the part everyone enjoys. Click the capper and the panel on the right becomes the capper: its rate, drive
temperature, availability, and the last fifteen minutes of drive temperature. Click the palletizer and the panel follows. Nobody digs through
a menu or remembers a tag name. You point at the machine you're curious about.
So what is a digital twin, really?
Take away the buzzwords and a digital twin is three things working together:
A model
What the machines are, how they connect and what each one measures.
A pulse
The model's numbers are the machine's numbers, right now.
A memory
History to compare against, targets to judge by, alarms that speak up.
A drawing without data is a poster. Data without a model is a spreadsheet. A twin is where the two meet, and that's what makes it useful:
you can ask it questions. Are we on plan? Which machine is costing us the most time? Was the capper running hot before it started
tripping?
A twin doesn't need to look real. It needs every number on it to be real.
Notice what isn't on that list: photorealism. The Line 1 twin is a clean, simple drawing, and it works because every number on it comes
straight from the line controller.
Why so many twins never leave the slide deck
Most twin projects don't fail because of the drawing. They fail because of the plumbing. The data lives in a PLC, a historian, a
spreadsheet of shift targets and a maintenance log. The twin is built by a separate team in a separate tool, opened in a special client on a
few PCs, and quietly goes stale the first time the line changes.
The fix is to build the twin where the data already lives: in the platform that talks to your PLCs, records your history and raises your
alarms. Then the twin isn't a project. It's just another screen.
Building Line 1 in Nexus
Here's how a line like this comes together in Nexus, from the first tag to the finished screen.
Connect the line
Nexus speaks the protocols already on your floor: Modbus, S7, EtherNet/IP, OPC UA and MQTT. Point it
at the line controller and every value you care about becomes a tag.
No PLC yet? Start with the built-in simulator and build the whole twin before the line is commissioned. When the hardware arrives,
switch the tags to the real device and everything you built keeps working.
Model each machine once
A filler, a capper and a labeller are all, at heart, a machine with a state, a rate, a drive and some counters. Describe that once as a template, with its tags, alarms and parameters, and create an instance for each machine on the line.
Need a capper with an extra torque reading? Make a Capper template that extends Machine and adds just that. Improve the template and every
machine on the line gets the improvement.
Turn signals into answers
Raw signals become the numbers on the scorecard through expression tags. Availability is run time over planned time. Performance is actual
speed over ideal speed. Quality is good bottles over all bottles. Multiply the three and you have OEE:
Energy per thousand bottles works the same way: the energy meter divided by the good-bottle count. Every derived number is a tag like any
other, so you can trend it, alarm on it and report on it.
Draw the twin
Nexus views are built in the browser. Drop in a drawing of your line as the backdrop, then place symbols and readouts on top. Tanks,
conveyors, fillers, cappers and case packers are already in the symbol library, ready to show running, stopped and fault. KPI tiles hold a
value, a target and a progress bar. Bind each one to its tag and it comes alive.
The click-a-machine trick is a view property. Clicking a machine sets which one is selected, and the panel on the right reads that
machine's tags through the property. One panel serves every machine.
Give it a memory
The historian records every tag value, so the twin can look back as easily as it looks at now. The drive
temperature trend, line speed against setpoint, output by hour with OEE on a second axis, and the downtime breakdown are all drawn from
that history. The same numbers go into shift reports that send themselves when the shift ends.
Teach it to speak up
A twin that only shows things still needs someone watching it. Alarm rules do the watching: a capper torque
fault, a labeller temperature drifting, a process value out of its band. Each alarm has a priority and can be acknowledged or shelved right
from the twin. If nobody responds, it escalates to whoever is on call.
Let the assistant sketch the first draft
Describe the screen you want and the AI assistant builds a draft from your real tags. It's a quick
way to get a first layout onto the canvas, and nothing reaches operators until you publish.
What changes when the line has a twin
Look at the downtime panel in the video. This shift, the line has lost 73 minutes, and the twin already knows where they
went:
Changeover25 min
Labeller jams21 min
Capper torque12 min
Preforms short9 min
Other6 min
Downtime this shift on Line 1, largest first
Nobody had to put that report together on Monday. It's on screen while the shift is still running, so the conversation about labeller jams
can happen while the jams are still happening.
A few things teams notice once a line has a twin:
Dips explain themselves. The 08:00 bar in the output chart sits below plan, and OEE dips with it. Open the line speed history
for that hour and the stops behind it are right there.
Everyone sees the same line. The operator at the filler, the supervisor on a tablet and the maintenance lead at home see the
same live numbers, in a browser. There's nothing to install.
Targets stop being abstract. Every tile shows its target, so "are we having a good shift?" is answered at a glance.
New starters learn faster. The twin is a map of the line that explains itself. Click around and you learn what each machine
does and what normal looks like.
Energy becomes a production number. Kilowatt-hours per thousand bottles, right next to OEE, turns energy into something the
shift can act on.
Changes are cheap. A new machine is a new template instance and a new symbol on the drawing. The twin keeps up with the line,
not the other way round.
Start with one line and one question
The best twins start small. Pick one line. Pick the question you most want answered ("where does our downtime go?" is a great first one).
Connect the tags that answer it, draw the line, add a scorecard, and put it in front of the people who run the line. Then let them tell you what
to add next.
Line 1 started exactly that way. Now it's the screen everyone keeps open.