PLC programming via OPC protocol with C #

I run this code to connect to a PC.

   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;

using the opc protocol, as mentioned earlier. I have little experience without this, so little that I can’t even determine if this error was

Retrieving the factory COM class for a remote component with CLSID {75D00BBB-DDA5-11D1-B944-9E614D000000} from device 192.168.100.10 failed due to the following error: 800706ba 192.168.100.10.

called by interop or plc ...

+3
source share
1 answer

Apparently, this was the wrong guide. The correct guid for Phoenix Contact AX OPC-Server is

{aa6c2a7c-f097-4be3-9153-f44ce2a3d916}

if anyone else needs it.

+1

Source: https://habr.com/ru/post/1761063/


All Articles