Stop, cancel and pause¶
Ending, cancelling and pausing¶
At a normal job end, C5_PRINT_STOP runs these steps:
- Waits for the moves to finish, turns notower off and saves the print's baby stepping for the tool.
- Turns off all heaters and the part, chamber and auxiliary fans
(
M107,M107 P2,M107 P3). - If all axes are homed: raises Z by up to 10 mm (less near the bottom),
docks the attached tool, and with park_carriage_on_end on moves the
empty carriage to
park_x/park_y. - With lower_bed_on_end on, lowers the bed to Z246 at 10 mm/s
(
lower_bed_zandlower_bed_speed). A bed that's already lower stays put. - Clears any lane reassignment AFC made for a runout during the print
(
RESET_AFC_MAPPING RUNOUT=no; aSET_MAPyou made yourself is kept), turns the motors off, clears skew and plays the end tune.
CANCEL_PRINT clears Mainsail's pause-at-layer requests, saves the baby
stepping, cancels, turns the fans off and runs C5_PRINT_STOP, but only when
a print was running or paused. A Cancel press while idle doesn't move or dock
anything. Errors in the print file also end in CANCEL_PRINT
(on_error_gcode).
A cancel during print start doesn't wait for print start to finish. The
Moonraker component opencreator_cancel first sends
_OC_START_CANCEL_INTERRUPT, which stops any heat-up being waited for. Print
start then stops at its next step with Print cancelled during print start,
and the cancel follows.
M25 from a slicer or screen runs PAUSE.
A shutdown can prevent ordinary G-code cleanup. Confirm the machine state before resuming after an MCU fault.
Troubleshooting¶
| Message | Cause and fix |
|---|---|
C5_PRINT_START needs TOOL=0..3 and HOTEND>0 |
Your own C5_PRINT_START line lacks HOTEND, or TOOL is out of range. |
TOOL must be included in TOOLS |
Add the first tool to TOOLS. |
HOTEND temperature must be positive for each used tool |
A HOTEND<n> for a used tool is 0. |
Cancelling print: no filament detected in selected T… |
Load filament into that tool. Only the tools the print uses are checked. |
Cancelling print: build plate not detected… |
Put the plate on, or add BUILDPLATE_CHECK=0 if the check misreads. |
Confirm all heads are docked before print homing |
A dock sensor doesn't see its head. Check that every head sits in its dock. |
Missing dock confirmation for T…; motion blocked |
Same check, for any tool motion. Right after a Klipper restart it can show for a few minutes; wait, then retry G28. If it stays, the head isn't seated or its dock sensor fails. |
Automatic nozzle Z is not applied; refusing low-Z print motion |
The nozzle Z measurement didn't run or failed for the attached tool. Look further up the console for the reason. |
Nozzle Z offset changed or reset (expected …, got …) |
Something changed the Z offset between the measurement and the print, for example a SET_GCODE_OFFSET in a start macro. |
Door … is open while chamber heater is enabled |
Pro only: close the doors, or turn the chamber heater off. |
No purge line for T…: … |
Only that tool's line is skipped; the print continues. |
The start parameters and the preparation steps that produce these messages are in Print start. Dock sensor recovery is covered in Tool offsets and docks.