OpcLabs.PicoOpc 1.0.487 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Smallest imaginable OPC Unified Architecture (OPC UA) client library. Works with any .NET Standard conformant runtime. Does not depend on any OPC UA stack. Create and close sessions (opc.tcp), perform reads and writes, synchronously or asynchronously. No security, browing or subscriptions.

Use OpcLabs.QuickOPC instead if you need an advanced, high-level OPC client toolkit.

Install-Package OpcLabs.PicoOpc -Version 1.0.487
dotnet add package OpcLabs.PicoOpc --version 1.0.487
<PackageReference Include="OpcLabs.PicoOpc" Version="1.0.487" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OpcLabs.PicoOpc --version 1.0.487
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OpcLabs.PicoOpc, 1.0.487"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install OpcLabs.PicoOpc as a Cake Addin
#addin nuget:?package=OpcLabs.PicoOpc&version=1.0.487

// Install OpcLabs.PicoOpc as a Cake Tool
#tool nuget:?package=OpcLabs.PicoOpc&version=1.0.487
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

PicoOPC

PicoOPC is a smallest imaginable OPC Unified Architecture (OPC UA) client library. It works with any .NET Standard conformant runtime. PicoOPC does not depend on any OPC UA stack. With PicoOPC, you can create and close sessions (opc.tcp), and perform reads and writes, synchronously or asynchronously. There is no support for security, browsing or subscriptions.

PicoOPC is a commercially licensed product. Without a license key, it runs in a trial mode. The trial provides valid data to a client application for 30 minutes; after that period, the component (your app) needs to be re-started, and so on. For details, see the documentation.

PicoOPC requires a .NET runtime compatible with .NET Standard 2.0.

Note: OPC Foundation has not published a profile for such small a client, and PicoOPC therefore cannot be officially claimed to comply with the OPC UA specifications, although in a technical sense, PicoOPC is highly interoperable.

List of available NuGet packages

  • OpcLabs.PicoOpc: OPC client components for all environments and project types.

How to start

If you want to see some result quickly, reference the OpcLabs.PicoOPC package from your project, and paste in the example code further below. If you do not mind studying a bit, here is the documentation.

Types

  • AttributeId: Identifiers assigned to attributes.
  • BuiltInType: Enumeration of built-in types.
  • Client: A minimalistic OPC UA client object.
  • DataValue: The value and associated information.
  • NodeId: Unambiguously identifies a node.
  • NodeIdType: Type of the node ID identifier.
  • ReadValueId: Identifier for an item to read.
  • Variant: A union of all built-in data types.
  • WriteValue: Describes a node, and its attribute and value.

Client object methods

  • Connect/ConnectAsync: Connects to the server.
  • Disconnect/DisconnectAsync: Disconnects from the server.
  • Read/ReadAsync: Reads one or more attributes of one or mode nodes.
  • Write/WriteAsync: Writes values to one or more attributes of one or more nodes.

Example code

using OpcLabs.PicoOpc.UA;
...

var client = new Client();
client.Connect(new Uri("opc.tcp://opcua.demo-this.com:51210/UA/SampleServer"));

// Read a node, then write 123 to it.
var nodeId = new NodeId(10221, namespaceIndex:2);
DataValue dataValue = client.Read(TimeSpan.Zero, new[] {new ReadValueId(nodeId)})[0];

UInt32 statusCode = client.Write(new[] {new WriteValue(nodeId, 
    new DataValue(new Variant(BuiltInType.Int32, 123)))})[0];

client.Disconnect();

PicoOPC

PicoOPC is a smallest imaginable OPC Unified Architecture (OPC UA) client library. It works with any .NET Standard conformant runtime. PicoOPC does not depend on any OPC UA stack. With PicoOPC, you can create and close sessions (opc.tcp), and perform reads and writes, synchronously or asynchronously. There is no support for security, browsing or subscriptions.

PicoOPC is a commercially licensed product. Without a license key, it runs in a trial mode. The trial provides valid data to a client application for 30 minutes; after that period, the component (your app) needs to be re-started, and so on. For details, see the documentation.

PicoOPC requires a .NET runtime compatible with .NET Standard 2.0.

Note: OPC Foundation has not published a profile for such small a client, and PicoOPC therefore cannot be officially claimed to comply with the OPC UA specifications, although in a technical sense, PicoOPC is highly interoperable.

List of available NuGet packages

  • OpcLabs.PicoOpc: OPC client components for all environments and project types.

How to start

If you want to see some result quickly, reference the OpcLabs.PicoOPC package from your project, and paste in the example code further below. If you do not mind studying a bit, here is the documentation.

Types

  • AttributeId: Identifiers assigned to attributes.
  • BuiltInType: Enumeration of built-in types.
  • Client: A minimalistic OPC UA client object.
  • DataValue: The value and associated information.
  • NodeId: Unambiguously identifies a node.
  • NodeIdType: Type of the node ID identifier.
  • ReadValueId: Identifier for an item to read.
  • Variant: A union of all built-in data types.
  • WriteValue: Describes a node, and its attribute and value.

Client object methods

  • Connect/ConnectAsync: Connects to the server.
  • Disconnect/DisconnectAsync: Disconnects from the server.
  • Read/ReadAsync: Reads one or more attributes of one or mode nodes.
  • Write/WriteAsync: Writes values to one or more attributes of one or more nodes.

Example code

using OpcLabs.PicoOpc.UA;
...

var client = new Client();
client.Connect(new Uri("opc.tcp://opcua.demo-this.com:51210/UA/SampleServer"));

// Read a node, then write 123 to it.
var nodeId = new NodeId(10221, namespaceIndex:2);
DataValue dataValue = client.Read(TimeSpan.Zero, new[] {new ReadValueId(nodeId)})[0];

UInt32 statusCode = client.Write(new[] {new WriteValue(nodeId, 
    new DataValue(new Variant(BuiltInType.Int32, 123)))})[0];

client.Disconnect();

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.487 778 12/2/2018