天天看点

《OPC服务器与客户程序开发指南》

PLC远程通讯功能集锦(互联网、局域网)

www.maiside.top

目录

前言

第一章OPC概述········································1

1.1 OPC技术的本质--COM/DCOM·······················2

1.2 OPCDA204规范简述································4

1.3 OPC对象接口定义·································6

1.4 OPC同步异步通讯·································9

1.5 OPC服务器开发方式 ······························10

第二章ATL简介········································12

2.1COM基础··········································13

2.2用ATL应用程序向导创建应用程序···················18

2.3源文件说明·······································20

2.4添加组件对象·····································23

2.5添加组件对象的属性和方法(函数)··················30

2.6测试组件·········································34

第三章ATL开发OPC服务器····························36

3.1OPC Server对象定义·······························37

3.2OPC Group对象定义································41

3.3用于客户端的回调定义·····························46

3.4OPC服务器的设计及初步实现························48

3.5OPC服务器的编程实现······························50

3.6OPC服务器的异步通讯实现··························68

3.7OPC服务器的浏览地址空间实现······················84

3.8OPC服务器的注册··································101

第四章OPC客户程序实例 ·····························103

4.1OPC客户程序(VC++同步篇) ·························103

4.2OPC客户程序(VC++异步篇) ·························124

4.3OPC客户程序(VB  同步篇) ·························140

4.4OPC客户程序(VB  异步篇) ·························146

4.5OPC客户程序(VC 多个组篇) ························155

4.6OPC客户程序(VB 浏览地址空间篇)···················162

4.7OPC客户程序(VC 浏览地址空间篇) ··················170

第五章OPC 服务器的远程访问·························173

5.1OPC服务器远程访问的DCOM配置·····················174

5.2DCOM的远程连接管理·······························176

5.3远程访问OPC服务器的客户程序实现(VC)············177

附录:编程常用函数及名词简介························187

参考文献···············································192

本 书 特 色

国内第一本介绍OPC服务器编写的书籍;

国内第一本由国人编写的OPC技术书籍;

国内第一本提供OPC(DA2.0)服务器源码的书籍;

精彩源码之OPC服务器(ATL开发);

精彩源码之Visual Basic客户程序实例(异步、同步、浏览地址空间);

精彩源码之Visual C++客户程序实例(异步、同步、远程、浏览地址空间);

通过http://www.opc-china.com网站进行技术指导;

征集OPC客户程序的Delphi,C++ Builder及其它语言OPC客户程序实例及编写文档,在新版本推出时加入这些实例,提供稿费,并在编者中加入您的大名。

继续阅读