Haas codes
HaasSystemBasic5 minutes

505

Haas 505 - VALUE STACK ERROR | Haas CNC Alarm

VALUE STACK ERROR

This alarm occurs when the Haas control detects an overflow or underflow condition in the internal value stack used to evaluate macro expressions and mathematical operations. The control uses a stack-based calculator to process macro variables and expressions, and this alarm indicates the stack has exceeded its capacity or become corrupted during computation. Program execution stops immediately to prevent calculation errors or unpredictable machine behavior.

Root Cause Summary

Alarm 505 occurs when the NGC control detects the spindle is not rotating during operations requiring active spindle motion, such as canned cycles or rigid tapping. The control checks spindle feedback through Parameter 37 (SPINDLE ENCODER LINES) and spindle command status before executing these operations.

Safety

  • Never cut without spindle running

Causes and Fixes

  1. 1

    Review Active G-Code Program

    Press PROGRAM and scroll to the line causing the alarm. Look for G81-G89 drilling cycles or G84 rigid tap cycles without preceding M03/M04 commands.

  2. 2

    Check Spindle Command Status

    Press CURRENT COMMANDS and verify spindle state shows 'STOP' instead of 'CW' or 'CCW'. This confirms no spindle start command is active.

  3. 3

    Add Missing Spindle Commands

    Edit the program to include M03 S[RPM] before the operation requiring spindle rotation. Ensure adequate spindle speed for the tooling being used.

    Use M05 after the cycle to stop the spindle if needed for tool changes or safety.

DIY Feasiblehigh confidence

Call a technician if:

  • ·Spindle drive hardware failure
  • ·Encoder replacement required
  • ·Parameter corruption requiring factory reset

Prevention

  • Always include M03/M04 commands before spindle-dependent operations
  • Monitor Parameter 50 spindle load regularly
  • Perform monthly encoder cable inspection
  • Keep spindle encoder parameters backed up

Common Mistakes

  • Assuming spindle will auto-start during canned cycles
  • Ignoring spindle load meter warnings
  • Setting Parameter 52 tolerance too tight
  • Not verifying encoder feedback after cable maintenance

Related Alarms

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.