Chengdu Ebyte Electronic Technology Co.,Ltd.
For example, 2: read the current integer voltage value (power supply voltage) of ADC3)
01
Device MODBUS
Function
address
code
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 66 00 01 D1 D5
Remote wireless transmission: 01 04 00 66 00 01 D1 D5
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
address
code
Phenomenon: return the value of power supply voltage 4.528V (11B6 H) (floating point value * 1000).
Serial port sending: 01 04 02 11 B6 34 D6
Remote wireless transmission: 01 04 02 11 B6 34 D6
8.4 analog output (AO)
E150-400T30S has two analog output pins (AO)
AO output voltage is controlled by floating-point number, with built-in voltage stabilization algorithm.
The maximum output voltage is the power supply voltage
When writing floating-point numbers, two MODBUS registers must be written continuously
Register function
Dac1 output voltage floating point value
Dac2 output voltage floating point value
Command to write multiple holding registers using 10 function code
For example, set the output voltage value of dac1 to 1.2V
01
10
Function
D
evice MODBUS
code
address
Note:
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd.
04
00 66
Register head
address
04
02
Number of
bytes of data
00 00
00 02
Register
Number of
head
registers
addres
s
00 01
Number of
registers read
11 B6
Returned data
MODBUS address
0x0000
0x0002
04
3F 99 99 9A
Number of
Data written
bytes written
E150-400T30S user manual
D1 D5
CRC check
code
34 D6
CRC check
code
C5 AF
CRC check code
29