Excel通过OPC与AB实现读写.docVIP

  • 12
  • 0
  • 约5.74千字
  • 约 4页
  • 2019-12-09 发布于河北
  • 举报
Excel通过OPC与AB实现读写

1,ExcelOPCReadBlockTmStmp,EXCEL通过opc服务器读取数据,以及采集时间 ?Excel?VBA?Example?Code:?Read?multiple?data?elements?and?display?Timestamp?using?OPC Dim?OPCServer1?As?OPCServer?????????????Dimension?OPC?Server?and Dim?WithEvents?OPCGroup1?As?OPCGroup????Group?objects Private?Sub?cmdDisconnect_Click()???????Terminate?OPC?Group?communications ????On?Error?Resume?Next????????????????and?connection?to?OPC?Server ????Set?OPCGroup1?=?Nothing????????????? ????OPCServer1.Disconnect???????????????-?Ignore?errors?if?OPC?Server?or ????Set?OPCServer1?=?Nothing??????????????Group?does?not?exist End?Sub???????????????

文档评论(0)

1亿VIP精品文档

相关文档