smartDEN
IP-16R-XX
User Manual
13 Apr 2021
-
50
-
Byte Count
1 Byte
0x02
Outputs Value
2 Bytes
0xFEFF
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
Field
Length
Data
Transaction Identifier
2 Bytes
0x0003
Protocol Identifier
2 Bytes
0x0000
Length
2 Bytes
0x0006
Unit Identifier
1 Byte
0x00
Function Code
1 Byte
0x0F
Start Address
2 Bytes
0x0000
Quantity of Outputs
2 Bytes
0x0003
Response example 2: Set relay 1 to OFF and relays 2..16 to ON:
Table 10.19.
Write Multiple Coils response example 2
Field
Length
Data
Transaction Identifier
2 Bytes
0x0003
Protocol Identifier
2 Bytes
0x0000
Length
2 Bytes
0x0006
Unit Identifier
1 Byte
0x00
Function Code
1 Byte
0x0F
Start Address
2 Bytes
0x0000
Quantity of Outputs
2 Bytes
0x0010
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
Field
Length
Data
Transaction Identifier
2 Bytes
0x0003
Protocol Identifier
2 Bytes
0x0000
Length
2 Bytes
0x0003
Unit Identifier
1 Byte
0x00
Содержание 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...