Revision: 3.0.3
Prefix P
The character
P can be added before every basic command. It means that the transferred data has CRC
verification. The method of counting the verified sum is achieved by binary system addition.
For example: Command DI+(CR) (the relative binary system data is 44H, 49H, 2B
data is +1234567E+0m3
. (CR) (the relative binary system data is 2BH, 31H, 32H, 33H, 34H, 35H, 36H,
37H, 45H, 2BH, 30H, 6DH, 33H, 20H, 0DH, 0AH). And command PDI+ (CR) transferred data is
+1234567E+0m3! F7 (CR), "!"
the two bytes after it is (2BH+31H+32H+33H+34H+35H+ 36H+37H+45H+2BH+30H+6DH+33H+20H
=(2)F7H)
Note: there can be no data before "!"
, and also may be a blank character.
Prefix W
Usage of prefix W: W+
numeric string address code +basic command. Value range of the numeric string is
0~
65535, except 13 (0DH carriage return), 10 (0AH line feed), 42 (2AH *) and 38 (26H &). If the
instantaneous velocity of No. 12345 flowmeter is to be accessed, the command W1
issued. Corresponding binary code is 57H, 31H, 32H, 33H, 34H, 35H, 44H, 56H and 0DH
Function sign &
Function sign & can add up to 5 basic commands (Prefix P is allowed) together to form a compound
command sent to the flowmeter together. T
4321 flowmeter is requested to simultaneously return: 1] instantaneous flow, 2] instantaneous flow
velocity, 3] positive total flow, 4] energy total, 5] AI1 analogous input current value, the fol
command is issued:
W04321PDQD&PDV&PDI+&PDI-
Simultaneously returned data are likely as follows:
+0.000000E+00m3/d! AC(CR)
+0.000000E+00m/s! 88(CR)
+1234567E+0m3! F7(CR)
+0.000000E+0m3! DA(CR)
+0.000000E+0 m3! DA(CR)
9.3.2 MODBUS
This MODBUS Protocol uses RTU transmission mode.
X
16
+X
15
+X
2
+1, shield character is 0xA001)
MODBUS RTU mode uses hexadecimals
This MODBUS-
I Protocol uses RTU transmission mode.
is X
16
+X
15
+X
2
+1, shield character is 0xA00
MODBUS-I RTU mode uses hexadecimals
9.3.2.1 MODBUS
Protocol Function Code and Format
The flow meter protocol supports the
Function Code
0x03
0x06
9.3.2.2 MODBUS
Protocol function code 0x03 usage
The host sends
out the read register information frame format:
D116
Series Ultrasonic Flowmeter
P can be added before every basic command. It means that the transferred data has CRC
verification. The method of counting the verified sum is achieved by binary system addition.
For example: Command DI+(CR) (the relative binary system data is 44H, 49H, 2B
. (CR) (the relative binary system data is 2BH, 31H, 32H, 33H, 34H, 35H, 36H,
37H, 45H, 2BH, 30H, 6DH, 33H, 20H, 0DH, 0AH). And command PDI+ (CR) transferred data is
efore it is the sum character, and the verified sum of
the two bytes after it is (2BH+31H+32H+33H+34H+35H+ 36H+37H+45H+2BH+30H+6DH+33H+20H
, and also may be a blank character.
numeric string address code +basic command. Value range of the numeric string is
65535, except 13 (0DH carriage return), 10 (0AH line feed), 42 (2AH *) and 38 (26H &). If the
instantaneous velocity of No. 12345 flowmeter is to be accessed, the command W1
issued. Corresponding binary code is 57H, 31H, 32H, 33H, 34H, 35H, 44H, 56H and 0DH
Function sign & can add up to 5 basic commands (Prefix P is allowed) together to form a compound
command sent to the flowmeter together. T
he flowmeter will answer simultaneously. For example, if No.
4321 flowmeter is requested to simultaneously return: 1] instantaneous flow, 2] instantaneous flow
velocity, 3] positive total flow, 4] energy total, 5] AI1 analogous input current value, the fol
(CR)
Simultaneously returned data are likely as follows:
This MODBUS Protocol uses RTU transmission mode.
The Verification Code uses CRC-16-
the cyclic redundancy algorithm
data.
I Protocol uses RTU transmission mode.
The Verification Code uses CRC-16-
) which is gained by the c
yclic redundancy algorithm
data.
Protocol Function Code and Format
two-function codes of the MODBUS:
Performance Data
Read register
Write single register
Protocol function code 0x03 usage
out the read register information frame format:
Series Ultrasonic Flowmeter
Page 43 of 53
P can be added before every basic command. It means that the transferred data has CRC
verification. The method of counting the verified sum is achieved by binary system addition.
. (CR) (the relative binary system data is 2BH, 31H, 32H, 33H, 34H, 35H, 36H,
37H, 45H, 2BH, 30H, 6DH, 33H, 20H, 0DH, 0AH). And command PDI+ (CR) transferred data is
efore it is the sum character, and the verified sum of
the two bytes after it is (2BH+31H+32H+33H+34H+35H+ 36H+37H+45H+2BH+30H+6DH+33H+20H
numeric string address code +basic command. Value range of the numeric string is
65535, except 13 (0DH carriage return), 10 (0AH line feed), 42 (2AH *) and 38 (26H &). If the
issued. Corresponding binary code is 57H, 31H, 32H, 33H, 34H, 35H, 44H, 56H and 0DH
Function sign & can add up to 5 basic commands (Prefix P is allowed) together to form a compound
he flowmeter will answer simultaneously. For example, if No.
4321 flowmeter is requested to simultaneously return: 1] instantaneous flow, 2] instantaneous flow
velocity, 3] positive total flow, 4] energy total, 5] AI1 analogous input current value, the fol
lowing
(polynomial is
(polynomial
yclic redundancy algorithm
method.