Required Parameters
To add a device using the Modbus TCP/IP communication protocol, the following parameters are required.string
required
A unique identifier for the device.Example:
converter1string
required
Indicates the type of device.Options:
converter, battery, otherstring
required
The communication protocol between the controller and the device. For this type of device, it will always be
Modbus TCP/IP.Example: Modbus TCP/IPstring
required
The static IP address set for the device.Example:
192.168.1.20int
required
The port number used for communication. Please consult the device’s manual to determine the port on which it communicates.Example:
502int
required
The slave ID of the device. Please consult the device’s manual to determine the specific slave ID.Example:
1string
required
The name of the device’s control map on the controller.Example:
cet_30C3_controlstring
required
The name of the device’s address map on the controller.Example:
cet_30C3_address_mapbool
required
Indicates whether the device is enabled or disabled. A value of true means the device is disabled, while false means the device is enabled.
Optional Parameters
The parameters listed below are optional and are not required for a device with the Modbus TCP/IP protocol to work properly. However, sometimes it is desirable to add these optional parameters for device monitoring or because they are required by the manufacturer.bool
Marks this device as critical or not. If a device is marked as critical (value true), any fault occurring on this device will send out an alert or notification over Telegram.
float
Indicates the delay between consecutive Modbus operations, read or write. Between each Modbus command, the controller will wait this amount of time. The value is expressed in seconds.Example:
0.2string
Indicates the name of the device’s forward map on the controller.Example:
cet_30C3_forward_mapExample
The snippet below demonstrates a device with idconverter1 and protocol Modbus TCP/IP, including all the required parameters along with the optional parameters.