Add HOST_PROMPT_SUPPORT (#13039)
This commit is contained in:
parent
0feeef2604
commit
7f1b69b0c8
189 changed files with 2076 additions and 3479 deletions
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1007,13 +1007,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2014,32 +2008,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -54,9 +54,7 @@ public:
|
||||||
emergency_parser.update(emergency_state, c);
|
emergency_parser.update(emergency_state, c);
|
||||||
return true; // do not discard character
|
return true; // do not discard character
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#if ENABLED(EMERGENCY_PARSER)
|
|
||||||
EmergencyParser::State emergency_state;
|
EmergencyParser::State emergency_state;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
|
@ -56,6 +56,10 @@
|
||||||
#include "gcode/parser.h"
|
#include "gcode/parser.h"
|
||||||
#include "gcode/queue.h"
|
#include "gcode/queue.h"
|
||||||
|
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
|
#include "feature/host_actions.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if HAS_BUZZER && DISABLED(LCD_USE_I2C_BUZZER)
|
#if HAS_BUZZER && DISABLED(LCD_USE_I2C_BUZZER)
|
||||||
#include "libs/buzzer.h"
|
#include "libs/buzzer.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -315,37 +319,98 @@ void disable_all_steppers() {
|
||||||
disable_e_steppers();
|
disable_e_steppers();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if HAS_ACTION_COMMANDS
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
||||||
|
|
||||||
void host_action(const char * const pstr, const bool eol=true) {
|
void event_filament_runout() {
|
||||||
SERIAL_ECHOPGM("//action:");
|
|
||||||
serialprintPGM(pstr);
|
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
||||||
if (eol) SERIAL_EOL();
|
if (did_pause_print) return; // Action already in progress. Purge triggered repeated runout.
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(EXTENSIBLE_UI)
|
||||||
|
ExtUI::onFilamentRunout(ExtUI::getActiveTool());
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const char tool = '0'
|
||||||
|
#if NUM_RUNOUT_SENSORS > 1
|
||||||
|
+ active_extruder
|
||||||
|
#endif
|
||||||
|
;
|
||||||
|
|
||||||
|
//action:out_of_filament
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_reason = PROMPT_FILAMENT_RUNOUT;
|
||||||
|
host_action_prompt_end();
|
||||||
|
host_action_prompt_begin(PSTR("FilamentRunout T"), false);
|
||||||
|
SERIAL_CHAR(tool);
|
||||||
|
SERIAL_EOL();
|
||||||
|
host_action_prompt_show();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
|
if (!runout.host_handling
|
||||||
|
&& ( strstr(FILAMENT_RUNOUT_SCRIPT, "M600")
|
||||||
|
|| strstr(FILAMENT_RUNOUT_SCRIPT, "M125")
|
||||||
|
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
||||||
|
|| strstr(FILAMENT_RUNOUT_SCRIPT, "M25")
|
||||||
|
#endif
|
||||||
|
)
|
||||||
|
) {
|
||||||
|
host_action_paused(false);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Legacy Repetier command for use until newer version supports standard dialog
|
||||||
|
// To be removed later when pause command also triggers dialog
|
||||||
|
#ifdef ACTION_ON_FILAMENT_RUNOUT
|
||||||
|
host_action(PSTR(ACTION_ON_FILAMENT_RUNOUT " T"), false);
|
||||||
|
SERIAL_CHAR(tool);
|
||||||
|
SERIAL_EOL();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
host_action_pause(false);
|
||||||
|
}
|
||||||
|
SERIAL_ECHOPGM(" " ACTION_REASON_ON_FILAMENT_RUNOUT " ");
|
||||||
|
SERIAL_CHAR(tool);
|
||||||
|
SERIAL_EOL();
|
||||||
|
|
||||||
|
#endif // HOST_ACTION_COMMANDS
|
||||||
|
|
||||||
|
if (!runout.host_handling)
|
||||||
|
enqueue_and_echo_commands_P(PSTR(FILAMENT_RUNOUT_SCRIPT));
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ACTION_ON_KILL
|
#endif // FILAMENT_RUNOUT_SENSOR
|
||||||
void host_action_kill() { host_action(PSTR(ACTION_ON_KILL)); }
|
|
||||||
#endif
|
|
||||||
#ifdef ACTION_ON_PAUSE
|
|
||||||
void host_action_pause() { host_action(PSTR(ACTION_ON_PAUSE)); }
|
|
||||||
#endif
|
|
||||||
#ifdef ACTION_ON_PAUSED
|
|
||||||
void host_action_paused() { host_action(PSTR(ACTION_ON_PAUSED)); }
|
|
||||||
#endif
|
|
||||||
#ifdef ACTION_ON_RESUME
|
|
||||||
void host_action_resume() { host_action(PSTR(ACTION_ON_RESUME)); }
|
|
||||||
#endif
|
|
||||||
#ifdef ACTION_ON_RESUMED
|
|
||||||
void host_action_resumed() { host_action(PSTR(ACTION_ON_RESUMED)); }
|
|
||||||
#endif
|
|
||||||
#ifdef ACTION_ON_CANCEL
|
|
||||||
void host_action_cancel() { host_action(PSTR(ACTION_ON_CANCEL)); }
|
|
||||||
#endif
|
|
||||||
#ifdef ACTION_ON_FILAMENT_RUNOUT
|
|
||||||
void host_action_filament_runout(const bool eol/*=true*/) { host_action(PSTR(ACTION_ON_FILAMENT_RUNOUT), eol); }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // HAS_ACTION_COMMANDS
|
#if ENABLED(G29_RETRY_AND_RECOVER)
|
||||||
|
|
||||||
|
void event_probe_failure() {
|
||||||
|
#ifdef G29_FAILURE_COMMANDS
|
||||||
|
process_subcommands_now_P(PSTR(G29_FAILURE_COMMANDS));
|
||||||
|
#endif
|
||||||
|
#ifdef ACTION_ON_G29_FAILURE
|
||||||
|
host_action(PSTR(ACTION_ON_G29_FAILURE)); }
|
||||||
|
#endif
|
||||||
|
#if ENABLED(G29_HALT_ON_FAILURE)
|
||||||
|
#ifdef ACTION_ON_CANCEL
|
||||||
|
host_action_cancel();
|
||||||
|
#endif
|
||||||
|
kill(PSTR(MSG_ERR_PROBING_FAILED));
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
void event_probe_recover() {
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_do(PROMPT_INFO, PSTR("G29 Retrying"));
|
||||||
|
#endif
|
||||||
|
#ifdef G29_RECOVER_COMMANDS
|
||||||
|
process_subcommands_now_P(PSTR(G29_RECOVER_COMMANDS));
|
||||||
|
#endif
|
||||||
|
#ifdef ACTION_ON_G29_RECOVER
|
||||||
|
host_action(PSTR(ACTION_ON_G29_RECOVER));
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Manage several activities:
|
* Manage several activities:
|
||||||
|
|
|
@ -370,26 +370,11 @@ void protected_pin_err();
|
||||||
inline void suicide() { OUT_WRITE(SUICIDE_PIN, LOW); }
|
inline void suicide() { OUT_WRITE(SUICIDE_PIN, LOW); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAS_ACTION_COMMANDS
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
||||||
#ifdef ACTION_ON_KILL
|
void event_filament_runout();
|
||||||
void host_action_kill();
|
#endif
|
||||||
#endif
|
|
||||||
#ifdef ACTION_ON_PAUSE
|
#if ENABLED(G29_RETRY_AND_RECOVER)
|
||||||
void host_action_pause();
|
void event_probe_recover();
|
||||||
#endif
|
void event_probe_failure();
|
||||||
#ifdef ACTION_ON_PAUSED
|
|
||||||
void host_action_paused();
|
|
||||||
#endif
|
|
||||||
#ifdef ACTION_ON_RESUME
|
|
||||||
void host_action_resume();
|
|
||||||
#endif
|
|
||||||
#ifdef ACTION_ON_RESUMED
|
|
||||||
void host_action_resumed();
|
|
||||||
#endif
|
|
||||||
#ifdef ACTION_ON_CANCEL
|
|
||||||
void host_action_cancel();
|
|
||||||
#endif
|
|
||||||
#ifdef ACTION_ON_FILAMENT_RUNOUT
|
|
||||||
void host_action_filament_runout(const bool eol=true);
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1007,13 +1007,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2014,32 +2008,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1039,20 +1039,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1007,13 +1007,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2016,32 +2010,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1053,20 +1053,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1147,20 +1147,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1005,13 +1005,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2012,32 +2006,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1046,20 +1046,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1043,20 +1043,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1007,13 +1007,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1034,20 +1034,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1011,13 +1011,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2018,32 +2012,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1005,13 +1005,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2012,32 +2006,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1021,20 +1021,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
|
#define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
|
|
||||||
// Set one or more commands to run on filament runout.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1014,13 +1014,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2021,32 +2015,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1021,20 +1021,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1032,20 +1032,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1043,20 +1043,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2016,32 +2010,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1034,20 +1034,10 @@
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins.
|
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins.
|
||||||
#define FIL_RUNOUT_PIN 2 // Creality CR10-S stock sensor
|
#define FIL_RUNOUT_PIN 2 // Creality CR10-S stock sensor
|
||||||
|
|
||||||
// Set one or more commands to run on filament runout.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1052,20 +1052,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1043,20 +1043,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1037,20 +1037,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1037,20 +1037,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1043,20 +1043,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1043,20 +1043,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1015,20 +1015,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1015,20 +1015,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1026,20 +1026,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1005,13 +1005,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2012,32 +2006,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1039,20 +1039,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1131,20 +1131,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1008,13 +1008,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2017,32 +2011,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1063,20 +1063,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1011,13 +1011,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2018,32 +2012,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1058,20 +1058,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1011,13 +1011,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1018,20 +1018,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1007,13 +1007,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2014,32 +2008,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1018,20 +1018,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1007,13 +1007,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2014,32 +2008,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1048,20 +1048,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1040,20 +1040,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1007,13 +1007,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -1999,32 +1993,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1049,20 +1049,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1048,20 +1048,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1037,20 +1037,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1045,20 +1045,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1053,20 +1053,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1057,20 +1057,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1032,20 +1032,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1037,20 +1037,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1037,20 +1037,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1034,20 +1034,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1007,13 +1007,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2014,32 +2008,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1014,13 +1014,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2021,32 +2015,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1007,13 +1007,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2014,32 +2008,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1082,20 +1082,10 @@ Black rubber belt(MXL), 18 - tooth aluminium pulley : 87.489 step per mm (Huxley
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1031,20 +1031,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1046,20 +1046,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1035,20 +1035,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1064,20 +1064,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1089,20 +1089,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1037,20 +1037,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1032,20 +1032,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1044,20 +1044,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1007,13 +1007,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2014,32 +2008,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1042,20 +1042,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1007,13 +1007,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2014,32 +2008,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1063,20 +1063,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1019,13 +1019,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2026,32 +2020,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1052,20 +1052,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1007,13 +1007,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2014,32 +2008,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1043,20 +1043,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1008,13 +1008,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2015,32 +2009,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1033,20 +1033,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1221,20 +1221,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1008,13 +1008,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2015,32 +2009,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1161,20 +1161,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1008,13 +1008,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2015,32 +2009,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1160,20 +1160,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1008,13 +1008,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2015,32 +2009,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1160,20 +1160,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1008,13 +1008,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2015,32 +2009,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1151,20 +1151,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1009,13 +1009,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2016,32 +2010,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1163,20 +1163,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1148,20 +1148,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1008,13 +1008,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2015,32 +2009,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1152,20 +1152,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1008,13 +1008,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2003,32 +1997,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1148,20 +1148,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1008,13 +1008,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2015,32 +2009,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1150,20 +1150,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1007,13 +1007,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2014,32 +2008,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1151,20 +1151,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1151,20 +1151,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1008,13 +1008,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2015,32 +2009,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1047,20 +1047,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1036,20 +1036,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1035,20 +1035,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1028,20 +1028,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// 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_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2013,32 +2007,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -1038,20 +1038,10 @@
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown 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.
|
// Set one or more commands to execute on filament runout.
|
||||||
// - Always applies to SD-card printing.
|
// (After 'M412 H' Marlin will ask the host to handle the process.)
|
||||||
// - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
|
|
||||||
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
#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
|
// After a runout is detected, continue printing this length of filament
|
||||||
// before executing the runout script. Useful for a sensor at the end of
|
// 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.
|
// a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
|
||||||
|
|
|
@ -1007,13 +1007,7 @@
|
||||||
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
#define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
|
||||||
#define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
|
#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"
|
#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
|
#endif
|
||||||
|
|
||||||
// @section extras
|
// @section extras
|
||||||
|
@ -2014,32 +2008,23 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify an action command to send to the host when the printer is killed.
|
* Host Action Commands
|
||||||
* Will be sent in the form '//action:ACTION_ON_KILL', e.g. '//action:poweroff'.
|
*
|
||||||
* The host must be configured to handle the action command.
|
* 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"
|
//#define HOST_ACTION_COMMANDS
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
/**
|
//#define HOST_PROMPT_SUPPORT
|
||||||
* Specify an action command to send to the host on pause and resume.
|
#endif
|
||||||
* 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"
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//====================== I2C Position Encoder Settings ======================
|
//====================== I2C Position Encoder Settings ======================
|
||||||
|
|
|
@ -34,6 +34,10 @@
|
||||||
bool EmergencyParser::killed_by_M112, // = false
|
bool EmergencyParser::killed_by_M112, // = false
|
||||||
EmergencyParser::enabled;
|
EmergencyParser::enabled;
|
||||||
|
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
uint8_t EmergencyParser::M876_reason; // = 0
|
||||||
|
#endif
|
||||||
|
|
||||||
// Global instance
|
// Global instance
|
||||||
EmergencyParser emergency_parser;
|
EmergencyParser emergency_parser;
|
||||||
|
|
||||||
|
|
|
@ -27,15 +27,20 @@
|
||||||
|
|
||||||
#define FORCE_INLINE __attribute__((always_inline)) inline
|
#define FORCE_INLINE __attribute__((always_inline)) inline
|
||||||
|
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
#include "host_actions.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// External references
|
// External references
|
||||||
extern volatile bool wait_for_user, wait_for_heatup;
|
extern volatile bool wait_for_user, wait_for_heatup;
|
||||||
void quickstop_stepper();
|
void quickstop_stepper();
|
||||||
|
void host_response_handler(const uint8_t response);
|
||||||
|
|
||||||
class EmergencyParser {
|
class EmergencyParser {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Currently looking for: M108, M112, M410
|
// Currently looking for: M108, M112, M410, M876
|
||||||
enum State : char {
|
enum State : char {
|
||||||
EP_RESET,
|
EP_RESET,
|
||||||
EP_N,
|
EP_N,
|
||||||
|
@ -48,11 +53,22 @@ public:
|
||||||
EP_M4,
|
EP_M4,
|
||||||
EP_M41,
|
EP_M41,
|
||||||
EP_M410,
|
EP_M410,
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
EP_M8,
|
||||||
|
EP_M87,
|
||||||
|
EP_M876,
|
||||||
|
EP_M876S,
|
||||||
|
EP_M876SN,
|
||||||
|
#endif
|
||||||
EP_IGNORE // to '\n'
|
EP_IGNORE // to '\n'
|
||||||
};
|
};
|
||||||
|
|
||||||
static bool killed_by_M112;
|
static bool killed_by_M112;
|
||||||
|
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
static uint8_t M876_reason;
|
||||||
|
#endif
|
||||||
|
|
||||||
EmergencyParser() { enable(); }
|
EmergencyParser() { enable(); }
|
||||||
|
|
||||||
FORCE_INLINE static void enable() { enabled = true; }
|
FORCE_INLINE static void enable() { enabled = true; }
|
||||||
|
@ -86,6 +102,9 @@ public:
|
||||||
case ' ': break;
|
case ' ': break;
|
||||||
case '1': state = EP_M1; break;
|
case '1': state = EP_M1; break;
|
||||||
case '4': state = EP_M4; break;
|
case '4': state = EP_M4; break;
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
case '8': state = EP_M8; break;
|
||||||
|
#endif
|
||||||
default: state = EP_IGNORE;
|
default: state = EP_IGNORE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -114,6 +133,37 @@ public:
|
||||||
state = (c == '0') ? EP_M410 : EP_IGNORE;
|
state = (c == '0') ? EP_M410 : EP_IGNORE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
case EP_M8:
|
||||||
|
state = (c == '7') ? EP_M87 : EP_IGNORE;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case EP_M87:
|
||||||
|
state = (c == '6') ? EP_M876 : EP_IGNORE;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case EP_M876:
|
||||||
|
switch(c) {
|
||||||
|
case ' ': break;
|
||||||
|
case 'S': state = EP_M876S; break;
|
||||||
|
default: state = EP_IGNORE; break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case EP_M876S:
|
||||||
|
switch (c) {
|
||||||
|
case ' ': break;
|
||||||
|
case '0': case '1': case '2':
|
||||||
|
case '3': case '4': case '5':
|
||||||
|
case '6': case '7': case '8':
|
||||||
|
case '9':
|
||||||
|
state = EP_M876SN;
|
||||||
|
M876_reason = (uint8_t)(c - '0');
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
case EP_IGNORE:
|
case EP_IGNORE:
|
||||||
if (c == '\n') state = EP_RESET;
|
if (c == '\n') state = EP_RESET;
|
||||||
break;
|
break;
|
||||||
|
@ -124,6 +174,9 @@ public:
|
||||||
case EP_M108: wait_for_user = wait_for_heatup = false; break;
|
case EP_M108: wait_for_user = wait_for_heatup = false; break;
|
||||||
case EP_M112: killed_by_M112 = true; break;
|
case EP_M112: killed_by_M112 = true; break;
|
||||||
case EP_M410: quickstop_stepper(); break;
|
case EP_M410: quickstop_stepper(); break;
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
case EP_M876SN: host_response_handler(M876_reason); break;
|
||||||
|
#endif
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
state = EP_RESET;
|
state = EP_RESET;
|
||||||
|
|
157
Marlin/src/feature/host_actions.cpp
Normal file
157
Marlin/src/feature/host_actions.cpp
Normal file
|
@ -0,0 +1,157 @@
|
||||||
|
/**
|
||||||
|
* Marlin 3D Printer Firmware
|
||||||
|
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||||
|
*
|
||||||
|
* Based on Sprinter and grbl.
|
||||||
|
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "../inc/MarlinConfig.h"
|
||||||
|
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
|
|
||||||
|
#include "host_actions.h"
|
||||||
|
|
||||||
|
//#define DEBUG_HOST_ACTIONS
|
||||||
|
|
||||||
|
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
||||||
|
#include "pause.h"
|
||||||
|
#include "../gcode/queue.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
||||||
|
#include "runout.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern volatile bool wait_for_user;
|
||||||
|
|
||||||
|
void host_action(const char * const pstr, const bool eol) {
|
||||||
|
SERIAL_ECHOPGM("//action:");
|
||||||
|
serialprintPGM(pstr);
|
||||||
|
if (eol) SERIAL_EOL();
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef ACTION_ON_KILL
|
||||||
|
void host_action_kill() { host_action(PSTR(ACTION_ON_KILL)); }
|
||||||
|
#endif
|
||||||
|
#ifdef ACTION_ON_PAUSE
|
||||||
|
void host_action_pause(const bool eol/*=true*/) { host_action(PSTR(ACTION_ON_PAUSE), eol); }
|
||||||
|
#endif
|
||||||
|
#ifdef ACTION_ON_PAUSED
|
||||||
|
void host_action_paused(const bool eol/*=true*/) { host_action(PSTR(ACTION_ON_PAUSED), eol); }
|
||||||
|
#endif
|
||||||
|
#ifdef ACTION_ON_RESUME
|
||||||
|
void host_action_resume() { host_action(PSTR(ACTION_ON_RESUME)); }
|
||||||
|
#endif
|
||||||
|
#ifdef ACTION_ON_RESUMED
|
||||||
|
void host_action_resumed() { host_action(PSTR(ACTION_ON_RESUMED)); }
|
||||||
|
#endif
|
||||||
|
#ifdef ACTION_ON_CANCEL
|
||||||
|
void host_action_cancel() { host_action(PSTR(ACTION_ON_CANCEL)); }
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
|
||||||
|
PromptReason host_prompt_reason = PROMPT_NOT_DEFINED;
|
||||||
|
|
||||||
|
void host_action_prompt(const char * const ptype, const bool eol=true) {
|
||||||
|
host_action(PSTR("prompt_"), false);
|
||||||
|
serialprintPGM(ptype);
|
||||||
|
if (eol) SERIAL_EOL();
|
||||||
|
}
|
||||||
|
|
||||||
|
void host_action_prompt_plus(const char * const ptype, const char * const pstr, const bool eol=true) {
|
||||||
|
host_action_prompt(ptype, false);
|
||||||
|
SERIAL_CHAR(' ');
|
||||||
|
serialprintPGM(pstr);
|
||||||
|
if (eol) SERIAL_EOL();
|
||||||
|
}
|
||||||
|
void host_action_prompt_begin(const char * const pstr, const bool eol/*=true*/) { host_action_prompt_plus(PSTR("begin"), pstr, eol); }
|
||||||
|
void host_action_prompt_button(const char * const pstr) { host_action_prompt_plus(PSTR("button"), pstr); }
|
||||||
|
void host_action_prompt_end() { host_action_prompt(PSTR("end")); }
|
||||||
|
void host_action_prompt_show() { host_action_prompt(PSTR("show")); }
|
||||||
|
void host_prompt_do(const PromptReason reason, const char * const pstr, const char * const pbtn/*=NULL*/) {
|
||||||
|
host_prompt_reason = reason;
|
||||||
|
host_action_prompt_end();
|
||||||
|
host_action_prompt_begin(pstr);
|
||||||
|
if (pbtn) host_action_prompt_button(pbtn);
|
||||||
|
host_action_prompt_show();
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void say_m876_response(const char * const pstr) {
|
||||||
|
SERIAL_ECHOPGM("M876 Responding PROMPT_");
|
||||||
|
serialprintPGM(pstr);
|
||||||
|
SERIAL_EOL();
|
||||||
|
}
|
||||||
|
|
||||||
|
void host_response_handler(const uint8_t response) {
|
||||||
|
#ifdef DEBUG_HOST_ACTIONS
|
||||||
|
SERIAL_ECHOLNPAIR("M86 Handle Reason: ", host_prompt_reason);
|
||||||
|
SERIAL_ECHOLNPAIR("M86 Handle Response: ", response);
|
||||||
|
#endif
|
||||||
|
const char *msg = PSTR("UNKNOWN STATE");
|
||||||
|
const PromptReason hpr = host_prompt_reason;
|
||||||
|
host_prompt_reason = PROMPT_NOT_DEFINED;
|
||||||
|
switch (hpr) {
|
||||||
|
case PROMPT_FILAMENT_RUNOUT:
|
||||||
|
msg = PSTR("FILAMENT_RUNOUT");
|
||||||
|
if (response == 0) {
|
||||||
|
advanced_pause_menu_response = ADVANCED_PAUSE_RESPONSE_EXTRUDE_MORE;
|
||||||
|
host_action_prompt_end(); // Close current prompt
|
||||||
|
host_action_prompt_begin(PSTR("Paused"));
|
||||||
|
host_action_prompt_button(PSTR("Purge More"));
|
||||||
|
if (false
|
||||||
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
||||||
|
|| runout.filament_ran_out
|
||||||
|
#endif
|
||||||
|
)
|
||||||
|
host_action_prompt_button(PSTR("DisableRunout"));
|
||||||
|
else {
|
||||||
|
host_prompt_reason = PROMPT_FILAMENT_RUNOUT;
|
||||||
|
host_action_prompt_button(PSTR("Continue"));
|
||||||
|
}
|
||||||
|
host_action_prompt_show();
|
||||||
|
}
|
||||||
|
else if (response == 1) {
|
||||||
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
||||||
|
if (runout.filament_ran_out) {
|
||||||
|
runout.enabled = false;
|
||||||
|
runout.reset();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
advanced_pause_menu_response = ADVANCED_PAUSE_RESPONSE_RESUME_PRINT;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case PROMPT_USER_CONTINUE:
|
||||||
|
msg = PSTR("FILAMENT_RUNOUT_CONTINUE");
|
||||||
|
wait_for_user = false;
|
||||||
|
break;
|
||||||
|
case PROMPT_PAUSE_RESUME:
|
||||||
|
msg = PSTR("LCD_PAUSE_RESUME");
|
||||||
|
enqueue_and_echo_commands_P(PSTR("M24"));
|
||||||
|
break;
|
||||||
|
case PROMPT_INFO:
|
||||||
|
msg = PSTR("GCODE_INFO");
|
||||||
|
break;
|
||||||
|
default: break;
|
||||||
|
}
|
||||||
|
say_m876_response(msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // HOST_PROMPT_SUPPORT
|
||||||
|
|
||||||
|
#endif // HOST_ACTION_COMMANDS
|
70
Marlin/src/feature/host_actions.h
Normal file
70
Marlin/src/feature/host_actions.h
Normal file
|
@ -0,0 +1,70 @@
|
||||||
|
/**
|
||||||
|
* Marlin 3D Printer Firmware
|
||||||
|
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||||
|
*
|
||||||
|
* Based on Sprinter and grbl.
|
||||||
|
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "../inc/MarlinConfig.h"
|
||||||
|
|
||||||
|
void host_action(const char * const pstr, const bool eol=true);
|
||||||
|
|
||||||
|
#ifdef ACTION_ON_KILL
|
||||||
|
void host_action_kill();
|
||||||
|
#endif
|
||||||
|
#ifdef ACTION_ON_PAUSE
|
||||||
|
void host_action_pause(const bool eol=true);
|
||||||
|
#endif
|
||||||
|
#ifdef ACTION_ON_PAUSED
|
||||||
|
void host_action_paused(const bool eol=true);
|
||||||
|
#endif
|
||||||
|
#ifdef ACTION_ON_RESUME
|
||||||
|
void host_action_resume();
|
||||||
|
#endif
|
||||||
|
#ifdef ACTION_ON_RESUMED
|
||||||
|
void host_action_resumed();
|
||||||
|
#endif
|
||||||
|
#ifdef ACTION_ON_CANCEL
|
||||||
|
void host_action_cancel();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
|
||||||
|
enum PromptReason : uint8_t {
|
||||||
|
PROMPT_NOT_DEFINED,
|
||||||
|
PROMPT_FILAMENT_RUNOUT,
|
||||||
|
PROMPT_USER_CONTINUE,
|
||||||
|
PROMPT_FILAMENT_RUNOUT_REHEAT,
|
||||||
|
PROMPT_PAUSE_RESUME,
|
||||||
|
PROMPT_INFO
|
||||||
|
};
|
||||||
|
|
||||||
|
extern PromptReason host_prompt_reason;
|
||||||
|
|
||||||
|
void host_response_handler(const uint8_t response);
|
||||||
|
void host_action_prompt_begin(const char * const pstr, const bool eol=true);
|
||||||
|
void host_action_prompt_button(const char * const pstr);
|
||||||
|
void host_action_prompt_end();
|
||||||
|
void host_action_prompt_show();
|
||||||
|
void host_prompt_do(const PromptReason type, const char * const pstr, const char * const pbtn=NULL);
|
||||||
|
inline void host_prompt_open(const PromptReason reason, const char * const pstr, const char * const pbtn=NULL) {
|
||||||
|
if (host_prompt_reason == PROMPT_NOT_DEFINED) host_prompt_do(reason, pstr, pbtn);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
|
@ -45,6 +45,10 @@
|
||||||
#include "runout.h"
|
#include "runout.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
|
#include "host_actions.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../lcd/ultralcd.h"
|
#include "../lcd/ultralcd.h"
|
||||||
#include "../libs/buzzer.h"
|
#include "../libs/buzzer.h"
|
||||||
#include "../libs/nozzle.h"
|
#include "../libs/nozzle.h"
|
||||||
|
@ -154,6 +158,20 @@ bool load_filament(const float &slow_load_length/*=0*/, const float &fast_load_l
|
||||||
|
|
||||||
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
||||||
wait_for_user = true; // LCD click or M108 will clear this
|
wait_for_user = true; // LCD click or M108 will clear this
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
const char tool = '0'
|
||||||
|
#if NUM_RUNOUT_SENSORS > 1
|
||||||
|
+ active_extruder
|
||||||
|
#endif
|
||||||
|
;
|
||||||
|
host_prompt_reason = PROMPT_USER_CONTINUE;
|
||||||
|
host_action_prompt_end();
|
||||||
|
host_action_prompt_begin(PSTR("Load Filament T"), false);
|
||||||
|
SERIAL_CHAR(tool);
|
||||||
|
SERIAL_EOL();
|
||||||
|
host_action_prompt_button(PSTR("Continue"));
|
||||||
|
host_action_prompt_show();
|
||||||
|
#endif
|
||||||
while (wait_for_user) {
|
while (wait_for_user) {
|
||||||
#if HAS_BUZZER
|
#if HAS_BUZZER
|
||||||
filament_change_beep(max_beep_count);
|
filament_change_beep(max_beep_count);
|
||||||
|
@ -206,6 +224,9 @@ bool load_filament(const float &slow_load_length/*=0*/, const float &fast_load_l
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
wait_for_user = true;
|
wait_for_user = true;
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_do(PROMPT_USER_CONTINUE, PSTR("Continuous Purge Running..."), PSTR("Continue"));
|
||||||
|
#endif
|
||||||
for (float purge_count = purge_length; purge_count > 0 && wait_for_user; --purge_count)
|
for (float purge_count = purge_length; purge_count > 0 && wait_for_user; --purge_count)
|
||||||
do_pause_e_move(1, ADVANCED_PAUSE_PURGE_FEEDRATE);
|
do_pause_e_move(1, ADVANCED_PAUSE_PURGE_FEEDRATE);
|
||||||
wait_for_user = false;
|
wait_for_user = false;
|
||||||
|
@ -224,6 +245,24 @@ bool load_filament(const float &slow_load_length/*=0*/, const float &fast_load_l
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show "Purge More" / "Resume" menu and wait for reply
|
// Show "Purge More" / "Resume" menu and wait for reply
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_reason = PROMPT_FILAMENT_RUNOUT;
|
||||||
|
host_action_prompt_end(); // Close current prompt
|
||||||
|
host_action_prompt_begin(PSTR("Paused"));
|
||||||
|
host_action_prompt_button(PSTR("PurgeMore"));
|
||||||
|
if (false
|
||||||
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
||||||
|
|| runout.filament_ran_out
|
||||||
|
#endif
|
||||||
|
)
|
||||||
|
host_action_prompt_button(PSTR("DisableRunout"));
|
||||||
|
else {
|
||||||
|
host_prompt_reason = PROMPT_FILAMENT_RUNOUT;
|
||||||
|
host_action_prompt_button(PSTR("Continue"));
|
||||||
|
}
|
||||||
|
host_action_prompt_show();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if HAS_LCD_MENU
|
#if HAS_LCD_MENU
|
||||||
if (show_lcd) {
|
if (show_lcd) {
|
||||||
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
||||||
|
@ -324,11 +363,16 @@ bool pause_print(const float &retract, const point_t &park_point, const float &u
|
||||||
|
|
||||||
if (did_pause_print) return false; // already paused
|
if (did_pause_print) return false; // already paused
|
||||||
|
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
#ifdef ACTION_ON_PAUSED
|
#ifdef ACTION_ON_PAUSED
|
||||||
host_action_paused();
|
host_action_paused();
|
||||||
#elif defined(ACTION_ON_PAUSE)
|
#elif defined(ACTION_ON_PAUSE)
|
||||||
host_action_pause();
|
host_action_pause();
|
||||||
#endif
|
#endif
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_open(PROMPT_INFO, PSTR("Pause"));
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!DEBUGGING(DRYRUN) && unload_length && thermalManager.targetTooColdToExtrude(active_extruder)) {
|
if (!DEBUGGING(DRYRUN) && unload_length && thermalManager.targetTooColdToExtrude(active_extruder)) {
|
||||||
SERIAL_ECHO_MSG(MSG_ERR_HOTEND_TOO_COLD);
|
SERIAL_ECHO_MSG(MSG_ERR_HOTEND_TOO_COLD);
|
||||||
|
@ -445,7 +489,9 @@ void wait_for_confirmation(const bool is_reload/*=false*/, const int8_t max_beep
|
||||||
// Wait for filament insert by user and press button
|
// Wait for filament insert by user and press button
|
||||||
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
||||||
wait_for_user = true; // LCD click or M108 will clear this
|
wait_for_user = true; // LCD click or M108 will clear this
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_do(PROMPT_USER_CONTINUE, PSTR("Nozzle Parked"), PSTR("Continue"));
|
||||||
|
#endif
|
||||||
while (wait_for_user) {
|
while (wait_for_user) {
|
||||||
#if HAS_BUZZER
|
#if HAS_BUZZER
|
||||||
filament_change_beep(max_beep_count);
|
filament_change_beep(max_beep_count);
|
||||||
|
@ -463,9 +509,17 @@ void wait_for_confirmation(const bool is_reload/*=false*/, const int8_t max_beep
|
||||||
#endif
|
#endif
|
||||||
SERIAL_ECHO_MSG(_PMSG(MSG_FILAMENT_CHANGE_HEAT));
|
SERIAL_ECHO_MSG(_PMSG(MSG_FILAMENT_CHANGE_HEAT));
|
||||||
|
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_do(PROMPT_USER_CONTINUE, PSTR("HeaterTimeout"), PSTR("Reheat"));
|
||||||
|
#endif
|
||||||
|
|
||||||
// Wait for LCD click or M108
|
// Wait for LCD click or M108
|
||||||
while (wait_for_user) idle(true);
|
while (wait_for_user) idle(true);
|
||||||
|
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_do(PROMPT_USER_CONTINUE, PSTR("Reheating"));
|
||||||
|
#endif
|
||||||
|
|
||||||
// Re-enable the heaters if they timed out
|
// Re-enable the heaters if they timed out
|
||||||
HOTEND_LOOP() thermalManager.reset_heater_idle_timer(e);
|
HOTEND_LOOP() thermalManager.reset_heater_idle_timer(e);
|
||||||
|
|
||||||
|
@ -480,7 +534,9 @@ void wait_for_confirmation(const bool is_reload/*=false*/, const int8_t max_beep
|
||||||
|
|
||||||
HOTEND_LOOP()
|
HOTEND_LOOP()
|
||||||
thermalManager.start_heater_idle_timer(e, nozzle_timeout);
|
thermalManager.start_heater_idle_timer(e, nozzle_timeout);
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_do(PROMPT_USER_CONTINUE, PSTR("Reheat Done"), PSTR("Continue"));
|
||||||
|
#endif
|
||||||
wait_for_user = true;
|
wait_for_user = true;
|
||||||
nozzle_timed_out = false;
|
nozzle_timed_out = false;
|
||||||
|
|
||||||
|
@ -578,6 +634,10 @@ void resume_print(const float &slow_load_length/*=0*/, const float &fast_load_le
|
||||||
|
|
||||||
--did_pause_print;
|
--did_pause_print;
|
||||||
|
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_open(PROMPT_INFO, PSTR("Resume"));
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ENABLED(SDSUPPORT)
|
#if ENABLED(SDSUPPORT)
|
||||||
if (did_pause_print) {
|
if (did_pause_print) {
|
||||||
card.startFileprint();
|
card.startFileprint();
|
||||||
|
|
|
@ -38,6 +38,10 @@ MMU2 mmu2;
|
||||||
#include "../../module/stepper_indirection.h"
|
#include "../../module/stepper_indirection.h"
|
||||||
#include "../../Marlin.h"
|
#include "../../Marlin.h"
|
||||||
|
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
#include "../../feature/host_actions.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MMU_TODELAY 100
|
#define MMU_TODELAY 100
|
||||||
#define MMU_TIMEOUT 10
|
#define MMU_TIMEOUT 10
|
||||||
#define MMU_CMD_TIMEOUT 60000ul //5min timeout for mmu commands (except P0)
|
#define MMU_CMD_TIMEOUT 60000ul //5min timeout for mmu commands (except P0)
|
||||||
|
@ -791,6 +795,9 @@ void MMU2::filamentRunout() {
|
||||||
LCD_MESSAGEPGM(MSG_MMU2_EJECT_RECOVER);
|
LCD_MESSAGEPGM(MSG_MMU2_EJECT_RECOVER);
|
||||||
BUZZ(200, 404);
|
BUZZ(200, 404);
|
||||||
wait_for_user = true;
|
wait_for_user = true;
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_do(PROMPT_USER_CONTINUE, PSTR("MMU2 Eject Recover"), PSTR("Continue"));
|
||||||
|
#endif
|
||||||
while (wait_for_user) idle();
|
while (wait_for_user) idle();
|
||||||
BUZZ(200, 404);
|
BUZZ(200, 404);
|
||||||
BUZZ(200, 404);
|
BUZZ(200, 404);
|
||||||
|
|
|
@ -35,6 +35,10 @@ FilamentMonitor runout;
|
||||||
bool FilamentMonitorBase::enabled = true,
|
bool FilamentMonitorBase::enabled = true,
|
||||||
FilamentMonitorBase::filament_ran_out; // = false
|
FilamentMonitorBase::filament_ran_out; // = false
|
||||||
|
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
|
bool FilamentMonitorBase::host_handling; // = false
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called by FilamentSensorSwitch::run when filament is detected.
|
* Called by FilamentSensorSwitch::run when filament is detected.
|
||||||
* Called by FilamentSensorEncoder::block_completed when motion is detected.
|
* Called by FilamentSensorEncoder::block_completed when motion is detected.
|
||||||
|
|
|
@ -36,12 +36,21 @@
|
||||||
#include "../lcd/extensible_ui/ui_api.h"
|
#include "../lcd/extensible_ui/ui_api.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
||||||
|
#include "pause.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
//#define FILAMENT_RUNOUT_SENSOR_DEBUG
|
//#define FILAMENT_RUNOUT_SENSOR_DEBUG
|
||||||
|
|
||||||
class FilamentMonitorBase {
|
class FilamentMonitorBase {
|
||||||
public:
|
public:
|
||||||
static bool enabled;
|
static bool enabled, filament_ran_out;
|
||||||
static bool filament_ran_out;
|
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
|
static bool host_handling;
|
||||||
|
#else
|
||||||
|
constexpr static bool host_handling = false;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class RESPONSE_T, class SENSOR_T>
|
template<class RESPONSE_T, class SENSOR_T>
|
||||||
|
@ -80,7 +89,7 @@ class TFilamentMonitor : public FilamentMonitorBase {
|
||||||
|
|
||||||
// Give the response a chance to update its counter.
|
// Give the response a chance to update its counter.
|
||||||
static inline void run() {
|
static inline void run() {
|
||||||
if (enabled && !filament_ran_out && (IS_SD_PRINTING() || print_job_timer.isRunning())) {
|
if (enabled && !filament_ran_out && (IS_SD_PRINTING() || print_job_timer.isRunning() || did_pause_print)) {
|
||||||
#if FILAMENT_RUNOUT_DISTANCE_MM > 0
|
#if FILAMENT_RUNOUT_DISTANCE_MM > 0
|
||||||
cli(); // Prevent RunoutResponseDelayed::block_completed from accumulating here
|
cli(); // Prevent RunoutResponseDelayed::block_completed from accumulating here
|
||||||
#endif
|
#endif
|
||||||
|
@ -92,24 +101,7 @@ class TFilamentMonitor : public FilamentMonitorBase {
|
||||||
#endif
|
#endif
|
||||||
if (ran_out) {
|
if (ran_out) {
|
||||||
filament_ran_out = true;
|
filament_ran_out = true;
|
||||||
#if ENABLED(EXTENSIBLE_UI)
|
event_filament_runout();
|
||||||
ExtUI::onFilamentRunout(ExtUI::getActiveTool());
|
|
||||||
#endif
|
|
||||||
#ifdef ACTION_ON_FILAMENT_RUNOUT
|
|
||||||
#if NUM_RUNOUT_SENSORS > 1
|
|
||||||
host_action_filament_runout(false);
|
|
||||||
SERIAL_CHAR(' ');
|
|
||||||
SERIAL_ECHOLN(int(active_extruder));
|
|
||||||
#else
|
|
||||||
host_action_filament_runout();
|
|
||||||
#endif
|
|
||||||
if (!IS_SD_PRINTING())
|
|
||||||
reset();
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
enqueue_and_echo_commands_P(PSTR(FILAMENT_RUNOUT_SCRIPT));
|
|
||||||
}
|
|
||||||
planner.synchronize();
|
planner.synchronize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -317,7 +309,11 @@ class FilamentSensorBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void block_completed(const block_t* const b) {
|
static inline void block_completed(const block_t* const b) {
|
||||||
if (b->steps[X_AXIS] || b->steps[Y_AXIS] || b->steps[Z_AXIS]) {
|
if (b->steps[X_AXIS] || b->steps[Y_AXIS] || b->steps[Z_AXIS]
|
||||||
|
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
||||||
|
|| did_pause_print // Allow pause purge move to re-trigger runout state
|
||||||
|
#endif
|
||||||
|
) {
|
||||||
// Only trigger on extrusion with XYZ movement to allow filament change and retract/recover.
|
// Only trigger on extrusion with XYZ movement to allow filament change and retract/recover.
|
||||||
const uint8_t e = b->extruder;
|
const uint8_t e = b->extruder;
|
||||||
const int32_t steps = b->steps[E_AXIS];
|
const int32_t steps = b->steps[E_AXIS];
|
||||||
|
|
|
@ -34,6 +34,10 @@
|
||||||
#include "../../module/servo.h"
|
#include "../../module/servo.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
#include "../../feature/host_actions.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
inline void toggle_pins() {
|
inline void toggle_pins() {
|
||||||
const bool ignore_protection = parser.boolval('I');
|
const bool ignore_protection = parser.boolval('I');
|
||||||
const int repeat = parser.intval('R', 1),
|
const int repeat = parser.intval('R', 1),
|
||||||
|
@ -286,6 +290,9 @@ void GcodeSuite::M43() {
|
||||||
|
|
||||||
#if HAS_RESUME_CONTINUE
|
#if HAS_RESUME_CONTINUE
|
||||||
wait_for_user = true;
|
wait_for_user = true;
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_do(PROMPT_USER_CONTINUE, PSTR("M43 Wait Called"), PSTR("Continue"));
|
||||||
|
#endif
|
||||||
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -31,9 +31,17 @@
|
||||||
* M412: Enable / Disable filament runout detection
|
* M412: Enable / Disable filament runout detection
|
||||||
*/
|
*/
|
||||||
void GcodeSuite::M412() {
|
void GcodeSuite::M412() {
|
||||||
if (parser.seen('S')) {
|
if (parser.seen("HS"
|
||||||
runout.reset();
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
runout.enabled = parser.value_bool();
|
"R"
|
||||||
|
#endif
|
||||||
|
)) {
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
|
if (parser.seen('H')) runout.host_handling = parser.value_bool();
|
||||||
|
#endif
|
||||||
|
const bool seenR = parser.seen('R'), seenS = parser.seen('S');
|
||||||
|
if (seenR || seenS) runout.reset();
|
||||||
|
if (seenS) runout.enabled = parser.value_bool();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
SERIAL_ECHO_START();
|
SERIAL_ECHO_START();
|
||||||
|
|
|
@ -36,6 +36,10 @@ GcodeSuite gcode;
|
||||||
#include "../module/printcounter.h"
|
#include "../module/printcounter.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
#include "../feature/host_actions.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../Marlin.h" // for idle() and suspend_auto_report
|
#include "../Marlin.h" // for idle() and suspend_auto_report
|
||||||
|
|
||||||
millis_t GcodeSuite::previous_move_ms;
|
millis_t GcodeSuite::previous_move_ms;
|
||||||
|
@ -128,27 +132,17 @@ void GcodeSuite::dwell(millis_t time) {
|
||||||
void GcodeSuite::G29_with_retry() {
|
void GcodeSuite::G29_with_retry() {
|
||||||
uint8_t retries = G29_MAX_RETRIES;
|
uint8_t retries = G29_MAX_RETRIES;
|
||||||
while (G29()) { // G29 should return true for failed probes ONLY
|
while (G29()) { // G29 should return true for failed probes ONLY
|
||||||
if (retries--) {
|
if (retries--) event_probe_recover();
|
||||||
#ifdef G29_ACTION_ON_RECOVER
|
|
||||||
host_action(PSTR(G29_ACTION_ON_RECOVER));
|
|
||||||
#endif
|
|
||||||
#ifdef G29_RECOVER_COMMANDS
|
|
||||||
process_subcommands_now_P(PSTR(G29_RECOVER_COMMANDS));
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
#ifdef G29_FAILURE_COMMANDS
|
event_probe_failure();
|
||||||
process_subcommands_now_P(PSTR(G29_FAILURE_COMMANDS));
|
|
||||||
#endif
|
|
||||||
#ifdef G29_ACTION_ON_FAILURE
|
|
||||||
host_action(PSTR(G29_ACTION_ON_FAILURE));
|
|
||||||
#endif
|
|
||||||
#if ENABLED(G29_HALT_ON_FAILURE)
|
|
||||||
kill(PSTR(MSG_ERR_PROBING_FAILED));
|
|
||||||
#endif
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
if (host_prompt_reason == PROMPT_G29_RETRY) host_action_prompt_end();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef G29_SUCCESS_COMMANDS
|
#ifdef G29_SUCCESS_COMMANDS
|
||||||
process_subcommands_now_P(PSTR(G29_SUCCESS_COMMANDS));
|
process_subcommands_now_P(PSTR(G29_SUCCESS_COMMANDS));
|
||||||
#endif
|
#endif
|
||||||
|
@ -365,8 +359,15 @@ void GcodeSuite::process_parsed_command(
|
||||||
case 108: M108(); break; // M108: Cancel Waiting
|
case 108: M108(); break; // M108: Cancel Waiting
|
||||||
case 112: M112(); break; // M112: Emergency Stop
|
case 112: M112(); break; // M112: Emergency Stop
|
||||||
case 410: M410(); break; // M410: Quickstop - Abort all the planned moves.
|
case 410: M410(); break; // M410: Quickstop - Abort all the planned moves.
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
case 876: M876(); break; // M876: Handle Host prompt responses
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
case 108: case 112: case 410: break;
|
case 108: case 112: case 410:
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
case 876:
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(HOST_KEEPALIVE_FEATURE)
|
#if ENABLED(HOST_KEEPALIVE_FEATURE)
|
||||||
|
|
|
@ -533,6 +533,9 @@ private:
|
||||||
static void M108();
|
static void M108();
|
||||||
static void M112();
|
static void M112();
|
||||||
static void M410();
|
static void M410();
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
static void M876();
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void M109();
|
static void M109();
|
||||||
|
|
|
@ -132,13 +132,20 @@ void GcodeSuite::M115() {
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
// EMERGENCY_PARSER (M108, M112, M410)
|
// EMERGENCY_PARSER (M108, M112, M410, M876)
|
||||||
cap_line(PSTR("EMERGENCY_PARSER")
|
cap_line(PSTR("EMERGENCY_PARSER")
|
||||||
#if ENABLED(EMERGENCY_PARSER)
|
#if ENABLED(EMERGENCY_PARSER)
|
||||||
, true
|
, true
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// PROMPT SUPPORT (M876)
|
||||||
|
cap_line(PSTR("PROMPT_SUPPORT")
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
, true
|
||||||
|
#endif
|
||||||
|
);
|
||||||
|
|
||||||
// AUTOREPORT_SD_STATUS (M27 extension)
|
// AUTOREPORT_SD_STATUS (M27 extension)
|
||||||
cap_line(PSTR("AUTOREPORT_SD_STATUS")
|
cap_line(PSTR("AUTOREPORT_SD_STATUS")
|
||||||
#if ENABLED(AUTO_REPORT_SD_STATUS)
|
#if ENABLED(AUTO_REPORT_SD_STATUS)
|
||||||
|
|
37
Marlin/src/gcode/host/M876.cpp
Normal file
37
Marlin/src/gcode/host/M876.cpp
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
/**
|
||||||
|
* Marlin 3D Printer Firmware
|
||||||
|
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||||
|
*
|
||||||
|
* Based on Sprinter and grbl.
|
||||||
|
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#include "../../inc/MarlinConfig.h"
|
||||||
|
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT) && DISABLED(EMERGENCY_PARSER)
|
||||||
|
|
||||||
|
#include "../../feature/host_actions.h"
|
||||||
|
#include "../gcode.h"
|
||||||
|
#include "../../Marlin.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* M876: Handle Prompt Response
|
||||||
|
*/
|
||||||
|
void GcodeSuite::M876() {
|
||||||
|
if (parser.seenval('S')) host_response_handler((uint8_t)parser.value_int());
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // HOST_PROMPT_SUPPORT && !EMERGENCY_PARSER
|
|
@ -37,6 +37,10 @@
|
||||||
#include "../../feature/leds/printer_event_leds.h"
|
#include "../../feature/leds/printer_event_leds.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
#include "../../feature/host_actions.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* M0: Unconditional stop - Wait for user button press on LCD
|
* M0: Unconditional stop - Wait for user button press on LCD
|
||||||
* M1: Conditional stop - Wait for user button press on LCD
|
* M1: Conditional stop - Wait for user button press on LCD
|
||||||
|
@ -82,6 +86,10 @@ void GcodeSuite::M0_M1() {
|
||||||
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
||||||
wait_for_user = true;
|
wait_for_user = true;
|
||||||
|
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_do(PROMPT_USER_CONTINUE, PSTR("M0/1 Break Called"), PSTR("Continue"));
|
||||||
|
#endif
|
||||||
|
|
||||||
if (ms > 0) {
|
if (ms > 0) {
|
||||||
ms += millis(); // wait until this time for a click
|
ms += millis(); // wait until this time for a click
|
||||||
while (PENDING(millis(), ms) && wait_for_user) idle();
|
while (PENDING(millis(), ms) && wait_for_user) idle();
|
||||||
|
|
|
@ -42,6 +42,10 @@
|
||||||
#include "../queue.h"
|
#include "../queue.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
|
#include "../../feature/host_actions.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* M20: List SD card to serial output
|
* M20: List SD card to serial output
|
||||||
*/
|
*/
|
||||||
|
@ -103,9 +107,14 @@ void GcodeSuite::M24() {
|
||||||
print_job_timer.start();
|
print_job_timer.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_open(PROMPT_INFO, PSTR("Resume SD"));
|
||||||
|
#endif
|
||||||
#ifdef ACTION_ON_RESUME
|
#ifdef ACTION_ON_RESUME
|
||||||
host_action_resume();
|
host_action_resume();
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
ui.reset_status();
|
ui.reset_status();
|
||||||
}
|
}
|
||||||
|
@ -121,15 +130,24 @@ void GcodeSuite::M25() {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(PARK_HEAD_ON_PAUSE)
|
#if ENABLED(PARK_HEAD_ON_PAUSE)
|
||||||
|
|
||||||
M125();
|
M125();
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
print_job_timer.pause();
|
print_job_timer.pause();
|
||||||
ui.reset_status();
|
ui.reset_status();
|
||||||
|
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_open(PROMPT_PAUSE_RESUME, PSTR("Pause SD"), PSTR("Resume"));
|
||||||
|
#endif
|
||||||
#ifdef ACTION_ON_PAUSE
|
#ifdef ACTION_ON_PAUSE
|
||||||
host_action_pause();
|
host_action_pause();
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -536,8 +536,6 @@
|
||||||
#define IS_KINEMATIC (ENABLED(DELTA) || IS_SCARA)
|
#define IS_KINEMATIC (ENABLED(DELTA) || IS_SCARA)
|
||||||
#define IS_CARTESIAN !IS_KINEMATIC
|
#define IS_CARTESIAN !IS_KINEMATIC
|
||||||
|
|
||||||
#define HAS_ACTION_COMMANDS (defined(ACTION_ON_KILL) || defined(ACTION_ON_PAUSE) || defined(ACTION_ON_PAUSED) || defined(ACTION_ON_RESUME) || defined(ACTION_ON_RESUMED) || defined(ACTION_ON_CANCEL) || defined(G29_ACTION_ON_RECOVER) || defined(G29_ACTION_ON_FAILURE) || defined(ACTION_ON_FILAMENT_RUNOUT))
|
|
||||||
|
|
||||||
#ifndef INVERT_X_DIR
|
#ifndef INVERT_X_DIR
|
||||||
#define INVERT_X_DIR false
|
#define INVERT_X_DIR false
|
||||||
#endif
|
#endif
|
||||||
|
@ -550,3 +548,29 @@
|
||||||
#ifndef INVERT_E_DIR
|
#ifndef INVERT_E_DIR
|
||||||
#define INVERT_E_DIR false
|
#define INVERT_E_DIR false
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
|
#ifndef ACTION_ON_PAUSE
|
||||||
|
#define ACTION_ON_PAUSE "pause"
|
||||||
|
#endif
|
||||||
|
#ifndef ACTION_ON_RESUME
|
||||||
|
#define ACTION_ON_RESUME "resume"
|
||||||
|
#endif
|
||||||
|
#ifndef ACTION_ON_PAUSED
|
||||||
|
#define ACTION_ON_PAUSED "paused"
|
||||||
|
#endif
|
||||||
|
#ifndef ACTION_ON_RESUMED
|
||||||
|
#define ACTION_ON_RESUMED "resumed"
|
||||||
|
#endif
|
||||||
|
#ifndef ACTION_ON_CANCEL
|
||||||
|
#define ACTION_ON_CANCEL "cancel"
|
||||||
|
#endif
|
||||||
|
#if ENABLED(G29_RETRY_AND_RECOVER)
|
||||||
|
#ifndef ACTION_ON_G29_RECOVER
|
||||||
|
#define ACTION_ON_G29_RECOVER "probe_rewipe"
|
||||||
|
#endif
|
||||||
|
#ifndef ACTION_ON_G29_FAILURE
|
||||||
|
#define ACTION_ON_G29_FAILURE "probe_failed"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
|
@ -42,3 +42,40 @@
|
||||||
// SERIAL_XON_XOFF not supported on USB-native devices
|
// SERIAL_XON_XOFF not supported on USB-native devices
|
||||||
#undef SERIAL_XON_XOFF
|
#undef SERIAL_XON_XOFF
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
|
#ifndef ACTION_ON_PAUSE
|
||||||
|
#define ACTION_ON_PAUSE "pause"
|
||||||
|
#endif
|
||||||
|
#ifndef ACTION_ON_PAUSED
|
||||||
|
#define ACTION_ON_PAUSED "paused"
|
||||||
|
#endif
|
||||||
|
#ifndef ACTION_ON_RESUME
|
||||||
|
#define ACTION_ON_RESUME "resume"
|
||||||
|
#endif
|
||||||
|
#ifndef ACTION_ON_RESUMED
|
||||||
|
#define ACTION_ON_RESUMED "resumed"
|
||||||
|
#endif
|
||||||
|
#ifndef ACTION_ON_CANCEL
|
||||||
|
#define ACTION_ON_CANCEL "cancel"
|
||||||
|
#endif
|
||||||
|
#ifndef ACTION_ON_KILL
|
||||||
|
#define ACTION_ON_KILL "poweroff"
|
||||||
|
#endif
|
||||||
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
||||||
|
#ifndef ACTION_ON_FILAMENT_RUNOUT
|
||||||
|
#define ACTION_ON_FILAMENT_RUNOUT "filament_runout"
|
||||||
|
#endif
|
||||||
|
#ifndef ACTION_REASON_ON_FILAMENT_RUNOUT
|
||||||
|
#define ACTION_REASON_ON_FILAMENT_RUNOUT "filament_runout"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
#if ENABLED(G29_RETRY_AND_RECOVER)
|
||||||
|
#ifndef ACTION_ON_G29_RECOVER
|
||||||
|
#define ACTION_ON_G29_RECOVER "probe_rewipe"
|
||||||
|
#endif
|
||||||
|
#ifndef ACTION_ON_G29_FAILURE
|
||||||
|
#define ACTION_ON_G29_FAILURE "probe_failed"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
|
@ -58,9 +58,12 @@
|
||||||
#include "../../module/tool_change.h"
|
#include "../../module/tool_change.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(EMERGENCY_PARSER)
|
||||||
|
#include "../../feature/emergency_parser.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ENABLED(SDSUPPORT)
|
#if ENABLED(SDSUPPORT)
|
||||||
#include "../../sd/cardreader.h"
|
#include "../../sd/cardreader.h"
|
||||||
#include "../../feature/emergency_parser.h"
|
|
||||||
#define IFSD(A,B) (A)
|
#define IFSD(A,B) (A)
|
||||||
#else
|
#else
|
||||||
#define IFSD(A,B) (B)
|
#define IFSD(A,B) (B)
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include "../ultralcd.h"
|
#include "../ultralcd.h"
|
||||||
#include "../../module/planner.h"
|
#include "../../module/planner.h"
|
||||||
#include "../../module/motion.h"
|
#include "../../module/motion.h"
|
||||||
|
#include "../../module/printcounter.h"
|
||||||
#include "../../gcode/queue.h"
|
#include "../../gcode/queue.h"
|
||||||
#include "../../sd/cardreader.h"
|
#include "../../sd/cardreader.h"
|
||||||
#include "../../libs/buzzer.h"
|
#include "../../libs/buzzer.h"
|
||||||
|
@ -189,7 +190,9 @@ void MenuItem_bool::action_edit(PGM_P pstr, bool *ptr, screenFunc_t callback) {
|
||||||
void _lcd_set_z_fade_height() { set_z_fade_height(lcd_z_fade_height); }
|
void _lcd_set_z_fade_height() { set_z_fade_height(lcd_z_fade_height); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool printer_busy() { return planner.movesplanned() || IS_SD_PRINTING(); }
|
bool printer_busy() {
|
||||||
|
return planner.movesplanned() || IS_SD_PRINTING() || print_job_timer.isRunning();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* General function to go directly to a screen
|
* General function to go directly to a screen
|
||||||
|
|
|
@ -52,6 +52,9 @@ void _man_probe_pt(const float &rx, const float &ry) {
|
||||||
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
||||||
ui.defer_status_screen(true);
|
ui.defer_status_screen(true);
|
||||||
wait_for_user = true;
|
wait_for_user = true;
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_do(PROMPT_USER_CONTINUE, PSTR("Delta Calibration in progress"), PSTR("Continue"));
|
||||||
|
#endif
|
||||||
while (wait_for_user) idle();
|
while (wait_for_user) idle();
|
||||||
KEEPALIVE_STATE(IN_HANDLER);
|
KEEPALIVE_STATE(IN_HANDLER);
|
||||||
ui.goto_previous_screen_no_defer();
|
ui.goto_previous_screen_no_defer();
|
||||||
|
|
|
@ -42,11 +42,19 @@
|
||||||
#include "../../sd/cardreader.h"
|
#include "../../sd/cardreader.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||||
|
#include "../../feature/host_actions.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
void lcd_pause() {
|
void lcd_pause() {
|
||||||
#if ENABLED(POWER_LOSS_RECOVERY)
|
#if ENABLED(POWER_LOSS_RECOVERY)
|
||||||
if (recovery.enabled) recovery.save(true, false);
|
if (recovery.enabled) recovery.save(true, false);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_open(PROMPT_PAUSE_RESUME, PSTR("UI Pause"), PSTR("Resume"));
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ENABLED(PARK_HEAD_ON_PAUSE)
|
#if ENABLED(PARK_HEAD_ON_PAUSE)
|
||||||
lcd_advanced_pause_show_message(ADVANCED_PAUSE_MESSAGE_INIT, ADVANCED_PAUSE_MODE_PAUSE_PRINT); // Show message immediately to let user know about pause in progress
|
lcd_advanced_pause_show_message(ADVANCED_PAUSE_MESSAGE_INIT, ADVANCED_PAUSE_MODE_PAUSE_PRINT); // Show message immediately to let user know about pause in progress
|
||||||
enqueue_and_echo_commands_P(PSTR("M25 P\nM24"));
|
enqueue_and_echo_commands_P(PSTR("M25 P\nM24"));
|
||||||
|
@ -75,6 +83,9 @@ void lcd_stop() {
|
||||||
#ifdef ACTION_ON_CANCEL
|
#ifdef ACTION_ON_CANCEL
|
||||||
host_action_cancel();
|
host_action_cancel();
|
||||||
#endif
|
#endif
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_open(PROMPT_INFO, PSTR("UI Abort"));
|
||||||
|
#endif
|
||||||
ui.set_status_P(PSTR(MSG_PRINT_ABORTED), -1);
|
ui.set_status_P(PSTR(MSG_PRINT_ABORTED), -1);
|
||||||
ui.return_to_status();
|
ui.return_to_status();
|
||||||
}
|
}
|
||||||
|
@ -147,9 +158,9 @@ void menu_main() {
|
||||||
}
|
}
|
||||||
#endif // !HAS_ENCODER_WHEEL && SDSUPPORT
|
#endif // !HAS_ENCODER_WHEEL && SDSUPPORT
|
||||||
|
|
||||||
#if ENABLED(SDSUPPORT) || defined(ACTION_ON_RESUME)
|
#if ENABLED(SDSUPPORT) || ENABLED(HOST_ACTION_COMMANDS)
|
||||||
#if ENABLED(SDSUPPORT)
|
#if DISABLED(HOST_ACTION_COMMANDS)
|
||||||
if (card.isFileOpen() && card.isPaused())
|
if (card_open && card.isPaused())
|
||||||
#endif
|
#endif
|
||||||
MENU_ITEM(function, MSG_RESUME_PRINT, lcd_resume);
|
MENU_ITEM(function, MSG_RESUME_PRINT, lcd_resume);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -364,6 +364,9 @@ FORCE_INLINE void probe_specific_action(const bool deploy) {
|
||||||
|
|
||||||
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
||||||
wait_for_user = true;
|
wait_for_user = true;
|
||||||
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
|
host_prompt_do(PROMPT_USER_CONTINUE, PSTR("Stow Probe"), PSTR("Continue"));
|
||||||
|
#endif
|
||||||
while (wait_for_user) idle();
|
while (wait_for_user) idle();
|
||||||
ui.reset_status();
|
ui.reset_status();
|
||||||
KEEPALIVE_STATE(IN_HANDLER);
|
KEEPALIVE_STATE(IN_HANDLER);
|
||||||
|
|
|
@ -25,7 +25,7 @@ opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT \
|
||||||
BABYSTEPPING BABYSTEP_XY BABYSTEP_ZPROBE_OFFSET BABYSTEP_ZPROBE_GFX_OVERLAY \
|
BABYSTEPPING BABYSTEP_XY BABYSTEP_ZPROBE_OFFSET BABYSTEP_ZPROBE_GFX_OVERLAY \
|
||||||
PRINTCOUNTER NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE SLOW_PWM_HEATERS PIDTEMPBED EEPROM_SETTINGS INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT M100_FREE_MEMORY_WATCHER \
|
PRINTCOUNTER NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE SLOW_PWM_HEATERS PIDTEMPBED EEPROM_SETTINGS INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT M100_FREE_MEMORY_WATCHER \
|
||||||
ADVANCED_PAUSE_FEATURE LCD_INFO_MENU ARC_SUPPORT BEZIER_CURVE_SUPPORT EXPERIMENTAL_I2CBUS EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES SDCARD_SORT_ALPHA PARK_HEAD_ON_PAUSE \
|
ADVANCED_PAUSE_FEATURE LCD_INFO_MENU ARC_SUPPORT BEZIER_CURVE_SUPPORT EXPERIMENTAL_I2CBUS EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES SDCARD_SORT_ALPHA PARK_HEAD_ON_PAUSE \
|
||||||
ACTION_ON_KILL ACTION_ON_PAUSE ACTION_ON_PAUSED ACTION_ON_RESUME ACTION_ON_RESUMED ACTION_ON_CANCEL
|
HOST_ACTION_COMMANDS HOST_PROMPT_SUPPORT
|
||||||
opt_set I2C_SLAVE_ADDRESS 63
|
opt_set I2C_SLAVE_ADDRESS 63
|
||||||
opt_set GRID_MAX_POINTS_X 16
|
opt_set GRID_MAX_POINTS_X 16
|
||||||
exec_test $1 $2 "Teensy3.5 with many features"
|
exec_test $1 $2 "Teensy3.5 with many features"
|
||||||
|
|
Reference in a new issue