工业以太网通讯简介分析.pptVIP

  • 4
  • 0
  • 约7.42千字
  • 约 51页
  • 2017-05-13 发布于湖北
  • 举报
工业以太网通讯简介分析

* 开发OPC应用程序的步骤 建立一个VB工程; 在工程中注册OPC的DLL 选择菜单Project/References; 得到References窗口; 在Available References列表中选中OPC Automation 2.0; 单击OK按钮。 * 开发OPC应用程序的步骤 Option Base 1 Option Explicit 建立OPC对象-声明变量 Dim WithEvents objServer As OPCServer Dim objGroups As OPCGroups Dim WithEvents objTestGrp As OPCGroup Dim objItems As OPCItems Dim lServerHandles() As Long * 开发OPC应用程序的步骤 定义变量 Dim lTransID_Rd As Long Dim lCancelID_Rd As Long Dim lTransID_Wt As Long Dim lCancelID_Wt As Long * 开发OPC应用程序的步骤 连接OPC服务器: Sub Connect(strProgID As String, Optional strNode As String) If objServer Is Nothing Then 建立

文档评论(0)

1亿VIP精品文档

相关文档