如何以编程方式访问远程 OPC 服务器?

发布于 2024-09-04 07:18:23 字数 479 浏览 6 评论 0原文

我已经下载并安装 OPCDA.NET 客户端组件评估​​和安装XMLDA.NET 客户端组件评估​​。它提供了一些 C# 示例,用于浏览可用的 OPC 服务器、连接到 OPC 服务器等。浏览服务器上的可用项目。

我知道我们可以访问本地 OPC 服务器的编程方式。它在示例 C# 应用程序中提供。我已经在另一台机器(远程机器)上安装了OPC服务器。我已完成与“dcomcnfg”实用程序相关的所有必需设置。我可以使用 OPCDA.NET 客户端组件评估​​和测试提供的测试客户端从客户端计算机访问远程 OPC 服务器。 XMLDA.NET 客户端组件评估​​。但我不知道如何以编程方式完成此操作。

在可用的 C# 示例中,我发现没有这样的编程部分(编码),我们可以在其中访问远程 OPC 服务器。您能否向我提供代码,通过它我可以浏览网络中可用的远程计算机、选择特定计算机名称、连接到 OPC 服务器和服务器后每台计算机上可用的 OPC 服务器。浏览服务器上的可用项目?或者您能给我提供任何可以解决上述问题的链接吗?

I have downloaded & installed the OPCDA.NET client component evaluation & XMLDA.NET client component evaluation. It provides some C# samples for browsing the available OPC Server, connecting to the OPC server, & browsing the available items on the server.

I know the programmatic way in which we can access the local OPC server. It is provided in the sample C# applications. I have installed the OPC server on another machine (remote machine). I have done all the required setting related to the 'dcomcnfg' utility. I can access the remote OPC server from client machine by using the Test Client provided by the OPCDA.NET client component evaluation & XMLDA.NET client component evaluation. But I am unaware of how this can be done programmatically.

In the available C# samples I found no such programmatic part (coding) in which we can access the remote OPC server. Can you provide me the code through which I can browse the available remote machines in my network, available OPC server on each machine after selecting the specific machine name, connecting to the OPC server & browsing the available items on the server? Or can you provide me any link through which I can resolve the above issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ㄖ落Θ余辉 2024-09-11 07:18:23

在 OpcServer.cs 中,我看到一个重载的 Connect() 方法,它可以接收主机名或 IP 地址:

public int Connect(string ComputerName, string SrvName)

In OpcServer.cs, I see an overloaded Connect() method which can receive a hostname or IP address:

public int Connect(string ComputerName, string SrvName)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文