: write (dev, target, address, values)
: read (dev, target, address, values, serverId, precision)

Write data data to modbus device dev target target starting at address address.

Inputs

dev - connected modbus device

target - target type to read. One of ’coils’ or ’holdingregs’

address - address to start reading from.

data - data to write.

serverId - address to send to (0-247). Default of 1 is used if not specified.

precision - Optional precision for how to interpret the write data. Currently known precision values are uint16 (default), int16, uint32, int32, uint64, uint64, single, double.

Outputs

None

See also: modbus.

Package: instrument-control