Grbl · Homing and limits
Grbl error 9: G-code lock
Most often: machine needs homing after power on. First step: home the machine with $H.
On this page
ALARMerror:9G-code lock
What it means
G-code is locked because of an alarm or a jog. Grbl has refused this line and has not executed it. The position is still right.
Common causes
- Machine needs homing after power on
- A limit switch was hit
How to clear it
- Home the machine with $H
- Only if you know the position: unlock with $X
Example
G0 X10 (LOCKED)$H
G0 X10Before you continue: Before you move the axis, look at the tool, the part and the direction. Use a low override and keep one hand on feed hold. A wrong direction makes a small alarm a big repair.
Same group: homing and limits
- Grbl error 5: Setting disabled
- Grbl error 10: Homing not enabled
- Grbl error 15: Travel exceeded
- Grbl ALARM:1: Hard limit
- Grbl ALARM:2: Soft limit
- Grbl ALARM:3: Abort during cycle
- Grbl ALARM:6: Homing fail: reset
- Grbl ALARM:7: Homing fail: door
- Grbl ALARM:8: Homing fail: pull-off
- Grbl ALARM:9: Homing fail: switch not found
Numbers of Grbl 1.1. FluidNC and grblHAL use the same basic numbers and add their own. Fanuc and Grbl are names of their owners. This site is independent.
The alarm comes back?
Post the block before the alarm, your control model and what you have checked.
Ask the communityFrequently asked questions
What does Grbl error 9 mean?
G-code is locked because of an alarm or a jog.
How do I fix Grbl error 9?
Home the machine with $H. Only if you know the position: unlock with $X.
Was this page helpful?