data =
writeRead (dev, writeAddress, values, readAddress, readcount)
¶data =
writeRead (dev, writeAddress, values, readAddress, readcount, serverId)
¶data =
writeRead (dev, writeAddress, values, writePrecision, readAddress, readCount, readPrecision)
¶Write data values to the modbus device dev holding registers starting at address writeAddress and then read readCount register values starting at address readAddress.
dev - connected modbus device
writeAddress - address to start writing to.
values - data to write to the device.
readAddress - address to start reading from.
readCount - number of elements to read.
serverId - address to send to (0-247). Default of 1 is used if not specified.
precision - Optional precision for how to interpret the read data. Currently known precision values are uint16 (default), int16, uint32, int32, uint64, uint64, single, double.
data - data read from the device
See also: modbus.
Package: instrument-control