Skip to main content

Usage

Restriction

CODESYS EtherCAT version 4.10.0.0 contains a known issue with the function "Load PDO info from the device", which prevents it from working properly with the CODESYS SoftMotion Stäubli Support package.

Please use either an earlier or a newer version of CODESYS EtherCAT instead.

The following instructions describe the configuration of a Stäubli robot in the CODESYS Development System development environment.

  1. Create a new standard project with your controller:

    1. Select the implementation language of your choice.

    2. Select a device description for your controller.

  2. Add the EtherCAT drives:

    1. In the device tree, open the context menu of the Device node and select the Add Device command.

      The dialog opens.

    2. Under FieldbusesEtherCATMaster, select the fieldbus EtherCAT Master SoftMotion. Click the Add Device command to confirm the selection, but leave the dialog open.

      The new node EtherCAT_Master_SoftMotion is shown in the device tree.

    3. Click this node in the project tree.

      The options change in the Add Device dialog.

    4. Select your Stäubli robot. You can find it under FieldbusesEtherCATSlaveStaubli robotics. Click Add Device to confirm your selection and then close the dialog.

      Under the EtherCAT_Master_SoftMotion node, another node for the robot has been created with more nodes for its drives.

  3. Enable the expert settings of the EtherCAT node for the robot:

    1. In the device tree, under the EtherCAT_Master_SoftMotion node, double-click the robot.

      The editor opens.

    2. Enable the Expert settings option there.

      For more information, see the following: Tab: EtherCAT Slave – General

  4. Check that I/Os have already been configured on your Stäubli CS 9 Controller.

    • If no I/Os are configured, then you need to disable the product ID check for the robot.

      The Stäubli CS9 Controller has a different product ID when configured without I/Os than when configured with I/Os.

      1. In the device tree, under the EtherCAT_Master_SoftMotion node, double-click the robot node.

        The editor opens.

      2. In the Startup Checking group, disable the Check product ID option.

        The following configuration was used on a ts2_100_S1_D25_L200_ceiling_R4 robot.

        _smstbli_config_robo_tab_general.png
    • If I/Os have already been configured, then nothing else needs to be done. Go to the next step.

  5. Transfer the PDO configuration to the project:

    1. Under the EtherCAT_Master_SoftMotion node, open the editor of the robot.

    2. Open the Expert Process Data tab and disable the PDO configuration option in the Download group.

      The following configuration was used on a ts2_100_S1_D25_L200_ceiling_R4 robot.

      _smstbli_config_robo_tab_expert_process_data.png
    3. Log in to the controller, start the application, and wait until the EtherCAT thread has booted.

    4. Now click the Load PDO Info from the Device button.

      The PDO configuration of the robot will be applied to the project.

    5. Log out of the controller.

  6. Add the Staubli_Transformation library to the project.

    1. Open the Library Manager of the project.

    2. On the top left, click the Add Library button.

      The dialog opens.

    3. In the search bar, enter the text "Staubli_Transformation" and add the library which you have found.

      _smstbli_config_robo_lib_manager_staubli_transformation.png
  7. Insert an axis group.

    1. In the device tree, select the Application node and open the context menu. Click the Add ObjectAxis Group command.

      The Add Axis Group dialog opens.

    2. Enter a name of your choice and click the Add button to confirm.

      An axis group is inserted below the application. The axis group configurator opens.

    3. Click the Select kinematics button.

      The Select kinematics dialog opens with a list of all available kinematic configurations and their descriptions.

    4. Select your robot type from this list.

    5. In the Mapping to Axes parameter group, map the axes to the drives added in Step 2.

      _smstbli_config_robo_axis_group_select_mapping_to_axes.png

Important

For the drives of the Stäubli robot, some input fields are deliberately hidden. These are already preconfigured. These include, for example, the input fields for dynamic limits of an axis or its scaling.