Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Virtual "Modbus RTU" sensor is used to read and write data from external equipment via Modbus RTU protocol (RS-485 line). An external converter to the USB bus is used to provide RS-485 communication.

...

The Modbus operates in "Master" mode. To enable the Modbus, go inside the web interface of Vutlan monitoring unit and go to Preferences menu >> Modbus RTU. Set up the bus according to the documentation for the "Slave" equipment. Please note "VT85 / Modbus extension board"  only support 1 stop bit.


Image Modified

Adding the Modbus reading virtual element

To create a "Modbus RTU (reading)" element, press add button "  " inside "Group tree" or "System tree" menu. Then choose "Modbus RTU (reading)". A modal window will appear:

Image RemovedImage Added

Click on the "Modbus RTU (reading)". Modbus element form will be opened:

Image RemovedImage Added

Fields in the form available for change:

...

The Modbus RTU bus configuration available in "Additional" tab:


Image RemovedImage AddedFields in the form available for change:

#NameDescription
1Slave addressModbus RTU slave address of external equipment
2Register index

Modbus protocol register start addres in hexademal hexadecimal view, like 00460F4A

3Function codeThe following functions are supported:
  • 0x01 - Read Coil Status
  • 0x02 - Read Input Status
  • 0x03 - Read Holding RegistersRegister
  • 0x04 - Read Input RegistersRegister
4Data type

Determines how to present the data:

  • 16 bits signed int
  • 16 bits unsigned int
  • 32 bits signed int
  • 32 bits unsigned int
  • 32 bits IEEE floating point
5Data ordering

Determines byte order in Modbus protocol response message:

  • low byte first, low word first
  • low byte first, high word first
  • high byte first, low word first
  • high byte first, high word first
6Polling periodDefines the time of polling the sensor value. From 10 seconds to 5 minutes. 

The Test button allows you to make a test connection with a modbus device. In additional fields, the bytes sequence of connection data is displayed, in hexadecimal form. Modbus request - data of the sent request, without a checksum. Modbus raw answer - data of the received answer, without a checksum. Modbus value - contains the data value interpreted in accordance with the selected Data type.

Adding the Modbus writing virtual element

To create a "Modbus RTU (writing)" element, press add button " Image Added " inside "Group tree" or "System tree" menu. Then choose "Modbus RTU (writing)". Modbus element form will be opened:

Image Added

Fields in the form available for change:

#NameDescription
1NameCreated element name
2Slave addressModbus RTU slave address of external equipment
3Register index

Modbus protocol register start addres in hexadecimal view, like 0F4A

4Function codeThe following functions are supported:
  • 0x05 - Write Single Coil
  • 0x06 - Write Single Register
5Writing valueDecimal integer value that will be writing in the specified register

The Test button allows you to make a value entry immediately into the Modbus register. Now the Modbus RTU writing can be inserted as a THEN task in logic schemes:

Image Added

Example, adding input register "Active power" for Eastron SDM220 Modbus slave

...