摘要
文章介绍了Windows环境下DDE技术原理,利用VC中的DDE技术实现计算机与PLC的通信,获取MB+网的数据并使用Socket协议与以太网进行数据交换,文章给出了详细的程序设计过程。该方案简单、实用,对由其它类型PLC和上位机组成的系统的通信实现有一定的参考价值,并在单机架平整机板型控制系统中得到了成功的应用,取得了满意的效果。
This paper introduces DDE protocol in Windows, and give a method to get data from Modbus Plus network use DDE protocol in Visual C++ 2005. Then these datum were exchanged with Ethernet through Socket protocol. In this paper the core source code was provided. This solution is simple and useful, it is worthwhile for other similar communication system. And it's successfully used in a skin pass mill system.