Write Coil [05H] - Hitachi WJ Series User Manual

Table of Contents

Advertisement

Chapter 11
11.2.3

Write Coil [05h]

 How to write single coil status on Modbus communication?
Q
 Write single coil. The coil status change is shown in the table below.
A
Data
Change data (High)
Change data (Low)
 The following shows an example of RUN command for slave-address 1 inverter.
 In order to operate with a command from Modbus communication, "RUN command input source
selection, 1st-motor [A002]" must be set to "Modbus communication (03)" in advance. The coil
number for RUN command is 0001h.
No.
1
Slave address
2
Function code
3
Coil address (High)
4
Coil address (Low)
5
Change data (High)
6
Change data (Low)
7
CRC-16 (High)
8
CRC-16 (Low)
No.
1
Slave address
2
Function code
3
Coil address (High)
4
Coil address (Low)
5
Change data (High)
6
Change data (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".
Coil: OFF to ON
FFh
00h
Query
Field name
*1
*2
*2
Response
Field name
*1
*2
*2
11-2-4
RS485 Communication
Coil: ON to OFF
00h
00h
Example
(HEX)
01
05
00
Coil start No. = (Coil No.) - 1
00
FF
OFF to ON:FF00h
00
8C
3A
Example
(HEX)
01
05
00
00
FF
00
8C
3A

Advertisement

Table of Contents
loading

Table of Contents