This guide walks through how to interpret the serial number from the device’s Modbus response and explains the conversion process step by step.
This article applies to the following part numbers:
Each 16-bit word can be broken down into sets of four bits, which are then individually converted from binary to hexadecimal. When combined, these hex values form the full serial number.
Raw Modbus Register Values (Hex):
This article applies to the following part numbers:
- R9120
- A8332
- A8911
- A90DC
- A89DC
What You Receive from the Device
These devices return their serial number across three 16-bit Modbus registers. These registers contain binary data that must be decoded to reveal the serial number.Each 16-bit word can be broken down into sets of four bits, which are then individually converted from binary to hexadecimal. When combined, these hex values form the full serial number.
Example Breakdown
Let’s walk through an example using one of our own serial numbers.Raw Modbus Register Values (Hex):
- 0x001E
- 0xC6C0
- 0xFFEE
- 0 → 0000
- 0 → 0000
- 1 → 0001
- E → 1110
- C → 1100
- 6 → 0110
- C → 1100
- 0 → 0000
- F → 1111
- F → 1111
- E → 1110
- E → 1110
- 0x001E → 30
- 0xC6C0 → 50880
- 0xFFEE → 65518