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: ilevia X1 port A indicates the left port of 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
Data format configuration in the modbus configured component 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;

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!