3D printer G-code · Klipper

EXCLUDE_OBJECT: Cancel one object (Klipper)

Cancel one object — Stops printing one object of a plate while the others continue, for example when one part came loose. The slicer must label objects (an option in PrusaSlicer…

By cnccode · Updated
On this page
  1. What does EXCLUDE_OBJECT do?
  2. Parameters
  3. Example
  4. Tips from practice
  5. Related commands
  6. More print control commands
  7. Frequently asked questions
PropertyValue
CommandEXCLUDE_OBJECT
FunctionCancel one object
FirmwareKlipper
GroupPrint control
SyntaxEXCLUDE_OBJECT NAME=<object>

What does EXCLUDE_OBJECT do?

Stops printing one object of a plate while the others continue, for example when one part came loose. The slicer must label objects (an option in PrusaSlicer, OrcaSlicer and SuperSlicer) and Klipper needs [exclude_object]. Mainsail and Fluidd show the objects to click.

Parameters

ParameterMeaning
NAMEObject name from the file

Example

Klipper
EXCLUDE_OBJECT NAME=part_3_id_2_copy_0

Tips from practice

  • Marlin has M486 for the same task.

Klipper. Extended commands need their section in printer.cfg. Results of calibration commands are kept only after SAVE_CONFIG.

More print control commands

CommandFunctionFirmware
M220Speed factorMarlin and Klipper
M600Filament changeMarlin
M412Filament runout sensorMarlin
M413Power-loss recoveryMarlin
M84Disable motors (M84 / M18)Marlin and Klipper
M400Finish movesMarlin and Klipper
M112Emergency stopMarlin and Klipper
M25Pause SD print (M25 / M24)Marlin
PAUSEPause, resume, cancelKlipper

Test it before you print

Paste your start code or a whole file into the 3D printer simulator. It plans every move, shows the time and finds missing waits, cold extrusion and moves outside the bed.

Open the simulator

Frequently asked questions

What does EXCLUDE_OBJECT do on a 3D printer?
EXCLUDE_OBJECT is cancel one object. Stops printing one object of a plate while the others continue, for example when one part came loose. The slicer must label objects (an option in PrusaSlicer, OrcaSlicer and SuperSlicer) and Klipper needs [exclude_object]. Mainsail and…
Does EXCLUDE_OBJECT work in Klipper and Marlin?
EXCLUDE_OBJECT is a Klipper command. Marlin printers use other G-codes for this task.
Was this page helpful?