
Shanghai ZLAN Information Technology Co., Ltd Tel: +86-17321037177 http://www.zlmcu.com
39
Figure 27 Communication via Virtual Serial Port
4.5 Modbus TCP Test
By default, serial and Ethernet port data are transparently transmitted. If you want to
realize Modbus TCP to Modbus RUT, you should choose the converting protocol to
“Modbus TCP
RTU
” in the device manage dialog box as shown in figure 28. At this
point, the device port is automatically changed to 502, the user's Modbus TCP tool
connects to the port 502 port of the serial device server, and the sending Modbus TCP
command is converted to the RTU instruction output from the serial port. For example,
the Ethernet port of the serial device server receives Modbus TCP command 00 00 00 00
00 06 01 03 00 00 0a, then the serial port outputs the command 01 03 00 00 00 0a c5 cd.
Note: the serial port may send a number of commands 01 03 00 00 00 0a c5 cd, as the
default Modbus adopts storage mode, and will automatically roll polling the query
instruction. It will show you how to switch to a non-storage mode later.