SJ200 Inverter
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:
No. | Field Name | Example | |
(Hex) | |||
|
| ||
|
|
| |
|
|
| |
1 | Slave address *1 | 05 | |
|
|
| |
2 | Function code | 0F | |
|
|
| |
3 | Coil start number | 00 | |
| (high order) |
| |
|
|
| |
4 | Coil start number | 07 | |
| (low order) |
| |
|
|
| |
5 | Number of coils | 00 | |
| (high order) |
| |
|
|
| |
6 | Number of coils (low | 06 | |
| order) |
| |
|
|
| |
7 | Byte number *2 | 02 | |
|
|
| |
8 | Change data | 17 | |
| (high order) *2 |
| |
|
|
| |
9 | Change data | 00 | |
| (low order) *2 |
| |
|
|
| |
10 | DA | ||
|
|
| |
11 | EF | ||
|
|
|
Response:
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 | 00 | |
| (high order) |
| |
|
|
| |
6 | Number of coils | 06 | |
| (low order) |
| |
|
|
| |
7 | 65 | ||
|
|
| |
8 | 8C | ||
|
|
|
B Appendix
Note 1: Broadcasting is disabled.
Note 2: The change data is a set of