Professional Documents
Culture Documents
Coding System
Eight-bit binary, hexadecimal 0 ... 9, A ... F
Two hexadecimal characters contained in each eight-bit field of the message
Bits per Byte
1 start bit
8 data bits, least significant bit sent first
no bit for no parity
1 stop bit if parity is used
Error Check Field
Cyclical Redundancy Check (CRC)
Request
The request message specifies the starting register and quantity of registers to be read.
the the
Read Read
register instructions register instructions
-only -only
address address
Register address 0002H level value, 0004H emptying height value, 0006H temperature (4 bytes per data, 2
registers, data type is REAL4, IEEE754 floating-point format)
For Example:
Sample 1:
Request level data from Meter No. 1, query data frame is as below
Cyclic Cyclic
Data Start Data Start Data Read Data Read Redunda Redunda
Address Address Number Number ncy ncy
Address Code
Register Register Register Register Check Check
High Bytes Low Bytes High Bytes Low Bytes Low High
Bytes Bytes
Meter No.1 Level value at register 0002H address Two registers needed to read a level data
Response data frames include slave addresses, function codes, number of data and CRC error checking.
If the level data is 3.567m, the corresponding data are as follows:
CRC Low CRC High
Address Code Bytes Level Data Level Data Level Data Level Data
Bytes Bytes
Sample 2:
Meter No.2 Data Start Address 0002H Four registers needed to read level and altitude.
Response data frames include slave addresses, function codes, number of data and CRC error checking.
If the level is 3.567m and the altitude is 1.433m, the corresponding data are as follows:
CRC CRC
Addres altitud altitud altitud altitud
Code Bytes Level Level Level Level Low High
s e e e e
Bytes Bytes
02H 03H 08H 40H 64H 49H BAH 3FH B7H 6CH 8BH BDH B2H
Meter No.2 The level and altitude data are 8 bytes in total.
IEEE754 floating-point format: It uses symbol bits to represent the number of symbols, order codes and
tails to represent the size of the number, with 24-bit accuracy. The high bit of the tail is always "1", so it is
not preserved. The distribution of bits is: 1-bit symbol bits, 8-bit exponential bits, 23-bit tail.
Symbol bits are the highest and the last 23 bits are the lowest. They are described in bytes as follows:
Address +0 +1 +2 +3