摘要:http://www.cnblogs.com/badnewfish/archive/2009/01/13/1374966.html本例下载/Files/badnewfish/OPC测试通过.rar转载申明申明:本文为转载,如需转载本文,请获取原文作者大尾巴狼啊的同意,谢谢合作!转自:大尾巴狼啊原文出处:http://www.cnblogs.com/xiaosacao/archive/2009/01/13/1374895.html前几天我就发布过这篇文章,可惜的是,发布后代码有的却看不到,后来我就删了,至今不明白什么原因- -!关于C++、VB来开发OPC客户端的资料网上有很多,但C#的至今没发
阅读全文
随笔分类 - OPC规范
摘要:from:http://blog.csdn.net/flyback/article/details/459603在制作 OPC Client 的时候通常需要浏览OPC Serve的所有已经定义的item名称(当然OPC Server必须支持这个选项),如果用VC的话就要使用到IOPCBrowseServerAddressSpace接口,那么,下面是提取item目录结构的一个自制的递归函数。void TryBrowseBranch(IOPCBrowseServerAddressSpace*pBSAS, LPCWSTR lpprestr,LPCWSTR lpcw) { HRESULT r1...
阅读全文
摘要:1、基本原理OPC服务器是以COM组件的形式存在和管理的,OPC规范着诸如DA Server、HDA Server和A&E Server等不同类型的服务器,相同类型的服务器随着时间推移,又会衍生出升级版本,比如DA1.0、2.0乃至3.0。这些服务器类型是该如何区分呢?COM组件的分类技术解决了这个问题。(参见:理解COM编程中的“种类”(Category)概念)在OPC规范中,明确定义不同种类服务器的CATID,CATID实质上就是GUID。比如在《OPC Data Access Custom Interface Specification2.05A》 中有如下定义:5.1 Comp
阅读全文
摘要:from:http://www.wangchao.net.cn/bbsdetail_72542.html 这个……从哪里说起呢…… 突然要写一个OPC Client,于是,就开始写了-v- 开发工具: 我用VC6比较熟,那就用这个了。 OPC Client可以用两种接口Curstom interface和automation interface,既然用的是VC就可以直接用Curstom interface。 OPC动态连接库: opc_aeps.dll opccomn_ps.dll opchda_ps.dll opcproxy.dll aprxdist.exe op...
阅读全文
摘要:from:http://blog.sina.com.cn/s/blog_86d0ddf30100rfz2.html3.0版本修订概要本次修订包括针对数据访问接口所作的改动(基于2.05A版本)。晚一点将会决定是否提供一个独立文档(OPC数据访问自动化规范3.0)描述OPC自动化接口,简化VB、Delphi和其他自动化产品对OPC服务器的接口。在OPC数据访问接口规范的这个版本中,添加了以下功能:l 增加新接口IOPCBrowseIOPCItemDeadbandMgtIOPCItemSamplingMgtIOPCItemIOIOPCSyncIO2IOPCAsyncIO3IOPCGroupStat
阅读全文
摘要:异常信息:发生了 System.Runtime.InteropServices.COMException Message="没有注册类别 (异常来自 HRESULT:0x80040154 (REGDB_E_CLASSNOTREG))" Source="ControlEase.OpcClient" ErrorCode=-2147221164 StackTrace: 在 Opc.IOPCServerList.GetClassDetails(Guid& clsid, String& ppszProgID, String& ppszUse
阅读全文
摘要:4.4.8.4 IOPCBrowseServerAddressSpace:: GetItemIDHRESULT GetItemID( [in] LPCWSTR szItemDataID, [out, string] LPWSTR * szItemID );DescriptionProvides a way to assemble a ‘fully qualified’ ITEM ID in a hierarchical space. This is required since the browsing functions return only the components or token
阅读全文
摘要:The ItemID is the fully qualified definition of a data item in the server, commonly referred to as the WHAT. No other information is required to identify the data item for the client to be able to read/write values.The Item definition (ItemID) used in the OPCITEMDEF(定义见最下) and elsewhere is a nul-ter
阅读全文
摘要:OPC specifications always contain two sets of interfaces; Custom Interfaces and Automation Interfaces. It has been found that it is not possible to define a single (dual-automation) interface which is both highly efficient and provides the look-and-feel of typical automation servers, like Excel. In
阅读全文

浙公网安备 33010602011771号