คำอธิบาย
โมดูลแปลงเครื่องวัดอัตราการไหลของน้ำ FLowmeter RS485 Modbus Converter Module
Wiring Connector for Sensor
RS485 Modbus Water Flow Data Acquisition โมดูลการสื่อสาร
Communication Parameter
Baud Rate | 115200 bps |
Digit | 8 |
Check Code | no |
Stop Bit | 1 |
Protocol
This protocol supports function codes 0x03, 0x06, 0x10, 0x83, 0x86, 0x90
Function Code | Function | Description |
0x03 | Read | Read register |
0x06 | Write 1 word |
Set a single register
|
0x10 | Write N word |
Set multiple registers
|
0x83 | Device error |
Error while reading
|
0x86 | Device error |
Error setting single register
|
0x90 | Device error |
Error setting multiple registers
|
Register list
Register lists | ||||||
Register | Length (bytes) | Definition | R/W | Decimal Places | Data Range | Transfer data type |
0x0003 | 2 | Baud rate | R/W | 0 | 0-6 | Unit |
0x0004 | 2 | Site number | R/W | 0 | 0-255 | Unit |
0x0005 | 2 | Flow coefficient K1 |
R/W | 2 | 0-655 | Unit |
0x0006 |
4
|
Instantaneous
flow (L/min) |
R/W
|
4
|
0-99999
|
Unit
|
0x0007 | ||||||
0x0008 |
4
|
Total flow
(L/min) |
R/W
|
3
|
0-214783
|
Unit
|
0x0009 | ||||||
0x000A |
4
|
Pressure
|
R/W
|
–
|
–
|
Float
|
0x000B | ||||||
0x000C | 2 | Total flow save reference value |
R/W | 0 | 0-49999 | Unit |
0x000D | 2 | Reserved | R/W | 0 | 0-49999 | Unit |
0x000E |
4
|
Pressure
coefficient A |
R/W
|
–
|
–
|
Float
|
0x000F | ||||||
0x0010 |
4
|
Pressure
coefficient B |
R/W
|
–
|
–
|
Float
|
0x0011 | ||||||
0x0088 | 2 | Force read site number |
R | 0 | 0-255 | Unit |
Modbus protocol EXAMPLE
1 |
https://docs.google.com/spreadsheets/d/1DVLJnGSo39aP9ZafX7NjzwveFIl9bV6WmzU4F3Q47Lw/edit?usp=sharing |
Illustrate
- 1. Baud rate setting:
- 0: 2400,
- 1: 4800,
- 2: 9600,
- 3: 19200,
- 4: 38400,
- 5: 57600,
- 6: 115200.
- If the set value is not within this range, the default is 115200, and the device is factory-initialized to 115200.
- 2. The device defaults to the initial address of 255.
- 3. The coefficient K, if the actual K=7.5, the set value is 750, or 750*N, N is subject to the experiment. Note that when changing the value of K, The total flow will also be refreshed, and
the total flow data before the change will be recalculated according to the new K value. - 4. Instantaneous flow, total flow, pressure, 4 bytes must be read, addressable only from high bits, instantaneous flow output value/10000 That is, the actual instantaneous flow.
- 5. The total flow saving reference value is related to the setting of saving the total flow, when the change of the total flow = the total flow saving reference value × 60, save the total flow value once to the power-off save area. Because the read and write life of the power-off storage area is about 100,000 times, this setting requires Be cautious. For example, when the set value = 30, when the total flow changes by 1800L, the data will be saved once. If the average flow rate of the measured fluid is When it is close to 30L/min, the data is saved approximately every hour, and the service life of the power-off storage area is about ten years. 6. Pressure = A*voltage+B, pressure and pressure coefficients A and B are float data, which can be set to negative numbers and decimals. A, B It is determined by the characteristic equation of the sensor.
- 7. For all items marked with data range, when setting, if it is not within the data range, the device will report error 0x03. if on If the register read or set by the bit machine is not in the above table, the device will report error 0x02.
- 8. When setting multiple registers, if the reserved register is included, the data can be set to any value. Data in reserved registers is discarded. This register can also be used as a note area to save the data required by the customer.
- 9. 0x0088 After the host computer loses the station number of a device, it needs to send this
ในชุดประกอบด้วย
- 1 โมดูลแปลงเครื่องวัดอัตราการไหลของน้ำ FLow meter RS485 Modbus Converter Module
รีวิว
ยังไม่มีบทวิจารณ์