B–15, Appendix b – Hitachi SJ200 Series User Manual
Page 229
SJ200 Inverter
Appendix B
B–15
Write in Coils [0Fh]:
This function writes data in consecutive coils. An example follows:
• Change the state of intelligent input terminal [1] to [6] of an inverter having a slave
address “5.”
• This example assumes the intelligent input terminals have terminal states listed below.
Item
Data
Intelligent input terminal
[1]
[2]
[3]
[4]
[5]
[6]
Coil number
7
8
9
10
11
12
Terminal status
ON
ON
ON
OFF
ON
OFF
Query:
Note 1:
Broadcasting is disabled.
Note 2:
The change data is a set of
high-order data and low-order
data. So when the size (in
bytes) of data to be changed is
an odd number, add “1” to the
data size (in bytes) to make it
an even number.
Response:
No.
Field Name
Example
(Hex)
1
Slave address *1
05
2
Function code
0F
3
Coil start number
(high order)
00
4
Coil start number
(low order)
07
5
Number of coils
(high order)
00
6
Number of coils (low
order)
06
7
Byte number *2
02
8
Change data
(high order) *2
17
9
Change data
(low order) *2
00
10
CRC-16 (high order)
DA
11
CRC-16 (low order)
EF
No.
Field Name
Example
(Hex)
1
Slave address
05
2
Function code
0F
3
Data size (in bytes)
00
4
Coil data *3
07
5
Number of coils
(high order)
00
6
Number of coils
(low order)
06
7
CRC-16 (high order)
65
8
CRC-16 (low order)
8C