节点文献

用VB6.0实现工控软件和下位机的串口通信

Serial communication between industrial control software and slave system with VB 6.0

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 阚江孙苓生张明

【Author】 KAN Jiang,SUN Ling sheng,ZHANG Ming (Shanghai Jiaotong University,Shanghai 200030,China)

【机构】 上海交通大学电气工程系上海交通大学电气工程系 上海200030上海200030上海200030

【摘要】 针对自动化控制中出现的工控软件串口通信驱动程序不支持现有设备的问题 ,基于DDE(DynamicDataExchange)技术 ,用VB 6 0实现了一个能被绝大多数工控软件使用的串口通信接口程序。对下位机 ,利用MSComm控件收发串口数据 ;对工控软件 ,通过DDE方式与其交换数据 ,使得工控软件能透明地操作串口数据。实际工程运行表明 ,该方法实现简单 ,功能适用 ,运行可靠。另外 ,在工业现场的实际应用常常需要定时发送数据 ,而VB提供的定时器控件只能精确到 5 5ms左右 ,利用WinAPI实现了精度 1ms的高精度定时器。

【Abstract】 Regarding to that the serial communication driver provided with industrial control software does not support current devices in automation control,a DDE based serial communication software with VB 6.0 is developed,which can be applied by most industrial control software.For the slace system,the MSComm Controller is used to receive and transmit serial data,for the industrial control software,the data is exchanged transparently via DDE(Dynamic Data Exchange).The engineering practice proves that it is easy in implementation,applicable in functions and reliable in operation.In addition,the data are normally transmitted by time schedule in industrial control and the timer control provided by VB can not be less than 55 ms,WinAPI is hence adopted to set a timer with 1 ms resolution.

  • 【文献出处】 电力自动化设备 ,Electric Power Automation Equipment , 编辑部邮箱 ,2002年09期
  • 【分类号】TP311.52
  • 【被引频次】37
  • 【下载频次】753
节点文献中: 

本文链接的文献网络图示:

本文的引文网络