引用本文:季胜鹏,林中达.基于OPC规范的客户/服务器模型设计[J].电力自动化设备,2002,(11):59-62
.Client/Server model design based on OPC specifications[J].Electric Power Automation Equipment,2002,(11):59-62
【打印本页】   【HTML】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览 3498次   下载 0 本文二维码信息
码上扫一扫!
基于OPC规范的客户/服务器模型设计
季胜鹏,林中达
作者单位
摘要:
简要介绍了基于OPC规范的数据实时通信,着重分析了采用OPC技术的客户/服务器模型和实现该模型的MFC和ATL编程技术。MFC和ATL分别以嵌套类和多重继承的原理实现OPC接口,都以包容模型实现了OPCServer对象、OPCCroup对象、OPCItem对象。在客户端MFC和ATL分别通过单接口和双接口的编程方法实现与OPC服务器的通信。通过实践得出结论,在工业控制领域中对控制系统进行符合OPC规范的客户/服务器模型设计,并采用MFC或ATL的编程技术实现OPC控制软件是可行和高效的。
关键词:  OPC规范 客户/服务器 模型 设计 计算机控制系统
DOI:
分类号:TP273.5
基金项目:
Client/Server model design based on OPC specifications
JI Sheng-peng  LIN Zhong-da
Abstract:
The real time data communication based on OPC(Object Linking and Embedding for Process Control)specifications is introduced.The Client /Server model using OPC technique and the MFC(Microsoft Fundation Class)and ATL(Active Template Library)programming technique for its implementation is emphasized.MFC and ATL realize OPC interfacing with the theory of embedding and multi-inheritance respectively,and both implement OPCServer object,OPCGroup object and OPCItem object with containment .At OPCClient ,MFC and ATL realize the communication between OPCServer and OPCClient with the programming method of single interface and dual interface respectively.The practice shows that the Client /Server model design according to OPC specifications and the implementation of OPC control software using MFC or ATL programming technique is practical and efficient in industrial control domain.
Key words:  OPC,COM,MFC,ATL,Client /Server,

用微信扫一扫

用微信扫一扫