Klipper · Configuration

Klipper: Unknown command:"…"

Most often: start code from a Marlin profile. First step: replace Marlin codes with Klipper commands (M900 → SET_PRESSURE_ADVANCE, G29 → BED_MESH_CALIBRATE).

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: configuration
  8. Frequently asked questions

What it means

The G-code contains a command Klipper does not know: often a Marlin code without a Klipper equivalent (M900, M205, G29) or a macro that is not defined.

Common causes

  • Start code from a Marlin profile
  • Macro called in the slicer (PRINT_START) but not defined in printer.cfg
  • Command needs a config section that is missing

How to clear it

  1. Replace Marlin codes with Klipper commands (M900 → SET_PRESSURE_ADVANCE, G29 → BED_MESH_CALIBRATE)
  2. Define the macro or fix its name
  3. Add the needed section, e.g. [firmware_retraction] for G10

Example

Gives the alarm
G29\nM900 K0.05
Correct
BED_MESH_CALIBRATE
SET_PRESSURE_ADVANCE ADVANCE=0.05

Before you continue: Save a copy of printer.cfg before you change it, and change one thing at a time.

Tools that help

Same group: configuration

Messages of Marlin 2.1 and current Klipper. The exact wording can differ a little between versions and printer brands that change the firmware. Marlin and Klipper are open-source projects; this site is independent.

The error comes back?

Post your printer, firmware version, the full message and the start code.

Ask the community

Frequently asked questions

What does Klipper "Unknown command:"…"" mean?
The G-code contains a command Klipper does not know: often a Marlin code without a Klipper equivalent (M900, M205, G29) or a macro that is not defined.
How do I fix Klipper "Unknown command:"…""?
Replace Marlin codes with Klipper commands (M900 → SET_PRESSURE_ADVANCE, G29 → BED_MESH_CALIBRATE). Define the macro or fix its name. Add the needed section, e.g. [firmware_retraction] for G10.
Was this page helpful?