Network Protocol Reference
Writing in Holding Registers [10h]:
This function writes data in consecutive holding registers. An example follows:
•Write “3000 seconds” as the first acceleration time 1 (F002) in an inverter having a slave address “1.”
•This example uses change data “300000(493E0h)” to set “3000 seconds” as the data resolution of the registers “0024h” and “0025h” holding the first acceleration time 1 (F002) is 0.01 second.
|
| Query: |
|
|
|
|
|
|
|
|
|
|
|
|
|
| No. | Field Name | Example |
|
| (Hex) | ||
B |
|
|
| |
|
|
|
| |
|
|
|
| |
Appendix |
| 1 | Slave address *1 | 01 |
|
|
|
| |
| 2 | order) | 10 | |
|
| Function code | ||
|
| 3 | Start address (high | 00 |
|
|
|
|
|
|
| 4 | Start address (low | 24 |
|
|
| order) |
|
|
|
|
|
|
|
| 5 | Number of holding | 00 |
|
|
| registers (high order) |
|
|
|
|
|
|
|
| 6 | Number of holding | 02 |
|
|
| registers (low order) |
|
|
|
|
|
|
|
| 7 | Byte number *2 | 04 |
|
|
|
|
|
|
| 8 | Change data 1 | 00 |
|
|
| (high order) |
|
|
|
|
|
|
|
| 9 | Change data 1 | 04 |
|
|
| (low order) |
|
|
|
|
|
|
|
| 10 | Change data 2 | 93 |
|
|
| (high order) |
|
|
|
|
|
|
|
| 11 | Change data 2 | E0 |
|
|
| (low order) |
|
|
|
|
|
|
|
| 12 | DC | |
|
|
|
|
|
|
| 13 | FD | |
|
|
|
|
|
Note 1: Broadcasting is disabled.
Note 2: This is not the number of holding registers. Specify the number of bytes of data to be changed.
Response:
No. | Field Name | Example | |
(Hex) | |||
|
| ||
|
|
| |
|
|
| |
1 | Slave address | 01 | |
|
|
| |
2 | Function code | 10 | |
|
|
| |
3 | Start address (high | 00 | |
| order) |
| |
|
|
| |
4 | Start address (low | 24 | |
| order) |
| |
|
|
| |
5 | Number of holding | 00 | |
| registers (high order) |
| |
|
|
| |
6 | Number of holding | 02 | |
| registers (low order) |
| |
|
|
| |
7 | 01 | ||
|
|
| |
8 | C3 | ||
|
|
|
When writing in selected holding registers fails, see the exception response.