Which Modbus function code is used to READ the Holding Registers (16-bit read/write registers) of a slave?
C — 0x03 (Read Holding Registers)
0x03 (Read Holding Registers) targets the 16-bit read/write register space and is by far the most used code for reading analogue values such as temperatures, pressures, counters and setpoints. 0x01 is wrong because Read Coils returns 1-bit read/write outputs, not 16-bit registers. 0x02 is wrong because Read Discrete Inputs returns 1-bit read-only digital inputs. 0x04 is wrong because Read Input Registers targets a separate 16-bit READ-ONLY register table, not the Holding Registers. The full picture includes 0x05/0x06 for single writes and 0x0F/0x10 for multiple writes.
When in doubt, start with 0x03 on most slaves: it is the function code that vendor documentation maps almost everything to.
- A.0x01 (Read Coils)
- B.0x02 (Read Discrete Inputs)
- C.0x03 (Read Holding Registers)✓
- D.0x04 (Read Input Registers)
Modbus bank in preparation
The full Modbus bank isn't available yet. Drop your email to get notified at launch and grab an early-bird discount.
Join the waitlist →See the 9 other Modbus practice questions
Related questions
- A Modbus RTU bus on RS-485 supports up to 32 nodes per segment (extendable with repeaters), requires 120 ohm termination resistors at both ends of the bus, and biasing resistors to define the idle state.3. Modbus RTU · RS-485 Multi-Drop
- Function 0x06 "Write Single Register" writes a single 16-bit Holding Register on a Modbus slave, with both the address and the value encoded on 16 bits each in the request.4. Function codes · Write Single Register (0x06)
- To carry a 32-bit IEEE 754 floating-point value over Modbus (whose registers are 16 bits), two consecutive registers are typically used, with the byte order documented by the slave manufacturer.5. Data encoding · 32-Bit-Float
- Modpoll (focus-sw.com) and mbpoll (Linux/macOS) are free command-line tools used to query a Modbus slave from a PC, indispensable for Modbus diagnostics and integration commissioning.6. Practical · Modpoll / mbpoll
- Modbus (RTU and TCP) has no native security: no authentication, no encryption, no signatures. The accepted good practice is strict OT VLAN isolation, an industrial firewall and no direct internet exposure.6. Practical · Cybersecurity