PLC Simulator
Modbus function reference

Modbus Function Code 04 — Read Input Registers

Read 16-bit read-only register values

04
Load in Modbus sandbox

Data model

Input registers (3xxxx reference family)

Access

Read 16-bit read-only register values

Protocol quantity

1–125 registers

Worked example

Read the PDU field by field.

Read one input register at protocol address 8. The normal response returns value 10.

Typical use: Polling measured or status values that the server exposes as read-only input registers.

Example protocol data units

Request PDU

04 00 08 00 01

Normal response PDU

04 02 00 0A

PDU examples omit the Modbus TCP MBAP header and the Modbus RTU unit-address/CRC envelope. Multi-byte values are shown in network byte order.

Common implementation mistakes

  • Using function 03 because both objects are 16-bit
  • Attempting to write an input register
  • Ignoring signed, scale and unit metadata

Run the reference

Turn a protocol table into evidence.

Compose the request publicly, then use Pro for advanced graded exceptions, saved fixtures, complete history and project sharing.

Open sandbox