文档介绍:1 2 2 2
2
Π
ΠΠ
Π
计算机应用《自动化技术与应用》2005 年第 24 卷第 9 期
Computer Application
2
基于 OPC 服务器自动化接口的
客户端程序的设计
刘, 柳林林, 刘利云
(南昌大学机电工程学院, 江西南昌 330029)
摘要:介绍了 OPC 技术及典型的 OPC 应用程序架构,分析了自动化接口的通讯原理,论述了 OPC 客户端软件的开发过程。最后指
出不断完善的 OPC 技术代表了过程控制系统通信标准的发展方向。
关键词:OPC; 自动化接口; 数据访问规范
中图分类号: TP332 3 文献标识码: B 文章编号: 1003 7241(2005) 08 0033 03
Ap plicatio n of t he O PC S erver Aut o m atic Interface
LIU Guo - ping , LIU Lin - lin ,LIU Li - yun
(Mechanical and Electronic Engineering College , Nanchang University , Nanchang 330029 ,China)
Abstract :This paper introduces the OPC technology , and the typical frame of OPC application program. munication principle of the automatic
interface is also introduced. It is pointed out that OPC technology will be the direction of the development munication standard for
process control.
Key words :OPC; Automatic interface ; Data access specification
1 引言 OPC(OLE for Process Control) 指用于过程控制的对象链接与
嵌入技术是基金会开发的基于微软的(
随着 3C 技术的发展,许多工控厂商都开发了各自的现场控, OPC DNA Distributed In
制器和总线,但是硬件的驱动器和与其连接的应用程序之间的 Application) 构架和(Component Object Model) 的一
接口并没有统一的标准;为了使不同厂家的设备能够通讯,必须组技术规范,它为数据的访问提供了一组标准接口。OPC 是以
按照各个供应厂商的各个机种开发特定的接口(如:利用 C 语 机制作为应用程序的通讯标准。是一种客
言 DLL 连接的 DDE 服务器或者利用 FTP 的文本文件传送户服务器模式,具有语言无关性、代码重用性、易于集成性等优
[1 ]
等) ,这使得开发机器设备间的连接接口费用很高,同时也使点。OPC 规范了接口函数,不管现场设备以何种形式存在,客户
维护运转环境的稳定性和可靠性更加困难。OPC 是为了使不同都以统一的方式去访问,从而保证软件对客户的透明性