SJ700
2
Inverter
Appendix B
B–29
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.
When the Write in Coils command cannot be executed normally, see the exception response.
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 starting coil number is one
less than the number of the coil to
be read first.
Note 3:
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:
Note 4:
Data is transferred by the specified
number of data bytes (data size).
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)
06
5
Number of coils (high
order) *2
00
6
Number of coils (low
order) *2
06
7
Byte number *3
02
8
Change data (high
order) *3
17
9
Change data (low
order)*3
00
10
CRC-16 (high order)
DB
11
CRC-16 (low order)
3E
No.
Field Name
Example
(hex)
1
Slave address
05
2
Function code
0F
3
Coil start number
(high order)
00
4
Coil start number (low
order)
06
5
Number of coils (high
order) *2
00
6
Number of coils (low
order) *2
06
7
CRC-16 (high order)
34
8
CRC-16 (low order)
4C