Perform a write then read operation on groups of holding registers in a single MODBUS transaction
writeRead(m,
writes data to MODBUS object writeAddress
,values
,readAddress
,readCount
)m
at the starting address
writeAddress
using the values to write
values
, and then reads data at the starting address
readAddress
using the number of values to read
readCount
.
This function performs a combination of one write operation and one read operation on groups of holding registers in a single MODBUS transaction. The write operation is always performed before the read. The range of addresses to read must be contiguous, and the range of addresses to write must be contiguous, but each is specified independently and may or may not overlap.
writeRead(m,
additionally uses the writeAddress
,values
,readAddress
,readCount
,serverId
)serverId
as the address of the server
to send the command to.
writeRead(m,
adds optional precisions for the write and read operations. The
writeAddress
,values
,writePrecision
,readAddress
,readCount
,readPrecision
)writePrecision
and readPrecision
arguments specify the data format of the register being read from or written to
on the MODBUS server.