omron — Communication Function

4-2 Function Mode Rewrites consecutive multiple coils. (Example) Change the status of multi-function input terminals [S1] to [S5] of the Inverter with the slave address "8". Refer to the following table for the status of multi-function input terminals [S1] to [S5]. 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 0F 2 Function code 0F 3 Coil start address (MSB) *3 00 3 Coil start address (MSB) *3 00 4 Coil start address (LSB) *3 06 4 Coil start address (LSB) *3 06 5 Number of coils (MSB) 00 5 Number of coils (MSB) 00 6 Number of coils (LSB) 05 6 Number of coils (LSB) 05 7 Number of bytes *2 02 7 CRC-16 (MSB) 75 8 Change data (MSB) 17 8 CRC-16 (LSB) 50 9 Change data (LSB) 00 10 CRC-16 (MSB) 83 11 CRC-16 (LSB) EA *1. There is no response for broadcasting. *2.

Since the change data comprises both MSB and LSB as a set, make the byte to be an even number by adding 1, even if the byte which actually needs to be changed is an odd number. *3. Note that the coil start address is "6", which is smaller by 1 than the coil number "7". The coil addresses for coil numbers from "1 to 31" are "0 to 30". Refer to " " (4-89) if writing into multiple coils cannot be performed normally. Writes into consecutive multiple holding registers. (Example) Set "3000 seconds" to acceleration time 1 (F002) for the Inverter with the slave address "8". The data resolution of the holding register "1024h, 1015h" of acceleration time 1 (F002) is 0.01 seconds.

To set 3000 seconds, set change data to "300000 (000493E0h)". 4-88 Multi-function input terminals [S1] [S2] [S3] [S4] [S5] Coil No. 7 8 9 10 11 Terminal status ON ON ON OFF ON