omron — Communication Function

4-2 Function Mode Query Response No. Field name Example (HEX) No. Field name Example (HEX) 1 Slave address *1 08 1 Slave address 08 3 Coil start number (MSB) 00 3 Number of data bytes 01 2 Function code 01 2 Function code 01 4 Coil start number (LSB) 07 4 Coil data *3 17 5 Number of coils (MSB) *2 00 5 CRC-16 (MSB) 12 6 Number of coils (LSB) *2 06 6 CRC-16 (LSB) 1A 7 CRC-16 (MSB) 0D 4 8 CRC-16 (LSB) 50 *1. Broadcasting cannot be performed. *2. When specifying the value for 0 or over 32 of the reading coils, the error code "03h" is replied. *3. Data is transferred by the number of data bytes. Functions The data received as the response shows the statuses of coils 7 to 14.

The data received here, "P7h = 00010111b", should be read with coil 7 as LSB, as follows: If the reading coil exceeds the defined coil range in the final coil data, such coil data is regarded as "0" and sent. Refer to " " (page 4-74) if the coil status reading command has not been performed normally. Reads the specified number of consecutive holding register contents from the specified holding reg- ister addresses. (Example) Read the factors on the past three trips from the Inverter with slave address 5. Below are the data on past three trips: 4-70 Coil No.

14 13 12 11 10 9 8 7 Coil status OFF OFF OFF ON OFF ON ON ON 3G3MX command d081 (last trip) d082 (last trip but one) d083 (last trip but two) Holding register No. 0019h 001Ah 001Bh Trip factor Overvoltage (E07) Undervoltage (E09) No trip