![VorTek U44 Series Скачать руководство пользователя страница 41](http://html1.mh-extra.com/html/vortek/u44-series/u44-series_instruction-manual_1050447041.webp)
Series U44 Instruction Manual
M-000-00090
41
The slave returns the data frame format (function code 0x06):
Slave Address
Operation
Function Code
Register Address
Register Data
Verify Code
1 byte
1 byte
2 bytes
2 bytes
2 bytes
0x01 ~ 0xF7
0x06
0x0000 ~ 0xFFFF
0x0000 ~ 0xFFFF
CRC (Verify)
The range of flow meter addresses 1 to 247 (Hexadecimal: 0x01 ~ 0xF7) and can be checked in the Output Menu.
For example, decimal number "11" displayed in Output Menu – Modbus means the address of the flow meter in the
Modbus protocol is 0x0B.
The CRC Verify Code adopts CRC-16-IBM (polynomial is X
16
+X
15
+X
2
+1, shield character is 0xA001) which is
gained by the cyclic redundancy algorithm method. Low byte of the verify code is at the beginning while the high
byte is at the end.
For example, to read the address 1 (0x01) in the RTU mode, if the instantaneous flow rate uses hour as a unit (m
3
/h,
namely reads 40005 and 40006 registers data), the read command is as follows:
0x01
0x03
0x00 0x04
0x00 0x02 0x85 0xCA
Flow Meter Address Function Code First Address Register Numbers CRC Verify Code
Flow meter returned data is (assuming the current flow = 1.234567 m
3
/h)
0x01
0x03
0x04 0x06 0x51 0x3F 0x9E
0x3B 0x32
Flow Meter Address Function Code Data Bytes Data (1.2345678)
CRC Verify Code
The four bytes 3F 9E 06 51 is in the IEEE754 format single precision floating point form of 1.2345678.
Pay attention to the data storage order of the above example. Using C language to explain the data, pointers can be
used directly to input the required data in the corresponding variable address, the low byte will be put at the
beginning, such as the above example 1.2345678 m/s, 3F 9E 06 51 data stored in order as 51 06 9E 3F.
For example, it converts the address 1 (0x01) to 2 (0x02) under the RTU mode, so to write the data of flowmeter
44100 register as 0x02, the write command is as follows:
0x01
0x06
0x10 0x03
0x00 0x02 0xFC 0xCB
Flow Meter Address Function Code Register Address Register Number CRC Verify Code
Flow meter returned data is:
0x01
0x06
0x10 0x03
0x00 0x02 0xFC 0xCB
Flow Meter Address Function Code Register Address Register Number CRC Verify Code
4.
Error Check
The flow meter only returns one error code 0x02 which means data first address in error.
For example, to read address 1 (0x01) of the flowmeter 40002 register data in the RTU mode, the flowmeter
considers it to be invalid data, and sends the following command:
0x01
0x03
0x00 0x01
0x00 0x01 0xD5 0xCA
Flow Meter Address Function Code Register Address Register Number CRC Verify Code
Содержание U44 Series
Страница 22: ...Series U44 Instruction Manual M 000 00090 22 3 2 Using the Setup Menus...
Страница 24: ...Series U44 Instruction Manual M 000 00090 24 3 2 3 Display Menu 3 2 4 Totalizer 1 Menu...
Страница 25: ...Series U44 Instruction Manual M 000 00090 25 3 2 5 Totalizer 2 Menu 3 2 6 Energy Menu...
Страница 26: ...Series U44 Instruction Manual M 000 00090 26 3 2 7 Fluid Menu 3 2 8 Units Menu...
Страница 27: ...Series U44 Instruction Manual M 000 00090 27 3 2 9 Time Date Menu 3 2 10 Diagnostics Menu...
Страница 28: ...Series U44 Instruction Manual M 000 00090 28 3 2 11 Calibration Menu 3 2 12 Password Menu...
Страница 29: ...Series U44 Instruction Manual M 000 00090 29 3 2 13 Engineer Menu...
Страница 30: ...Series U44 Instruction Manual M 000 00090 30 3 2 14 Engineer Menu 2...