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
<PackageReference Include="Robentex.Fanuc.OpcUa" Version="1.1.0" />
<PackageVersion Include="Robentex.Fanuc.OpcUa" Version="1.1.0" />
<PackageReference Include="Robentex.Fanuc.OpcUa" />
paket add Robentex.Fanuc.OpcUa --version 1.1.0
#r "nuget: Robentex.Fanuc.OpcUa, 1.1.0"
#:package Robentex.Fanuc.OpcUa@1.1.0
#addin nuget:?package=Robentex.Fanuc.OpcUa&version=1.1.0
#tool nuget:?package=Robentex.Fanuc.OpcUa&version=1.1.0
Robentex.Fanuc.OpcUa
FANUC Robot Integration SDK for .NET
Connect, monitor, and interact with compatible FANUC robot controllers over OPC UA.
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,boolNumeric registersR[]Read and allow-listed write Position registersPR[]CartesianX/Y/Z/W/P/Rread and full/partial write; CONFIG handling Digital I/ODI[]read;DO[]read and allow-listed write Extended I/ORI[],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 viaPRG[n]Why this package? Useful APIs instead of raw register handling: The library handles connection-scopedCLRASG/SETASGmapping, 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
mainbranch. 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 | Versions 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. |
-
net9.0
- OPCFoundation.NetStandard.Opc.Ua.Client (>= 1.5.378.176)
- OPCFoundation.NetStandard.Opc.Ua.Configuration (>= 1.5.378.176)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
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.