This robot cell has never been built. Its PLC program is real, and it runs on a real controller: a Bosch Rexroth ctrlX CORE virtual. The new tutorial shows the whole path in under nine minutes, from the cell program inside the digital twin to the same program running on the controller.
The cell and its handshake
A UR10e packs chocolate bars from a feed tray into the twelve slots of a display carton. The cell exists only as a digital twin, running locally in your browser, no cloud. The model holds three parts of logic, all in Structured Text: the cell PLC (P10 and P15), the robot controller (R20) and the plant that feeds the bars (P30). Only the cell PLC goes to the real controller. The robot controller stays in the twin as the stand-in for the robot's own controller.
Cell PLC and robot only talk through a small, fixed handshake. From the PLC: enable, start, job number and slot. Back from the robot: ready, busy, done and fault, plus a life counter in each direction. That is how a real robot cell works, so the PLC program you write against the twin is the one you run on the machine.

Adding the ctrlX in CONNECT
realvirtual CONNECT couples twin and controller through the ctrlX Data Layer. In the CONNECT panel you add a ctrlX Data Layer interface and enter the controller's address: for a ctrlX CORE virtual on the same PC, localhost on port 8443. A factory-default ctrlX has a self-signed certificate, which you allow.
The signal mapping then compares the interface with the model. You can add a signal by hand (the model's name, the node path in the Data Layer and the data type) or take the signals over from the controller's variable list. In the video an address table brings in 34 signals in one batch, and 36 of 47 model signals are mapped. The rest belongs to the robot and the plant, which stay in the twin. Signals couple by name: a signal named like the model signal is linked at once.
One switch between simulation and controller
Enable the interface and CONNECT reports Connected. Its first write hands the cell to the controller: the internal cell program steps aside, the controller reads back where the cell stands and carries on, and the robot keeps packing. Switch back, acknowledge and start, and the simulation continues from where the controller left the cell. Simulation and virtual commissioning are one model with one switch, not two projects.
The AI ports the cell program
The groundwork is done by an AI. It ports the cell program from the twin into the ctrlX PLC project, builds it without errors and creates the matching signal list in CONNECT, with the same names, so the signals couple at once. Then it downloads and starts the program on the controller.

While it runs, everything is visible: the ctrlX Data Layer shows step, job and slot of the cell program changing in rhythm with the robot, and CONNECT lists each handshake signal with its direction and its live value.

Other controllers
On a ctrlX CORE, CONNECT reads and writes the PLC variables directly in the Data Layer. On a standard CODESYS installation, CONNECT uses network variable lists (NVL), which you export from the model and import into CODESYS. CONNECT also has its own interfaces for many more controllers, for example Keba and SEW MOVI-C.
Try it and read on
- The packing cell is in the public demo, as a simulation without a connected controller: open the UR10e packing cell
- Virtual commissioning with realvirtual: what it is, how it works, which controllers connect
- Documentation: Connect a PLC for virtual commissioning
- Documentation: Bosch Rexroth ctrlX interface
- Documentation: CODESYS NVL interface
Chapters
- 0:00 Why virtual commissioning
- 0:37 The UR10e packing cell
- 0:56 The handshake between cell PLC and robot
- 1:20 What runs where
- 1:48 The cell PLC inside the twin
- 2:46 Add a ctrlX Data Layer interface in CONNECT
- 4:05 Signal mapping and address table import
- 4:37 Enable the interface and switch between simulation and PLC
- 5:29 AI ports the cell program to the ctrlX
- 6:20 Download, start and the cell program online
- 7:00 ctrlX Data Layer and signals live
- 7:44 Everything local on one PC
- 8:04 Couplings: ctrlX, CODESYS NVL, Keba, SEW MOVI-C