Tiny Modbus/TCP to RTU/ASCII Gateway
Copyright © 2020 ICP DAS CO., Ltd. All Rights Reserved. - 92 -
01(0x01) Read the Status of the Coils (Readback DOs)
This function code is used to read either the current status of the coils or the current digital output
readback 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 Points (Channels)
Byte 04 = high byte
Byte 05 = low byte
[Response]
Byte Count of the Response
( n = (Points+7)/8 )
n= 1; Byte 03 = data bit 7 to 0
n= 2; Byte 04 = data bit 15 to 8
.......
n= m; Byte m+2 = data bit (8m-1) to 8(m-1)
[Error Response]
Refer to the Modbus Standard Specifications for
more details