
axismd.ai
Haas Controller
System · Basic · 5 minutes
Haas 505 - VALUE STACK ERROR | Haas CNC Alarm
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.
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
Causes and Fixes
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.
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.
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.
Call a technician if:
Prevention
Common Mistakes
Seeing Multiple Alarms?
Seeing another alarm with this one? Enter the code.
AxisMD logs alarms against your actual machines, tracks patterns, and gives AI context your manual doesn't have.
Start freeWas this guide helpful?
Always verify with your machine manual or a certified technician before performing service procedures.