UnderAutomation
Une question ?

[email protected]

Contactez-nous
UnderAutomation
⌘Q
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.

  • SNPX
  • Telnet KCL
  • CGTP Web Server
  • FTP (offline)
  • Protocol comparison

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 alarm
RobotAlarm activeAlarm = robot.Snpx.ActiveAlarm.Read(1);
Console.WriteLine($"Alarm: {activeAlarm.Message} (Severity: {activeAlarm.Severity})");
// Read alarm history
RobotAlarm 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 command
robot.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 history
ErrorList errors = robot.Cgtp.Http.GetAllErrorsList();
// extract active alarms from the full list
var activeAlarms = errors.FilterActiveAlarms();
// reset alarms
robot.Cgtp.Kcl.Reset();
// Read user alarms definitions
UserAlarmDefinition[] alarms = robot.Cgtp.ReadUserAlarms();
// write user alarm definition
robot.Cgtp.SetUserAlarmSeverity(1, 8); // Set user alarm #1 to severity 8
robot.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 FTP
ErrorList errors = robot.Ftp.GetAllErrorsList();
// extract active alarms from the full list
errors.FilterActiveAlarms();
}
}
Click to see the full code

Protocol comparison

FeatureSNPXTelnetCGTPFTP
Clear alarmsYesYesYesNo
Read active alarmYesNoYesNo
Alarm historyYesNoYesYes
User alarmsNoNoYesNo

Intégrez facilement les robots Universal Robots, Fanuc, Yaskawa, ABB ou Staubli dans vos applications .NET, Python, LabVIEW ou Matlab

UnderAutomation
Contactez-nousLegal

© All rights reserved.