Integrating a Robotiq RS-485 Gripper with the Lexium Cobot

To make a collaborative robot useful, you need an end-effector. For my application, I did not have access to an air supply, which ruled out pneumatic options. Short on time, I pulled an electric Omron/Robotiq gripper (AGCOMRONKIT140) off a TM5-700 lab robot we had previously set up.

I could not find any documentation of anyone pairing this specific Omron-kitted gripper with the Schneider Lexium platform. Fortunately, the Lexium Cobot has a distinct advantage. Its Tool End Digital Outputs can be multiplexed directly into an RS-485 communication channel.

Here is the process of reverse-engineering the wiring, configuring the Modbus RTU communication based on the Robotiq manual, and navigating a highly specific software bug.

Note: All software steps below are based on EcoStruxure Cobot Expert version V1.7.0.61. If you are using a newer software release, the interface appearance or specific functions may differ.

Installation

Installing the gripper is straightforward. Using the supplied shorter screws, attach the base to the tool end of the Lexium arm. Next, install the gripper to the base using the longer screws. The gripper will only attach to the base in one direction, so make sure you align the locator pin correctly.

Note: With the Arm Powered on and enabled, you can press and hold the Free button near the tool end to physically move it to a position that is easier to work on.

Prototyping with a Standard M12 Cable

Before making any permanent cuts, I needed to figure out the pinout. The Lexium arm is supplied with a short M8 pigtail, while the Robotiq gripper utilizes an M12 5-pin connector. The Lexium pigtail uses a proprietary wire color code, so I initially used a standard industrial M12 cable (Brown, White, Blue, Black, Grey) to breadboard the connections and figure out the logic. (Keep in mind, these are not the colors Robotiq uses in their internal harness, which I will address later).

Here is the splice mapping using an industrial M12 connector:

  • 24V Power: Lexium Red (Pin 1) → M12 White

  • 0V Ground: Lexium Grey (Pin 8) → M12 Blue

  • RS-485 (+): Lexium Yellow (Pin 4 / TDO1) → M12 Black

  • RS-485 (-): Lexium Pink (Pin 5 / TDO2) → M12 Grey

Note: Through trial and error, I discovered that the power connection does not pass through the gripper’s base pins until 24V is actively supplied to the gripper itself.

Multiplexing the Outputs

With the gripper temporarily wired, we need to tell the controller to use those specific Tool End pins for Modbus communication rather than simple high/low logic.

Open the I/O Panel from the bottom toolbar and select the Tool End tab. Expand the Digital Output section, click on the text DO 1, change the Mode to “Reuse as RS485 channel 1”, and hit confirm. Verify DO 2 also updates.

(Note: If the robot arm is currently enabled, the software will helpfully pop up a warning telling you that the robot must be disabled before you can change output settings).

Modbus RTU Configuration & Raw Hex Commands

Once the output pins are successfully multiplexed, a new “RS485 configuration” option will appear. Click it, select Modbus RTU, and input the serial parameters. Between the Robotiq manual and my previous experience integrating this gripper on the TM5-700, these are the settings required:

  • Slave Station Node Number: 9

  • Baud Rate: 115200

  • Data Bit Length: 8

  • Stop Bit Length: 1

  • Parity Method: None

IO pannel setup

To wake the gripper up, navigate to Settings > Hardware and Communications > Terminal IO. Under the Voltage Output tab, ensure it is set to 24V, toggle it on, and hit confirm. The LED on the gripper base should illuminate.

Now move over to the Debug tab within the Terminal IO menu. The Robotiq gripper functions using strings of Modbus hexadecimal commands that dictate speed, force, and position. It also requires a strict initialization phase before it will accept open/close commands. You can send these raw Hex strings directly to the gripper here to test the mechanical function, in this exact order:

  1. Clear Faults / Reset: 09 10 03 E8 00 03 06 00 00 00 00 00 00 73 30 (Clears any existing state. Watch for the status light to change).

  2. Activate / Initialize: 09 10 03 E8 00 03 06 01 00 00 00 00 00 72 E1 (The gripper will slowly close and open to auto-calibrate its encoder limits).

  3. Close (30% Force, Max Speed): 09 10 03 E8 00 03 06 09 00 00 FF FF 4C 03 9C (I derived this hex string from the Robotiq manual, specifically lowering the force value to 30% to prevent crushing display parts and to minimize power draw from the cobot).

  4. Open (30% Force, Max Speed): 09 10 03 E8 00 03 06 09 00 00 00 FF 4C 33 AC

Fixing the Feedback Error (Semaphores)

While testing the Hex commands, the gripper will physically function, but the EcoStruxure software will throw a constant feedback error because it expects to read the slave device’s status registers.

To clear this error, we have to define the holding registers using the software’s Semaphore tab. Click the + icon in the top right of the Semaphore menu and add the following four configurations:

Semaphore 1 (Activation Status)

  • Identifier: GRPACT

  • RS485 Channel ID: RS485 Channel 1

  • Type: Holding Register (Function Code 04)

  • Register Address: 1000

  • Refresh Frequency: 0

Semaphore 2 (Position)

  • Identifier: GRPOS

  • RS485 Channel ID: RS485 Channel 1

  • Type: Holding Register (Function Code 04)

  • Register Address: 1001

  • Refresh Frequency: 0

Semaphore 3 (Force)

  • Identifier: GRPFOR

  • RS485 Channel ID: RS485 Channel 1

  • Type: Holding Register (Function Code 04)

  • Register Address: 1002

  • Refresh Frequency: 0

Semaphore 4 (Overall Status)

  • Identifier: GRPSTAT

  • RS485 Channel ID: RS485 Channel 1

  • Type: Holding Register (Function Code 04)

  • Register Address: 2000

  • Refresh Frequency: 0

Setting the Refresh Frequency to 0 tells the controller to treat these as a one-time read rather than continuously polling and chewing up communication bandwidth. Once these four Semaphores are saved, the feedback error will clear, and the RS-485 gripper is fully integrated.

The Final Splice & Adding a Tactile Switch

Once the bench test was successful, I stripped back the original Lexium pigtail, cut off the excessive cabling on the gripper, and spliced them directly together. Because I removed the standard M12 extension, the internal wire colors changed.

While I had the harness torn apart, I also decided to wire a small, somewhat hidden, tactile push-button switch directly into the tool head. I will need a way to manually trigger the loading phase of our program later, and having a button right on the gripper is much cleaner than running a separate switch all the way down to the control box. I tied one side of the tactile switch to the 24V Red wire, and the other side to the Blue wire, which corresponds to Tool Digital Input 1 (TDI1).

Here is the final splice mapping between the Lexium M8 pigtail and the stripped Robotiq cable:

  • 24V Power: Lexium Red (Pin 1) → Robotiq Red

  • 0V Ground: Lexium Grey (Pin 8) → Robotiq Black

  • RS-485 (+): Lexium Yellow (Pin 4 / TDO1) → Robotiq White

  • RS-485 (-): Lexium Pink (Pin 5 / TDO2) → Robotiq Green

  • Tool End DI: Lexium Blue (Pin 2) → Tactile Switch (other leg to 24V Red)

Not my prettiest work, but I was also working on a limited time frame.

Configuring the Tactile Switch Input (and The Silent Bug)

Finally, we need to configure the logic for the tactile switch we just added. Open the I/O Panel, navigate to the Tool End tab, expand the Digital Input section, click on DI 1, and change the logic from NPN to PNP so our 24V tactile switch will register. After this is set, you can verify your switch is working by pressing it, and watching for the circle to fill in.

The Bug: Unlike the Digital Outputs we configured earlier, the software will not give you a warning if the robot is enabled when you change a Digital Input. The menu will simply close and act as though it accepted your change. However, your button will not work, and if you reopen the menu, you will see it silently reverted back to NPN.

The Fix: You must explicitly click “Disable the robot” in the Top Menu before changing Tool I/O input modes. Once disabled, change DI 1 to PNP and hit confirm. The setting will now save permanently, and you can press your tactile switch to watch the input light up live in the menu.

IO Tac Button

This concludes the gripper setup. You will need to keep the Hex string Modbus commands handy for when we move into the actual programming.

Part 3: Programming the Schneider Lexium Cobot: Blockly Logic, Subprograms, and Standalone Operation