Skip to content

Modbus Register Addressing and Function Codes

Use a real ABB ACS580 register to see how 400004 becomes offset 3, when to use function 03 or 04, and how to decode a reply or exception.

  • Mason Alexander
  • Published Nov 30, 2026
  • 6 min read
Modbus Organization function 03 example with register quantity 03 and response byte count 06 highlighted.

To read a Modbus value, find the supported function code, starting address and number of 16-bit registers in the device's register map. Then you need a fourth piece of information, the data format. A request can succeed and still show the wrong value if the PLC reads a neighboring register or interprets the returned bytes using the wrong format. 1

The Modbus RTU guide follows a PLC request through the serial link. Here, we continue at the point where the link is ready. We'll turn one row of an ABB ACS580 manual into a PLC read and check what the reply actually means.

Choose the function from the register map

Modbus defines four data areas. A coil or discrete input carries one bit. A holding register or input register carries a 16-bit word. Many devices put readable measurements and status words in the holding-register area as well. Use the area and functions listed by the manufacturer for that item. 1 3

If the manual identifies…Common read functionWhat the request reads
Coils01One or more single-bit coil states
Discrete inputs02One or more single-bit input states
Holding registers03One or more 16-bit holding registers
Input registers04One or more 16-bit input registers

Function 05 writes one coil and 06 writes one holding register. Functions 15 and 16 write multiple coils and holding registers respectively. The numbers here are decimal. In a packet capture, decimal 16 appears as hex 0x10. A drive can expose a holding register through function 03 while limiting whether it can be changed. Start by reading the documented item. 1 3

Modbus Organization function 03 example with register quantity 03 and response byte count 06 highlighted.
The request in the specification reads three holding registers. Blue marks its quantity and purple marks the six-byte response count.

The specification's function 03 example shows the difference between register quantity in a request and byte count in the response. A request for three registers returns six data bytes. Read in words when entering the quantity, then expect two data bytes for every word. 1

Translate the manual address into the PLC field

A label such as 40001 can identify the first holding register in a manual or software screen. The starting-address field in the request is zero-based. The first holding register therefore has offset 0, and the request identifies its data area through function 03. Some manuals use six-digit notation, with 400001 as the first holding register. Both conventions can refer to the same area and item. Check the device and driver before converting. 1 3

With the ABB ACS580-01-07A3-4, ABB's Rev J firmware manual lists 400004 as the default 16-bit Status Word under the ABB Drives profile. In an address field that expects a zero-based offset, enter 3. In a driver that expects ABB's six-digit reference, enter 400004. In a driver that accepts the equivalent five-digit reference, enter 40004. Use one conversion between the manual label and the actual request. In a packet trace all three correctly configured drivers should put 00 03 in the starting-address field. 1 3

ABB ACS580 default holding-register table with register 400004 Status Word highlighted.
ABB’s default register table puts the 16-bit Status Word at 400004. The highlight identifies the register read in the example.
Field on the PLC sideExample settingCheck against
Serial station7Illustrative address. Match the drive's configured node address.
Function03ABB maps the status word to a holding register.
AddressOffset 3, or the supported 400004/40004 entryThe PLC driver's field convention.
Quantity1 registerThe default value is one 16-bit word.

For station 7, the illustrative RTU request is 07 03 00 03 00 01 74 6C in hex. Read it as station, function, starting offset, quantity, then CRC. A reply of 07 03 02 02 31 F0 F0 contains two data bytes and a status word of 0x0231. These example bytes make the conversion visible. The actual status word comes from the drive at the time it answers. 1 2 3

Decode the value after the read succeeds

In the ABB Drives profile, bit 0 of the status word is RDY_ON. In the illustrative word 0x0231, bit 0 is set, which the profile defines as ready to switch on. Bits 4, 5 and 9 are also set, so the profile indicates inactive OFF2 and OFF3 stops and a remote control location. Bit 2 is clear, so operation is inhibited. Check command source and start conditions separately before attempting control. Verify the selected profile and use a read value you can correlate with an observed indication on the drive. 3

ABB Drives status-word table with bit zero RDY_ON and bit two RDY_REF highlighted.
Blue marks readiness to switch on. Purple marks operation enabled. Look up each bit independently in the active profile.

For a numeric item, check the manual for the units, sign and scale. For example, if a documented register stores tenths of a degree, an unsigned value of 253 represents 25.3 degrees. If an item uses two registers, check which register holds the high word before combining them. The application protocol transmits the high byte of each 16-bit register first. The device's map supplies the multi-register data type and word order. The same two words, 0x41C8 and 0x0000, represent IEEE 754 float 25.0 when 0x41C8 is the high word. 1

Interpret values using the device's actual map and firmware. Save the function, starting offset, count, data type and multiplier beside the PLC tag. That makes the value traceable when a replacement device or a driver uses a different address field convention.

Use the reply to decide what to check

ObservationLikely next check
No responseVerify port, station, serial settings and wiring. A register offset change is useful after you establish that the addressed device can answer.
Exception 01The device reports an unsupported function for this request. Check the available function list.
Exception 02Start address or requested span is outside an allowed area. Read one known register, then check the end of a larger block.
Exception 03Review the field values permitted for the function, including the requested quantity.
Normal reply, implausible valueCheck for an off-by-one address, a different map/profile, signedness, scaling or swapped words.

An exception is a reply with the high bit of the request function set. For a failed function 03 request, a reply function of hex 83 followed by exception 02 points to the address or range. If an offset is wrong but happens to land on another valid register, you can instead get a normal reply with the wrong data. Compare the request bytes with the manual and verify a known value before broadening the read. 1

If the station is silent, start with the RS‑485 wiring diagram. If the same register must be read on an Ethernet network, the RTU versus TCP guide follows what changes in the message and how a gateway routes it.

References

  1. MODBUS Application Protocol Specification

    Modbus Organization · V1.1b3

  2. MODBUS over Serial Line Specification and Implementation Guide

    Modbus Organization · V1.02

  3. ACS580 Drives Standard Control Program Firmware Manual

    ABB · 3AXD50000016097 Rev J