摘要
以基于MODBUS协议的耐电压试验仪上位机监控软件的设计为例,针对MODBUS协议报文结构的特性,研究一种将有限状态机原理应用于报文接收的设计方法,并通过实例验证该方法的可行性。该方法的使用优化了程序结构,提高了传输数据的可靠性。
This article takes the design of withstand voltage tester's PC monitoring software based on MODBUS protocol as an example,it discusses a design method which uses finite state machine theory to message received based on the characteristics of MODBUS protocol packet's structure,and proves the feasibility of the method.The method optimizes the structure of program and improves the reliability of data transmission.
出处
《软件导刊》
2011年第1期44-46,共3页
Software Guide