Add HOST_PROMPT_SUPPORT (#13039)
This commit is contained in:
committed by
Scott Lahteine
parent
0feeef2604
commit
7f1b69b0c8
@@ -1033,20 +1033,10 @@
|
||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins.
|
||||
|
||||
// Set one or more commands to run on filament runout.
|
||||
// - Always applies to SD-card printing.
|
||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
||||
// Set one or more commands to execute on filament runout.
|
||||
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
||||
|
||||
// With this option, if filament runs out during host-based printing, Marlin
|
||||
// will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
|
||||
// host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
|
||||
// will be used on filament runout for both host-based and SD-card printing.
|
||||
//
|
||||
// The host must be able to respond to the //action: command set here.
|
||||
//
|
||||
//#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
|
||||
|
||||
// After a runout is detected, continue printing this length of filament
|
||||
// before executing the runout script. Useful for a sensor at the end of
|
||||
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||
|
@@ -1006,13 +1006,7 @@
|
||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
||||
#define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
|
||||
/**
|
||||
* Specify an action command to send to the host on a recovery attempt or failure.
|
||||
* Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
|
||||
* The host must be configured to handle the action command.
|
||||
*/
|
||||
#define G29_ACTION_ON_RECOVER "probe_rewipe"
|
||||
#define G29_ACTION_ON_FAILURE "probe_failed"
|
||||
|
||||
#endif
|
||||
|
||||
// @section extras
|
||||
@@ -2013,32 +2007,23 @@
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Specify an action command to send to the host when the printer is killed.
|
||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
||||
* The host must be configured to handle the action command.
|
||||
* Host Action Commands
|
||||
*
|
||||
* Define host streamer action commands in compliance with the standard.
|
||||
*
|
||||
* See https://reprap.org/wiki/G-code#Action_commands
|
||||
* Common commands ........ poweroff, pause, paused, resume, resumed, cancel
|
||||
* G29_RETRY_AND_RECOVER .. probe_rewipe, probe_failed
|
||||
*
|
||||
* Some features add reason codes to extend these commands.
|
||||
*
|
||||
* Host Prompt Support enables Marlin to use the host for user prompts so
|
||||
* filament runout and other processes can be managed from the host side.
|
||||
*/
|
||||
//#define ACTION_ON_KILL "poweroff"
|
||||
|
||||
/**
|
||||
* Specify an action command to send to the host on pause and resume.
|
||||
* Will be sent in the form '//action:ACTION_ON_PAUSE', e.g. '//action:pause'.
|
||||
* The host must be configured to handle the action command.
|
||||
*
|
||||
* PAUSE / RESUME : Used in non-parking scenarios where the host handles the
|
||||
* action while Marlin continues to process G-Code. (M24/M25)
|
||||
*
|
||||
* PAUSED / RESUMED : Used in scenarios where Marlin handles pause and filament-
|
||||
* change actions and the host needs to stop sending commands
|
||||
* until the machine is ready to resume. (M125/M600)
|
||||
*
|
||||
* CANCEL : Instructs the host to abort the print job. Used when the
|
||||
* print is canceled from the LCD menu.
|
||||
*/
|
||||
//#define ACTION_ON_PAUSE "pause"
|
||||
//#define ACTION_ON_RESUME "resume"
|
||||
//#define ACTION_ON_PAUSED "paused"
|
||||
//#define ACTION_ON_RESUMED "resumed"
|
||||
//#define ACTION_ON_CANCEL "cancel"
|
||||
//#define HOST_ACTION_COMMANDS
|
||||
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||
//#define HOST_PROMPT_SUPPORT
|
||||
#endif
|
||||
|
||||
//===========================================================================
|
||||
//====================== I2C Position Encoder Settings ======================
|
||||
|
Reference in New Issue
Block a user