This guide covers the KUKA-specific steps for configuring the Robot Sensor Interface (RSI). This configuration is essential for enabling real-time communication between the robot controller and the b»Controlled Box
You'll need to set up a dedicated network interface on the robot controller for RSI communication.
SmartHMI on the teach pad runs ontop of Windows. Ensure that the Windows interface of the controller is connected to the same subnet as the configuration PC (e.g. 192.168.28.x).
Log in as Expert or Administrator on the teach pad and navigate to Network configuration (Start-up -> Network configuration -> Activate advanced configuration).
There should already exist an interface named Windows interface. For example:
- IP:
192.168.28.210 - Subnet mask:
255.255.255.0 - Default gateway:
192.168.28.254 - Windows interface checkbox should be checked.
-
On the teach pendant, navigate to
Start-up > Network configuration -> Add interface. -
Select the new entry and configure the following:
-
Interface name: b>>ctrld box (or similar).
-
Address type: Select Mixed IP address. This automatically creates the necessary real-time receive tasks.
-
IP address: Assign a static IP on the same subnet as CtrlX CORE device. For example
10.23.23.201if the default b»controlled box real-time interface is configured for10.23.23.28). -
Subnet mask:
255.255.255.0.
The Kuka Robot Language programs define the communication parameters. You must modify them to match your network setup before transferring them to the controller. If you are using recommended IPs, you don't have to edit these files.
IMPORTANT: Make sure you use the correct configuration, depending on your KSS version from Step 1:
kuka/KRC4/configuration forKSS < 8.6kuka/KRC5/configuration forKSS >= 8.6
The files can be found in the kuka branch of b_ctrldbox_commissioning repository, and are present in the commissioning Docker Container under ~/commissioning/ros2_jazzy/src/b_ctrldbox_commissioning/kuka
-
b_ctrldbox_rsi_eth.xml:- Edit the default IP
10.23.23.28to match the IP address of the IP address of the real-time interface for Robot on the CtrlX device.
- Edit the default IP
-
b_ctrldbox_rsi.rsix:-
This file contains safety limits. The default values are typically sufficient to start.
-
Pay attention to the
<Timeout>parameter underETHERNETobject. RSI operates in discrete time steps (e.g., 4ms), and the controller expects a valid response from the PC for each step. If you experience frequent disconnects, you may need to adjust properly the scheduler rate in for the b»controlled box in the CtrlX. See CtrlX setup for more details.
-
-
b_ctrldbox_rsi.src:- This file defines the robot's starting position. Adjust if necessary.
-
Copy the modified files to a USB drive.
-
Log in as Expert on the teach pendant.
-
Copy the files to the following directories:
-
b_ctrldbox_rsi.src ->
KRC:\R1\Program\ -
All other files (
.xml,.rsix) ->C:\KRC\ROBOTER\Config\User\Common\SensorInterface\
For the changes to take effect, a cold reboot is mandatory. Navigate to Shutdown, check the boxes for Force cold start and Reload files, and then press Reboot control PC.
Before proceeding, confirm that the b»Controlled Box can communicate with the robot's RSI interface.
-
Minimize the SmartHMI (
Start-up > Service > Minimize HMI). -
run
cmd.exeand ping the ctrlX CORE at the real time IP address, e.g.:
ping 10.23.23.28
- On the Web UI in CtrlX CORE go to
Settings -> Network Diagnosticsand ping the IP that you have assigned for the newly created interface, e.g.10.23.23.201. Note: It is normal and expected to see replies marked as (DUP!). This indicates the RSI network task is active and responding correctly.
Firstly, ensure RobotSensorInterface is listed under Help > Info > Installed additional software.
Then, activate the RSI program on the robot.
-
On the teach pendant, select T1 mode. This is only for testing, later you can execute the program in the
AUTOmode. -
Navigate to the
b_ctrldbox_rsi.srcprogram and press the run/play button while holding an enabling switch. The robot will move to its start position. -
Press and hold the buttons again. A warning,
!!! Attention - Sensor correction goes active !!!, will appear. -
Confirm the warning. The program is now running and attempting to connect to the commissioning PC.
The KUKA robot is now configured. Proceed to the Commissioning PC Setup to launch the ROS 2 environment and start controlling the robot.
test_joint_trajectory_controller.launch.xml command fails - if the robot is not in the configured position. TBA: Show how to reconfigure and rebuild the thing. Mention that in the future versions this will not be an issue.
Problem: The control software fails to connect, often with timeout errors, because the robot is not physically at the start position defined in the KRL program. Cause: Mismatch between the robot's actual position and the hardcoded PTP coordinates in b_ctrldbox_rsi.src. Solution:
In T1 mode, jog the robot to a safe, desired starting position. On the teach pendant, go to Display > Actual position and record the angular values for axes A1 through A6. Edit the b_ctrldbox_rsi.src file on your PC. Locate the PTP {A1 ..., A2 ..., ...} line and replace the values with the ones you just recorded. Re-transfer only the modified .src file to KRC:\R1\Program\ on the controller. Run the program again. The robot will now use this new start position. Note: In future versions, this dependency on a hardcoded start position may be relaxed for a more flexible startup procedure.





