smartDEN
IP-16R-XX
User Manual
13 Apr 2021
-
54
-
Response
The normal response returns the function code, starting register address, and
quantity of registers written.
Response example: Set Week Schedule Start Date to 10/09/2020:
Table 10.28.
Write Multiple Registers reply
Field
Length
Data
Transaction Identifier
2 Bytes
0x0006
Protocol Identifier
2 Bytes
0x0000
Length
2 Bytes
0x0006
Unit Identifier
1 Byte
0x00
Function Code
1 Byte
0x10
Starting Register Address
2 Bytes
0x6100
Quantity of Registers
2 Bytes
0x0003
Error
The possible error responses for function code 0x0F are:
Function Code (1 byte): 0x90 (0x80 + 0x10)
Exception Codes (1 byte):
- 0x01
– Function code not supported
- 0x02
– Invalid register address
- 0x03
– Invalid register value
Error response example:
Table 10.29.
Write Multiple Registers error response
Field
Length
Data
Transaction Identifier
2 Bytes
0x0003
Protocol Identifier
2 Bytes
0x0000
Length
2 Bytes
0x0003
Unit Identifier
1 Byte
0x00
Function Code
1 Byte
0x90
Exception Codes
1 Byte
0x01 or 0x02 or 0x03