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.

By cnccode · Updated
On this page
  1. What it means
  2. Common causes
  3. How to clear it
  4. Example
  5. Tools that help
  6. Related codes
  7. Same group: g-code
  8. Frequently asked questions

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

  1. Choose a Grbl post processor in your CAM
  2. Let the CAM write drilling as G0 and G1
  3. Delete M6 and split the job by tool

Example

Gives the alarm
G81 X10 Y10 Z-5 R2 F100
Correct
G0 X10 Y10
G0 Z2
G1 Z-5 F100
G0 Z2

Before 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

Same group: g-code

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 community

Frequently 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?