Methods

Setup

Setup the Modbus.

Read Coil

Read a coil from slave device.

Read Discrete Input

Read a discrete input from slave device.

Read Multiple Coils

Read multiple coils of a slave device.

Read Multiple Discrete Inputs

Read multiple discrete inputs of a slave device.

Read Register

Read a single unsigned 16-bit register of a slave device.

Read Multiple Registers

Read multiple unsigned 16-bit registers of a slave device.

Write Single Coil

Write a single coil to a slave device.

Write Multiple Coils

Write a coils of a slave device.

Write Register

Write a single unsigned 16-bit value to a register of a slave device.

Write Multiple Registers

Write a multiple unsigned 16-bit values to a slave device.