C# 将 OPC UA 服务器添加到 .NET 应用程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9321573/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-09 06:53:41  来源:igfitidea点击:

Adding an OPC UA Server to .NET application

c#.netopcscadaopc-ua

提问by user441603

I have a C# application that communicates with a process instrument over ethernet. I want to add an OPC UA server to my application so that any SCADA system with a built in OPC client can connect and read measurement data taken by the instrument. Does any one know of any 3rd party dll's that I can use?

我有一个 C# 应用程序,它通过以太网与过程仪器进行通信。我想在我的应用程序中添加一个 OPC UA 服务器,以便任何带有内置 OPC 客户端的 SCADA 系统都可以连接并读取仪器获取的测量数据。有谁知道我可以使用的任何 3rd 方 dll?

I'm not looking for something that is free or open source, but the license terms would need to allow for me to re-sell as part of my application.

我不是在寻找免费或开源的东西,但许可条款需要允许我作为我的应用程序的一部分转售。

Thanks so much for your help!

非常感谢你的帮助!

回答by Ken

I would take a look at www.opcfoundation.org. They have links to vendors who make OPC client and server toolkits that you can use in your application. Most of them are royalty-free. Be aware that there aren't too many SCADA systems that support OPC UA yet; most of them only support OPC DA.

我会看看www.opcfoundation.org。他们链接到制造 OPC 客户端和服务器工具包的供应商,您可以在您的应用程序中使用这些工具包。其中大部分是免版税的。请注意,目前支持 OPC UA 的 SCADA 系统并不多;大多数只支持OPC DA。

回答by John Gillerman

Check out OpenOPCUA - an open source crosss platform C language stack.

查看 OpenOPCUA - 一个开源的跨平台 C 语言堆栈。

回答by avra

This is the best collection of OPC client and server libraries that you can use: http://www.opcconnect.com/dotnet.php

这是您可以使用的 OPC 客户端和服务器库的最佳集合:http: //www.opcconnect.com/dotnet.php

回答by Camille G.

You need to buy OPC UA SDK to allow your C# application to use OPC UA .

您需要购买 OPC UA SDK 以允许您的 C# 应用程序使用 OPC UA。

Then you can try with OPC UA Client such as the one from Unified Automation : http://www.unified-automation.com/opc-ua-clients/(Free for WIN32, Linux and Android !)

然后您可以尝试使用 OPC UA 客户端,例如来自 Unified Automation 的客户端:http: //www.unified-automation.com/opc-ua-clients/(适用于 WIN32、Linux 和 Android!)

There is also some SCADA already supporting OPC UA like Genesis from Iconics : http://www.iconics.com/Home/Products/HMI-SCADA-Software-Solutions/GENESIS32.aspx(Free trial)

还有一些 SCADA 已经支持 OPC UA,例如 Iconics 的 Genesis:http: //www.iconics.com/Home/Products/HMI-SCADA-Software-Solutions/GENESIS32.aspx(免费试用)

回答by A.J.Bauer

The OPC Foundation announced their “OPC UA Open Shared Source” Strategy(04/14/2015).

OPC 基金会宣布了他们的“OPC UA 开放共享源”战略(04/14/2015)。

The stack for .NET including lots of samples for DA, Historie... clients and servers can freely be downloaded here OPCFoundation/UA-.NET on GitHub.

.NET 堆栈包括大量 DA、Historie... 客户端和服务器的示例,可以在 GitHub 上的OPCFoundation/UA-.NET此处免费下载。

Very nice but the problem is the license that comes with it. It basically can only be used by OPC members since everybody else needs to make their software that uses it open source under GPL 2.0.

非常好,但问题是它附带的许可证。它基本上只能由 OPC 成员使用,因为其他所有人都需要在 GPL 2.0 下将使用它的软件开源。

I wish they would simply offer developer licenses with a one time fee..

我希望他们能简单地提供一次性收费的开发者许可证。

A truly free library that can be used in commercial applications is Open62541(LGPL + static linking exception). But using it with .NET requires extra work since it's C-based...

一个真正可以用于商业应用的免费库是Open62541(LGPL + 静态链接异常)。但是将它与 .NET 一起使用需要额外的工作,因为它是基于 C 的......

回答by Jeferson Flamini

Take a look at OpenOpcUa.

看看 OpenOpcUa。

http://www.openopcua.org/

http://www.openopcua.org/

regards

问候