Skip to content

Latest commit

 

History

History
142 lines (85 loc) · 6.77 KB

File metadata and controls

142 lines (85 loc) · 6.77 KB

KUKA Robot Setup

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

1. Configure the RSI Network Interface

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.

Description of image

  1. On the teach pendant, navigate to Start-up > Network configuration -> Add interface.

  2. 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.201 if the default b»controlled box real-time interface is configured for 10.23.23.28).

  • Subnet mask: 255.255.255.0.

Description of image

2. Prepare KRL Configuration Files

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 for KSS < 8.6
  • kuka/KRC5/ configuration for KSS >= 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.28 to match the IP address of the IP address of the real-time interface for Robot on the CtrlX device.
  • b_ctrldbox_rsi.rsix:

    • This file contains safety limits. The default values are typically sufficient to start.

    • Pay attention to the <Timeout> parameter under ETHERNET object. 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.

3. Transfer Files to Robot Controller

  1. Copy the modified files to a USB drive.

  2. Log in as Expert on the teach pendant.

  3. 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\

Description of image

4. Perform a Cold Reboot

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.

Description of image

5. Verify network connection

Before proceeding, confirm that the b»Controlled Box can communicate with the robot's RSI interface.

  1. Minimize the SmartHMI (Start-up > Service > Minimize HMI).

  2. run cmd.exe and ping the ctrlX CORE at the real time IP address, e.g.:

ping 10.23.23.28
  1. On the Web UI in CtrlX CORE go to Settings -> Network Diagnostics and 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.

CtrlX Ping robot

6. Run the RSI Program

Firstly, ensure RobotSensorInterface is listed under Help > Info > Installed additional software.

Description of image

Then, activate the RSI program on the robot.

  1. On the teach pendant, select T1 mode. This is only for testing, later you can execute the program in the AUTO mode.

  2. Navigate to the b_ctrldbox_rsi.src program and press the run/play button while holding an enabling switch. The robot will move to its start position.

  3. Press and hold the buttons again. A warning, !!! Attention - Sensor correction goes active !!!, will appear.

  4. Confirm the warning. The program is now running and attempting to connect to the commissioning PC.

Next Steps

The KUKA robot is now configured. Proceed to the Commissioning PC Setup to launch the ROS 2 environment and start controlling the robot.

Troubleshooting

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.

Launch Fails Due to Incorrect Start Position

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.