Skip to main content

Updated: 01.01.2024

Using the Modbus TCP module

Adding subdevices​

ParameterAllowed valuesDescription
Button-Button for switching something on or off
Multistate button-Button that opens a list from which you can select an option (selector)
RelayThrough Relay
Light
Fan Control
Switch for turning something on or off, with a status feedback indicator
DimmerThrough Dimmer
Light
Slider that can be moved while monitoring status feedback
DisplayThrough analog input
Temperature sensor
Luminosity sensor
Pressure sensor
Humidity sensor
Noise sensor
Rain sensor
Wind speed sensor
Motion sensor
Smoke sensor
Air pollution sensor
Visibility sensor
Current meter
Energy meter
Frequency meter
Voltage meter
CO2 sensor
Indicator for displaying a numeric value
Binary sensorThrough Binary Input
Input Button
Input Switch
Contact
Motion detector
Smoke detector
Noise detector
Rain detector
Wind detector
Filling detector
Water leakage detector
Gas leakage detector
Glass break detector
Presence detector
Proximity detector
Vibration detector
Light detector
On/off state indicator (lamp)
Text displayThrough analog input
Temperature sensor
Luminosity sensor
Pressure sensor
Humidity sensor
Noise sensor
Rain sensor
Wind speed sensor
Motion sensor
Smoke sensor
Air pollution sensor
Visibility sensor
Current meter
Energy meter
Frequency meter
Voltage meter
CO2 sensor
Text display
Blinds-Blinds control with two buttons (open/close) or three buttons (open/close/stop)
Value input-Numeric value input
RGB color inputMain light
Back light
Control for a three-channel dimmer
Custom color (color display)Main light
Back light
Control for displaying a color

Configuring subdevices​

General parameters​

ParameterAllowed valuesDescription
NameAny textSubdevice name used for identification
Device ID0-255Device ID on the Modbus TCP network
TypeCoil
Holding register
Discrete Inputs
Input Register
Modbus TCP data type
Address0-65535Data address in the Modbus TCP device's memory
Word SizeWord (16bit)
DWord (32bit)
Float (32bit)
Data size (not specified for the binary data types Coil and Discrete Inputs)
Content TypeLow Endian
Big Endian
Swapped Low Endian
Swapped Big Endian
Byte order in words and double words (not specified for the binary data types Coil and Discrete Inputs)
Bit number0-31Bit number in a word or double word (not specified for the binary data types Coil and Discrete Inputs)

Button​

ParameterAllowed valuesDescription
Press ValueAny numberNumber sent to the Modbus TCP device when the button is pressed
Release ValueAny numberNumber sent to the Modbus TCP device when the button is released

Multistate button​

ParameterAllowed valuesDescription
Active states2-5Number of states (options in the list)
State 1 labelAny textLabel displayed for state 1
State 1 valueAny numberValue sent to the device when state 1 is selected
State 2 labelAny textLabel displayed for state 2
State 2 valueAny numberValue sent to the device when state 2 is selected
State 3 labelAny textLabel displayed for state 3
State 3 valueAny numberValue sent to the device when state 3 is selected
State 4 labelAny textLabel displayed for state 4
State 4 valueAny numberValue sent to the device when state 4 is selected
State 5 labelAny textLabel displayed for state 5
State 5 valueAny numberValue sent to the device when state 5 is selected

Relay​

ParameterAllowed valuesDescription
On value (write)Any numberValue sent to the device when switched on
Off value (write)Any numberValue sent to the device when switched off
On value (read)Any numberValue that should be received from the device when switched on
Off value (read)Any numberValue that should be received from the device when switched off

Dimmer​

ParameterAllowed valuesDescription
Min valueAny numberValue corresponding to the slider's leftmost position
Max ValueAny numberValue corresponding to the slider's rightmost position

Display, Value input​

ParameterAllowed valuesDescription
UnitsAny text (no more than 5 characters)Units of measurement
Number after pointOff, 0-9Number of decimal places to display
Scale modeOff, OnEnable scaling mode: On - enabled, Off - disabled
InputMinAny integerValue mapped to the minimum input value
InputMaxAny integerValue mapped to the maximum input value
OutputMinAny integerValue mapped to the minimum output value
OutputMaxAny integerValue mapped to the maximum output value

Blinds​

ParameterAllowed valuesDescription
Open ValueAny numberValue sent to the device when the "Open" button is pressed
Close ValueAny numberValue sent to the device when the "Close" button is pressed
Stop ValueAny numberValue sent to the device when the "Stop" button is pressed

Importing subdevices from Microsoft Excel or Google Sheets​

You can quickly configure the Modbus TCP module using a template in Microsoft Excel or Google Sheets, then import the settings as a .csv file into the i3 lite project through the web interface.

  1. Open the template file in Microsoft Excel, Google Sheets, or another spreadsheet application.

  2. Add the required number of channels.

Modbus_csv_template02.png

  1. Add the required number of tags.

Modbus_csv_template03.png

  1. Add the required number of subdevices.

Modbus_csv_template04.png

Note

Headers of required subdevice parameters are highlighted in orange. Headers of optional parameters are highlighted in gray.

You can insert as many additional rows as needed into the template tables.

You can delete unnecessary rows or even entire tables from the template (except for the red "Separator" cell).

Do not change the contents of colored cells (table headers).

You can import Modbus TCP settings into i3 lite using the pro version of the spreadsheet template. The imported file formats are compatible.

  1. Save the configured spreadsheet as a .csv file.

In Microsoft Excel:

Modbus_csv_template05.png

In the dialogs that follow, select OK and then No .

Modbus_csv_template11.png

Modbus_csv_template12.png

In Google Sheets:

Modbus_csv_template06.png

  1. Open the i3 lite project. On the Devices tab, add the "Modbus TCP" module.

  2. Select "+" to add a new subdevice.

  3. Select the down-arrow button to import a .csv file.

Modbus_csv_template07.png

  1. A message appears:

Modbus_csv_template08.png

  1. In the browser address bar, enter the panel's IP address followed by a colon and port number "1090". Press Enter.

Modbus_csv_template09.png

  1. Drag the .csv file from File Explorer directly onto the open web page, or select the file using "Browse".

  2. On the i3 pro panel, the previous message should disappear and new subdevices should appear in the "Modbus TCP" module.

Modbus_csv_template10.png

Note

Devices configured incorrectly in the .csv file are ignored during import. If parameters are configured incorrectly in the .csv file, their values are replaced with the defaults.