# Single Bit 資料讀寫指令(01/05)(人機介面常用)

## 01 指令範例

{% hint style="info" %}
本指令不會重置C02.Del.Total清除累計數據選項，只提供人機介面01/05讀取Single Bit功能。 01 指令格式正確，會收到的控制端主機本體回覆，只能回覆讀取Bit行為。
{% endhint %}

### 控制端發(01)TX指令讀取格式範例

```
TX 請求指令： 01 01 00 0A 00 01 A4 0E
```

* Slave address: 01 (本流量計地址)
* Function code: 01 (1bit 讀取指令)
* 讀取數據的啟始地址: 02 01 (C02.Del. Total清除累計的啟始地址)
* 讀取資料Bit: 00 01 (讀取C02.Del. Total資料)
* CRC: AD B2 (依 CRC 算法計算出的糾錯碼)

### 流量計(01)RX讀取回覆格式範例

```
RX 回覆數據：01 01 01 00 51 88
```

* Slave address: 01(本流量計地址)
* Function code: 01(讀取指令)
* 讀取回覆Bit: 01 00(Slave 本體仍正常在線工作，並回應行為給控制端)
* CRC:  51 88(依 CRC 算法計算出的糾錯碼)

## 05 指令範例

{% hint style="info" %}
本指範例將會啟用C02.Del. Total清除累計數據選項，total 會歸零。
{% endhint %}

### 控制端發(05)TX指令格式範例

```
TX 請求指令：01 05 02 01 FF 00 DC 42
```

* Slave address: 01(本流量計地址)
* Function code: 05(Register寫入指令)
* 寫入數據的啟始地址: 02 01(C02.Del. Total清除累計的啟始地址)
* 寫入資料:  FF 00(寫入重置C02.Del. Total資料 <mark style="color:blue;">)</mark>
* CRC: DC 42(依 CRC 算法計算出的糾錯碼)

### 流量計(05)RX回覆格式範例

```
RX 回覆數據：01 05 02 01 FF 00 DC 42
```

* Slave address: 01(本流量計地址)&#x20;
* Function code: 05(Register寫入指令)
* 寫入數據的啟始地址: 02 01(寫入C02.Del. Total清除累計記憶體地址)
* 寫入資料:  FF 00 (主機本體回覆寫入重置行為給控制端)
* CRC:  DC 42(依 CRC 算法計算出的糾錯碼)


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lorric.com/qr/fu-lt-ultrasonic-flowmeter-manual-chinese-v1/communication/modbus-rtu-protocol/single-bit-zi-liao-du-xie-zhi-ling-0105-ren-ji-jie-mian-chang-yong.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
