Chapter 6. Serial I/O, SNP & RTU Protocols
GFK-2222AD April 2018 249
Message (23): Read Write 4x Memory
Performs a combination of one read and one write operation in a single Modbus transaction. The function
can write new contents to a group of 4x registers, and then return the contents of another group of 4x
registers. Broadcast is not supported.
Query:
The query specifies the starting address and quantity of registers of the group to be read. It also specifies
the starting address, quantity of registers, and data for the group to be written. The Byte Count field
specifies the quantity of bytes to follow in the Write Data field.
Here is an example of a query to read six registers starting at register 5, and to write three registers
starting at register 16, in slave device 17: