← emboscale.com

Virtual commissioning explained: what it catches and what it can't

Virtual commissioning is the testing of automation control logic, such as PLC code and robot programs, against a digital model of the machine or line before the real equipment is installed. MathWorks defines it as the testing, verification and validation of automation control systems using a model. It catches logic errors, interlock mistakes and sequence faults while they are cheap to fix. It cannot catch everything the real plant does, and how much it saves depends on how good your model is.

This post explains the two main ways to run it, what it finds, what it misses, and shows the arithmetic of when it pays back.

How virtual commissioning works

You build a simulation model of the equipment: conveyors, stations, sensors, actuators and robots. Then you connect the control logic to it and run the process as if the plant existed. There are two common set-ups:

  • Software-in-the-loop (SIL). The control logic runs on PLC emulation software on a PC. No controller hardware is needed, so it is the cheaper route and suits early checks.
  • Hardware-in-the-loop (HIL). A real PLC is wired to the simulation, for example over a fieldbus. It costs more because it needs real-time hardware and I/O interfaces, and it tests timing and communication that emulation can hide.

Most teams start with SIL and move to HIL for the final checks on the actual controller.

What virtual commissioning catches

  • Sequence and interlock errors: a clamp that closes before the part is present, or a door that never releases.
  • Missing or wrong I/O mapping: a sensor wired to the wrong address in the code.
  • Deadlocks between stations: two stations that each wait for the other.
  • Robot handshake faults: a robot entering a zone before the conveyor signals clear.
  • Cycle-time shortfalls: a sequence that cannot reach takt time because of waits you can see in the model.

The common feature is that these are logic faults. They exist in the code before any metal arrives, so they can be found without the metal.

What virtual commissioning can't catch

  • Anything the model leaves out. A model is a simplification. Friction, sensor noise, a warped part or a loose cable do not appear unless someone put them there.
  • Wiring and installation errors. A swapped cable is a physical fault. SIL and HIL cannot see it.
  • Real-world timing. Emulated controllers can differ from real ones. HIL narrows that gap, and the site acceptance test closes the rest.
  • Safety validation. Risk assessment, guarding and safety-function tests still happen on the real machine under your own process.

Vendor claims should be read with this in mind. A Siemens case study of Wipro PARI reports a 70 percent cut in on-site commissioning time on an engine assembly line, and rework reduced by as much as 50 percent on a separate machining line. The post is written by the software vendor, applies the 70 percent figure to on-site time only, and compares against an estimate of what the job "could have" taken. It shows what is possible with a strong model. It is not a typical result.

A worked example: when it pays back

The numbers are assumptions for illustration. Replace them with your own.

A plant installs a four-station assembly line. On a similar past job, on-site commissioning found 30 logic faults. Each one took 3 hours to find and fix, with a 4-person crew at €70 per hour.

Cost of one fault on site: 3 h × 4 people × €70 = €840.

Without virtual commissioning: 30 × €840 = €25,200.

With virtual commissioning: building the model takes 160 engineering hours at €70, so €11,200. Suppose it catches 20 of the 30 faults, at 1 hour each for one engineer: 20 × €70 = €1,400. The remaining 10 faults are found on site: 10 × €840 = €8,400. Total: €11,200 + €1,400 + €8,400 = €21,000. That saves €4,200.

Now suppose the model is weaker and catches only 10 faults. Cost: €11,200 + 10 × €70 + 20 × €840 = €11,200 + €700 + €16,800 = €28,700. That is €3,500 more than skipping it.

The break-even is where the model cost equals the on-site savings. Each fault caught virtually saves €840 − €70 = €770. At €11,200 of model cost, you need 11,200 / 770, about 14.5, so 15 faults caught before it pays. Model reuse changes this: if the same model serves a second line or a later change, the build cost is shared.

The example also leaves out the cost of line downtime during a late start-up. In a plant where each lost day is expensive, that term can dominate.

Mistakes teams make

Modelling everything. A model with every cable and bolt costs more than the faults it finds. Model what the control logic interacts with.

Testing against the wrong version of the code. If the PLC code changes after the virtual test, the result no longer applies. Keep the test suite and re-run it on every release.

Treating a pass as proof of safety. A clean virtual run says the logic matches the model. It does not replace the on-site safety validation.

Skipping the robot paths. Control logic that triggers a robot is only half the story. The robot program also has to reach its targets and respect joint limits, which is a separate kind of check.

Starting too late. The value comes from finding faults before installation. A model built after the equipment arrives only confirms what the crew is already finding.

Where this fits

Virtual commissioning of PLC code against real controllers is a mature specialty in the enterprise simulation suites, and if you need hardware-in-the-loop testing, those tools are the better choice. Emboscale, an AI factory agent that plans layouts, balances lines, schedules shifts and writes verified robot programs, covers an adjacent step: every robot program it writes passes an 8-check kinematic verification (reachability, joint limits, singularities, collisions and more) before it ships in a deploy pack. Site safety validation stays with your team. See the comparison with enterprise simulation suites and robot program verification.

Frequently asked questions

What is virtual commissioning in manufacturing?

Virtual commissioning tests automation control logic, such as PLC code and robot programs, against a digital model of the equipment before it is built or installed. It finds logic and sequence faults while they are cheap to fix.

What is the difference between SIL and HIL?

In software-in-the-loop, the control logic runs on PLC emulation software on a PC. In hardware-in-the-loop, a real PLC is connected to the simulation. HIL costs more and tests real controller timing and communication.

Does virtual commissioning replace on-site commissioning?

No. It reduces the number of faults found on site, but wiring errors, real-world timing and safety validation still need the physical plant. The site acceptance test stays.

How much time does virtual commissioning save?

It depends on the model and the project. Vendors report large cuts, such as 70 percent of on-site time in one Siemens case, but those are best cases published by the seller. Estimate your own with the fault-count arithmetic above.

Further reading: robot program verification · Emboscale vs enterprise simulation suites · takt time vs cycle time