Opc.UaFx.Client
2.11.5
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Opc.UaFx.Client --version 2.11.5
NuGet\Install-Package Opc.UaFx.Client -Version 2.11.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Opc.UaFx.Client" Version="2.11.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Opc.UaFx.Client --version 2.11.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Opc.UaFx.Client, 2.11.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Opc.UaFx.Client as a Cake Addin
#addin nuget:?package=Opc.UaFx.Client&version=2.11.5
// Install Opc.UaFx.Client as a Cake Tool
#tool nuget:?package=Opc.UaFx.Client&version=2.11.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Getting Started
The whole client development guides can be found here:
The most essential snippet to dig in:
using Opc.UaFx.Client;
...
using (var client = new OpcClient("opc.tcp://localhost:4840/")) {
client.Connect();
// Your code to interact with the server.
}
Let's Read a Node
OpcValue isRunning = client.ReadNode("ns=2;s=Machine/IsRunning");
More: Read Values of Node(s)
Let's Write a Node
OpcStatus result = client.WriteNode("ns=2;s=Machine/Job/Cancel", true);
More: Write Values of Node(s)
Let's Read a File Node
// All at once
string reportText = OpcFile.ReadAllText(client, "ns=2;s=Machine/Report");
// All via a stream
using (var stream = OpcFile.OpenRead(client, "ns=2;s=Machine/Report")) {
var reader = new StreamReader(stream);
while (!reader.EndOfStream)
Console.WriteLine(reader.ReadLine());
}
More: Working with File Nodes
Browse the Node Tree
// One node
OpcNodeInfo machineNode = client.BrowseNode("ns=2;s=Machine");
// A child node
OpcNodeInfo jobNode = machineNode.Child("Job");
// Some child nodes
foreach (var childNode in machineNode.Children()) {
// Your code to operate on each child node.
}
// Some node attributes
OpcAttributeInfo displayName = machineNode.Attribute(OpcAttribute.DisplayName);
foreach (var attribute in machineNode.Attributes()) {
// Your code to operate on each attribute.
}
More: Browsing Nodes
Observe some Alarm's and Event's
client.SubscribeEvent(OpcObjectTypes.Server, HandleGlobalEvents);
...
private static void HandleGlobalEvents(object sender, OpcEventReceivedEventArgs e)
{
Console.WriteLine(e.Event.Message);
}
More: Working with Events
Observe only Alarm's and Event's from interest
var severity = new OpcSimpleAttributeOperand(OpcEventTypes.Event, "Severity");
var conditionName = new OpcSimpleAttributeOperand(OpcEventTypes.Condition, "ConditionName");
var filter = OpcFilter.Using(client)
.FromEvents(OpcEventTypes.AlarmCondition)
.Where(severity > OpcEventSeverity.Medium & conditionName.Like("Temperature"))
.Select();
client.SubscribeEvent(OpcObjectTypes.Server, filter, HandleGlobalEvents);
More: Working with Events
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 is compatible. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- Microsoft.Win32.Registry (>= 4.7.0)
- Newtonsoft.Json (>= 12.0.3)
- Portable.BouncyCastle (>= 1.8.6)
- System.Management (>= 4.7.0)
- System.ServiceModel.Primitives (>= 4.5.3)
-
.NETFramework 4.6
- Newtonsoft.Json (>= 12.0.3)
- Portable.BouncyCastle (>= 1.8.6)
- System.Memory (>= 4.5.4)
- System.ServiceModel.Primitives (>= 4.5.3)
- System.ValueTuple (>= 4.5.0)
-
.NETFramework 4.7.1
- Newtonsoft.Json (>= 12.0.3)
- Portable.BouncyCastle (>= 1.8.6)
- System.Memory (>= 4.5.4)
- System.ServiceModel.Primitives (>= 4.5.3)
-
.NETStandard 2.0
- Microsoft.Win32.Registry (>= 4.7.0)
- Newtonsoft.Json (>= 12.0.3)
- Portable.BouncyCastle (>= 1.8.6)
- System.Management (>= 4.7.0)
- System.Memory (>= 4.5.4)
- System.Reflection.Emit (>= 4.7.0)
- System.ServiceModel.Primitives (>= 4.5.3)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Opc.UaFx.Client:
Package | Downloads |
---|---|
Crosser.EdgeNode.Modules.Opc
Package Description |
|
OPCUA.Library
OPC UA library supporting OPC UA Client development for Xserver.IoT device. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.41.1 | 6,073 | 1/23/2024 |
2.41.0 | 3,694 | 12/2/2023 |
2.40.0 | 2,841 | 10/23/2023 |
2.33.0 | 3,599 | 9/11/2023 |
2.32.0 | 2,513 | 8/28/2023 |
2.31.0 | 13,008 | 5/17/2023 |
2.30.0 | 20,590 | 12/7/2022 |
2.29.0 | 5,164 | 9/16/2022 |
2.28.1 | 2,891 | 9/2/2022 |
2.28.0 | 2,119 | 8/19/2022 |
2.27.0 | 7,398 | 6/27/2022 |
2.26.0 | 14,298 | 4/13/2022 |
2.25.0 | 3,803 | 3/22/2022 |
2.24.0 | 1,711 | 3/9/2022 |
2.23.0 | 3,820 | 3/2/2022 |
2.22.0.1 | 2,666 | 2/25/2022 |
2.22.0 | 7,505 | 2/11/2022 |
2.21.0 | 2,171 | 2/1/2022 |
2.20.4 | 4,418 | 1/14/2022 |
2.20.3 | 2,129 | 1/4/2022 |
2.20.2 | 7,470 | 10/20/2021 |
2.20.1 | 2,118 | 10/8/2021 |
2.20.0 | 3,751 | 9/17/2021 |
2.19.2 | 2,729 | 9/10/2021 |
2.19.1 | 1,483 | 9/1/2021 |
2.19.0 | 1,432 | 8/27/2021 |
2.18.5 | 2,129 | 8/13/2021 |
2.18.4 | 1,287 | 8/9/2021 |
2.18.3 | 4,437 | 6/28/2021 |
2.18.2 | 1,431 | 6/17/2021 |
2.18.1 | 1,938 | 6/2/2021 |
2.18.0 | 1,989 | 5/26/2021 |
2.17.0 | 2,504 | 5/4/2021 |
2.16.1 | 1,584 | 4/21/2021 |
2.16.0 | 1,292 | 4/20/2021 |
2.15.0 | 1,579 | 4/1/2021 |
2.14.0 | 1,746 | 3/4/2021 |
2.13.0 | 1,449 | 3/1/2021 |
2.12.3 | 1,403 | 2/17/2021 |
2.12.2 | 3,568 | 2/15/2021 |
2.12.1 | 1,215 | 2/11/2021 |
2.12.0 | 1,678 | 2/4/2021 |
2.11.5 | 1,851 | 12/21/2020 |
2.11.4 | 1,375 | 12/15/2020 |
2.11.3.1 | 1,802 | 11/27/2020 |
2.11.3 | 1,390 | 11/23/2020 |
2.11.2 | 1,631 | 11/10/2020 |
2.11.1 | 1,370 | 11/5/2020 |
2.11.0 | 4,618 | 10/6/2020 |
2.10.0.3 | 2,160 | 9/11/2020 |
2.10.0.2 | 1,320 | 9/9/2020 |
2.10.0.1 | 1,771 | 7/15/2020 |
2.10.0 | 1,856 | 7/14/2020 |
2.9.2.1 | 4,715 | 5/8/2020 |
2.9.2 | 1,404 | 5/6/2020 |
2.9.1 | 1,466 | 4/22/2020 |
2.9.0 | 1,975 | 4/1/2020 |
2.8.3.1 | 6,264 | 1/24/2020 |
2.8.3 | 2,105 | 1/16/2020 |
2.8.2.1 | 1,741 | 12/13/2019 |
2.8.2 | 1,795 | 11/6/2019 |
2.8.1.3 | 1,634 | 10/24/2019 |
2.8.1.2 | 1,418 | 10/23/2019 |
2.8.1.1 | 1,518 | 10/11/2019 |
2.8.1 | 1,501 | 9/25/2019 |
2.8.0 | 1,475 | 9/18/2019 |
2.7.5.1 | 1,561 | 8/15/2019 |
2.7.5 | 1,419 | 8/13/2019 |
2.7.4 | 3,822 | 6/7/2019 |
2.7.3.1 | 1,499 | 5/23/2019 |
2.7.3 | 1,452 | 5/17/2019 |
2.7.2 | 1,473 | 5/10/2019 |
2.7.1.1 | 1,526 | 4/29/2019 |
2.7.1 | 1,932 | 3/25/2019 |
2.7.0 | 1,622 | 3/14/2019 |
2.6.0 | 1,947 | 2/20/2019 |
2.5.7 | 1,647 | 2/6/2019 |
2.5.6 | 7,547 | 10/19/2018 |
2.5.5 | 1,959 | 10/11/2018 |