![KonNad C2000-A2-SDD8020-DD3 Скачать руководство пользователя страница 27](http://html1.mh-extra.com/html/konnad/c2000-a2-sdd8020-dd3/c2000-a2-sdd8020-dd3_user-manual_1996035027.webp)
01
Function
Code
1 Byte, 01 = 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
You can write 0 or 1 to the register, the value 0 indicates COM and NO are open, and the value 1 indicates COM
and NO are close.
Close DO1 and open DO2, the command is as follows:
0x000100000008FF0F006400020101
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
FF
Unit ID
1 Byte, 0xFF = Master device
0F
Function Code
1 Byte, 0F = Write
0064
Starting Address
2 Bytes, address of the first register
0002
Quantity of
Registers
2 Bytes, the number of required registers
01
Data Length
1 Byte, Data Length
01
Data
1 Byte, Binary of 0x01 is "0001" (1 bit indicates 1 channel), 1 is closed, 0 is
open
In the response from the device we get:
0x000100000006FF0F00640002
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
C2000-A2-SDD8020-DD3 User Manual
27 / 33
SinoCon Co., Ltd.
www.sinoconsys.com