> For the complete documentation index, see [llms.txt](https://docs.lorric.com/qr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lorric.com/qr/fp-as510-paddle-wheel-flowmeter-manual-chinese-v1/communication/modbus-rtu-protocol.md).

# Modbus RTU Protocol

## 通訊格式

bit order: lsb first

byte order: big endian

Data bits:8&#x20;

Parity: None&#x20;

Stop bits: 1

Floating point number follows IEEE754-1985. The float32 below stands for 32bits Single precision floating point number.

## 名詞定義

Register: 2 Byte 或 16bit 長，是 Modbus RTU 的記憶體通訊的單位長度。

Byte: 8 bit長

## 記憶體定義及功能

modbus 可操作的記憶體分為兩大類，唯讀型及讀寫型。

唯讀型主要是流量計狀態相關的記憶體，例如即時流量。這部分也是最常使用的記憶體。唯讀型的記憶體只能使用指 04 來讀取。相關頁面如下：

{% content-ref url="/pages/-LszfLhZHXToSs\_vw\_j8" %}
[唯讀型記憶體讀取指令(04)及記憶體列表](/qr/fp-as510-paddle-wheel-flowmeter-manual-chinese-v1/communication/modbus-rtu-protocol/read-only-memory-read-instruction-04-and-memory-lists.md)
{% endcontent-ref %}

讀寫型主要是流量計設定參數記憶體，例如管徑；還有重設變數，例如累計流量歸零。讀寫型的記憶體只能使用指 03 來讀取。寫入操作一次只能改變一個參數，如果目標參數的記憶體長度是 1個 register，使用指令 06，如果目標參數的記憶體長度是 2 register，使用 30。讀寫型記憶體列表頁面如下：

{% content-ref url="/pages/-Lszny5nICYbRWmTVwXK" %}
[讀寫型記憶體列表](/qr/fp-as510-paddle-wheel-flowmeter-manual-chinese-v1/communication/modbus-rtu-protocol/read-write-memory-list.md)
{% endcontent-ref %}

讀寫型記憶體指令說明頁面如下：

{% content-ref url="/pages/-LsznZSsTOPoD95ZDPbw" %}
[讀寫型記憶體讀取指令(03)](/qr/fp-as510-paddle-wheel-flowmeter-manual-chinese-v1/communication/modbus-rtu-protocol/read-write-memory-read-instruction-03.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LszuFj3qDIc75k6zox3" %}
[讀寫型記憶體單Register寫入指令(06)](/qr/fp-as510-paddle-wheel-flowmeter-manual-chinese-v1/communication/modbus-rtu-protocol/read-write-memory-single-register-write-instruction-06.md)
{% endcontent-ref %}

{% content-ref url="/pages/-Lt-3AX1jJnETJt-QLnv" %}
[讀寫型記憶體雙Register寫入指令(30)](/qr/fp-as510-paddle-wheel-flowmeter-manual-chinese-v1/communication/modbus-rtu-protocol/read-write-memory-double-register-write-instruction-30.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lorric.com/qr/fp-as510-paddle-wheel-flowmeter-manual-chinese-v1/communication/modbus-rtu-protocol.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
