MUC goes Modbus – Read out Modbus RTU meters (Part 2)

While the first part gave a general introduction to the topic, we would like to describe the parameterization of the interfaces and the configuration of the meters in detail.

Generally, Modbus RTU is operated via an RS-485 interface. The interface is inactive by default. It is activated and parameterized in the tab “Configuration” of the website of the MUC.easyplus.

Parameterization of the RS-485 interface

These settings depend on the used meter.

If the meters have different parities, baud rates, data and stop bits, an adjustment has to be made at the meter. If several devices are connected, they should all be parameterized in the same way, no mixed parameterization should be made.

Parametrierung der RS-485 Schnittstelle

Afterwards, the Modbus meter and its registers can be added manually in the tab “Meter”.

Now, meters can be added as follows:

Unlike the M-Bus, the Modbus meters cannot be scanned, but have to be added manually once.

To do this, click on the “Add” button in the tab “Meter” and parameterize the meter as shown in the screenshot below. The parameters “Serial”, “Manufacturer“, “Medium“ and “Version“ are not used in the Modbus protocol. However, they help to improve the allocation, similar to the M-Bus. The Modbus address has to be entered in the parameter “Link”.

Modbus-Zähler hinzufügen

After adding the meter, we now concentrate on the configuration.

Configuration of the meter value

The configuration starts with a right click on the meter and selection of “Add value”.

Konfiguration des Modbus Zählerwertes

Following this, the meter value has to be configured as specified by the manufacturer. These are the most important parameters briefly explained:

Scale

Here, the scaling of the value is specified. This is mostly only relevant when using integer types (e.g. UINT32).

Encode type

The data type of the meter value specified by the manufacturer is required in this field. We support the following formats:

vom Hersteller angegebene atentyp des Zählerwertes

Modbus register adress

In this field, the Modbus register of the meter to be queried must be specified. It has to be considered whether the respective meter manufacturer counts its registers from 0 or from 1.

User label and Description

A user-specific description of the meter value can be added in these fields.

In the following example, the description of the manufacturer’s value was used. Usually, it is necessary to have a look in the data sheet of the manufacturer, which values are retrievable and at which address.

benutzerspezifische Beschreibung des Zählerwertes

When specifying the register addresses, the counting method of the manufacturer has to be considered. Some manufacturers start with register address 0 and others with 1. Because the manufacturer in the example counts from register 1 and we from register 0, you have to subtract 1 register from the one specified in the manual during configuration. 

After the successful configuration, the created Modbus meters are automatically read according to the set readout interval.

In the third part, we explain the procedure for Modbus TCP meters and show a specific example.

Categories:
Categories

Similar Posts

Our new software features

read more

#wesolve – Training routines at solvimus GmbH

read more

Third party cookies & scripts

This site uses cookies. For optimal performance, smooth social media and promotional use, it is recommended that you agree to third party cookies and scripts. This may involve sharing information about your use of the third-party social media, advertising and analytics website.
For more information, see privacy policy and imprint.
Which cookies & scripts and the associated processing of your personal data do you agree with?

You can change your preferences anytime by visiting privacy policy.