Read/Write Memory Dual-Register Write Command (30)
For large numbers, writing and reading in different formats (float32/int64) may result in a discrepancy of less than 1/10,000. This command is limited to memory with a register length of 4. Please refer to the provided list.
Example Command:
Format for Issuing the Write Command (30) from the Control Terminal
Byte#
1
2
3
4
5
6
7
8
9
10
Node ID
Slave Address
Function Code
Starting Address of Data to Write
Starting Address of Data to Write
Data to Write
Data to Write
Data to Write
Data to Write
CRC
CRC
Example Content
01~FF
01
30
00
15
00
00
00
00
BC
07
Example Explanation of Control Terminal Command
This example modifies the A18 Low Flow Cutoff value to 0
(default).
Slave Address:
01
(Address of the flow meter)Function Code:
30
(Dual-register write command)Starting Address of Data to Write:
00 15
(Memory address for A18 Low Flow Cutoff)Data to Write:
00 00 00 00
(Set A18 Low Flow Cutoff value to0
)CRC:
BC 07
(Error-checking code calculated using the CRC algorithm)
Flow Meter Response Format (30)
Byte#
1
2
3
4
5
6
7
8
9
10
Node ID
Slave Address
Function Code
Starting Address of Data to Write
Starting Address of Data to Write址
Data to Write
Data to Write
Data to Write
Data to Write
CRC
CRC
範例內容01~FF
01
30
00
15
00
00
00
00
BC
07
Example Explanation of Flow Meter Response
If the write command format is correct, the received control command will be echoed back to the master device.
Slave Address:
01
(Address of the flow meter)Function Code:
30
(Dual-register write command)Starting Address of Data to Write:
00 15
(Memory address for A18 Low Flow Cutoff)Data to Write:
00 00 00 00
(Set A18 Low Flow Cutoff value to0
)CRC:
BC 07
(Error-checking code calculated using the CRC algorithm)
Last updated