Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我有以下代码可以连接到 OPC 服务器,它工作正常。
server = new Opc.Da.Server(fact, null); server.Url = new Opc.URL(URL); server.Connect();
现在,当我使用以下代码与服务器断开连接时,我的代码卡住了,我假设它正在等待断开连接,但似乎这从未发生过。
server.Disconnect();
为此,我使用了来自 OPCFoundation 的 opc.da 库。