background
Learn how to use a MODBUS debugging tool to establish communication through RS485. (This article uses virtual serial port debugging)
ready
The virtual serial port tool, as shown in the following figure:
MODBUS debugging tool MThings (only one piece of software is needed to realize the simulation of the master and slave at the same time), as shown in the following figure:
start working
-
The establishment of a virtual serial port
You can download a serial port virtual tool from the Internet. This is relatively simple and not introduced one by one. My virtual serial ports are COM1 and COM2. -
Establish communication between master and slave through MThings
**** Official download address of the software: http://www.gulink.cn/files/MThings.zip
****Open MThings, add COM1 as a slave and COM2 as a master ,As shown below
****It should be noted here that the communication configuration of the master and slave must be consistent
****The link has been established, and the communication data of the
master and slave will be configured below. ****The data of the master and the slave must be configured below. The configured address and number are exactly the same.
Finally, let’s show the curve drawn by the communication data.
end
Choosing a good tool is the beginning of your success, MThings deserves it!