摘要
文中介绍了Modbus RTU通讯协议的特点,阐述了该协议在VB6.0编程环境下通过MSComm控件实现计算机与压力传感器通信的具体方法,并编制了相关的程序。实践证明,该程序编制思想合理、运行稳定、操作简便易行,为工业自动化中Modbus设备的调试带来方便。
In this paper , the features ot the Modbus communication protocol are introduced. The method for realizing the communication between computer and pressure sensor based on Modbus protocol is also explained. Related program is written. The practice shows that the program is stable and reliable and easy to operate. It brings convenience to the debugging of Modbus device of industrial automatio.