4-4 Communication Function „ Explanation of Each Function Code Reads out the coil status (ON/OFF). (Example) Read multi-function input terminals S1 to S6 on the Inverter with slave address 8. Refer to the following table for the multi-function input terminal status. Coils 13 and 14 are OFF. 4 Query Response No. Field name Example (HEX) No.
Field name Example (HEX) Functions 1 Slave address *1 08 1 Slave address 08 2 Function code 01 2 Function code 01 3 Coil start number (MSB) *2 00 3 Number of data bytes 01 5 Number of coils (MSB) *3 00 5 CRC-16 (MSB) 12 4 Coil start number (LSB) *2 06 4 Coil data * 17 6 Number of coils (LSB) *3 06 6 CRC-16 (LSB) 1A 7 CRC-16 (MSB) 5C * Transfers data by the number of data bytes. *1. Broadcasting cannot be performed. *2. Note that the start number is reduced by 1. *3. When specifying the value of 0 or over 32 for the number of reading coils, the error code "3h" is replied. 8 CRC-16 (LSB) 90 The data received as the response shows the status of coils 7 to 14.
The data received here, "17h = 00010111b", should be read with coil 7 as LSB, as follows: If the read coil exceeds the defined coil range in the final coil data, such coil data is regarded as "0" and sent. If the coil status reading command has not been performed normally, refer to the "Exception Response" section. 4-158 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 Coil No. 14 13 12 11 10 9 8 7 Coil status OFF OFF OFF ON OFF ON ON ON