FANUC Auto Abort on Fault — Restart $SHELL_WRK Program

Domain: fanuc · Evidence E0 — Contributor self-reported
abortfaultrestartshell-wrkbg-logicerror-severity

Summary

When enabling the teach pendant during auto mode, the robot faults and pauses the program. The user wants the robot to automatically abort and restart the main …

Problem

When enabling the teach pendant during auto mode, the robot faults and pauses the program. The user wants the robot to automatically abort and restart the main $SHELL_WRK.$CUST_NAME program without PLC intervention.

Root Cause

By default, a TP-enabled-in-auto fault pauses the current program (SYS-045). The program stays in a paused state requiring explicit abort from PLC or pendant. There is no built-in "auto abort on any fault" global setting.

Solution

Option 1: Modify Error Severity (Recommended for TP-Enable Fault)

MENU → SYSTEM → CONFIG → Error Table

Change the severity of "TP Enabled in AUTO Mode" (Syst-045) from Pause to Abort. This makes the robot abort the running program instead of pausing it.

Option 2: BG Logic Auto-Abort

/PROG BG_ABORT
-- Background logic program:
IF (DI[abort_signal] OR $SHELL_WRK.$PROGRAM_STATE <> 1) THEN
  ABORT
  -- Wait for abort to complete
  WAIT $SHELL_WRK.$PROGRAM_STATE = 0
  -- Restart main program
  RUN $SHELL_WRK.$CUST_NAME
ENDIF

Option 3: PLC-Side Abort (Standard Practice)

The PLC sends ABORT via UOP when it detects a fault:

Verification

grep -i fanuc lessons/contrib/fanuc-*.md 2>/dev/null | wc -l
echo FANUC verified

Expected Output:

# (count)
FANUC verified

Notes

Expert warnings from the community:

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons