Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
23 views7 pages

Flow Totalizer Communication Protocol 96

The document outlines the communication protocol for a flow meter using MODBUS RTU protocol, detailing the electrical interface, frame format, and address range. It specifies commands for reading various parameters such as flow rate, frequency, pressure, and temperature, along with their corresponding data formats and register addresses. Additionally, it provides examples of MODBUS requests and responses, as well as instructions for modifying flow coefficients and performing a total reset.

Uploaded by

Edgar Duomingues
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)
23 views7 pages

Flow Totalizer Communication Protocol 96

The document outlines the communication protocol for a flow meter using MODBUS RTU protocol, detailing the electrical interface, frame format, and address range. It specifies commands for reading various parameters such as flow rate, frequency, pressure, and temperature, along with their corresponding data formats and register addresses. Additionally, it provides examples of MODBUS requests and responses, as well as instructions for modifying flow coefficients and performing a total reset.

Uploaded by

Edgar Duomingues
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/ 7

Flow Totalizer communication protocol(RTU)

1. Protocol overview

1.1 Communication protocol


This flow meter uses MODBUS RTU protocol (Slave).
Electrical Interface: RS485 2W
Serial communication of parameters:(baudrate=1200 /2400/4800/9600 bps
start bits=1、data bits =8、parity= no、stopbits =1)

1.2 Frame format


Address Function Data CRC End
code
8 bits 8 bits n*8 bits 16 bits T1-T2-T3-T4

Two frames are separated by a silent interval of at least 4character times(T1-T2-T3-T4).

1.3 Address
Address range: “1-255”.

2.Command

2.1 This flowmeter supply command:


Function code 03 (Read-Only) Read single or multiple hold
registers

2.2 Data frame:


Data format: Integer/Float
32 Float of format is IEEE754,Single precision(4 bytes), order of sequence is 3-4-1-2。
After conversion to 1-2-3-4 order,From high to low were 31, 30, 29, 0, etc...。
31 30-23 22-0
Sign Exponent Fraction

Laid out as bits, floating point numbers look like this:

Single: SEEEEEEE EMMMMMMM MMMMMMMM MMMMMMMM

The sign bit 0 denotes a positive number, and 1 denotes a negative number.

Function code 03(Read single or multiple hold registers):

MODBUS Request
Address 1 BYTE 01-255
Function code 1 BYTE 03
Starting Address 2 BYTES 0x-0xFFFF
Quantity of Registers 2 BYTES 1-32
CRC Low-Order Byte 1 BYTE
CRC High-Order Byte 1 BYTE
MODBUS Response
Address 1 BYTE 01-255
Function code 1 BYTE 03
Byte count 1 BYTE 2*N(N = Quantity of Registers)
CRC Low-Order Byte 1 BYTE
CRC High-Order Byte 1 BYTE

For example
Request Reponses
Domain name Data(HEX) Domain name Data(HEX)
01 Address 01
Function code 03 Function code 03
Starting Address(High) 00 Byte count 08
Starting Address(Low) 00 Registers high(0001) 0C
Quantity of Registers(High) 00 Registers low(0001) E8
Quantity of Registers(Low) 04 Registers high(0002) C2
Registers low(0002) FB
Registers high(0003) C9
Registers low(0003) 26
Registers high(0004) C3
Registers low(0004) 7B
CRC Checking CRC Checking

2.3 Data item define


R/W Registers address Data length Data type Description
R 40001-40002 2 SINGLE Flowrate ; Communication unit is the
same as display unit.
R 40003-40004 2 SINGLE Frequency(Hz).
R 40005-40006 2 SINGLE Differential pressure(kPa).
R 40007-40008 2 SINGLE Pressure(kPa).
R 40009-40010 2 SINGLE Temperature (℃).
R 40011-40012 2 SINGLE Density (kg/m3).
R 40013-40014 2 SINGLE
Heat quantity(MJ/h).

R 40015-40016 2 SINGLE State code1,2.


R/W 40017-40018 2 SINGLE Flow coefficient(n/L)
R 40019-40020 2 SINGLE reserve
R 40021-40022 2 SINGLE Total Flow; Communication unit is the
same as display unit.
R 40023-40024 2 SINGLE Total Heat quantity; Communication unit
is the same as display unit.
R 40025-40026 2 SINGLE reserve
R 40027-40028 1 Word reserve
R 40029 1 Word Number of power outages
R/W 40030 1 Word Total reset,(Input 1, Total reset.)
R 40031 1 Word Number of illegal operations
R 40032 1 Word reserve
State code:
40015:State code 1
State position content sign
16 reserve
15 reserve
14 Display: 0- normal,1- fault
13 Clock: 0- normal,1- fault
12 AD transformation: 0- normal,1- fault
11 Memory: 0- normal,1- fault
10 reserve
9 Parameter setting: 0- normal,1- spillover
8 reserve
7 reserve
6 reserve
5 reserve
4 reserve
3 Steam state sign: 0-superheated steam,1-Saturated steam;
2 Temperature spillover: 0- normal,1- spillover;
1 Pressure spillover: 0- normal,1- spillover;

40016:State code 2;
State position content sign
16 reserve
15 reserve
14 reserve
13 reserve
12 reserve
11 reserve
10 reserve
9 reserve
8 Frequency / current excision mark 0- no cut off,1- cut off
7 reserve
6 reserve
5 reserve
4 reserve
3 reserve
2 reserve
1 reserve
Read data register (in this case, the meter data read)
Master request: 01 03 00 00 00 20 44 12

Device ID Function code start Address length CRC


Response frame from slave:01 03 40 03 D6 43 96 05 1F 44 7A 00 00 00 00 00 00 44 48
00 00 43 34 00 00 44 7A 00 00 00 00 00 00 00 00 00 00 43 48 00 00 00 00 21 32 40 45
77 E9 3B 07 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 6E FA
01 03 40 :Device ID、Function code、Number of bytes
03 D6 43 96 :300.03 L/h;Instantaneous Flow
05 1F 44 7A :1000 Hz;Frequency
00 00 00 00 :0.00 kPa; Differential pressure(kPa).
00 00 44 48 :800 kPa; Medium pressure(kPa).
00 00 43 34 :180 ℃; Medium temperature (℃).
00 00 44 7A :1000 kg/m3; Medium density (kg/m3).
00 00 00 00 :0.00 MJ/h; Heat quantity(MJ/h).
00 00 00 00 :State code
00 00 43 48 :200 n/L; Flow coefficient(n/L)
00 00 00 00 : reserve
21 32 40 45 :3.0801m3; Total Flow;
77 E9 3B 07 :0.0021 MJ; Total Heat quantity;
00 00 00 00 : reserve
00 00 00 00 : reserve
00 01 00 00 : reserve
00 00 00 00 : reserve
6E FA : CRC
MODSCAN32 Operating interface:
ModScan32 Software RTU connection:
Display Option-Floating Pt (data display format - floating-point number);
Order 03: HOLDING REGISTER(read hold register);
Device id:Instrument address;
Address: The starting address of the instrument parameters, from 1-32;
Length: The data length is less than or equal to 32.

Display floating-point number (03 command)


Display HEX(03 command)

Flow coefficient modify:

Debug assistant with serial port, send HEX format:01 10 00 10 00 02 04 00 00 43 48


C3 A5
Total reset:

Debug assistant with serial port, send HEX format:01 06 00 1D 00 01 D8 0C

You might also like