smartDEN
IP-16R-XX
User Manual
13 Apr 2021
-
52
-
Error response example:
Table 10.23.
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
10.2.1.4. 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 10.24.
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
Function Code
1 Byte
0x06
Register Address
2 Bytes
0x0009
Register Value
2 Bytes
0x001E
Note
: Pulse duration is given in milliseconds x 100.
Response
The normal response returns the function code, register address, and register
value (echo of the query).
Response example: Generate pulse on Relay 10, pulse width 3 seconds:
Table 10.25.
Write Single Register response
Field
Length
Data
Transaction Identifier
2 Bytes
0x0005
Protocol Identifier
2 Bytes
0x0000
Length
2 Bytes
0x0006
Unit Identifier
1 Byte
0x00
Function Code
1 Byte
0x06
Register Address
2 Bytes
0x0009
Register Value
2 Bytes
0x001E
Содержание 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...