Modbus function reference
Modbus Function Code 15 — Write Multiple Coils
Write a packed block of boolean states
15
Write a packed block of boolean states
Data model
Coils (0xxxx reference family)
Access
Write a packed block of boolean states
Protocol quantity
1–1968 coils
Worked example
Write ten coil states beginning at protocol address 19. The request declares quantity, byte count and packed data.
Typical use: Updating a documented contiguous command block in one transaction.
Request PDU
0F 00 13 00 0A 02 CD 01Normal response PDU
0F 00 13 00 0APDU examples omit the Modbus TCP MBAP header and the Modbus RTU unit-address/CRC envelope. Multi-byte values are shown in network byte order.
Run the reference
Compose the request publicly, then use Pro for advanced graded exceptions, saved fixtures, complete history and project sharing.