smartDEN
IP-16R-XX
User Manual
13 Apr 2021
-
46
-
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
Field
Length
Data
Transaction Identifier
2 Bytes
0x0001
Protocol Identifier
2 Bytes
0x0000
Length
2 Bytes
0x0006
Unit Identifier
1 Byte
0x00
Function Code
1 Byte
0x01
Start Address
2 Bytes
0x0000
Quantity of Coils
2 Bytes
0x0003
Request example 2: Read Coil Status: Relays 4..16:
Table 10.9.
Read Coils Request Example 2
Field
Length
Data
Transaction Identifier
2 Bytes
0x0001
Protocol Identifier
2 Bytes
0x0000
Length
2 Bytes
0x0006
Unit Identifier
1 Byte
0x00
Function Code
1 Byte
0x01
Start Address
2 Bytes
0x0003
Quantity of Coils
2 Bytes
0x000D
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
Field
Length
Data
Transaction Identifier
2 Bytes
0x0001
Protocol Identifier
2 Bytes
0x0000
Length
2 Bytes
0x0004
Unit Identifier
1 Byte
0x00
Function Code
1 Byte
0x01
Byte Count
1 Byte
0x01
Coil Status
1 Byte
0x05
Содержание smartDEN IP-16R Series
Страница 63: ...smartDEN IP 16R XX User Manual 13 Apr 2021 63 Figure 10 9 Inputs state notifications...
Страница 66: ...smartDEN IP 16R XX User Manual 13 Apr 2021 66 13 Appendix 2 Application reply formats 13 1 XML reply...
Страница 67: ...smartDEN IP 16R XX User Manual 13 Apr 2021 67 13 2 JSON reply...