Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1907,6 +1907,28 @@
#endif
#endif

/**
* Manual "Start Print From Z" — start an SD print at a chosen Z height.
*
* Adds an LCD submenu "Print from Z..." that lets the user set a target Z
* before printing a file. When the print is started, Marlin pre-scans the
* G-code, simulating the machine state (X/Y/Z/E, units, abs/rel modes,
* G92, target temperatures, fan speeds, active tool) without performing
* any motion, until a move brings Z >= target. Marlin then heats up,
* homes XY, lifts Z to the target, restores the E counter, and resumes
* the SD print from that byte offset.
*
* Self-contained — does NOT require POWER_LOSS_RECOVERY.
*
* Useful as a manual replacement for power-loss recovery when no recovery
* file was saved (e.g. crash, manual abort, swapped SD card).
*/
//#define START_PRINT_FROM_Z
#if ENABLED(START_PRINT_FROM_Z)
#define START_PRINT_FROM_Z_MAX 1000.0f // (mm) Max selectable Z height
//#define START_PRINT_FROM_Z_DEBUG // Verbose serial output during scan
#endif

/**
* Sort SD file listings in alphabetical order.
*
Expand Down
Loading
Loading