smartDEN
IP-16R-XX
User Manual
13 Apr 2021
-
53
-
Error
The possible error responses for function code 0x06 are:
Function Code (1 byte): 0x86 (0x80 + 0x06)
Exception Codes (1 byte):
- 0x01
– Function code not supported
- 0x02
– Invalid register address
- 0x03
– Invalid register value
Error response example:
Table 10.26.
Write Single Register error response
Field
Length
Data
Transaction Identifier
2 Bytes
0x0005
Protocol Identifier
2 Bytes
0x0000
Length
2 Bytes
0x0003
Unit Identifier
1 Byte
0x00
Function Code
1 Byte
0x86
Exception Codes
1 Byte
0x01 or 0x02 or 0x03
10.2.1.5. Write Multiple Registers
This command sets a block of holding registers to specific values.
Request
The Write Multiple Registers request specifies the starting register address, the
number of registers, byte count, and the values to be written in ascending order.
Values are packed as two bytes per register.
Note
: If the sum of the start address and number of registers
exceeds the size of
the accessed block of registers, an error response will be returned.
Request example: Set Week Schedule Start Date to 10/09/2020:
Table 10.27.
Write Multiple Registers request
Field
Length
Data
Transaction Identifier
2 Bytes
0x0006
Protocol Identifier
2 Bytes
0x0000
Length
2 Bytes
0x000D
Unit Identifier
1 Byte
0x00
Function Code
1 Byte
0x10
Starting Register Address
2 Bytes
0x6100
Quantity of Registers
2 Bytes
0x0003
Byte Count
1 Byte
0x06
Start Date (Day)
2 Bytes
0x000A
Start Date (Month)
2 Bytes
0x0009
Start Date (Year)
2 Bytes
0x07E4
Содержание 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...