摘要
为了使模拟屏能够实时动态地显示现场数据,从而使操作员能够更加有效地观察系统状况,本文介绍了利用动态数据交换(DDE)技术实现“组态王”与VB应用程序之间的数据交换,并基于模拟屏的通讯协议,提出了利用MSComm控件发送相应帧到串口以驱动模拟屏的一种方法。通过对系统的分析,用VB语言编写了一段模拟屏的驱动程序。近一年的运行实践表明,该程序能稳定有效地驱动模拟屏显示。
In order to capacitate the mimic board real-timely and dynamically display the field data and enable operators more effectively to observe the situation of system, the article introduces the data exchange between "King View" and a Visual Basic Application Program with DDE (Dynamic Data Exchange) technology, and proposes a method which sends corresponding frames to the serial port to drive the mimic board by using MSComm control on the basis of the communication protocol of the mimic board. Based on the analysis of the system, a segment of driver program for the mimic board is written with Visual Basic language. The operational practice for about a year shows that this program can drive the mimic board steadily and effectively.
出处
《自动化信息》
2008年第12期73-75,共3页
Automation Information