0000
Protocol ID
2 Bytes, 0000 = Modbus protocol
0005
Length
Field
2 Bytes, number of following bytes
FF
Unit ID
1 Byte, FF = Master device
03
Function
Code
1 Byte, 03 = Read
02
Data
Length
1 Byte, Data Length
0001
Data
2 Byte, 0001 indicates there is a valid positive pulse; 0000 indicates there no a
valid positive pulse
5.2.6. Wirte Single DI Positive Pulse Count (0x06)
You can write any value of 0x0000-0xFFFF to the register.
Write 0x000F to DO1 register, then it counts from 15, the command is as follows:
0x000100000006FF06012E000F
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
06
Function Code
1 Byte, 06 = Write single register
012E
Starting Address
2 Bytes, address of the first register
000F
Data
2 Byte, 000F indicates it counts from 15
In the response from the device we get:
0x 000100000006FF06012E000F
Command
Field
Description
0001
Transaction ID
2 Bytes, identification of a Modbus Request/Response transaction
0000
Protocol ID
2 Bytes, 0000 = Modbus protocol
C2000-A1-SDD1010-AB3 User Manual
29 / 34
SinoCon Co., Ltd.
www.sinoconsys.com