4-4 Communication Function Rewrites consecutive multiple coils. (Example) Change the status of multi-function input terminals S1 to S6 on the Inverter with slave address 5. Set the multi-function input terminals as shown in the following table. Query Response 4 No. Field name Example (HEX) No.
Field name Example (HEX) 1 Slave address *1 05 1 Slave address 05 Functions 2 Function code 0F 2 Function code 0F 3 Coil start number (MSB) *2 00 3 Coil start number (MSB) 00 4 Coil start number (LSB) *2 06 4 Coil start number (LSB) 06 5 Number of coils (MSB) 00 5 Number of coils (MSB) 00 6 Number of coils (LSB) 06 6 Number of coils (LSB) 06 7 Number of bytes *3 02 7 CRC-16 (MSB) 34 8 Change data (MSB) *3 17 8 CRC-16 (LSB) 4C 10 CRC-16 (MSB) DB 9 Change data (LSB) *3 00 11 CRC-16 (LSB) 3E *1. There is no response for broadcasting. *2. Note that the start number is reduced by 1. *3.
Since the change data comprises of both MSB and LSB as a set, make the byte to be an even number by adding 1, even if the byte that actually needs to be changed is an odd number. If writing into multiple coils cannot be performed normally, refer to the "Exception Response" section. 4-162 Multi-function input terminals S1 S2 S3 S4 S5 S6 Coil No. 7 8 9 10 11 12 Terminal status ON ON ON OFF ON OFF