Robentex.Fanuc.OpcUa 1.1.0

dotnet add package Robentex.Fanuc.OpcUa --version 1.1.0
                    
NuGet\Install-Package Robentex.Fanuc.OpcUa -Version 1.1.0
                    
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="Robentex.Fanuc.OpcUa" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Robentex.Fanuc.OpcUa" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Robentex.Fanuc.OpcUa" />
                    
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 Robentex.Fanuc.OpcUa --version 1.1.0
                    
#r "nuget: Robentex.Fanuc.OpcUa, 1.1.0"
                    
#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 Robentex.Fanuc.OpcUa@1.1.0
                    
#: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=Robentex.Fanuc.OpcUa&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Robentex.Fanuc.OpcUa&version=1.1.0
                    
Install as a Cake Tool

Robentex.Fanuc.OpcUa FANUC Robot Integration SDK for .NET
Connect, monitor, and interact with compatible FANUC robot controllers over OPC UA. NuGet NuGet Downloads .NET 9 License: MIT A focused .NET client library for FANUC controllers with the HMI Device Communication OPC UA option. Built on the official OPC Foundation .NET Standard stack, it provides higher-level APIs for frequently needed robot data while making write permissions explicit.

Compatibility: Targets net9.0 (also consumable from compatible later .NET frameworks). Available OPC UA nodes and features depend on the controller, firmware, options and server configuration. This library is not a safety-rated controller. Highlights Capability Supported operations OPC UA connectivity Endpoint discovery, session management, connection observation, certificate validation System variables Typed read: int, float, bool, string; controlled write: int, float, bool Numeric registers R[] Read and allow-listed write Position registers PR[] Cartesian X/Y/Z/W/P/R read and full/partial write; CONFIG handling Digital I/O DI[] read; DO[] read and allow-listed write Extended I/O RI[], RO[], GI[], GO[] read Robot status Discover optional nodes; read operation, mode, servo, alarm and safety status when available TP program status Active program, line number, execution state and parent program via PRG[n] Why this package? Useful APIs instead of raw register handling: The library handles connection-scoped CLRASG / SETASG mapping, conversion and allocation. Safe-by-default writes: Robot writes are disabled until explicitly enabled and allow-listed; supported writes use read-back verification. Portable endpoint configuration: Use the endpoint of your controller or ROBOGUIDE instance, not a hard-coded simulator address. Transparent limitations: Unavailable optional status nodes are reported as unavailable rather than invented values. Install

dotnet add package Robentex.Fanuc.OpcUa --version 1.1.0

Quick start: connect and read The example below uses the package's public API. Replace the endpoint with your controller's actual OPC UA endpoint. DynamicAssignmentRangeVerified must only be enabled after confirming that the configured Holding Register range does not collide with persistent mappings or other OPC UA clients.

using Robentex.Fanuc.OpcUa;

var options = new FanucOpcUaConnectionOptions
{
    EndpointUrl = new Uri("opc.tcp://robot.example:4880/FANUC/NanoUaServer"),
    DynamicAssignmentRangeVerified = true
};

await using var client = new FanucOpcUaClient(options);
await client.ConnectAsync();

var overridePercent = await client.ReadSystemVariableAsync<int>("$MCR.$GENOVERRIDE");
var registerValue = await client.ReadRegisterAsync(100);
var program = await client.ReadProgramStatusAsync(1);

This is a secured-endpoint example. Trust the controller certificate using the library's PKI procedure; do not disable certificate verification in production. Confirm the namespace/imports against the distributed XML API docs before publishing this snippet as a compile-tested sample. New in 1.1.0

Read-only alarm-history access through ReadAlarmHistoryAsync(index) and ReadAlarmHistoriesAsync(count).

Uses the FANUC ALM[E{index}] mapping defined in Additional-Option Manual §55.3.6: 100 Holding Registers with MULTIPLY=1 and low-byte-first text decoding.

ReadAlarmHistoriesAsync(count) starts at ALM[E1], returns entries in chronological-history order, and stops at the first empty entry.

Each result includes the decoded alarm code, message, severity, occurrence timestamp and optional cause data, together with raw mapping diagnostics.

The APIs are read-only and were verified against ROBOGUIDE.

Also in 1.0.2 FANUC STRING system-variable reads via ReadSystemVariableAsync<string>. Maps 40 Holding Registers with MULTIPLY=1. Decodes low-byte-first characters and validates NUL termination. Read-only behavior was verified using $RBTIF.SERIAL_NUM in ROBOGUIDE. STRING writes are not supported. Security and operational boundaries Unknown OPC UA server certificates are not automatically accepted. Security-free endpoints require explicit opt-in. Dynamic Holding Register assignments require a verified non-conflicting address range. Writes are disabled by default, require category-specific opt-in and exact allow-lists, and use read-back checks. Multi-register writes are not guaranteed to be atomic on the controller. An OPC UA success response alone does not guarantee the intended physical result. This package does not implement functional safety, collision avoidance, motion interlocks or emergency-stop logic. Actual controller support must be validated on the target robot; ROBOGUIDE verification alone does not establish production compatibility. Supported platforms .NET target: .NET 9 (compatible later frameworks as allowed by NuGet). Robot side: FANUC controllers exposing the relevant HMI Device Communication OPC UA functionality. Some robot-status nodes are optional and may be absent on particular controller software versions. Documentation API guide — operations, data types, register mappings and limitations. Security and safety — PKI, certificate trust and controlled robot writes. ROBOGUIDE testing — simulator commands and deep diagnostics (source repository only). Changelog — release history.

These links become available after the documentation files are committed and pushed to the repository’s main branch. License MIT License. FANUC and ROBOGUIDE are trademarks of their respective owners. This package is an independent integration library and does not distribute FANUC documentation, controller software or robot configuration data.

Product Compatible and additional computed target framework versions.
.NET 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 was computed.  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. 
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
1.1.0 128 10/19/2026
1.0.2 108 10/16/2026
1.0.1 103 10/15/2026
1.0.0 108 10/15/2026

1.1.0: Adds read-only FANUC alarm-history APIs. ReadAlarmHistoryAsync(index) reads one ALM[E{index}] entry through a 100-register, MULTIPLY=1 dynamic SETASG mapping. ReadAlarmHistoriesAsync(count) returns ordered entries from ALM[E1] and stops at the first empty entry. Alarm code, message, severity, timestamp, and optional cause data are decoded according to Additional-Option Manual section 55.3.6. Verified read-only on ROBOGUIDE.