https://blog.csdn.net/yhtppp/article/details/80676118html
https://github.com/leogle/OPCAutomationDotNetgit
1 var client = new OPCClientWrapper(); 2 client.Init("127.0.0.1", "Matrikon.OPC.Simulation.1"); 3 //client.MonitorOPCItem("DCS001.TEST08"); 4 //var res = client.ReadValue("DCS001.TEST08"); 5 //client.Write("DCS001.TEST08","試試"); 6 var value = client.ReadNodeLabel("DCS001.TEST08"); 7 client.Write("DCS001.TEST08", "試試"+DateTime.Now.ToLongTimeString()); 8 9 client.Disconnect();
檢索COM 類工廠中 CLSID 爲 <28e68f9a-8d75-11d1-8dc3-3c302a000000> 的組件時失敗,緣由是出現如下錯誤: 80040154github
必定要到C:\Windows\SysWOW64路徑下打開cmd.exe運行命令文件(而不是在運行打開),註冊「OPCDAAuto.dll」 輸入命令: REGSVR32 OPCDAAuto.dll;便可c#
http://www.javashuo.com/article/p-cretoruy-gv.html
網上搜OPCDAAuto.dll,用228k大小的app