Select Page

MODBUS-RTU & MODBUS-TCP Gateway’s parameters

MODBUS RTU/ASCII

Modbus RTU gateway inside the Home automation Configuration software EVE Manager

GATEWAY’S PROPERTIES

Select device: The option called Ilevia X1 port A indicates the left RS485 port on the X1 Server, port B indicates the right port of the X1 Server;

Modbus ports mounted on the Home automatio Server X1
  • Boud rate: Set the boud rate Accordingly to the setting specified in the device documentation.
  • Bits: Set the Bits accordingly as specified in the device documentation.
  • Parity : Set the Parity accordingly as specified in the device documentation.
  • Stop bits: Set the Stop bits accordingly as specified in the device documentation.
  • Connection timeout: Connection timeout means that the server is taking too long to reply to a data request made from another device. Timeouts are not a reply message: they show up when there isn’t a reply and a server request is not fulfilled in a predetermined length of time.
  • Read interval:  The interval time between one reading to another in milliseconds;
  • Receive timeout: If the data is not received for X milliseconds the server will  generate an error;
  • Connection CRC error timeout:  In case of communication errors before trying again, the server waits for the time set in ms;
  • Wait interval if frame failed:  Waiting time in ms in case of a failed frame;
  • Wait interval if frame success: Waiting time in ms in case of a successful frame;
  • Bytes order: Defines the order of transmission of the individual byte of an information unit via a serial line;
  • Ascii transform: This checkbox allows the user to program devices using MODBUS Ascii method;
  • Remove echo from serial: If the hardware remove echo from serial automatically, leave this field unchecked;

MODBUS TCP

How to set the protocol Modbus TCP inside Home autoamtion software EVE Manager

GATEWAY’S PROPERTIES

  • Name: Enter the title for your KNX gateway;
  • Protocol : Choose the protocol to match with the gateway;
  • Enable : It allows to enable /disable the selected gateway;
  • Address: IP address of the Modbus Master;
  • Port: Port number of the Modbus Master;
  • Connection timeout: Connection timeout means that the server is taking too long to reply to a data request made from another device. Timeouts are not a reply message: they show up when there isn’t a reply and a server request is not fulfilled in a predetermined length of time.
  • Read interval: The interval time between one reading to another in milliseconds;
  • Receive timeout: If the data is not received for X milliseconds the server will  generate an error;
  • Connection CRC error timeout:  In case of communication errors before trying again, the server waits for the time set in ms;
  • Wait interval if frame failed: Waiting time in ms in case of a failed frame;
  • Wait interval if frame success: Waiting time in ms in case of a successful frame;
  • Bytes order: Defines the order of transmission of the individual bits of an information unit via a serial line;

TIPICAL MODBUS COMPONENT CONFIGURATION

Modbus gateway component configuration inside the Home automation software EVE Manager

READ / WRITE configuration

  • Unit ID: Choose the correct Modbus device’s Unit ID. This parameter is indicated inside the document of the device’s modbus configuration, or in some cases, needs to be set through the device itself;
  • Function ID: Choose the correct register Function ID, this confiugration is indicated inside the register configuration inside the device’s datasheet;
  • Start register: Choose from the modbus device’s datasheet the register, check out the register’s capability, if it can be written or only red from and to the EVE server;
  • Count Registers or Coils: This parameter allows to count precise register and coils from a starting register;
  • Start Bit: Choose the start register’s bit. Sometimes a register can contain multiple bits in the same istance, this parameter allows to choose the starting bit that will be taken once the EVE server reads the register;
  • Count Bits: Choose how many bits need to be count in the single register;

Data format configuration

  • Type: Select the correct data format that the register uses, this is indicated in the modbus documentation;
  • Min: The minimum number that the value will reach;
  • Max: The maximum number that the value will reach;
  • Multiplier: Insert the multiplier figure which the data will be proccessed with;
  • Digits: This parameter limits the displayed digits of a value after the comma;
  • Digit format: Insert how many figures will be set to the value coming from the modbus device;
Configurazione componente info con funzione Read coils all'interno del software di configurazione di Ilevia EVE Manager.

Read coil configuration (0x01 Read coils)

In specific the configuration of the Coil read with function (1) Read coils, will be necessary to set specific parameters within the component configuration.

The component that is configured with the Modbus gateway has two specific parameters, that, in case of Coil reads, need to be configured in the correct way in order to read the data sent from the slave device. The settings are the following:

Starting Bit: The starting bit must be set with 0 as value if you want to read the bit 0. if the interested value is different from 0, you will need just to specify it.

Count Bit: The Count Bit setting is the number of bits the server will count of the specific register.

ILEVIA’S SERVERS WIRING EXAMPLES WITH MODBUS PROTOCOL


In the images below you can see how many possibilities of connections you can have using an EVE X1 Server, Raspberry Pi or a Virtual Machine as a ModBus Master with EVE Manager.

X1 SERVER

How does the Home automation server EVE X1 works inside Modbus

RASPBERRY PI SERVER

How does the raspberry pi works inside Modbus

VIRTUAL MACHINE SERVER

How does the virtual machine works inside Modbus

This is a visual representation on how we connect a 12 V powered device to the EVE X1 Server:

How does a modbus device is connected with the Home automation server EVE X1

MODBUS CONFIGURATION EXAMPLE

Example of modbus RTU configuration with the Seneca Energy meter

Here you will be able to download the configuration of the Energy Meter by Seneca (triple-phase) S534-80 .

Download the project here!

Example of modbus RTU configuration with the Finder energy meter

Here you will be able to donwload the configuration EVE Manager configuration of some of the components of the Finder 7M24 – 7M38.

Download the demo project here!

Example of modbus RTU configuration with the Dignitas relay board

Here you will be able to donwload the configuration EVE Manager configuration of some of the components of the Dingtian relay board.

Download the demo project here!

Example of modbus RTU configuration with the Carlo Gavazzi energy meter

Here you will be able to donwload the configuration EVE Manager configuration of some of the components of the Carlo Gavazzi EM340 energy meter.

Download the demo project here!

Example of modbus RTU configuration with the Inverter Fronius GEN24

Here you will be able to donwload the configuration EVE Manager configuration of some of the components of the Fronius Inverter GEN24.

Download the demo project here!

Example of modbus RTU configuration with the Energy Meter IME CE2DF3DTCL1

Here you will be able to donwload the configuration EVE Manager configuration of some of the components of the IME CE2DF3DTCL1 Energy Meter.

Download the demo project here!

Still Need Help? Our Customer Service Is Here For You.