The Fanuc SDK enables seamless integration with Fanuc robots for automation, data exchange, and remote control. Ideal for industrial automation, research, and advanced robotics applications.
🔗 More Information: https://underautomation.com/fanuc
🔗 Also available for 🟨 LabVIEW & 🐍 Python
👁️ Watch to be notified of latest updates !
- ✔️ PCDK Alternative: No need for Fanuc’s PCDK or Robot Interface
- 📖 Read/Write Variables: Access and modify system variables.
- 🔄 Register Control: Read/write registers for positions, numbers, and strings.
- 🎬 Program Control: Run, abort, and reset programs.
- 🔔 Alarm Management: Reset alarms and view alarm history.
- ⚡ I/O Control: Manage ports and I/O values (UI, UO, GI, GO, etc.).
- 🔍 State Monitoring: Get safety status, position, diagnostics, and more.
- 📂 File Management: Easily manipulate files.
No additional installations or Fanuc options are required to use this SDK.
Explore the Fanuc SDK with fully functional example applications and precompiled binaries for various platforms. See Github releases
A Windows Forms application demonstrating all the features of the library.
📌 Download: 📥 UnderAutomation.Fanuc.Showcase.Forms.exe
Telnet KCL (Keyboard Command Line) allows sending commands to control the robot remotely—no additional options needed on the controller.
robot.Telnet.Reset();
robot.Telnet.Run("MyProgram");
robot.Telnet.Pause("MyProgram");
robot.Telnet.Hold("MyProgram");
robot.Telnet.Continue("MyProgram");
robot.Telnet.Abort("MyProgram", force: true);
robot.Telnet.SetVariable("my_variable", 42);
robot.Telnet.SetVariable("$RMT_MASTER", 1);
// Set an output port (example: DOUT port 2 = 0)
robot.Telnet.SetPort(KCLPorts.DOUT, 2, 0);
// Simulate an input port (example: DIN port 3 = 1)
robot.Telnet.Simulate(KCLPorts.DIN, 3, 1);
robot.Telnet.Unsimulate(KCLPorts.DIN, 3);
SNPX (also known as SRTP/RobotIF) enables fast, structured data communication with the robot.
It is used to read/write registers, monitor alarms, and check robot status.
// Read position register 1
Position register1 = robot.Snpx.PositionRegisters.Read(1);
// Set a new value for register 2
robot.Snpx.PositionRegisters.Write(2, new Position { X = 100, Y = 50, Z = 25 });
// Read register R[1]
double value = robot.Snpx.Registers.Read(1);
// Write a value to R[2]
robot.Snpx.Registers.Write(2, 123.45);
var alarms = robot.Snpx.Alarms.GetActiveAlarms();
foreach (var alarm in alarms)
{
Console.WriteLine($"Alarm {alarm.Code}: {alarm.Message}");
}
// Read a User Input (UI) state
bool UI1 = robot.Snpx.UI.Read(1);
// Set a User Output (UO) signal
robot.Snpx.UO.Write(3, true);
The SDK provides direct FTP access to the robot's memory for file transfer, variable reading, and configuration management.
// Upload a TP program to the controller
robot.Ftp.DirectFileHandling.UploadFileToController(@"C:\Programs\MyPrg.tp", "md:/MyPrg.tp");
// Download a file from the robot
robot.Ftp.DirectFileHandling.DownloadFileFromController("md:/Backup.va", @"C:\Backup\Backup.va");
// Delete a file on the robot
robot.Ftp.DirectFileHandling.DeleteFile("md:/OldProgram.tp");
var allVariables = robot.Ftp.GetAllVariables();
foreach (var variable in allVariables)
{
Console.WriteLine($"{variable.Name} = {variable.Value}");
}
// Read system variable $RMT_MASTER
int remoteMode = robot.Ftp.KnownVariableFiles.GetSystemFile().RmtMaster;
SafetyStatus safetyStatus = robot.Ftp.GetSafetyStatus();
Console.WriteLine($"Emergency Stop: {safetyStatus.ExternalEStop}");
Console.WriteLine($"Teach Pendant Enabled: {safetyStatus.TPEnable}");
CurrentPosition currentPosition = robot.Ftp.GetCurrentPosition();
Console.WriteLine($"Cartesian Position: X={currentPosition.Cartesian.X}, Y={currentPosition.Cartesian.Y}, Z={currentPosition.Cartesian.Z}");
- Go to
SETUP > Host Comm
- Select
TELNET
and press[DETAIL]
- Set a password and restart the robot
- Go to
SETUP > Host Comm > FTP
- Set a username & password
- Perform a cold start
-
If Your Robot Uses "FANUC America Corp." Parameters (R650 FRA): You need to enable option R553 ("HMI Device SNPX") in the robot's software configuration.
-
If Your Robot Uses "FANUC Ltd." Parameters (R651 FRL): No additional option is required—SNPX is included by default.
Choose the installation method that works best for you:
Method | NuGet (Recommended) | Direct Download |
---|---|---|
How to Install | Install via NuGet. See on Nuget | Download and reference the DLL manually |
dotnet add package UnderAutomation.Fanuc |
📥 Download ZIP |
using UnderAutomation.Fanuc;
var robot = new FanucRobot();
robot.Connect(new ConnectParameters("192.168.0.1"));
✅ Supported Robots: R-J3iB, R-30iA, R-30iB
✅ Operating Systems: Windows, Linux, macOS
✅ .NET Versions: .NET Framework (≥3.5), .NET Standard, .NET Core, .NET 5/6/8/9
We welcome contributions! Feel free to:
- Report issues via GitHub Issues
- Submit pull requests with improvements
- Share feedback & feature requests
🔗 Learn more: UnderAutomation Licensing
If you have any questions or need support:
- 📖 Check the Docs: Documentation
- 📩 Contact Us: Support