Skip to content

4. Modbus RTU Control

4.1 Register Address Description

Gripper G2 supports standard Modbus RTU protocol with default baud rate of 2Mbps and gripper ID 0x08. Supported function codes: 0x03/0x06/0x10.

  • 0x03: Read Holding Registers
  • 0x06: Write Single Register
  • 0x10: Write Multiple Registers

4.1.1 Monitoring Group:

AddressDescription
0x0000Operation Status
0x0001Speed (r/min)
0x0002Q-axis Current
0x0003Bus Current
0x0004Command Position (p)
0x0006Motor Position (p)
0x0008Position Error (p)
0x000FCurrent Error Code

Status (0x0000)

Bits 1:000: StoppedBits 3:200: Disabled
01: Moving10: Enabled
10: Grasping

4.1.2 Fn1xx Control Parameters

AddressDescriptionRangeUnitDefault
Fn100Gripper Enable0-1-0
Fn109Fault Reset0-1-0

4.1.3 Fn3xx Speed Parameters

AddressDescriptionRangeUnitDefault
Fn303Speed Cmd0-0xFFFFr/min2000

4.1.4 Fn5xx Torque Parameters

AddressDescriptionRangeUnitDefault
Fn500Grasp Current Cmd0-100-50

4.1.5 Fn6xx Communication Parameters

AddressDescriptionRangeUnitDefault
Fn600Device ID1-255-8
Fn601Baud Rate0: 4800 1: 9600 2: 192008: 9216009: 1M10: 1.5M11: 2Mbps11

4.1.6 Fn7xx Position Command Group

AddressDescriptionRangeUnitDefault
Fn700Position Cmd High0-0xFFFF--
Fn701Position Cmd Low0-0xFFFF--
Fn702Position Fdbk High0-0xFFFF-0
Fn703Position Fdbk Low0-0xFFFF-0

4.1.7 FnCxx Gripper Control Registers

AddressDescriptionRangeUnitDefault
FnC00Gripper Enable0-1-0
FnC01Speed Command0-0xFFFF-2000
FnC02Grasp Current Cmd0-100-50
FnC03Position Cmd High0-0xFFFF-
FnC04Position Cmd Low0-0xFFFF-

4.2 FnCxx Register Usage Instructions

FnCxx Control Registers
Request Format
Modbus RTU DataGripper ID1 Byte0x08
Function Code1 Byte0x10
Start Address2 Bytes0x0C, 0x00
Register Count2 Bytes0x00, 0x05
Byte Count1 Byte0x0A
Gripper Enable2 Bytes0x00, 0x01
Speed (3000)2 Bytes0x0B, 0xB8
Current (50)2 Bytes0x00, 0x32
Position (850)2 Bytes0x03, 0x52
CRC162 Bytes0x17, 0x4E
Response Format
Modbus RTU DataGripper ID1 Byte0x08
Function Code1 Byte0x10
Start Address2 Bytes0x0C, 0x00
Register Count2 Bytes0x00, 0x05
CRC162 Bytes0x03, 0xC3

4.3 Modbus RTU Examples

  1. Enable gripper. Address (0x0100)
Tx: 08 06 01 00 00 01 49 6F
Rx: 08 06 01 00 00 01 49 6F
  1. Set gripper position to 100. Address (0x0700)
Tx: 08 10 07 00 00 02 04 00 00 00 64 FA E8
Rx: 08 10 07 00 00 02 40 25
  1. Read error code. Address (0x000F)
Tx: 08 03 00 0F 00 01 B4 90
Rx: 08 03 02 00 00 64 45
  1. Set gripper enable, position(850), speed(3000), force(50). Address (0x0Cxx)
Tx: 08 10 0C 00 00 05 0a 00 01 0b b8 00 32 03 52 17 4E
Rx: 08 10 0C 00 00 05 03 C3