smartDEN IP-16R-XX User Manual
13 Apr 2021
In this example the first byte of the Outputs Value field corresponds to relays 8 to
1, and the second byte – to relays 16 to 9.
Response
The normal response returns the function code, starting address, and quantity of
coils forced.
Response example 1: Set relays 1 and 3 to ON, and relay 2 to OFF:
Table 10.18. Write Multiple Coils response example 1
Response example 2: Set relay 1 to OFF and relays 2..16 to ON:
Table 10.19. Write Multiple Coils response example 2
Error
The possible error responses for function code 0x0F are:
Function Code (1 byte): 0x8F (0x80 + 0x0F)
Exception Codes (1 byte):
- 0x01 – Function code not supported
- 0x02 – Incorrect combination of start address and coil quantity
Error response example:
Table 10.20. Write Multiple Coils error response