Tiny Modbus/TCP to RTU/ASCII Gateway
Copyright © 2020 ICP DAS CO., Ltd. All Rights Reserved. - 95 -
04(0x04) Read the Input Registers (Read AIs)
This function code is used to read either the input registers or the current analog input value.
[Request]
Refer to the Modbus address depends on your
slave device for more details.
Byte 02 = high byte
Byte 03 = low byte
Number of 16-bit Registers
(Channels)
Word Count
Byte 04 = high byte
Byte 05 = low byte
[Response]
Byte Count of the Response (n=Points x 2 Bytes)
Register Values
n= 2; Byte 03 = high byte
Byte 04 = low byte
.......
n= m; Byte 03 = high byte
Byte 04 = low byte
.......
Byte m+1 = high byte
Byte m+2 = low byte
[Error Response]
Refer to the Modbus Standard Specifications for
more details.