MODBUS Communication Protocol Version 1.8 For LDQ
MODBUS Communication Protocol Version 1.8 For LDQ
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
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
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
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
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
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