摘要
文章简要介绍了.NET框架的2个主要部分,概述了OPC数据访问规范,详细地说明了采用VC++6.0设计OPC异步读写客户程序的关键步骤,以异步写服务程序为例给出了封装OPC异步读写动态链接库的方法,并给出了在VB.NET中调用异步动态链接库函数的方法。在VB.NET中用托管代码调用非托管代码开发了OPC客户端,实现了对OPC服务器的访问,提供了一种在工业现场总线系统集成领域中实时的采集现场总线系统数据的方法。
This paper briefly introduces the two main parts of the .NET Framework, outlines the OPC Data Access standard, detailed describes the key steps that designed of the asynchronous read and write OPC client program using VC++6.0, takes asynchronous write service program as an example, gives the way to wrap the OPC asynchronous read and write dynamic link library, and gives the method that called the asynchronous dynamic link library functions in VB .NET. The OPC client is developed Using managed code calling nonmanaged code in VB .NET, has realized to access the OPC server, provides a method of gathering real-time data of the industrial Fieldbus system in the industry field bus system integration domain.
出处
《制造业自动化》
北大核心
2008年第12期22-24,72,共4页
Manufacturing Automation
基金
天津市自然科学基金重点项目(07JCZDJC09600)