FANUC codes
FANUCProgram/G-codeIntermediate5-30 minutes

171

Fanuc 171 - Stroke limit check error

STROKE LIMIT CHECK ERROR

Fanuc PS program alarm 171: STROKE LIMIT CHECK ERROR. This alarm is triggered by an illegal or incorrectly formatted command in the part program, or a programming condition that the Fanuc control cannot execute.

Root Cause Summary

Alarm 171 occurs when a programmed move would exceed the software stroke limit (travel limit) defined in machine parameters. This is a protection mechanism preventing the machine from attempting to move beyond its physically safe working envelope. The alarm can be caused by incorrect work coordinate systems, programming errors, or misconfigured parameter settings.

Safety

  • Verify corrected program or parameters before resuming machining

Causes and Fixes

  1. 1

    Check the current position display and identify which axis triggered the alarm (X, Y, Z, or rotary axis).

  2. 2

    Review parameters 1320-1327 to verify the stroke limit values for each axis match the machine's actual physical travel limits.

  3. 3

    Check all active work offset values (G54-G59) in the offset settings page to ensure they are correctly set and not pushing the work envelope outside stroke limits.

    Incorrect work offsets can cause crashes. Verify all offset values before proceeding.

  4. 4

    Modify the part program or adjust the work coordinate system to keep all commanded positions within the parameter-defined stroke limits, then reset and restart.

Service Recommended confidence

Seeing Multiple Alarms?

Seeing another alarm with this one? Enter the code.

Get machine-aware diagnosis

AxisMD logs alarms against your actual machines, tracks patterns, and gives AI context your manual doesn't have.

Start free

Was this guide helpful?

Always verify with your machine manual or a certified technician before performing service procedures.