smartDEN
IP-16R-MT
User Manual
7 July 2020
-
46
-
Response example: Read Week Schedule Start Date fields:
Table 20.
Read Holding Registers response
Field
Length
Data
Transaction Identifier
2 Bytes
0x0004
Protocol Identifier
2 Bytes
0x0000
Length
2 Bytes
0x0009
Unit Identifier
1 Byte
0x00
Function Code
1 Byte
0x03
Byte Count
1 Byte
0x06
Start Date (Day)
2 Bytes
0x000A
Start Date (Month)
2 Bytes
0x0009
Start Date (Year)
2 Bytes
0x07E4
Error
The possible error responses for function code 0x03 are:
Function Code (1 byte): 0x83 (0x80 + 0x03)
Exception Codes (1 byte):
- 0x01
– Function code not supported
- 0x02
– Incorrect combination of start address and number of registers
Error response example:
Table 21.
Read Holding Registers error response
Field
Length
Data
Transaction Identifier
2 Bytes
0x0004
Protocol Identifier
2 Bytes
0x0000
Length
2 Bytes
0x0003
Unit Identifier
1 Byte
0x00
Function Code
1 Byte
0x83
Exception Codes
1 Byte
0x01 or 0x02
9.1.5. Write Single Register
This command is used to write a single register.
Request
The Write Single Register request specifies the register address to be written, and
the register value.
Request example: Generate pulse on Relay 10, pulse width 3 seconds:
Table 21.
Write Single Register request
Field
Length
Data
Transaction Identifier
2 Bytes
0x0005
Protocol Identifier
2 Bytes
0x0000
Length
2 Bytes
0x0006
Unit Identifier
1 Byte
0x00