Grbl · G-code
Grbl error 20: Unsupported command
Most often: post processor for an industrial control. First step: choose a Grbl post processor in your CAM.
On this page
ALARMerror:20Unsupported command
What it means
Grbl does not know this G- or M-code. Grbl has refused this line and has not executed it. The position is still right.
Common causes
- Post processor for an industrial control
- Drilling cycles G81 to G83
- M6 tool change
How to clear it
- Choose a Grbl post processor in your CAM
- Let the CAM write drilling as G0 and G1
- Delete M6 and split the job by tool
Example
G81 X10 Y10 Z-5 R2 F100G0 X10 Y10
G0 Z2
G1 Z-5 F100
G0 Z2Before you continue: After the correction do not start in the middle of the program. Go back to the last tool change, use single block and a low rapid override, and watch the distance to go.
Tools that help
- G-Code CheckerPaste a CNC program and get a list of likely mistakes: missing G43, rapid moves below…
- G-Code GeneratorGenerate clean G-code for rectangular and circular pockets, facing, outside contours…
Related codes
Same group: g-code
- Grbl error 21: Modal group violation
- Grbl error 22: Undefined feed rate
- Grbl error 23: Command requires an integer value
- Grbl error 24: Two commands use axis words
- Grbl error 25: Repeated word
- Grbl error 26: No axis words found
- Grbl error 27: Invalid line number
- Grbl error 28: Missing value word
- Grbl error 29: G59.x not supported
- Grbl error 30: G53 only with G0 and G1
- Grbl error 31: Axis words without command
- Grbl error 32: Arc without axis word
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 20 mean?
Grbl does not know this G- or M-code.
How do I fix Grbl error 20?
Choose a Grbl post processor in your CAM. Let the CAM write drilling as G0 and G1. Delete M6 and split the job by tool.
Was this page helpful?