《OPC伺服器與客戶程式開發指南》

2021-03-31 08:57:01 字數 2588 閱讀 5468

plc遠端通訊功能集錦(網際網路、區域網)

.maiside.top

目錄前言

第一章opc概述········································1

1.1 opc技術的本質--***/d***·······················2

1.2 opcda204規範簡述································4

1.3 opc物件介面定義·································6

1.4 opc同步非同步通訊·································9

1.5 opc伺服器開發方式 ······························10

第二章atl簡介········································12

2.1***基礎··········································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伺服器遠端訪問的d***配置·····················174

5.2d***的遠端連線管理·······························176

5.3遠端訪問opc伺服器的客戶程式實現(vc)············177

附錄:程式設計常用函式及名詞簡介························187

參考文獻···············································192

本 書 特 色

國內第一本介紹opc伺服器編寫的書籍;

國內第一本由國人編寫的opc技術書籍;

國內第一本提供opc(da2.0)伺服器原始碼的書籍;

精彩原始碼之opc伺服器(atl開發);

精彩原始碼之visual basic客戶程式例項(非同步、同步、瀏覽位址空間);

精彩原始碼之visual c++客戶程式例項(非同步、同步、遠端、瀏覽位址空間);

通過http://.opc-china.*****進行技術指導;

徵集opc客戶程式的delphi,c++ builder及其它語言opc客戶程式例項及編寫文件,在新版本推出時加入這些例項,提供稿費,並在編者中加入您的大名。

OPC伺服器與OPC 客戶端配置問題總結

2.進入c windows syswow64資料夾,把壓縮包裡的所有檔案都貼上進去 3.在當前資料夾裡找到cmd.exe,右鍵 以管理員許可權開啟 4.輸入regsvr32 opcdaauto.dll,顯示註冊成功 object progids server.getopcservers host.h...

OPC協議解析 OPC客戶端與伺服器通訊解析

opc伺服器,是指按照opc 組織規定的opc規範群開發的軟體驅動。opc伺服器作為中間媒介負責從資料來源讀取資料再跟另外一端的客戶端通訊。在 opc客戶端 伺服器 的結構圖中,通訊的發起端是,也只能是opc客戶端。客戶端和伺服器的對話是雙向的,也就是說,客戶端既可以從伺服器讀出也可以向伺服器寫入。...

OPC客戶端分析 伺服器查詢

上篇講到了如何找到opc伺服器,具體執行是在enumserverlist的函式中,獲得執行iid iopcserverlist2的例項。下面繼續分析。multi qi multiqi 2 multiqi 0 piid iid iopcserverlist multiqi 0 pitf null mu...