Marlin · Communication

Marlin: echo:Unknown command: "M…"

Most often: command needs a feature that is not compiled in (e.g. M600, G26, M593). First step: look up the command in the printer G-code list.

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

What it means

The firmware does not know the command. It skips the line and continues. Common after copying start code from another printer.

Common causes

  • Command needs a feature that is not compiled in (e.g. M600, G26, M593)
  • Typing error in the start code
  • Klipper macro name sent to a Marlin printer

How to clear it

  1. Look up the command in the printer G-code list
  2. Remove the line or enable the feature and flash the firmware

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: communication

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 Marlin "echo:Unknown command: "M…"" mean?
The firmware does not know the command. It skips the line and continues. Common after copying start code from another printer.
How do I fix Marlin "echo:Unknown command: "M…""?
Look up the command in the printer G-code list. Remove the line or enable the feature and flash the firmware.
Was this page helpful?