![KonNad C2000-A2-SDD8020-DD3 User Manual Download Page 29](http://html1.mh-extra.com/html/konnad/c2000-a2-sdd8020-dd3/c2000-a2-sdd8020-dd3_user-manual_1996035029.webp)
FF00
Data
2 Byte, FF00 indicates COM and NO is close
Open DO1, the command is as follows:
0x000100000006FF0500640000
Close DO2, the command is as follows:
0x000100000006FF050065FF00
Open DO2, the command is as follows:
0x000100000006FF0500650000
After checking the "Auto upload data" item in the software tool, it will actively upload the DI status in 4 cases.
• The device is connected to the host computer for the first time
• Any DI channel value of the device changes from 1 to 0
• Any DI channel value of the device changes from 0 to 1
• The device reconnects to the host computer in TCP Client mode after the network is interrupted
In the response from the device we get:
Command
Field
Description
0001
Transaction
ID
2 Bytes, identification of a Modbus Request/Response transaction
0000
Protocol ID
2 Bytes, 0000 = Modbus protocol
0004
Length Field
2 Bytes, number of following bytes
FF
Unit ID
1 Byte, FF = Master device
02
Function
Code
1 Byte, 02 = Read
01
Data Length
1 Byte, Data Length
01
Data
1 Byte, Binary of 0x01 is "0000 0001" (1 bit indicates 1 channel), 1 is closed, 0 is
open
5.2.6. Read DI Status of Cascading Device (0x02)
Acquire 4-channel DI of cascaded device C2000-A2-SDD4040-AD1 with address 01 connected to the device
(C2000-A2-SDD8020-DD3), the command is as follows:
000100000006010200C80004
Command
Field
Description
0001
Transaction ID
2 Bytes, identification of a Modbus Request/Response transaction
C2000-A2-SDD8020-DD3 User Manual
29 / 33
SinoCon Co., Ltd.
www.sinoconsys.com