Instrument-control Toolkit - @octave_modbus/read
- :
data =
read(dev, target, address)
- :
data =
read(dev, target, address, count)
- :
data =
read(dev, target, address, count, serverId, precision)
Read data from modbus device dev target target starting at address address.
Inputs
dev - connected modbus device
target - target type to read. One of ’coils’, ’inputs’, ’inputregs’ or ’holdingregs’
address - address to start reading from.
count - number of elements to read. If not provided, count is 1.
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.
Outputs
data - data read from the device
See also: modbus.