03
Quantity of Registers
2 Bytes, the number of required registers
5.2.9. Write DO Status of Cascading Device (0x0F)
Control 4-channel DO of cascaded device C2000-A2-SDD4040-AD1 with address 01 connected to the device
(C2000-A1-SDD1010-AB3), Close DO1-DO2, and open DO3-DO4, the command is as follows:
0x000100000008010F006400040103
Command
Field
Description
0001
Transaction ID
2 Bytes, identification of a Modbus Request/Response transaction
0000
Protocol ID
2 Bytes, 0000 = Modbus protocol
0008
Length Field
2 Bytes, number of following bytes
01
Unit ID
1 Byte, 01 = RS485 address of the cascading device
0F
Function Code
1 Byte, 0F = Write
0064
Starting Address
2 Bytes, address of the first register
0004
Quantity of Registers
2 Bytes, the number of required registers
01
Data Length
1 Byte, Data Length
03
Data
1 Byte, 03 binary is 0011, 1 is close, 0 is open
In the response from the device we get:
0x 000100000006010F00640004
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
01
Unit ID
1 Byte, 01 = RS485 address of the cascading device
0F
Function Code
1 Byte, 0F = Write
0064
Starting Address
2 Bytes, address of the first register
0004
Quantity of Registers
2 Bytes, the number of required registers
C2000-A1-SDD1010-AB3 User Manual
32 / 34
SinoCon Co., Ltd.
www.sinoconsys.com