> 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/read-write-memory-read-instruction-03.md).

# 讀寫型記憶體讀取指令(03)

## 指令範例

### 控制端發指令(03)格式

| Byte#      | 1             | 2             | 3         | 4         | 5              | 6              | 7   | 8   |
| ---------- | ------------- | ------------- | --------- | --------- | -------------- | -------------- | --- | --- |
| Node ID    | Slave Address | Function Code | 讀取數據的啟始地址 | 讀取數據的啟始地址 | 讀取registers 總數 | 讀取registers 總數 | CRC | CRC |
| 範例內容01\~FF | 01            | 03            | 00        | 00        | 00             | 03             | 05  | CB  |

#### 控制端發訊範例說明

這個範例會讀取A01的管徑選項及A02 Scale Factor

slave address: 01(本流量計地址)

function code: 03(讀取指令)

讀取數據的啟始地址: 0000(要讀取的數據的啟始地址)

讀取registers 總數: 0003 (需要從 0000 開始讀三個 register 的記憶體)

CRC: 05 CB (依 CRC 算法計算出的糾錯碼)

### 流量計回覆(03)格式

| Byte#      | 1             | 2             | 3        | 4            | 5                         | 6                         | 7                         | 8                      | 9                         | 10  | 11  |
| ---------- | ------------- | ------------- | -------- | ------------ | ------------------------- | ------------------------- | ------------------------- | ---------------------- | ------------------------- | --- | --- |
| Node ID    | Slave Address | Function Code | 回覆的Byte數 | Data Byte #1 | <p>Data Byte</p><p>#2</p> | <p>Data Byte</p><p>#3</p> | <p>Data Byte</p><p>#4</p> | <p>Data Byte<br>#5</p> | <p>Data Byte</p><p>#6</p> | CRC | CRC |
| 範例內容01\~FF | 01            | 03            | 06       | 00           | 00                        | 3F                        | 80                        | 00                     | 00                        | 2C  | 89  |

#### 流量計回覆範例說明

slave address: 01(本流量計地址)

function code: 03(讀取指令)

回覆的Byte數: 06(3個register=6byte)

Data Byte:&#x20;

* 00 00(目前管徑是1inch PVC)&#x20;
* 3F 80 00 00(目前的Scale Factor 是 1.0)

CRC: 2C 89 (依 CRC 算法計算出的糾錯碼)


---

# 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/read-write-memory-read-instruction-03.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.
