Fanuc SDK documentation
Reset alarms remotely
Clear and reset alarms on a Fanuc robot using SNPX, Telnet, or CGTP. Read active alarms and alarm history.
Clear fault conditions and reset alarms on your Fanuc robot remotely using different protocols.
SNPX
SNPX can clear alarms, read the active alarm, and browse alarm history:
// Clear all alarms (equivalent to pressing FAULT RESET)robot.Snpx.ClearAlarms();// Read the active alarmRobotAlarm activeAlarm = robot.Snpx.ActiveAlarm.Read(1);Console.WriteLine($"Alarm: {activeAlarm.Message} (Severity: {activeAlarm.Severity})");// Read alarm historyRobotAlarm histAlarm = robot.Snpx.AlarmHistory.Read(10);
See also: SNPX Alarms & task status
Telnet KCL
Telnet can reset alarms using KCL commands:
// Reset the robot (clears faults, exits HOLD)robot.Telnet.Reset();// Or use a custom KCL commandrobot.Telnet.SendCustomCommand("RESET");
See also: Telnet Program control
CGTP Web Server
CGTP can check alarm-related variables:
// Read alarm historyErrorList errors = robot.Cgtp.Http.GetAllErrorsList();// extract active alarms from the full listvar activeAlarms = errors.FilterActiveAlarms();// reset alarmsrobot.Cgtp.Kcl.Reset();// Read user alarms definitionsUserAlarmDefinition[] alarms = robot.Cgtp.ReadUserAlarms();// write user alarm definitionrobot.Cgtp.SetUserAlarmSeverity(1, 8); // Set user alarm #1 to severity 8robot.Cgtp.SetComment(CgtpCommentType.UserAlarm, 1, "Overheat alarm"); // Set comment for user alarm #1
See also: CGTP Alarms, comments & files
FTP (offline)
Download and parse the error log:
// Read alarm history via FTPErrorList errors = robot.Ftp.GetAllErrorsList();// extract active alarms from the full listerrors.FilterActiveAlarms();
Protocol comparison
| Feature | SNPX | Telnet | CGTP | FTP |
|---|---|---|---|---|
| Clear alarms | Yes | Yes | Yes | No |
| Read active alarm | Yes | No | Yes | No |
| Alarm history | Yes | No | Yes | Yes |
| User alarms | No | No | Yes | No |