The configuration model for the Modbus plugin
List of Modbus devices Each device is identified by its transport protocol and may have multiple datapoints. Two devices are considered equal if the properties values of their transport protocols are equal.
json { "devices": [ { // Unique "transport": { "type": "tcp", "host": "127.0.0.1", "port": 502 }, "datapoints": [] }, { // Unique "transport": { "type": "tcp", "host": "127.0.0.1", "port": 600 }, "datapoints": [] }, { // Unique "transport": { "type": "serial", "serial_interface": "some_interface", "slave_id": 1 }, "datapoints": [] }, { // Duplicate, the entire serial interface is the same. "transport": { "type": "serial", "serial_interface": "some_interface", "slave_id": 1 }, "datapoints": [...] } ] }All items must be unique
No Additional ItemsConfiguration for a Modbus device
The mapping between a datapoint and a Modbus memory block Currently a single datapoint that writes to a Modbus device can only be mapped to a single Modbus memory block. Specifying a datapoint to write to multiple modbus memory blocks is considered an invalid configuration.
No Additional ItemsThe mapping between a datapoint and a Modbus memory block as described in the specification
The mapping between a datapoint and a Modbus holding register
Read-only access, a datapoint/modbus memory block with this access mode will be read from the modbus device and requires that the same datapoint exists as a publisher in the modbus device
Write access, a datapoint/modbus memory block with this access mode will be written to the modbus device and requires that the same datapoint exists as a subscriber in the modbus device
The address of the holding register in the Modbus device (1-based)
Value must be greater or equal to 1.0
The data type of the holding register
Signed 16-bit integer. Uses one register.
Unsigned 16-bit integer. Uses one register.
Signed 32-bit integer. Uses two consecutive registers.
Unsigned 32-bit integer. Uses two consecutive registers.
32-bit floating-point. Uses two consecutive registers.
The polling frequency This only takes effect if the access mode is READ. It overrides the pollfrequencyms of the device for this particular datapoint.
Swap bytes within each 16-bit register (default: false). Applies to all data types (16-bit and 32-bit).
Swap the two 16-bit registers in a 32-bit value (default: false). Only applies to 32-bit types (Int32, UInt32, Float32). This field is ignored for 16-bit types.
The mapping between a datapoint and a Modbus input register
The address of the input register in the Modbus device (1-based)
Value must be greater or equal to 1.0
The data type of the input register
Signed 16-bit integer. Uses one register.
Unsigned 16-bit integer. Uses one register.
Signed 32-bit integer. Uses two consecutive registers.
Unsigned 32-bit integer. Uses two consecutive registers.
32-bit floating-point. Uses two consecutive registers.
The polling frequency It overrides the pollfrequencyms of the device for this particular datapoint.
Swap bytes within each 16-bit register (default: false). Applies to all data types (16-bit and 32-bit).
Swap the two 16-bit registers in a 32-bit value (default: false). Only applies to 32-bit types (Int32, UInt32, Float32). This field is ignored for 16-bit types.
The mapping between a datapoint and a Modbus discrete input
The address of the discrete input in the Modbus device (1-based)
Value must be greater or equal to 1.0
The polling frequency It overrides the pollfrequencyms of the device for this particular datapoint.
The mapping between a datapoint and a Modbus coil
Read-only access, a datapoint/modbus memory block with this access mode will be read from the modbus device and requires that the same datapoint exists as a publisher in the modbus device
Write access, a datapoint/modbus memory block with this access mode will be written to the modbus device and requires that the same datapoint exists as a subscriber in the modbus device
The address of the coil in the Modbus device (1-based)
Value must be greater or equal to 1.0
The polling frequency This only takes effect if the access mode is READ. It overrides the pollfrequencyms of the device for this particular datapoint.
The frequency at which the plugin should pull data from the Modbus devices
Value must be greater or equal to 1.0
The transport protocol used by the Modbus device
Host IP address of the Modbus TCP device (e.g., "127.0.0.1")
Port number of the Modbus TCP device (e.g., 502)
Value must be greater or equal to 0.0
Slave ID from the modbus specification (e.g., 1)
Value must be greater or equal to 0.0
Serial interface name from the device configuration
Slave ID from the modbus specification (e.g., 1)
Value must be greater or equal to 0.0