首页 开发技术 C#     /    c#开发opcserver例子(内附源码)

c#开发opcserver例子(内附源码)

上传者: xuhaitao511 | 上传时间:2020/6/24 23:07:54 | 文件大小:464KB | 文件类型:rar
c#开发opcserver例子(内附源码)
这几天不断在研究OPCSERVER的开发.在网上找了好久,都没有C#成型的说明和源码.于是,自己拼凑,终于被我搞成功了.例子中所有的资源都可无限制使用.不含PLC或者组态部分.本人很懒,例子只写了opcserver核心部分,其它部分大家可以自己增加.OpcTools.exe是客户端工具.一、32位操作系统,执行OPCdist库文件\opcdist\目录下的setupxp.bat如果是64位的系统,请自己修改setupxp.bat批处理文件,我的操作系统是win7X64,是可以成功的.二、建立自己的C#工程.并将Wtopcsvr9.0\Wtopcsvr9.0\WtOPCSvr.dll拷贝到执行目录中.经过以上两步骤,准备工作已经完成.三、打开压缩包中opcservertest工程.工程使用VS2005编写.支持VS更高版本.UpdateRegistry函数是注册服务,UnregisterServer函数是取消注册.多的就不说了,请大家参考文档WTOPCSvr+使用手册.doc和WTOPCSVRDLL使用说明中文.doc值得注意的地方是,C#生成的可执行文件必须是32位,否则无法正常加载DLL文件.经常使用的函数在工程中已经定义并使用.WTOPCSVRDLL使用说明中文.doc中,介绍的是VB中WtOPCSvr的使用方法.大家可以把VB的转变成C#的.我的工程中,已经给大家做了示例.所有的文件:源码,dll文件,说明文件,都包含在压缩包中.大部分都在CSDN网站上下的.WtOPCSvr.dll应该是注册版的,在SerialNumber.txt中有注册码.我不知道怎么注册,大家可以上网搜搜. 本软件ID:9764689

文件下载

资源详情

[{"title":"(31个子文件464KB)c#开发opcserver例子(内附源码)","children":[{"title":"WTOPCSVRDLL使用说明中文.doc <span style='color:#111;'>37.50KB</span>","children":null,"spread":false},{"title":"WTOPCSvr+使用手册.doc <span style='color:#111;'>122.50KB</span>","children":null,"spread":false},{"title":"Wtopcsvr9.0","children":[{"title":"Wtopcsvr9.0","children":[{"title":"WtOPCSvr.dll <span style='color:#111;'>356.00KB</span>","children":null,"spread":false},{"title":"SerialNumber.txt <span style='color:#111;'>650B</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"作者说明文档(先看我).txt <span style='color:#111;'>1.20KB</span>","children":null,"spread":false},{"title":"OPCdist库文件","children":[{"title":"opcdist","children":[{"title":"APRXDIST.EXE <span style='color:#111;'>154.84KB</span>","children":null,"spread":false},{"title":"opchda_ps.dll <span style='color:#111;'>116.00KB</span>","children":null,"spread":false},{"title":"OPCENUM.EXE <span style='color:#111;'>80.00KB</span>","children":null,"spread":false},{"title":"opc_aeps.dll <span style='color:#111;'>44.00KB</span>","children":null,"spread":false},{"title":"OpcTools.exe <span style='color:#111;'>200.00KB</span>","children":null,"spread":false},{"title":"readme.txt <span style='color:#111;'>1.06KB</span>","children":null,"spread":false},{"title":"opccomn_ps.dll <span style='color:#111;'>72.00KB</span>","children":null,"spread":false},{"title":"uninstal.bat <span style='color:#111;'>583B</span>","children":null,"spread":false},{"title":"opcproxy.dll <span style='color:#111;'>76.00KB</span>","children":null,"spread":false},{"title":"setupxp.bat <span style='color:#111;'>529B</span>","children":null,"spread":false}],"spread":true},{"title":"www.pudn.com.txt <span style='color:#111;'>218B</span>","children":null,"spread":false}],"spread":true},{"title":"OPCDAAuto.dll","children":[{"title":"OPCDAAuto.dll <span style='color:#111;'>160.00KB</span>","children":null,"spread":false}],"spread":true},{"title":"开发OPCSERVER教程.doc <span style='color:#111;'>39.50KB</span>","children":null,"spread":false},{"title":"opcservertest","children":[{"title":"opcservertest.suo <span style='color:#111;'>14.50KB</span>","children":null,"spread":false},{"title":"opcservertest","children":[{"title":"Form1.cs <span style='color:#111;'>4.18KB</span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":null,"spread":false},{"title":"x86","children":[{"title":"Debug","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"obj","children":[{"title":"opcservertest.csproj.FileListAbsolute.txt <span style='color:#111;'>1.82KB</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"TempPE","children":null,"spread":false}],"spread":false},{"title":"x86","children":[{"title":"Debug","children":[{"title":"TempPE","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'>2.81KB</span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'>249B</span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'>5.48KB</span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'>1.07KB</span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'>1.16KB</span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'>472B</span>","children":null,"spread":false},{"title":"Form1.Designer.cs <span style='color:#111;'>1.80KB</span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'>5.87KB</span>","children":null,"spread":false},{"title":"opcservertest.csproj <span style='color:#111;'>3.93KB</span>","children":null,"spread":false}],"spread":true},{"title":"opcservertest.sln <span style='color:#111;'>1.25KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • baidu_36852838:
    针对EnableWriteNotification(m_writeCallback);会报“无法在DLL“WtOPCSvr.dll”中找到名为“EnableWriteNotification”的入2021-04-02
  • huangyifu19880423:
    虽然东西可以参考,但是50积分真的好贵。。。。2019-03-01
  • missing_sprite:
    一般吧!感觉不值这么多分2018-08-20
  • 青山yao:
    谢谢分享,很不错的源码2018-07-12
  • 埃和智能:
    功能不全,没什么借鉴意义,真想开发OPCServer软件的话,可以到这里下载源代码:http://blog.sina.com.cn/s/blog_16d7d3ecb0102x218.html2017-06-29

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明