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.

Diagram: on one PC, a ctrlX CORE virtual runs the cell PLC (P10 and P15), realvirtual CONNECT is the gateway, and the digital twin in the browser simulates the robot controller (R20) and the plant (P30). PLC outputs such as xRobStart go to the twin, the twin writes xRobReady, xRobBusy, xRobDone and xRobFault back to the PLC inputs.
What runs where: the cell PLC on the ctrlX CORE virtual, CONNECT as gateway, robot controller and plant simulated in the twin. All on one PC.

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.

The cell program P15 online in ctrlX PLC Engineering with live values in every line, next to the digital twin in the browser, where the UR10e keeps packing and the operator panel shows PLC mode.
The cell program P15 online on the ctrlX: the same code that ran in the twin, while the robot keeps packing.

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.

realvirtual CONNECT panel in the browser with the operator panel of the UR10e packing cell switched to PLC and locked, handshake signals such as xRobReady and xRobEnable listed below, and the robot cell in the 3D view.
The switch shows PLC and stays locked while the interface drives the cell.

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

Chapters

  1. 0:00 Why virtual commissioning
  2. 0:37 The UR10e packing cell
  3. 0:56 The handshake between cell PLC and robot
  4. 1:20 What runs where
  5. 1:48 The cell PLC inside the twin
  6. 2:46 Add a ctrlX Data Layer interface in CONNECT
  7. 4:05 Signal mapping and address table import
  8. 4:37 Enable the interface and switch between simulation and PLC
  9. 5:29 AI ports the cell program to the ctrlX
  10. 6:20 Download, start and the cell program online
  11. 7:00 ctrlX Data Layer and signals live
  12. 7:44 Everything local on one PC
  13. 8:04 Couplings: ctrlX, CODESYS NVL, Keba, SEW MOVI-C