> 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-en-v1/communication/modbus-rtu-protocol/read-write-memory-single-register-write-instruction-06.md).

# Read-write memory single Register write instruction(06)

{% hint style="info" %}
This instruction if for memory with 1 register length only, please refer to the [list](/qr/fp-as510-paddle-wheel-flowmeter-manual-en-v1/communication/modbus-rtu-protocol/read-write-memory-list.md).
{% endhint %}

## **Instruction example**

**Format of command (06) from master**

| Byte#                       | 1             | 2             | 3                       | 4                       | 5          | 6          | 7   | 8   |
| --------------------------- | ------------- | ------------- | ----------------------- | ----------------------- | ---------- | ---------- | --- | --- |
| Node ID                     | Slave Address | Function Code | Memory address to write | Memory address to write | Write data | Write data | CRC | CRC |
| <p>Example</p><p>01\~FF</p> | 01            | 06            | 00                      | 00                      | 00         | 01         | 48  | 0A  |

**Description of master command**

This example will change A01 pipe diameter option&#x20;

slave address: 01(address of this flowmeter)

‌function code: 06(Single Register write instruction)

Address of first reading register: 0000(memory address to write)

Write data: 0000 (1" PVC pipe)

‌CRC: C40B (Calculating error correcting code according to CRC algorithm)<br>

**Format of flowmeter response(06)**

| Byte#                       | 1             | 2             | 3                       | 4                       | 5          | 6          | 7   | 8   |
| --------------------------- | ------------- | ------------- | ----------------------- | ----------------------- | ---------- | ---------- | --- | --- |
| Node ID                     | Slave Address | Function Code | Memory address to write | Memory address to write | Write data | Write data | CRC | CRC |
| <p>Example</p><p>01\~FF</p> | 01            | 06            | 00                      | 00                      | 00         | 01         | 48  | 0A  |

**Description of flowmeter response example**

Valid command received. It will output the same command back to master.

‌slave address: 01(address of this flowmeter)

‌function code: 06(Single Register write instruction)

Address of first reading register: 0000(memory address to write)

Write data: 0000 (1" PVC pipe)

‌CRC: C40B (Calculating error correcting code according to CRC algorithm)<br>


---

# 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-en-v1/communication/modbus-rtu-protocol/read-write-memory-single-register-write-instruction-06.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.
