Read-write memory single Register write instruction(06)

This instruction if for memory with 1 register length only, please refer to the list.

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

Example 01~FF

01

06

00

00

00

01

48

0A

Description of master command

This example will change A01 pipe diameter option

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)

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

Example 01~FF

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)

Read-write memory list

Register location

Register length

Memory definition

Data type

Remarks

Last updated