Haas codes
HaasProgram/G-codeBasic5-15 minutes

305

Haas 305 - INVALID Q IN CANNED CYCLE | Haas CNC Alarm

INVALID Q IN CANNED CYCLE

This programming alarm occurs when the control encounters an invalid Q value in a canned drilling or milling cycle (G73, G83, G76, etc.). The Q parameter defines peck depth or chip break increment and must be a positive value greater than zero. The control halts program execution at the problematic block until the issue is corrected in the program code.

Root Cause Summary

Haas Alarm 305 - Z Negative Limit typically occurs when the Z-axis reaches its negative travel limit due to incorrect programming or setup issues. The most common cause is a work offset set too low, followed by tool length offset errors. Checking and adjusting the work offset or tool length offset usually resolves the issue quickly.

Safety

  • Check for part contact
  • Jog slowly

Causes and Fixes

  1. 1

    Press RESET and Jog Z Positive

    Press the RESET button to clear the alarm, then use the jog handle to move the Z-axis in the positive direction to a safe position above the limit.

    Move slowly to avoid any potential collisions with the part or fixture.

    Ensure no part or fixture contact before jogging.

  2. 2

    Check Work Offset Z Value

    Navigate to the OFFSET menu on the control panel and review the Z value for the active work offset (e.g., G54). Compare it to the actual height of the part or fixture.

    Use a height gauge or caliper to measure the actual part height for accurate comparison.

    Double-check the active offset to avoid adjusting the wrong one.

  3. 3

    Adjust Work Offset if Necessary

    If the Z offset value is too low (more negative than the actual part height), adjust it to a higher value to prevent the Z-axis from reaching the negative limit. Save the new value and test with a slow jog.

    Make small incremental adjustments (e.g., 0.010 inches) and test to avoid over-correcting.

    Ensure the spindle is clear of any obstructions before testing.

DIY Feasiblehigh confidence

Call a technician if:

  • ·If the alarm persists after checking offsets, program, and fixture height.
  • ·If there is suspicion of a faulty limit switch or calibration issue.

Prevention

  • Always double-check work offsets and tool length offsets before running a program.
  • Use simulation or graphics mode to verify program paths before execution.
  • Document fixture heights and setup details for consistent reference.
  • Regularly inspect and clean limit switches to prevent false triggers.

Common Mistakes

  • Ignoring work offset values and assuming they are correct from a previous setup.
  • Failing to measure tool lengths accurately before entering offsets.

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.