OPCFoundation.NetStandard.Opc.Ua.CranesHoists.Server 2.0.2-preview.300

Prefix Reserved
This is a prerelease version of OPCFoundation.NetStandard.Opc.Ua.CranesHoists.Server.
dotnet add package OPCFoundation.NetStandard.Opc.Ua.CranesHoists.Server --version 2.0.2-preview.300
                    
NuGet\Install-Package OPCFoundation.NetStandard.Opc.Ua.CranesHoists.Server -Version 2.0.2-preview.300
                    
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.CranesHoists.Server" Version="2.0.2-preview.300" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OPCFoundation.NetStandard.Opc.Ua.CranesHoists.Server" Version="2.0.2-preview.300" />
                    
Directory.Packages.props
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.CranesHoists.Server" />
                    
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.CranesHoists.Server --version 2.0.2-preview.300
                    
#r "nuget: OPCFoundation.NetStandard.Opc.Ua.CranesHoists.Server, 2.0.2-preview.300"
                    
#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.CranesHoists.Server@2.0.2-preview.300
                    
#: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.CranesHoists.Server&version=2.0.2-preview.300&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=OPCFoundation.NetStandard.Opc.Ua.CranesHoists.Server&version=2.0.2-preview.300&prerelease
                    
Install as a Cake Tool

OPC UA Cranes and Hoists — server (preview)

OPC-40020-1 1.00 server support over the released generated CranesHoists, Robotics, Machinery and DI models. This package is preview-only.

Use AddCranesHoists().ConfigureCranesHoists(...) for a standalone owner, AddCranesHoistsToMachinery() for an existing Machinery owner, or AddCranesHoistsToRobotics() and ConfigureCranesHoistsFor<RoboticsNodeManager>(...) for an existing Robotics owner. All paths use the same CranesHoistsBuildContext and awaited CraneSystemBuilder.BuildAsync.

For example, after registering a per-system equipment-provider factory:

using Microsoft.Extensions.DependencyInjection;
using Opc.Ua;
using Opc.Ua.CranesHoists;
using Opc.Ua.CranesHoists.Server;

serverBuilder.AddCranesHoists().ConfigureCranesHoists(async (context, ct) =>
{
    ICraneDataProvider provider = context.Machinery
        .GetRequiredService<Func<string, ICraneDataProvider>>()("Crane1");

    await context.AddCraneSystem("Crane1")
        .WithProvider(provider)
        .WithIdentification(id =>
        {
            id.Manufacturer = new LocalizedText("Example manufacturer");
            id.SerialNumber = "Crane1";
            id.ProductInstanceUri = "urn:example:crane:1";
        })
        .AddController("Controller", controller =>
        {
            controller.AddSoftware("ControllerSoftware");
            controller.AddTaskControl("Main");
        })
        .AddSafetyState("Safety")
        .AddDevice("Hoist", CraneMotionDeviceCategoryEnum.HOIST, device =>
            device.WithIdentification(id =>
            {
                id.Manufacturer = new LocalizedText("Example manufacturer");
                id.SerialNumber = "Hoist1";
                id.ProductInstanceUri = "urn:example:hoist:1";
            }).AddAxis("Lift", axis => axis.AddMotor("LiftMotor")))
        .BuildAsync(ct);
});

The provider supplies the selected standard signals using their system-local component IDs. This minimal example needs Crane1 operating mode/SystemOn, Hoist speed override, LiftMotor temperature, and Safety emergency-stop, protective-stop and operating-mode samples. A CraneSample carries a complete DataValue; bad/null samples explicitly represent unavailable acquisition. Add position capability and optional facets only when the provider can report their corresponding signals.

Supply per-system ICraneDataProvider implementations and complete Machinery identification. Add controllers through the existing Robotics builder (including software and task controls), safety states, crane devices, axes and motors. Optional load, working-period, axis-function, moving-state, brake, protection, functional-group, component and event facets are explicit.

Telemetry, including optional native load center-of-mass/inertia structures, preserves provider quality and acquisition timestamps. A complete report is validated before any values are published. Unavailable position is BadNoData, not a fabricated zero. Limit requests require both an ICraneWriteAuthorizer and an ICraneLimitProvider; acceptance does not change provider-reported active limits. No crane motion or safety-bypass methods are introduced.

SimulatedCraneProvider is a bounded, single-host reference adapter: it only returns supplied samples, records explicitly accepted requests, and never claims a physical effect. Real equipment and distributed state remain application-provider responsibilities.

The generated root registers once through Robotics validation. Shared Machinery identification retains its native nodes and adds discovery references rather than adopting the tree again. Removing the root or shutting down its owner drains runtime operations and owned resources. The application owns borrowed providers; pass ownsProvider: true only when this runtime owns that provider.

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.2-preview.300 64 11/11/2026