Skip to content
Industrial Error Code Fixes
Go back

Fanuc Alarm 506 — Servo Following Error Fix

⚡ Quick Answer

Fanuc Alarm 506 is a servo following error on CNC machining centers and lathes. Learn what causes it and how to diagnose servo drives, encoders, and mechanical issues.

Fanuc Alarm 506 — Servo Following Error

Fanuc Alarm 506 appears on Fanuc 0i, 16i, 18i, 21i, 30i, and 31i CNC controls and indicates a servo following error — the difference between the commanded axis position and the actual (feedback) position has exceeded the allowable tolerance. When the control detects that an axis cannot keep up with the commanded trajectory, it stops motion and faults to prevent machining errors or mechanical damage.

The alarm typically displays as:

506 SERVO ALARM: n-AXIS FOLLOWING ERROR

Where n indicates the specific axis (X, Y, Z, A, B, etc.).


What Causes Alarm 506

The following error is the gap between where the CNC thinks the axis is (based on the commanded move) and where the feedback device (encoder or linear scale) reports it actually is. When this gap exceeds the tolerance set in Parameter 1828 (PRM1828), the alarm triggers.

Common causes:


Step-by-Step Diagnosis {#step-by-step-fix}

Step 1: Identify the faulted axis

The alarm message specifies which axis faulted (n-axis). Note whether the fault happens on a specific axis, during a specific motion type (rapid, feed, certain G-code), or at a specific machine position. This information is critical for narrowing the cause.

Step 2: Check for mechanical binding

With the machine powered and the alarm reset (if possible), jog the affected axis slowly through its full travel. Listen and feel for:

If the machine recently crashed, inspect the axis for bent components, broken ballscrew support bearings, or damaged linear guides.

Step 3: Inspect the servo amplifier

Check the servo amplifier (servo drive) for fault indicator LEDs. Fanuc servo amplifiers display their own alarm codes via a 7-segment LED on the front of the unit. Common servo amplifier alarms that accompany Alarm 506 include:

Document any servo amplifier alarm codes displayed before the main CNC control powers down the axes.

Step 4: Check the encoder and feedback cable

  1. Inspect the encoder cable from the servo motor to the servo amplifier for pinching, cuts, or damage at the cable entry points (common failure point is where the cable bends at the machine tool body).
  2. Check the encoder connector at the motor and at the amplifier for bent pins, moisture, or corrosion.
  3. If the machine has a dual feedback system (motor encoder + separate linear scale), check both feedback devices.
  4. With the CNC in diagnostic mode, monitor the feedback position as you manually move the axis. If feedback is jumping or reading zero, the encoder or cable has failed.

Step 5: Review relevant parameters

Key parameters related to Alarm 506:

ParameterFunctionNotes
PRM1828In-position following error toleranceIncrease cautiously if alarm is marginal
PRM1826In-position width
PRM1825Servo loop gain

Caution: Do not increase Parameter 1828 beyond the machine builder’s specification without understanding the root cause. Increasing the tolerance masks a real problem and can lead to parts being cut out of tolerance.

Step 6: Test the servo amplifier swap

If mechanical and encoder checks are clean, the servo amplifier is the prime suspect. Most shops have a spare amplifier for the most common axis. Swap the amplifier for the faulted axis and test. If the alarm moves to the new axis, the amplifier was not the cause. If the alarm clears, the original amplifier has failed.


How to Fix Alarm 506 {#how-to-fix}

Root CauseFix
Mechanical binding (ballscrew, guide)Lubricate or replace the failed mechanical component
Encoder cable damagedReplace the encoder cable — never splice a servo encoder cable
Encoder failedReplace the motor/encoder assembly
Servo amplifier failedReplace the servo amplifier
Parameters incorrect after restoreRestore machine parameters from the machine builder’s parameter backup
Following crashInspect all axis mechanical components; replace damaged parts

Parts That May Need Replacement {#parts-that-may-need-replacement}

PartTypical CostWhere to Buy
Fanuc Servo Amplifier (αi series)$500–$2,000+Amazon
Fanuc Encoder Cable$80–$300Amazon
Fanuc αi Servo Motor$800–$3,000+Amazon
Ballscrew Nut (machine specific)$300–$1,500Amazon

Important on pricing: Fanuc servo drives are precision industrial components. Prices vary widely between new Fanuc-authorized parts, rebuilt units, and used surplus. Always verify part numbers against the machine tool builder documentation before ordering.


When to Call a Technician

Servo amplifier replacement on a Fanuc-controlled machining center requires proper parameter backup, careful hardware installation, and axis tuning after replacement. If you do not have machine parameter backups on file, do not replace the servo amplifier without a Fanuc-certified technician present — a machine that powers up with incorrect parameters can make violent unexpected moves.

Mechanical repairs to ballscrews and linear guides require precision alignment tools and should be performed by the machine tool builder’s service organization or a qualified rebuild shop.

Pro tip: Fanuc Alarm 506 that occurs only at the end of a rapid traverse move (G00) but not during cutting feed (G01/G02/G03) is almost always an acceleration/deceleration parameter issue or a servo loop gain mismatch — not a hardware failure. Check with the machine builder before replacing any hardware.


Share this post on:

Previous Post
Daikin J3 Error Code — Discharge Pipe Temperature Sensor Fault Fix
Next Post
Haas Alarm 131 — E-Stop Chain Fault Fix