EasyManuals Logo

Hitachi WJ C1 Series User Manual

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
Page #346 background imageLoading...
Page #346 background image
Chapter 11 RS485 Communication
11-2-8
11.2.6 Write Multiple Coils [0Fh]
 How to write multiple coil statuses on Modbus communication?
 Rewrite multiple consecutive coils.
 An example of changing the state of input terminals 1 to 7 of the inverter with slave address 1 is
shown below. The status of input terminals 1 to 7 are as follows.
Input terminal No.
1
2
3
4
5
6
7
Coil No.
0007h
0008h
0009h
000Ah
000Bh
000Ch
000Dh
Terminal state
ON
ON
ON
OFF
ON
OFF
OFF
Query
No.
Field name
Example
(HEX)
1
Slave address
*1
01
2
Function code
0F
3
Coil start No. (High)
*2
00
Coil start No. = (Coil No.) - 1
4
Coil start No. (Low)
*2
06
5
Number of coils (High)
*3
00
6
Number of coils (Low)
*3
07
7
Number of data bytes
*3
02
8
Write data (High)
*4
17
17h = 0001 0111
9
Write data (Low)
*4
00
↑ ↑
10
CRC-16 (High)
E8
Input terminal 7 Input terminal 1
11
CRC-16 (Low)
02
Response
No.
Field name
Example
(HEX)
1
Slave address
*1
01
2
Function code
08
3
Coil start No. (High)
*2
00
4
Coil start No. (Low)
*2
06
5
Number of coils (High)
*3
00
6
Number of coils (Low)
*3
07
7
CRC-16 (High)
F4
8
CRC-16 (Low)
08
*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 coils, but the number of bytes to be
actually written. In addition, the maximum number of writable data is 32 coils (4byte). If it is
exceeded, an exceptional response of exception code "03h" is returned.
*4. Since the write data is a set of the higher and lower bits, even if the number of bytes that
actually need to be changed is an odd number, add zero data for one byte and set it to an
even number.
 Input terminal function is internally processed by "OR" of control terminal input and
communication input. However, "Input terminal monitor [d005]" displays only control terminal
state.
 If the command cannot be executed successfully, an exceptional response is returned. For
details, refer to "11.2.9 Exceptional Responses".
A
!
Q

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Hitachi WJ C1 Series and is the answer not in the manual?

Hitachi WJ C1 Series Specifications

General IconGeneral
BrandHitachi
ModelWJ C1 Series
CategoryInverter
LanguageEnglish

Related product manuals