4-170
4-4 Communication Function
4
Functions
<Writing Into the Coil [05h]>
Writes into one coil.
The following table shows the coil status change.
(Example)
Issue the RUN command to the Inverter with slave address 10.
To run the Inverter, set "03" in A002. The coil number of the RUN command is "1".
If writing into the coil cannot be performed normally, refer to the "Exception Response" section.
Coil status
OFF ON ON OFF
Change data (MSB) FFh 00h
Change data (LSB) 00h 00h
Query Response
No. Field name
Example
(HEX)
No. Field name
Example
(HEX)
1 Slave address
*1
0A 1 Slave address 0A
2 Function code 05 2 Function code 05
3 Coil start number (MSB)
*2
00 3 Coil start number (MSB) 00
4 Coil start number (LSB)
*2
00 4 Coil start number (LSB) 00
5 Change data (MSB) FF 5 Change data (MSB) FF
6 Change data (LSB) 00 6 Change data (LSB) 00
7 CRC-16 (MSB) 8D 7 CRC-16 (MSB) 8D
8 CRC-16 (LSB) 41 8 CRC-16 (LSB) 41
*1. There is no response for broadcasting.
*2. Note that the start number is reduced by 1.