Instruction Format - Ebyte E820-AIO User Manual

Data acquisition module
Hide thumbs Also See for E820-AIO:
Table of Contents

Advertisement

4. Instruction format

4.1 Input"03"to read the command of single register
Users input"03" to read the command of register value. Below is the command to read the value of baud rate:
01
ModBus Address
Send above command via the serial assistant to module, then below value will be returned:
01
ModBus Address
To read command
Note: With the known baud rate, to use FF monitoring address can read the unremembered register value, Such as, send FF 03 00 21 00 01
c1de to read the address of device. CRC parity check code can be calculated by CRC16 system, the assistant software can be downloaded
in official website.
4.2 Input"03"to read the command of multiple registers
Users input"03" to read the command of register value. Below is the command to read the address of 40034 to 40036:
01
ModBus address
To read command
Send above command via the serial assistant to module, then below value will be returned:
01
03
ModBus
To read command
address
4.3 Input "06" to write the command of register
Input "06"to write single command, below is the command to change the baud rate as 19200:
01
ModBus address
To write command
If the revision is successful, module will return 01 06 00 21 00 04 d803.
4.4 Factory default value
Device address
40033 address is 1
03
To read command
To read the address of register
03
To read the return bytes
03
To read the address of register
06
The value of 40034 is 3,
which means the baud
To read the
rate is 9600,see more
return bytes
details in baud rate value
06
Write in 40034 register
Baud rate
9600,that is, 40034 address is 3
00 21
To read the length of register
02
The value of 40034 is 3,which means
the baud rate is 9600,see more
details in baud rate value table.
00 21
To read the length of register
00 03
00 00
The value of 40035 is 0,
the parity bit of device
is no parity, see more
details in parity check
table.
code table.
00 21
The write value of 40034 is 4, the
corresponding baud rate is 19200,
see more details in baud rate table
Voltage for reference
2400
10
00 01
CRC parity code
00 03
CRC parity code
00 03
00 00
The value of 40036 is 0
00 04
Parity check code
No parity check:40035 address is 0
D4 00
F8 48
55 C1
CRC parity code
65 75
CRC parity code
D8 03
CRC parity code

Advertisement

Table of Contents
loading

Table of Contents