Communication with Yu Electric Flow Meter via Modbus RTU

While organizing examples, I found a communication case for the Yu Electric flow meter. The model of the flow meter was not noted, making it impossible to determine its specific model.

I can only organize and record this; those who encounter it can refer to it. It seems I need to be more careful in the future.

1. Instrument Settings – Communication Parameters

Set the communication parameters for the frequency converter. The settings in this example are as follows:

9600, 8, 1, no parity Device address: 1

2. Parameter Addresses

Name Area Address Read/Write Data Type
Instantaneous Flow 4 595 Read Only 32-bit Float
Forward Accumulation 4 785 Read Only 32-bit Unsigned Integer
Extended Forward Accumulation 4 777 Read/Write 32-bit Unsigned Integer
Reverse Accumulation 4 789 Read/Write 32-bit Unsigned Integer
Extended Reverse Accumulation 4 787 Read/Write 32-bit Unsigned Integer
Flow Unit 4 66 Read/Write 16-bit Unsigned Integer
Accumulation Unit 4 70 Read/Write 16-bit Unsigned Integer
Alarm 4 1049 Read Only 16-bit Unsigned Integer

3. Adding Modbus RTU Serial Port Driver

Add a serial port parent device, and under the parent device, add 2 Modbus RTU child devices, as shown in the figure below.

Communication with Yu Electric Flow Meter via Modbus RTU

Why do we need to add 2 Modbus RTU child device drivers? This needs special mention:

During testing, it was found that the addresses for the extended reverse accumulation and reverse accumulation data are continuous. If placed under one driver, it will report an error and needs to be handled separately. This may relate to the underlying mechanism of the flow meter, but we will not delve into that here; we can simply collect them with 2 separate drivers.

4. Setting Serial Port Parameters

The serial port parameters must match those set on the frequency converter. In this example, the settings are:

Communication with Yu Electric Flow Meter via Modbus RTU5. Variable Addition and Connection as shown in the figure below:Device 0Communication with Yu Electric Flow Meter via Modbus RTU

Device 1

Communication with Yu Electric Flow Meter via Modbus RTU

6. Child Device Parameter Settings

Communication with Yu Electric Flow Meter via Modbus RTUCommunication with Yu Electric Flow Meter via Modbus RTU

Note: The parameter settings for Child Device 0 and Child Device 1 are the same.

7. Configuration Screen

Communication with Yu Electric Flow Meter via Modbus RTU

Leave a Comment