Chengdu Ebyte Electronic Technology Co., Ltd.
E830-DIO(ETH-2A) User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd.
17
7. Instruction format
7.1 “03” read single register command
Using the 03 command to read the register value. For example, the command to read the input port 40001 value of the
module is as follows:
01
03
00 00
00 01
84 0A
ModBus address of device
Read command
Start to read register’s address
Read register’s length
CRC check code
After the above command is sent to the module through the serial port assistant, the module will return the following
values:
01
03
02
00 00
B8 44
Modbus address of device
Read command
Read the returning
bytes
DI value
,
see more details
in maintain registers
CRC check code
7.2 “06”Write a register command
Use the 06 command to write a register value, such as writing a 40002 port output register:
01
06
00 01
00 01
58 75
ModBus address of
device
Write command
Write registers’ address
Write register’s value
CRC check
After the above command is sent to the module through the serial port assistant, the module will return the following
values:
01
06
00 01
00 01
58 75
ModBus address of device Write command
Write registers’ address
Write register’s value
CRC check
7.3 Factory default
Device address
Function option
Status control
DO output value
Version information
01
00 01
00 01
00 00
17 12