Setup the Modbus.
Read a coil from slave device.
Read a discrete input from slave device.
Read multiple coils of a slave device.
Read multiple discrete inputs of a slave device.
Read a single unsigned 16-bit register of a slave device.
Read multiple unsigned 16-bit registers of a slave device.
Write a single coil to a slave device.
Write a coils of a slave device.
Write a single unsigned 16-bit value to a register of a slave device.
Write a multiple unsigned 16-bit values to a slave device.