我正在运行此代码以连接到 plc。
System.Guid guid=new Guid("75d00bbb-dda5-11d1-b944-9e614d000000");
System.Type t=Type.GetTypeFromCLSID(guid,node,true);
object COMobject=System.Activator.CreateInstance(t);
opcServer = (IOPCServer) COMobject;
使用前面提到的 opc 协议(protocol)。我对此几乎没有经验,以至于我什至无法确定是否存在此错误
Retrieving the COM class factory for remote component with CLSID {75D00BBB-DDA5-11D1-B944-9E614D000000} from machine 192.168.100.10 failed due to the following error: 800706ba 192.168.100.10.
是由互操作或plc...引起的
最佳答案
显然它是错误的 guid..Phoenix Contact AX OPC 服务器的正确 guid 是
{aa6c2a7c-f097-4be3-9153-f44ce2a3d916}
如果其他人需要它。
关于c# - 使用 C# 通过 OPC 协议(protocol)对 PLC 进行编程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3545698/