Chengdu Ebyte Electronic Technology Co.,Ltd.
E150-400T30S user manual
Copyright ©2012–2022
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
31
For example, 1: output a square wave with low starting level, 20% duty cycle and 1000 Hz frequency
① Set the duty ratio to 20%
01
06
17 70
00 14
8D AA
Device MODBUS
address
Functi
on
code
Register
address
Write
value
CRC check
code
②
Set the frequency to 1000 Hz
01
06
17 A2
03 E8
2D 22
Device MODBUS
address
Functio
n code
Register
address
Write
value
CRC check
code
③
Set initial level
01
06
17 D4
00 00
CC 46
Device MODBUS
address
Functio
n code
Register
address
Write
value
CRC check
code
Note:
The CRC check code of the last two bytes of the sending instruction needs to be calculated by the user.
Serial port send:
01 06 17 70 00 14 8D AA
01 06 17 A2 03 E8 2D 22
01 06 17 D4 00 00 CC 46
Remote wireless transmission send:
01 06 17 70 00 14 8D AA
01 06 17 A2 03 E8 2D 22
01 06 17 D4 00 00 CC 46
8.6 RS485 pin
RS485 requires external connection of UART to RS485 chip, and this pin is used as the control pin;
When the module sends data, RS485 will be set high. In other cases, RS485 will be in the low state. The
timing is as follows.