Write Multiple Holding Registers [10H] - Hitachi WJ Series User Manual

Table of Contents

Advertisement

Chapter 11
11.2.7

Write Multiple Holding Registers [10h]

 How to write multiple holding register data on Modbus communication?
Q
 Write consecutive multiple holding register data.
A
 The following shows how to write 10.00 seconds to "Acceleration time 1 setting or monitor, 1st
motor [F002]" of the inverter with slave address 1.
 Since the data resolution of the holding register of [F002] "1103h and 1104h" is 0.01 seconds,
to set 10 seconds, set the write data to "1000 (0000 03E8h)".
No.
1
Slave address
2
Function code
3
Register start No. (High)
4
Register start No. (Low)
5
Number of registers (High)
6
Number of registers (Low)
7
Number of data bytes
8
Change data 1 (High)
9
Change data 1 (Low)
10
Change data 2 (High)
11
Change data 2 (Low)
12
CRC-16 (High)
13
CRC-16 (Low)
No.
1
Slave address
2
Function code
3
Register start No. (High)
4
Register start No. (Low)
5
Number of registers (High)
6
Number of registers (Low)
7
CRC-16 (High)
8
CRC-16 (Low)
*1. For broadcast, there is no response.
*2. Note that the starting number is 1 less than the actual register number. Specify a number of
"(Register No.) - 1".
*3. "The number of data bytes" is not the number of holding registers, but the number of bytes
to be actually written. The maximum number of data that can be written is 16 registers (32
bytes). If it is exceeded, an exceptional response of exception code "03h" is returned.
 If the command cannot be executed successfully, an exceptional response is returned. For
!
details, refer to "11.2.9 Exceptional Responses".
 Modbus communication of WJ-C1 has restrictions on writing to "2 register length parameter".
For details, refer to "Exception code 27h" in "11.2.9 Exceptional Responses".
Query
Field name
*1
*2
*2
*3
*3
*3
Response
Field name
*1
*2
*2
11-2-9
Example
(HEX)
01
10
11
Register start No. = (Register No.) - 1
02
00
02
04
00
00
0000 03E8h = 1000 d → 10.00 (sec)
03
E8
B2
98
Example
(HEX)
01
10
11
02
00
02
E5
34
RS485 Communication

Advertisement

Table of Contents
loading

Table of Contents