摘要
讨论了智能仪表通过计算机串口(COM口)与WinCC通信的一种方法。该方法采用Microsoft提供的串口通信控件MScomm作为中间桥梁,在该控件的OnComm事件中使用WinCC脚本语言VBS编写程序,实现对数据采集、接收、处理和显示的功能。而且较为详细地介绍了Mscomm控件的各种主要性能属性,并对程序进行了调试,在调试中解决了仪表发送数据速度与脚本运行速度不匹配的问题。
This paper discusses a technique of making a communication between intelligent meter and WinCC through serial port. It adopts Microsoft Comm Controller (Mscomm) as a bridge between PC and intelligent meter. It also uses VBScript of WinCC to collect, receive, process and display data. And then it introduces several main properties of Mscomm in detail and resolves the problem of speed matching between sending and running script during program debugging.
出处
《矿山机械》
北大核心
2009年第22期5-8,共4页
Mining & Processing Equipment