smartDEN IP-16R-XX User Manual
13 Apr 2021
Note: If the sum of the start address and coil quantity exceeds 16, an error
response will be returned.
Request example 1: Read Coil Status: Relays 1..3:
Table 10.8. Read Coils Request Example 1
Request example 2: Read Coil Status: Relays 4..16:
Table 10.9. Read Coils Request Example 2
Response
The coils in the response message are packed as one coil per bit of the data field.
Status is indicated as 1 for ON and 0 for OFF. The least significant bit (LSB) of the
first data byte contains the relay addressed in the query. The other relays follow
toward the high order end of this byte, and from low order to high order in
subsequent bytes. If the returned output quantity is not a multiple of eight, the
remaining bits in the final data byte will be padded with zeros. The Byte Count field
specifies the quantity of complete bytes of data.
Response example 1: Read Coil Status: Relays 1..3:
Table 10.10. Read Coils response example 1