OPCFoundation.NetStandard.Opc.Ua.GMS.Client 2.0.2

Prefix Reserved
dotnet add package OPCFoundation.NetStandard.Opc.Ua.GMS.Client --version 2.0.2
                    
NuGet\Install-Package OPCFoundation.NetStandard.Opc.Ua.GMS.Client -Version 2.0.2
                    
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="OPCFoundation.NetStandard.Opc.Ua.GMS.Client" Version="2.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OPCFoundation.NetStandard.Opc.Ua.GMS.Client" Version="2.0.2" />
                    
Directory.Packages.props
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.GMS.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OPCFoundation.NetStandard.Opc.Ua.GMS.Client --version 2.0.2
                    
#r "nuget: OPCFoundation.NetStandard.Opc.Ua.GMS.Client, 2.0.2"
                    
#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.
#:package OPCFoundation.NetStandard.Opc.Ua.GMS.Client@2.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OPCFoundation.NetStandard.Opc.Ua.GMS.Client&version=2.0.2
                    
Install as a Cake Addin
#tool nuget:?package=OPCFoundation.NetStandard.Opc.Ua.GMS.Client&version=2.0.2
                    
Install as a Cake Tool

OPC UA Geometric Measurement Systems client

Typed, bounded discovery, equipment/qualification/calibration, production, result and observation workflows for released OPC 40210. Generated GMS proxies reuse MachineTool/Machinery clients with no server-runtime dependency or duplicate subscription/file protocol.

System workflows

using Opc.Ua.GMS.Client;

await using GmsClient gms = session.CreateGmsClient(telemetry);
var systems = await gms.DiscoverAsync(cancellationToken);
var state = await gms.ReadSnapshotAsync(gmsNodeId, cancellationToken);
var equipment = await gms.ReadEquipmentAsync(gmsNodeId, cancellationToken);
var calibration = await gms.ReadCalibrationAsync(gmsNodeId, cancellationToken);
var production = await gms.ReadProductionAsync(gmsNodeId, cancellationToken);

AddGmsClient registers IGmsClientFactory on the existing client builder. Factory-created and directly constructed facades borrow their sessions. The application or DI container retains session ownership; disposing a facade drains its own workflows without closing or disposing the shared session. GetProxy exposes advanced generated operations.

Discovery recognizes vendor subtypes and releases continuation points. Reads retain identity, optional presence and numeric types, rejecting overflow rather than truncating a claimed complete result. Separate reads are not atomic equipment history. Bounded data/events/condition observations do not execute measurements, calibrate, start GMS jobs or change corrections.

Result metadata handles and download streams belong to the calling session and are released on success, failure and cancellation. Domain result codes remain distinct from UA service failures. Missing optional variables are not replaced with successful zero-valued measurements; raw data quality and acquisition timestamps are retained.

Use gms.GetResults(gmsNodeId) on that same session, or construct the result workflow directly as below.

Result workflows

using Opc.Ua;
using Opc.Ua.GMS.Client;
using Opc.Ua.GMS.Contracts;
using Opc.Ua.Machinery.Result;

var results = new GmsResultClient(session, gmsNodeId, telemetry,
    new GmsResultLimits
    {
        MaximumResults = 32,
        MaximumMetadataBytes = 256 * 1024,
        MaximumFileBytes = 8 * 1024 * 1024
    });

ResultDataType latest = await results.GetLatestAsync(cancellationToken);
ArrayOf<string> identifiers = await results.QueryAsync(
    maximumResults: 16, cancellationToken: cancellationToken);
await results.DownloadAsync(latest.ResultMetaData!.ResultId!, destination,
    cancellationToken);
ArrayOf<GmsCorrectionValues> corrections =
    await results.ReadCorrectionsAsync(cancellationToken);

QueryAsync accepts the standard Machinery ContentFilter and ordered RelativePath list. It does not introduce another filtering language. GetLatestAsync, GetByIdAsync, QueryAsync, and both download overloads release their own metadata handles before completing. Downloading uses the shared TemporaryFileTransferClient and asynchronously disposes its file stream on success, overflow, destination failure or cancellation. The caller still owns the destination stream; on failure it may contain a partial prefix.

GmsResultDomainException preserves a nonzero method domain code separately from ServiceResultException (UA service/operation failure) and OperationCanceledException. An error in both the operation and metadata cleanup is reported as an AggregateException containing both failures.

ReadPublishedResultsAsync and ReadCorrectionsAsync retain raw DataValue quality and timestamps. A null ArrayOf<T> means an optional folder is absent; an empty non-null array means the folder exists but has no entries. An absent optional property is DataValue.Null; bad or uncertain acquired data remains a present sample with its original quality.

Intermediate results and dependency injection

CreateIntermediateResultFilter extends the generated event filter with explicit, server-qualified characteristic placeholder names. DecodeIntermediateResultAsync verifies the concrete event subtype and decodes the generated standard record plus those characteristic fields. ObserveIntermediateResultsAsync composes an existing IStreamingSubscription with bounded event count, queue size and response bytes. Its enumerator removes only its monitored item; the caller retains ownership of the shared subscription. The readiness-callback overload verifies actual server-side creation before signaling readiness. Failed setup is not a successful empty observation.

Event fields are Variant values, not acquisition DataValue samples. The client does not manufacture per-field quality or timestamps that the event protocol did not transmit. For raw acquired result quality, read the result variables.

Use AddGmsResultsClient() on the existing IOpcUaClientBuilder to register IGmsResultClientFactory. Its CreateAsync(gmsNodeId, cancellationToken) method uses the already-configured managed session. Direct construction and an injectable GmsResultClientFactory session accessor remain available.

A successful result read is not proof that the remote endpoint implements every GMS facet. The complete Production facet remains withheld for the documented upstream undefined statistics CU.

See the GMS guide for full-system workflows and conformance boundaries.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on OPCFoundation.NetStandard.Opc.Ua.GMS.Client:

Package Downloads
OPCFoundation.NetStandard.Opc.Ua.Mcp.GMS

OPC 40210 Geometric Measurement Systems MCP tools for bounded native inventory, monitoring, results, downloads and explicit result acknowledgement over shared OPC UA sessions.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.2 102 11/11/2026