This page is only available in English.
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:
FanucRobot robot = new FanucRobot();robot.Connect("192.168.0.1");// 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);}}
Click to see the full code
See also: SNPX Alarms & task status
Telnet KCL
Telnet can reset alarms using KCL commands:
FanucRobot robot = new FanucRobot();robot.Connect("192.168.0.1");// Reset the robot (clears faults, exits HOLD)robot.Telnet.Reset();// Or use a custom KCL commandrobot.Telnet.SendCustomCommand("RESET");}}
Click to see the full code
See also: Telnet Program control
CGTP Web Server
CGTP can check alarm-related variables:
FanucRobot robot = new FanucRobot();robot.Connect("192.168.0.1");// 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}}
Click to see the full code
See also: CGTP Alarms, comments & files
FTP (offline)
Download and parse the error log:
FanucRobot robot = new FanucRobot();robot.Connect("192.168.0.1");// Read alarm history via FTPErrorList errors = robot.Ftp.GetAllErrorsList();// extract active alarms from the full listerrors.FilterActiveAlarms();}}
Click to see the full code
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 |