PLC Simulator
Modbus function reference

Modbus Function Code 16 — Write Multiple Registers

Write a contiguous block of 16-bit registers

16
Load in Modbus sandbox

Data model

Holding registers (4xxxx reference family)

Access

Write a contiguous block of 16-bit registers

Protocol quantity

1–123 registers

Worked example

Read the PDU field by field.

Write two registers beginning at protocol address 1 with values 10 and 258.

Typical use: Writing multi-register parameters or blocks when atomic grouping is supported and documented.

Example protocol data units

Request PDU

10 00 01 00 02 04 00 0A 01 02

Normal response PDU

10 00 01 00 02

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 125 as the write limit instead of 123
  • Splitting a 32-bit value with the wrong word order
  • Assuming a multi-register parameter can be partially written safely

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

Technical reference and worked-example guide

Modbus function code 16 multiple-register write guide: field reference

Direct answer

The reader can bound a function 16 write, validate byte count and register quantity, avoid partial interpretation and prove the intended change with read-back and process evidence.

Written for pLC programmers writing multiword setpoints, recipes or parameters to Modbus servers.

an industrial communications bench used to compare serial and Ethernet evidence, requests, responses, addressing and device state while studying Modbus function 16 write contracts, addressing and read-back proof
System map / 02

NODE 01observable

Definition

Authorized client, server identity, function 16, starting offset, register quantity, byte count, payload order, data type, limits and write authority.

NODE 02observable

Signal path

Approved engineering value through encoding, ordered words, write request, server validation, response echo, read-back and independently observed application state.

NODE 03observable

Worked example

One bounded write changes only the documented registers and produces the expected read-back and permitted equipment response.

NODE 04observable

Limits

First and last valid address, multiword boundary, excessive quantity, illegal value, exception, timeout, duplicate request, partial gateway handling and restart.

NODE 05observable

Common mistake

An authority, identity, offset, quantity, byte-count, word-order, data-type, limit, response or application mismatch.

NODE 06observable

Verification

The change reviewed, backed up, tested in a safe environment and verified against current device documentation.

Answer surface / 07

What does Modbus function code 16 do?

It writes a contiguous group of holding registers in one request and returns the accepted starting address and quantity.

How do you verify a Modbus write?

Check the response, read the affected registers back and confirm the permitted physical or application result independently.