![Metz Connect EWIO 2 User Manual Download Page 94](http://html.mh-extra.com/html/metz-connect/ewio-2/ewio-2_user-manual_1781387094.webp)
EWIO
2
User Manual
V 1.1 | Stand 10/2020
Seite 94 von 96
METZ CONNECT GmbH | Im Tal 2 | 78176 Blumberg | Germany
Tel. +49 7702 533-0 | Fax +49 7702 533-433
For additional documentations look at www.metz-connect.com
13.
Creating a template for Modbus counters
A template for a Modbus counter can be created with all common text editors.
The template is a JSON file which can be interpreted by the EWIO
2
.
The already implemented templates can be found in the EWIO
2
directory
/var/opt/etc/modbus/templates/.
Attention !
The created templates must first be read into the database before they can be
used. For this purpose the sentence in the configuration file
/var/opt/etc/ewio2server.ini load_modbus_templates=false has to be changed to
load_modbus_templates=true.
The required Modbus registers can be found in the manufacturer documentation of the new
counter.
The basic format of the template looks like this:
{
"device":
{
"Address": 0,
"AddressBase": 0,
"Type": "manufacturer_type",
"TX":
[
{"function": 3, "start": 0, "length": 10}
],
"RX":
[
{"register": 0, "format": "HEX8", "unit": "unit",
"description": "description", "select":""}
]
}
}
The individual items are:
Address
Placeholder for slave address of the device, leave at 0
AddressBase Start address of the address range (0 or 1)
Type
Name of the device (any text string)
TX [ ]
Array with send elements. Each element contains the elements to determine a
send frame.