EasyManua.ls Logo

Hitachi WJ C1 Series

Hitachi WJ C1 Series
494 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 11 RS485 Communication
11-2-9
11.2.7 Write Multiple Holding Registers [10h]
How to write multiple holding register data on Modbus communication?
Write consecutive multiple holding register data.
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)".
Query
No.
Field name
Example
(HEX)
1
Slave address
*1
01
2
Function code
10
3
Register start No. (High)
*2
11
Register start No. = (Register No.) - 1
4
Register start No. (Low)
*2
02
5
Number of registers (High)
*3
00
6
Number of registers (Low)
*3
02
7
Number of data bytes
*3
04
8
Change data 1 (High)
00
0000 03E8h = 1000 d → 10.00 (sec)
9
Change data 1 (Low)
00
10
Change data 2 (High)
03
11
Change data 2 (Low)
E8
12
CRC-16 (High)
B2
13
CRC-16 (Low)
98
Response
No.
Field name
Example
(HEX)
1
Slave address
*1
01
2
Function code
10
3
Register start No. (High)
*2
11
4
Register start No. (Low)
*2
02
5
Number of registers (High)
00
6
Number of registers (Low)
02
7
CRC-16 (High)
E5
8
CRC-16 (Low)
34
*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".
A
!
Q

Table of Contents

Related product manuals