• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2008, Vol. 30 ›› Issue (5): 81-83.

• 论文 • 上一篇    下一篇

OPC客户端与实时数据库通信的实现

张河 鲁五一   

  • 出版日期:2008-05-01 发布日期:2010-05-19

  • Online:2008-05-01 Published:2010-05-19

摘要:

在组态软件的数据流程中,一个关键要解决的问题是OPC客户端与实时数据库通信。本文分三个方面剖析了此过程,即OPC客户端初始化实时数据库,实时数据库写OPC服务器中的项,当OPC服务器中的项发生变化时写实时数据库相应TAGID值。本文将面向对象技术与传统的软件设计方法相结合,使用VC++、COM等先进编程技术,讨论了OPC客户端和实时数据库通信的方法。

关键词: 组态软件 实时数据库 OPC 动态链接库

Abstract:

In the transportation of configuration software, an important problem which needs to be solved is the communications between the OPC clients and the R TDB. The article analyses the transportation from three aspects, namely, the OPC clients' initialization of the RTDB, RTDB writing the items of the OPC  C server, and when the items of the OPC server change, writing the corresponding TAGID of the RTDB. The article combines the oriented-object technology  and the traditional methods of software designing,makes use of the advanced computer programming technologies such as VC+ + and COM, and discusses thee communication method between the OPC clients and the RTDB.

Key words: configuration software, RTDB, OPC, DLL