OPC server access remotely using OPCDA.NET tools

前端 未结 3 1876
刺人心
刺人心 2021-01-13 14:49

I am developing OPC Client in windows C#. I have developed the code and reading OPC Items on Sampling as well as event based (OnDataChange). When I am working with local mac

3条回答
  •  误落风尘
    2021-01-13 15:44

    That problem is because when you connect to the server, you might use the first connect function, which is server.connect();

    Instead, try:

    server.connect(new Opc.ConnectData(new System.Net.NetworkCredential()));
    

    This works for me. Hope it helps:)

提交回复
热议问题