In the response from the device we get:
0x000100000004FF020101
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, 01 indicates DI is close
5.2.5. Read DI Positive Pulse Active State (0x02)
Take the case of acquisition 1 channel DI as an example. The command is as follows:
0x000100000006FF03012C0001
Command
Field
Description
0001
Transaction ID
2 Bytes, identification of a Modbus Request/Response transaction
0000
Protocol ID
2 Bytes, 0000 = Modbus protocol
0006
Length Field
2 Bytes, number of following bytes
FF
Unit ID
1 Byte, FF = Master device
03
Function Code
1 Byte, 03 = Read
012C
Starting Address
2 Bytes, address of the first register
0001
Quantity of Registers
2 Bytes, the number of required registers
Assuming the DI1 channel generates a valid positive pulse, the command returned by the device is as follows:
0x000100000005FF03020001
Command
Field
Description
0001
Transaction
ID
2 Bytes, identification of a Modbus Request/Response transaction
C2000-A1-SDD1010-AB3 User Manual
28 / 34
SinoCon Co., Ltd.
www.sinoconsys.com