Read Input Register Status; Read Hold Register - Ebyte E150-400T30S User Manual

400m frequency band 1w lora wireless acquisition control module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
Device MODBUS
address
Phenomenon: do1 ~ D04 output high level.
Serial port receiving return value: 01 0f 00 00 00 04 C8 3F
Remote wireless reception return value: 01 0f 00 00 00 04 C8 3F

5.3 Read input register status

 use the 04 function code to read one or more input register values, for example: read the current
floating-point voltage value (power supply voltage) of adc3
01
Device MODBUS
address
Note: the CRC check code of the last two bytes of the sending instruction needs to be calculated by
the user.
Serial port sending: 01 04 00 CC 00 02 B1 F4
Remote wireless transmission: 01 04 00 CC 00 02 B1 F4
After sending the above command to the device via serial port or wireless, the device will return the
following values to the serial port or wireless:
01
Device
MODBUS
Function code
address
Phenomenon: the value of the return power supply voltage is 4.18425v (floating-point type 4085 e55e).
Serial port receive return value: 01 04 04 40 85 E5 5E 35 00
Remote wireless reception return value: 01 04 04 40 85 E5 5E 35 00

5.4 Read hold register

use 03 function code to read one or more register values, for example: read the current baud
rate
01
Function code
Device MODBUS
address
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd.
Function
Register
code
address
04
Functio
Register
n code
head address
04
Number of
bytes of data
03
Register
head address
Number of registers
head
00 CC
Number of
registers read
04
40 85 E5 5E
Returned data
0B 72
Number of
registers read
E150-400T30S user manual
CRC check
read
00 02
CRC check
CRC check
00 01
CRC check code
12
code
B1 F4
code
35 00
code
26 35

Advertisement

Table of Contents
loading

Table of Contents