Heidenhain codes
HeidenhainServo/AxisIntermediate30-120 minutes

231-AC40

HEIDENHAIN 231-AC40 - AC40 Position encoder defective

AC40 Position encoder defective

This TNC 640 error indicates an issue with the encoder system for axis. The control has detected a problem with encoder signals, possibly due to contamination, cable damage, or encoder hardware failure.

Root Cause Summary

HEIDENHAIN alarm 231-AC40 indicates the position encoder feedback system has failed or is providing unreliable position data to the TNC control. This typically occurs when the encoder's optical scanning system cannot properly read the scale due to contamination, mechanical misalignment, or electrical faults in the encoder chain.

Safety

  • Refer to Heidenhain service manual
  • Ensure qualified technician performs repairs

Causes and Fixes

  1. 1

    Access Machine Parameter MP7440

    Navigate to MOD > Machine Parameters > MP7440 (encoder monitoring) to check current signal quality values and compare against nominal ranges.

    Signal amplitude should typically be between 0.6-1.4V for optimal operation

  2. 2

    Inspect Encoder Scale Surface

    Power down machine and visually inspect the linear or rotary encoder scale for oil film, coolant residue, or metal particles along the measurement track.

    Ensure machine is properly locked out before accessing encoder components

  3. 3

    Clean Scale with Approved Solvent

    Use isopropyl alcohol and lint-free cloth to gently clean the encoder scale surface, avoiding any abrasive contact that could damage the etched measurement marks.

    Clean in the direction of the scale graduation, never perpendicular to avoid scratching

  4. 4

    Verify Signal Recovery

    Power up and check MP7440 values again, then perform slow axis movement while monitoring encoder diagnostics in Test Run mode.

DIY Feasiblehigh confidence

Call a technician if:

  • ·TNC input module replacement required
  • ·Encoder replacement needed
  • ·Precision alignment beyond available tools

Prevention

  • Regular encoder cleaning schedule
  • Proper coolant containment
  • Periodic cable inspection
  • Environmental sealing maintenance

Common Mistakes

  • Using wrong cleaning solvents
  • Over-tightening scanning head adjustments
  • Ignoring cable routing guidelines
  • Skipping reference point calibration after repairs

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.