Computer Engineering and Applications ›› 2009, Vol. 45 ›› Issue (1): 89-91.DOI: 10.3778/j.issn.1002-8331.2009.01.026

• 研发、设计、测试 • Previous Articles     Next Articles

Analysis on subscription mechanism of OPC

YUAN Xiao-fang1,2,WANG Dong1,XIE Gao-gang2   

  1. 1.School of Computer and Communication,Hunan University,Changsha 410082,China
    2.Institute of Computing Technology,Chinese Academy of Science,Beijing 100080,China
  • Received:2008-06-13 Revised:2008-07-28 Online:2009-01-01 Published:2009-01-01
  • Contact: YUAN Xiao-fang

OPC中订阅机制的实现分析

袁小坊1,2,王 东1,谢高岗2   

  1. 1.湖南大学 计算机与通信学院,长沙 410082
    2.中国科学院 计算技术研究所 下一代互联网研究中心,北京 100080
  • 通讯作者: 袁小坊

Abstract: In the OPC specification,there are two types of device read requests:synchronous reads and subscription reads.Subscription reads are more efficient than synchronous reads,because the OPC client does not have to waste time polling the OPC server for changed data and waiting for data to come back from a request.This paper makes a deep analysis on the subscription mechanism of OPC COM-DA and OPC XML-DA.We can implement our projects with OPC COM-DA or OPC XML-DA,according to the requirement.

摘要: OPC标准中数据的获取方式有定时主动查询和订阅两种,采用订阅方式,客户端无需等待,有利于程序效率的提高。本文剖析了OPC COM-DA以及OPC XML-DA中订阅方式的实现机制并做了比较。OPC COM-DA与OPC XML-DA各有优点,在工程中我们可以根据实际需要,选择合适的实现方式。