Robotiq 2F-85 via Waveshare RS232/485 TO ETH
1. Scope and architecture
This appendix covers wiring, configuring and commissioning a Robotiq 2F-85 gripper for use with HARP. The PC controls the gripper over Ethernet through a Waveshare RS232/485 TO ETH serial server. This setup controls the gripper directly from the PC, not through the UR tool flange.
- The PC opens a TCP connection to the Waveshare and sends complete Modbus RTU frames, including the CRC.
- The Waveshare runs in transparent mode: the bytes it receives over TCP go out on RS485 unchanged, and the gripper's reply comes back the same way.
- In this example, the converter and the gripper are both powered by the UR control box I/O terminals.
2. Waveshare configuration walkthrough
Part 1 — Wiring
- Before doing any wiring, turn off the power to the UR robot and any components you'll be working near or connecting to the unit.
- Follow the wiring diagram and the tables below to get the unit powered up.
UR terminal references use the grid in Fig. 2: column letter + row number. For example, H7 is the bottom 24V terminal in the Digital Inputs group.
1.1 Waveshare ⇄ UR control box ⇄ network
| From (Waveshare) | To | Wire color | Purpose |
|---|---|---|---|
| DC 5–36 V + (bottom screw, top-right) | H7: Digital Inputs, bottom 24V | Red | 24 V supply for the converter and gripper |
| DC 5–36 V − (top screw, top-right) | J7: Digital Outputs, bottom 0V | Black | 0 V return for the converter and gripper |
| RS485 ⏚ (bottom screw, bottom-left) | B2: Remote, GND | Green | RS485 ground reference |
| Ethernet RJ45 | Robot LAN switch → PC | Ethernet | Control (TCP :9001) |
The DC barrel jack and the DB9 (RS232) port are not used. Do not plug in the 5 V adapter while the screw terminal is fed from the UR.
1.2 Robotiq 2F-85 cable ⇄ Waveshare
| Wire | Terminal # (Robotiq manual) | Terminal # (standard part diagram) | Wire color | Connection point |
|---|---|---|---|---|
| 24 V + | 1 | 5 | Gray | Waveshare DC 5–36 V +, shared with the red H7 lead |
| 0 V − | 2 | 8 | Red | Waveshare DC 5–36 V −, shared with the black J7 lead |
| RS485 + | 3 | 1 | White | Waveshare RS485 A+ |
| RS485 − | 4 | 2 | Brown | Waveshare RS485 B− |
- The Waveshare has 2.2 kΩ bias resistors on board. A 120 Ω terminator across A+/B− is only needed on long runs or if comms show reflection errors.
1.3 Pre-power checklist
- Control box main switch OFF
- Land conductors on H7, J7 and B2
- Validate conductor colors in the cable with a continuity tester end to end for every conductor in 1.1 and 1.2
- Gripper red (0 V) and gray (+24 V) labeled; polarity confirmed at the Waveshare DC terminal
- No short between +24 V and 0 V (measure with power off)
- B2 ↔ J7 continuity checked (power off). The converter ties its RS485 ⏚ to its DC − internally, so B2 will become bonded to J7. Confirm they are already common in the controller. If they aren't, stop and review before connecting B2.
- A+/B− not swapped (white → A+, brown → B−)
- Gripper cable strain-relieved, with service loops at each joint, and not pinched through the full wrist range
Part 2 — Initial connection
- The Waveshare's default IP address is 192.168.0.7.
- Make sure your Ethernet adapter can reach 192.168.0.x by setting your PC's static Ethernet IP to an address in that range (avoid 192.168.0.1 and 192.168.0.7).
- When connected, open 192.168.0.7 in a Chrome-based browser.
- Log in with username/password admin / admin.
Part 3 — Set the IP address
-
Go to Local IP Config and set Static IP to your desired address (for example, 192.168.8.51).

-
Save and restart the unit.
-
Set your PC's static Ethernet IP back to the subnet you're working on (192.168.8.x).
-
Connect to the Waveshare again at the new IP address you set.
-
Log in to the unit with the default username/password.
Part 4 — RS485 settings
-
Go to RS485 and make sure the settings match this image:

Setting Value Baud Rate 115200 Data Size 8 bit Parity None Stop Bits 1 bit Flow Mode NONE UART Packet Time 0 ms UART Packet Length 0 chars Sync Baudrate (RF2217 Similar) Checked Enable Uart Heartbeat Packet Unchecked Socket A — Work Mode TCP Server, None TCP Server MAX Sockets 1, Up to MAX: KICK Local/Remote Port Number 9001 (remote port grayed out) PRINT Unchecked ModbusTCP Poll Unchecked (Poll Timeout 200 ms, grayed out) Enable Net Heartbeat Packet Unchecked Registry Type None Socket B — Work Mode NONE -
Save and restart the unit.
Part 5 — Misc Config
-
Go to Misc Config and set Websocket Port to 9100. You don't need to change any other settings.

Setting Value Module Name RS232485 TO ETH Websocket Port 9100 Webserver Port 80 MAC Address ##-##-##-##-##-## User Name admin Pass Word admin Buffer Data Before Connected Unchecked Reset Timeout 3600 s
3. Commissioning test
Run these steps from the PC.
-
Check the network path:
ping -c 5 192.168.8.51 -
Test the gripper's status, then activate the gripper.
Activation closes and opens the gripper once. The script below requires Python 3.
import socket, times = socket.create_connection(("192.168.8.51", 9001), timeout=2)def tx(h): s.sendall(bytes.fromhex(h)); time.sleep(0.05); return s.recv(64)def status():r = tx("09 03 07 D0 00 03 04 0E")print(f"gSTA={r[3]>>4&3} gOBJ={r[3]>>6} fault={r[5]:#04x} pos={r[7]}")status()tx("09 10 03 E8 00 03 06 00 00 00 00 00 00 73 30") # resettx("09 10 03 E8 00 03 06 01 00 00 00 00 00 72 E1") # activatetime.sleep(4); status()tx("09 10 03 E8 00 03 06 09 00 00 FF FF FF 42 29") # closetime.sleep(2); status()tx("09 10 03 E8 00 03 06 09 00 00 00 FF FF 72 19") # opentime.sleep(2); status()
4. Robotiq 2F-85 Modbus reference
Serial settings: slave ID 9, 115200 bps, 8N1. Function codes: 0x03 (read), 0x10 (write multiple).
4.1 Output registers (PC → gripper), starting at 0x03E8
| Byte | Name | Meaning |
|---|---|---|
| 0 | Action request | bit0 rACT activate · bit3 rGTO go-to · bit4 rATR auto-release · bit5 rARD auto-release direction |
| 1–2 | — | Reserved (0) |
| 3 | rPR | Position request: 0x00 = open, 0xFF = closed |
| 4 | rSP | Speed (0x00–0xFF) |
| 5 | rFR | Force (0x00–0xFF) |
4.2 Input registers (gripper → PC), starting at 0x07D0
| Byte | Name | Meaning |
|---|---|---|
| 0 | Gripper status | bit0 gACT · bit3 gGTO · bits4–5 gSTA (3 = activated) · bits6–7 gOBJ (0 moving, 1 contact opening, 2 contact closing, 3 at position) |
| 1 | — | Reserved |
| 2 | gFLT | Fault code (0x00 = none) |
| 3 | gPR | Echo of the position request |
| 4 | gPO | Actual position |
| 5 | gCU | Motor current (×10 mA approx.) |
4.3 Verified frames (hex, CRC included)
| Action | Frame |
|---|---|
| Reset (rACT=0) | 09 10 03 E8 00 03 06 00 00 00 00 00 00 73 30 |
| Activate (rACT=1) | 09 10 03 E8 00 03 06 01 00 00 00 00 00 72 E1 |
| Read status (3 regs) | 09 03 07 D0 00 03 04 0E |
| Close, full speed/force | 09 10 03 E8 00 03 06 09 00 00 FF FF FF 42 29 |
| Open, full speed/force | 09 10 03 E8 00 03 06 09 00 00 00 FF FF 72 19 |
| Half-closed, half speed/force | 09 10 03 E8 00 03 06 09 00 00 80 80 80 12 21 |
A write is acknowledged with an echo, e.g. 09 10 03 E8 00 03 01 30.
5. Troubleshooting
| Symptom | Likely cause | Action |
|---|---|---|
| Ping fails | Wrong subnet, or converter still at 192.168.0.7 | Check the PC IP; hold Reload for factory defaults and redo §2 |
| TCP connect refused | Wrong port, or socket not in TCP Server mode | Check RS485 socket settings; the converter accepts up to 8 clients, so close stale sessions |
| TX LED blinks, RX never blinks | A/B swapped, gripper unpowered, or wrong baud rate | Swap A+/B−; measure 24 V across the Waveshare DC terminal; confirm 115200 8N1 |
| Reply garbled or bad CRC | Baud rate or parity mismatch, noise, or missing reference | Recheck the serial format; check the ⏚ → B2 lead; add a 120 Ω terminator on long runs |
| No reply, LEDs quiet on the RS485 side | Protocol set to Modbus gateway | Set Socket A Work Mode to TCP Server + None (Part 4) |
gSTA stuck at 1 | Fingers obstructed during activation | Clear the jaws, reset, then activate again |
gFLT ≠ 0 | Gripper fault (e.g. 0x05 activation needed, 0x07 action without activation) | Run reset → activate; see the Robotiq manual fault table |