USR-DR504-E User Manual
Jinan USR IOT Technology Limited
Tech Support: h.usriot.com
22
2.3.5. Modbus protocol conversion
Diagram 2.3.5-1 Modbus Protocol Conversion Schematic Diagram
In the network transparent mode, if the terminal device transmits data through Modbus RTU protocol and the
server communicates through Modbus TCP protocol, user can turn on the function of DTU Modbus TCP/RTU protocol
internal conversion. After this function is enabled, DTU converts the Modbus TCP protocol data sent by the server into
Modbus RTU protocol and sends it to the terminal device, and converts the Modbus RTU protocol data sent by the
terminal device into Modbus TCP protocol and sends it to the server.
Command name
Command functions
Default parameter
AT+MODBUSEN
Query/Setting whether to enable Modbus
protocol conversion
OFF
Form 2.3.5-1 Related AT Command
AT commnd setting method:
1
.
Set work mode to Transparent mode. :
AT+WKMOD=NET
2
.
Enable Socket A:
AT+SOCKAEN=ON
3
.
Set socket A to TCP Client:
AT+SOCKA=TCP,test. usr. cn,2317
4
.
Enable Modbus protocol conversion:
AT+MODBUSEN=ON
5
.
Restart the machine:
AT+Z
Setting software diagram: