0% found this document useful (0 votes)
33 views11 pages

MODBUS Communication Protocol Version 1.8 For LDQ

The document describes an electromagnetic flowmeter MODBUS communication protocol including data areas, parameter areas, and sequencing for reading and writing data and parameters. It defines register addresses, data formats, and function codes for communicating with a host computer in real-time.

Uploaded by

Nimo Makas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views11 pages

MODBUS Communication Protocol Version 1.8 For LDQ

The document describes an electromagnetic flowmeter MODBUS communication protocol including data areas, parameter areas, and sequencing for reading and writing data and parameters. It defines register addresses, data formats, and function codes for communicating with a host computer in real-time.

Uploaded by

Nimo Makas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Electromagnetic flowmeter MODBUS communication protocol

Version 1.8
1. Description
This communication protocol is suitable for the communication between the host computer
and the host transfer board. Real-time collection of instantaneous flow rate (unit), instantaneous
flow rate, flow percentage, fluid resistance, forward total, reverse total, alarm status, etc.; and
can read and write parameters to the host.

2. Definition
This statute stipulates as follows:
Function code 0x03---Read data command
0x04---Read parameter command
0x06---write parameter command
3. Data area
Register address Data Register
Parameter definition
(Hex) Format length
1010 Instantaneous flow float 2
1012 Instantaneous velocity (m/s) float 2
1014 Percentage of flow (%) float 2
1016 Fluid resistance value (KΩ) float 2
1018 Positive total (Integer) long 2
101A Positive total (Decimal) float 2
101C Reverse total (Integer) long 2
101E Reverse total (Decimal) float 2
1020 Instantaneous flow unit uchar 1
1021 Total unit uchar 1
1022 Alarm status uchar 1
4. Parameter area
No. Display text Byte No. Display text Byte No. Display text Byte
01 Language 01 13 Pulse equivalent unit 01 25 Current zero 02

02 Pipe diameter 01 14 01 26 02
Pulse Width Full current
(mm)
03 05 15 02 27 Factory 02
Frequency output full
Flow range calibration
scale
coefficient
04 Flow unit 01 16 mailing address 01 28 Converter code 0A

05 01 17 Communication 01 29 Presupposition 0A
Flow power index
speed of positive total
06 Automatic range 01 18 02 2A Reverse total 0A
ATC alarm allowed
switching preset
07 01 19 Electrode alarm 02 2B 06
Damping time Date
threshold (KΩ)
08 Flow direction 01 1A Input control 02 2C Time 06

09 Zero point 02 1B Upper limit alarm 02 2D One-level 02

correction (+/-) allowed password


0A Flow zero point 02 1C Upper limit threshold 02 2E Two-level 02

correction (%) password


0B Small signal 02 1D Lower limit alarm 02 2F Three-level 02

removal point (%) allowed password


0C Small signal 01 1E Lower limit threshold 02 30 Manufacturer 02

removal allowed (%) logo


0D 01 1F 02 31 Reverse 01
Change rate limit
Total reset password measurement
(%)
allowed
0E Insensitive time (s) 01 20 Transmitter code 0C

0F Flow integration 01 21 Transmitter 02

unit coefficient
10 Decimal place of 01 22 02
Excitation method
flow
11 01 23 Instrument 02
Pulse output type
calibration factor
12 02 24 Measured fluid 02
Pulse equivalent
density (t/m³)
5. Upper computer sequencing
No. Display text Parameter Display text No. Display text No. Display text
number
01 0C Excitation 1A 24 Presupposition of
Pipe size(mm) Language
method positive total
02 0D 1B 25 Reverse total
Flow range Flow direction Mailing address
preset
03 0E Small signal 1C Communication 26
Flow unit Date
removal allowed speed
04 0F Small signal 1D 27
Decimal place of
Damping time removal point Time
flow
(%)
05 Flow zero 10 1E 28
Flow integration
point Pulse Width Current zero
unit
correction
06 Transmitter 11 Upper limit 1F Total reset 29
Full current
coefficient alarm allowed password
07 12 20 2A Factory
Transmitter Upper limit Automatic range
calibration
code threshold (%) switching
coefficient
08 Pulse output 13 Lower limit 21 2B One-level
Input control
type alarm allowed password
09 Frequency 14 22 2C
Lower limit Change rate limit Two-level
output full
threshold (%) (%) password
scale
0A Pulse 15 ATC alarm 23 Insensitive time 2D Three-level
equivalent allowed (s) password
0B Pulse 16 2E
Electrode alarm Manufacturer
equivalent
threshold (KΩ) logo
unit
17 Reverse 2F

measurement Converter code


allowed
18 Instrument
calibration
factor
19 Measured fluid
density (t/m³)
Unless otherwise specified, all data items are transmitted in hexadecimal (Hex), with the high
bit in the front and the low bit in the back
The blue display is the list item corresponding to the read data item.
Regarding the first, second, third, fourth level permissions of parameter settings, etc., it is not
within the scope of this communication protocol, please refer to the relevant manuals.
6. Communication
Operating mode
Send command word:
0XFF Slave address 0XFE 0X00 0X00 0X00 0X00 0X00

Return command word:


0XFF Operating mode 0XFE

Definition:
No. 00 01 02 03 04 05 06 07

Communication version V4.2 V1.0 V1.1 V1.6 V1.8 V2.0 V2.1 V1.2

Read data
Send command word:
Register Register
Register Register CRC check CRC check
Slave length length
0X03 address address Low High
address High Low
High position Low position position position
position position
Return command word:
CRC check CRC check
Slave address 0X03 Data lengthN Data 01 …… Data N
Low position High position
Take the slave address 0X01 as an example as follows:
Instantaneous flow:
01 03 10 10 00 02 C1 0E
Return:
01 03 04 2C 52 1A 46 66 19
2C 52 1A 46 converted to float number: 9876.54

Instantaneous flow rate (m/s):


01 03 10 12 00 02 60 CE
Return:
01 03 04 F6 28 B1 42 02 2B
F6 28 B1 42 is converted to float number: 88.58

Flow percentage (%):


01 03 10 14 00 02 80 CF
Return:
01 03 04 00 00 A4 41 FF 3A
00 00 A4 41 converted to float number: 20.50

Fluid resistance value (KΩ):


01 03 10 16 00 02 21 0F
Return:
01 03 04 00 00 C8 42 92 3B
00 00 C8 42 converted to float number: 100.00

Positive total:
01 03 10 18 00 04 C0 CE
Return:
01 03 08 B1 68 DE 3A 80 D6 FC 3D 3A 99
B1 68 DE 3A converted to long number: 987654321
80 D6 FC 3D converted to float number: 0.123456
The positive total is: 987654321.123456

Reverse total:
01 03 10 1C 00 04 81 0F
Same positive total

Instantaneous flow unit:


01 03 10 20 00 01 81 00
Return:
01 03 02 00 02 39 85
Definition:
00 01 02 03 04 05 06 07
m³/s m³/min m³/h L/s L/min L/h USg/m USg/h
08 09 0A 0B 0C 0D 0E 0F
ig/m ig/h t/s t/m t/h kg/s kg/min kg/h

Total unit:
01 03 10 21 00 01 D0 C0
Return:
01 03 02 00 07 F9 86
Definition:
00 01 02 03 04 05 06 07
0.001L 0.01L 0.1L 1L 0.001m³ 0.01m³ 0.1m³ 1m³
08 09 0A 0B 0C 0D 0E 0F
0.001USgal 0.01USgal 0.1USgal 1USgal 0.001igal 0.01igal 0.1igal 1igal
10 11 12 13 14 15 16 17
0.001kg 0.01kg 0.1kg 1kg 0.001t 0.01t 0.1t 1t

Alarm status:
01 03 10 22 00 01 20 C0
Return:
01 03 02 00 00 B8 44
Definition:
01 02 04 08 10
Excitation alarm Electrode alarm ATC alarm Upper limit alarm Lower limit alarm

All data:
01 03 10 10 00 13 01 02
Return:
01 03 26 2C 52 1A 46 F6 28 B1 42 00 00 A4 41 00 00 C8 42
B1 68 DE 3A 80 D6 FC 3D B1 68 DE 3A 80 D6 FC 3D 00 02
00 07 00 00 87 2B

Read/write parameters
Read command word:
CRC check CRC check
Slave Parameter Parameter Length Length
0X04 Low High
address high low high low
position position
Return command word:
CRC check CRC check
Slave Parameter Parameter Parameter
0X04 D0 …… Dn Low High
address high low length
position position
Write command word:
CRC check CRC check
Slave Parameter Parameter Parameter
0X06 D0 …… Dn Low High
address high low length
position position
Return command word:
CRC check CRC check
Slave Parameter Parameter Length Length
0X06 Low High
address high low high low
position position

Now take the slave address 0X01 as an example: (The same type of data format is also the same)
Language 0X01
01 04 00 01 00 01 60 0A
Return:
01 04 00 01 01 00 A0 5A
Definition:
00 01
Chinese English
Pipe diameter (mm) 0X02:
00 3 0F 200 1E 1400
01 6 10 250 1F 1600
02 8 11 300 20 1800
03 10 12 350 21 2000
04 15 13 400 22 2200
05 20 14 450 23 2400
06 25 15 500 24 2600
07 32 16 600 25 2800
08 40 17 700 26 3000
09 50 18 800
0A 65 19 900
0B 80 1A 1000
0C 100 1B 1100
0D 125 1C 1200
0E 150 1D 1300

Flow range 0X03


01 04 00 03 00 01 C1 CA
Return:
01 04 00 03 05 03 02 07 06 08 D6 48
Range 0~65535 (0X0000~0XFFFF)
Flow unit 0X04
01 04 00 04 00 01 70 0B
Return:
01 04 00 04 01 02 31 9A
Definition:
00 01 02 03 04 05 06 07
m³/s m³/min m³/h L/s L/min L/h USg/m USg/h
08 09 0A 0B 0C 0D 0E 0F
ig/m ig/h t/s t/m t/h kg/s kg/min kg/h
Flow power index 0X05
00 01 02 03 04 05
-5 -4 -3 -2 -1 0
If the return value is 03, then the flow range value is 327.68 m³/h

Automatic range switching 0X06


00 01 02 03
Prohibit 1:2 1:4 1:8
Damping time 0X07
00 01 02 03 04 05 06 07
0.2s 0.5s 0.8s 1.0s 2.0s 3.0s 4.0s 5.0s
08 09 0A 0B 0C 0D 0E
6.0s 8.0s 10.0s 20.0s 30.0s 50.0s 100.0s

Flow direction 0X08


00 01
Positive Reverse
Zero point correction (+/-) 0X09
00 01
Positive Negative
Flow zero point correction 0X0A
01 04 00 0A 00 01 11 C8
Return:
01 04 00 0A 02 22 B8 B0 8E
Represents +8.888
Return:
01 04 00 0A 02 A2 B8 D1 4E
Represents -8.888 (A2B8-8000)

Small signal removal point (%) 0X0B


01 04 00 0B 00 01 40 08
Return:
01 04 00 0B 02 03 78 A9 72
Represents 88.8%, range 0~99.9%

Small signal removal allowed 0X0C


00 01
Allow Prohibited
Change rate limit (%) 0X0D
00 …… 1D
Insensitive time (s) 0X0E
0X 00 …… 0X13

Flow integration unit 0X0F


00 01 02 03 04 05 06 07
0.001L 0.01L 0.1L 1L 0.001m³ 0.01m³ 0.1m³ 1m³
08 09 0A 0B 0C 0D 0E 0F
0.001USgal 0.01USgal 0.1USgal 1USgal 0.001igal 0.01igal 0.1igal 1igal
10 11 12 13 14 15 16 17
0.001kg 0.01kg 0.1kg 1kg 0.001t 0.01t 0.1t 1t

Flow decimal place 0X10


00 01 02 03
Pulse output type 0X11
00 01
Frequency pulse
Pulse equivalent 0X12
01 04 00 12 00 01 91 CF
Return:
01 04 00 12 02 22 B8 B6 2E
Represents 8888
Pulse equivalent unit 0X13
00 01 02 03 04 05 06 07 08 09 0A 0B
0.001L/ 0.01L/ 0.1L/ 1.0L/ 2.0L/ 5.0L/ 10.0L/ 100.0L/ 1.0 10.0 100.0 1000.0
P P P P P P P P m³ m³/P m³/P m³/P
/P

Pulse width 0X14


00 01 02 03 04 05 06 07 08 09 0A
Automatic 10ms 20ms 50ms 100ms 150ms 200ms 250ms 300ms 350ms 400ms

Frequency output full scale 0X15


Range 1~5999Hz (01~176F)
Correspondence address 0X16
Range 1~255Hz (01~FF)

Communication speed 0X17


NO 00 01 02 03 04 05 06 07 08 09 0A 0B 0C

De 600 1200 2400 4800 9600 14400 19200 28800 38400 57600 115200 128000 256000

He 0X25 0X4B 0X96 0X12C 0X258 0X384 0X4B0 0X708 0X960 0XE10 0X1C20 0X1F40 0X3E80

x 8 0 0 0 0 0 0 0 0 0 0 0 0

Empty pipe alarm allowed 0X18


00 01
Allow Prohibited
Electrode alarm threshold (KΩ) 0X19
Range 0~999.9KΩ (0000~ 270F)
Input control 0X1A
00 01 02
Input Accumulation Accumulation
prohibited stop reset
Upper limit alarm allowed 0X1B
00 01
Allow Prohibited
Upper limit threshold (%) 0X1C
Range 0~199.9% (0000~ 07CF)
Lower limit alarm allowed 0X1D
00 01
Allow Prohibited
Lower limit threshold (%) 0X1E
Range 0~199.9% (0000~ 07CF)
Total reset password 0X1F
Range 00000~59999 (0000~ EA5F)
Transmitter code 0X20 (BCD code)
Range 000000000000~999999999999 (000000000000~999999999999)
Sensor coefficient 0X21
Range 0.0000~3.9999 (0000~ 9C3F)
Excitation method 0X22
00 01 02 03
Type1 Type2 Type3 Type4
Instrument calibration coefficient 0X23
Range 0.0000~3.9999 (0000~ 9C3F)
Measured fluid density (t/m³) 0X24
Range 0.000~9.999t/ m³ (0000~ 270F)
Current zero point 0X25
Range 0.0000~1.9999 (0000~ 4E1F)
Current full scale 0X26
Range 0.0000~4.9999 (0000~ C34F)
Factory calibration coefficient 0X27
Range 0.0000~3.9999 (0000~ 9C3F)
Converter code 0X28 (BCD code)
Range 0000000000~9999999999 (0000000000~9999999999)
Preset positive total amount 0X29 (BCD code)
Range 0000000000~9999999999 (0000000000~9999999999)
Reverse total amount preset 0X2A (BCD code)
Range 0000000000~9999999999 (0000000000~9999999999)
Date 0X2B (BCD code)
Range 00/01/01~99/12/31 (000101~991231)
Time 0X2C (BCD code)
Range 00/00/00~23/59/59 (000000~235959)
Primary password 0X2D
Range 0000~9999 (0000~ 270F)
Secondary password 0X2E
Range 0000~9999 (0000~ 270F)
Three-level password 0X2F
Range 0000~9999 (0000~ 270F)
Manufacturer logo 0X30
Range 00000~65535 (0000~ FFFF)
Reverse measurement allowed 0X31
00 01
Allow Prohibited
All data
Read command word
01 04 00 01 00 31 60 1E
Return command word
01 04 00 01 7D 00 0C 02 08 02 07 04 02 02 00 06
00 00 00 00 00 00 05 01 00 00 07 02 00 00 0A 03
00 07 D0 01 05 00 01 03 E8 00 02 00 00 03 84 00
00 07 D0 01 05 00 01 03 E8 00 02 00 00 03 84 00
00 00 96 27 10 01 03 00 03 00 08 00 00 00 00 00
01 27 10 00 00 03 E8 27 10 29 2F A4 C7 27 10 01
03 00 03 00 08 00 00 00 01 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 00
03 01 02 00 08 00 00 00 00 1A CC 1B 32 0D 90 52
6C 00

You might also like