0X01) Read The Status Of The Coils (Read Do Readback Vaslues) - ICP DAS USA iNS-308 User Manual

8-port 10/100base-tx iot switch
Table of Contents

Advertisement

iNS-308 User Manual
7.2.1 01(0x01) Read the Status of the Coils
(Read DO Readback vaslues)
This function code is used to read either the current status of the coils or the current Digital Output
readback value from the iNS-308
[Request]
Byte
Description
00
Net ID (Station Number)
01
Function Code
02-03
Starting DO Address
04-05
Number of Points (Channels)
[Response]
Byte
Description
00
Net ID (Station Number)
01
Function Code
02
Byte Count
03
Data
[Error Response]
Byte
Description
00
Net ID (Station Number)
01
Function Code
02
Exception Code
Copyright © 2022 ICP DAS CO., Ltd. All Rights Reserved.
Size
1 Byte
1 to 247
1 Byte
0x01
Byte 02 = high byte
2 Byte
Byte 03 = Low byte
Byte 04 = high byte
2 Byte
Byte 05 = Low byte
Size
1 Byte
1 to 247
1 Byte
0x01
Byte Count of the Response
1 Byte
( n = (Points+7)/8 )
n= 1; Byte 03 = data bit 7 to 0
n= 2; Byte 04 = data bit 15 to 8
n Byte
.......
n= m; Byte m+2 = data bit (8m-1) to 8(m-1)
Size
1 Byte
1 to 247
1 Byte
0x81
Refer to the Modbus Standard
1 Byte
Specifications for more details
Value
Value
Value
- 36 -

Advertisement

Table of Contents
loading

Table of Contents