Skip to main content

Common Errors

Quick reference for frequent controller messages and how to fix them.

Grbl error codes

Grbl reports errors as error:X. Common ones:

CodeMeaningWhat to do
error:1Expected command letterG-code syntax problem. Check the reported line.
error:2Bad number formatInvalid number in G-code (e.g. missing decimal). Fix in CAM or the file.
error:3Invalid statementUnsupported or malformed command. Check G-code compatibility.
error:4Value < 0Negative value where none allowed. Fix the G-code.
error:5Setting disabledHoming cycle disabled. Send $22=1 to enable (Grbl).
error:6Minimum step pulseStep pulse too short. Adjust Grbl $0 if needed.
error:7EEPROM readEEPROM read failed. Reset Grbl settings or reflash.
error:8Not idleCommand rejected (e.g. jog while running). Wait for Idle.
error:9G-code lockG-code lock (e.g. $X) is on. Send $X to unlock.
error:10Homing not enabledHoming required but disabled. Set $22=1.
error:11Line overflowLine too long. Shorten lines in G-code.
error:15Homing failHoming didn’t complete. Check limit switches, wiring, and homing direction.
error:20Unsupported commandGrbl doesn’t support that G/M code. Change CAM or strip the command.
error:22Feed rate undefinedMotion command with no F. Add feed rate in CAM.

Full list: Grbl documentation.

Other common messages

  • Alarm: hard limit — Limit switch hit. Jog off, clear alarm, re-home if used, then re-zero.
  • Alarm: soft limit — Motion exceeded configured travel. Check work zero and machine limits.
  • Alarm: abort — E-stop or abort. Reset, then re-home/re-zero if needed.
  • Homing required — Controller was reset and needs homing before motion. Run Home All.
  • Probe fail — Probing (e.g. touch plate) didn’t trigger. Check wiring, plate connection, and probe input config.

When to check firmware

  • Persistent error or alarm that doesn’t match G-code or setup.
  • Homing or limits never work despite correct wiring.
  • Machine config (steps/mm, max rate) wrong and not fixable via $ settings.

Update or reflash the controller firmware only if you’re sure and have a backup. Prefer fixing G-code, work zero, and AxioCNC settings first.

Next steps