From f214118e45af0ed701b9c49092cb87c42be1434a Mon Sep 17 00:00:00 2001 From: Marcio Teixeira Date: Sun, 27 Jan 2019 19:18:05 -0700 Subject: [PATCH] Action to notify host of filament runout. (#12817) --- Marlin/Configuration.h | 13 +++++++++++++ Marlin/src/config/default/Configuration.h | 13 +++++++++++++ .../examples/3DFabXYZ/Migbot/Configuration.h | 13 +++++++++++++ .../examples/AlephObjects/TAZ4/Configuration.h | 13 +++++++++++++ .../examples/AliExpress/CL-260/Configuration.h | 13 +++++++++++++ .../src/config/examples/Anet/A2/Configuration.h | 13 +++++++++++++ .../config/examples/Anet/A2plus/Configuration.h | 13 +++++++++++++ .../src/config/examples/Anet/A6/Configuration.h | 13 +++++++++++++ .../src/config/examples/Anet/A8/Configuration.h | 13 +++++++++++++ .../config/examples/AnyCubic/i3/Configuration.h | 13 +++++++++++++ Marlin/src/config/examples/ArmEd/Configuration.h | 13 +++++++++++++ .../config/examples/Azteeg/X5GT/Configuration.h | 13 +++++++++++++ .../examples/BIBO/TouchX/cyclops/Configuration.h | 13 +++++++++++++ .../examples/BIBO/TouchX/default/Configuration.h | 13 +++++++++++++ .../config/examples/BQ/Hephestos/Configuration.h | 13 +++++++++++++ .../examples/BQ/Hephestos_2/Configuration.h | 13 +++++++++++++ .../src/config/examples/BQ/WITBOX/Configuration.h | 13 +++++++++++++ .../src/config/examples/Cartesio/Configuration.h | 13 +++++++++++++ .../examples/Creality/CR-10/Configuration.h | 13 +++++++++++++ .../examples/Creality/CR-10S/Configuration.h | 15 ++++++++++++++- .../examples/Creality/CR-10mini/Configuration.h | 13 +++++++++++++ .../config/examples/Creality/CR-8/Configuration.h | 13 +++++++++++++ .../examples/Creality/Ender-2/Configuration.h | 13 +++++++++++++ .../examples/Creality/Ender-3/Configuration.h | 13 +++++++++++++ .../examples/Creality/Ender-4/Configuration.h | 13 +++++++++++++ .../config/examples/Einstart-S/Configuration.h | 13 +++++++++++++ Marlin/src/config/examples/Felix/Configuration.h | 13 +++++++++++++ .../config/examples/Felix/DUAL/Configuration.h | 13 +++++++++++++ .../FlashForge/CreatorPro/Configuration.h | 13 +++++++++++++ .../examples/FolgerTech/i3-2020/Configuration.h | 13 +++++++++++++ .../examples/Formbot/Raptor/Configuration.h | 13 +++++++++++++ .../examples/Formbot/T_Rex_2+/Configuration.h | 13 +++++++++++++ .../examples/Formbot/T_Rex_3/Configuration.h | 13 +++++++++++++ .../examples/Geeetech/GT2560/Configuration.h | 13 +++++++++++++ .../Geeetech/I3_Pro_X-GT2560/Configuration.h | 13 +++++++++++++ .../examples/Geeetech/MeCreator2/Configuration.h | 13 +++++++++++++ .../Prusa i3 Pro B/bltouch/Configuration.h | 13 +++++++++++++ .../Prusa i3 Pro B/noprobe/Configuration.h | 13 +++++++++++++ .../Geeetech/Prusa i3 Pro C/Configuration.h | 13 +++++++++++++ .../Geeetech/Prusa i3 Pro W/Configuration.h | 13 +++++++++++++ .../examples/Infitary/i3-M508/Configuration.h | 13 +++++++++++++ .../config/examples/JGAurora/A5/Configuration.h | 13 +++++++++++++ .../config/examples/MakerParts/Configuration.h | 13 +++++++++++++ .../config/examples/Malyan/M150/Configuration.h | 13 +++++++++++++ .../config/examples/Malyan/M200/Configuration.h | 13 +++++++++++++ .../examples/Micromake/C1/basic/Configuration.h | 13 +++++++++++++ .../Micromake/C1/enhanced/Configuration.h | 13 +++++++++++++ .../src/config/examples/Mks/Robin/Configuration.h | 13 +++++++++++++ .../src/config/examples/Mks/Sbase/Configuration.h | 13 +++++++++++++ .../examples/RapideLite/RL200/Configuration.h | 13 +++++++++++++ .../examples/RepRapPro/Huxley/Configuration.h | 13 +++++++++++++ .../RepRapWorld/Megatronics/Configuration.h | 13 +++++++++++++ .../src/config/examples/RigidBot/Configuration.h | 13 +++++++++++++ Marlin/src/config/examples/SCARA/Configuration.h | 13 +++++++++++++ .../src/config/examples/STM32F10/Configuration.h | 13 +++++++++++++ .../src/config/examples/STM32F4/Configuration.h | 13 +++++++++++++ .../config/examples/Sanguinololu/Configuration.h | 13 +++++++++++++ .../src/config/examples/TheBorg/Configuration.h | 13 +++++++++++++ .../src/config/examples/TinyBoy2/Configuration.h | 13 +++++++++++++ .../src/config/examples/Tronxy/X1/Configuration.h | 13 +++++++++++++ .../config/examples/Tronxy/X3A/Configuration.h | 13 +++++++++++++ .../config/examples/Tronxy/X5S/Configuration.h | 13 +++++++++++++ .../config/examples/Tronxy/XY100/Configuration.h | 13 +++++++++++++ .../examples/UltiMachine/Archim1/Configuration.h | 13 +++++++++++++ .../examples/UltiMachine/Archim2/Configuration.h | 13 +++++++++++++ .../config/examples/VORONDesign/Configuration.h | 13 +++++++++++++ .../examples/Velleman/K8200/Configuration.h | 13 +++++++++++++ .../examples/Velleman/K8400/Configuration.h | 13 +++++++++++++ .../Velleman/K8400/Dual-head/Configuration.h | 13 +++++++++++++ .../examples/WASP/PowerWASP/Configuration.h | 13 +++++++++++++ .../examples/Wanhao/Duplicator 6/Configuration.h | 13 +++++++++++++ .../examples/adafruit/ST7565/Configuration.h | 13 +++++++++++++ .../delta/Anycubic/Kossel/Configuration.h | 13 +++++++++++++ .../delta/FLSUN/auto_calibrate/Configuration.h | 13 +++++++++++++ .../examples/delta/FLSUN/kossel/Configuration.h | 13 +++++++++++++ .../delta/FLSUN/kossel_mini/Configuration.h | 13 +++++++++++++ .../delta/Geeetech/Rostock 301/Configuration.h | 13 +++++++++++++ .../examples/delta/Hatchbox_Alpha/Configuration.h | 13 +++++++++++++ .../examples/delta/MKS/SBASE/Configuration.h | 13 +++++++++++++ .../delta/Tevo Little Monster/Configuration.h | 13 +++++++++++++ .../config/examples/delta/generic/Configuration.h | 13 +++++++++++++ .../examples/delta/kossel_mini/Configuration.h | 13 +++++++++++++ .../examples/delta/kossel_pro/Configuration.h | 13 +++++++++++++ .../examples/delta/kossel_xl/Configuration.h | 13 +++++++++++++ .../examples/gCreate/gMax1.5+/Configuration.h | 13 +++++++++++++ .../src/config/examples/makibox/Configuration.h | 13 +++++++++++++ .../config/examples/stm32f103ret6/Configuration.h | 13 +++++++++++++ .../config/examples/tvrrug/Round2/Configuration.h | 13 +++++++++++++ Marlin/src/config/examples/wt150/Configuration.h | 13 +++++++++++++ Marlin/src/feature/runout.h | 8 +++++++- Marlin/src/lcd/extensible_ui/ui_api.h | 2 +- 91 files changed, 1166 insertions(+), 3 deletions(-) diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index ea0ab63ffb..d5214d8821 100644 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/default/Configuration.h b/Marlin/src/config/default/Configuration.h index ea0ab63ffb..d5214d8821 100644 --- a/Marlin/src/config/default/Configuration.h +++ b/Marlin/src/config/default/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/3DFabXYZ/Migbot/Configuration.h b/Marlin/src/config/examples/3DFabXYZ/Migbot/Configuration.h index 6e41ba890f..c769489445 100644 --- a/Marlin/src/config/examples/3DFabXYZ/Migbot/Configuration.h +++ b/Marlin/src/config/examples/3DFabXYZ/Migbot/Configuration.h @@ -995,8 +995,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h b/Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h index 8b261fd06f..456ab7b132 100644 --- a/Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h +++ b/Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h @@ -1009,8 +1009,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/AliExpress/CL-260/Configuration.h b/Marlin/src/config/examples/AliExpress/CL-260/Configuration.h index 8ef893b023..b83387e958 100644 --- a/Marlin/src/config/examples/AliExpress/CL-260/Configuration.h +++ b/Marlin/src/config/examples/AliExpress/CL-260/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Anet/A2/Configuration.h b/Marlin/src/config/examples/Anet/A2/Configuration.h index ad86e0f04c..e322eded32 100644 --- a/Marlin/src/config/examples/Anet/A2/Configuration.h +++ b/Marlin/src/config/examples/Anet/A2/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Anet/A2plus/Configuration.h b/Marlin/src/config/examples/Anet/A2plus/Configuration.h index 474351de9e..ef978e1f43 100644 --- a/Marlin/src/config/examples/Anet/A2plus/Configuration.h +++ b/Marlin/src/config/examples/Anet/A2plus/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Anet/A6/Configuration.h b/Marlin/src/config/examples/Anet/A6/Configuration.h index bf7be458dd..4016ee14b0 100644 --- a/Marlin/src/config/examples/Anet/A6/Configuration.h +++ b/Marlin/src/config/examples/Anet/A6/Configuration.h @@ -1103,8 +1103,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Anet/A8/Configuration.h b/Marlin/src/config/examples/Anet/A8/Configuration.h index 28a7a99fa6..0076f99050 100644 --- a/Marlin/src/config/examples/Anet/A8/Configuration.h +++ b/Marlin/src/config/examples/Anet/A8/Configuration.h @@ -1002,8 +1002,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/AnyCubic/i3/Configuration.h b/Marlin/src/config/examples/AnyCubic/i3/Configuration.h index 3663ce7335..1ddbc45841 100644 --- a/Marlin/src/config/examples/AnyCubic/i3/Configuration.h +++ b/Marlin/src/config/examples/AnyCubic/i3/Configuration.h @@ -1000,8 +1000,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/ArmEd/Configuration.h b/Marlin/src/config/examples/ArmEd/Configuration.h index 6bdfc01cad..cf7c6eb3a7 100644 --- a/Marlin/src/config/examples/ArmEd/Configuration.h +++ b/Marlin/src/config/examples/ArmEd/Configuration.h @@ -990,8 +990,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Azteeg/X5GT/Configuration.h b/Marlin/src/config/examples/Azteeg/X5GT/Configuration.h index 5d20a20139..4f049c548b 100644 --- a/Marlin/src/config/examples/Azteeg/X5GT/Configuration.h +++ b/Marlin/src/config/examples/Azteeg/X5GT/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h b/Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h index fc197dd47b..aac07912e8 100644 --- a/Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h +++ b/Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h b/Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h index d40c88a5b6..5719760889 100644 --- a/Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h +++ b/Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/BQ/Hephestos/Configuration.h b/Marlin/src/config/examples/BQ/Hephestos/Configuration.h index 7bce739734..3229f2785b 100644 --- a/Marlin/src/config/examples/BQ/Hephestos/Configuration.h +++ b/Marlin/src/config/examples/BQ/Hephestos/Configuration.h @@ -977,8 +977,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h b/Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h index d31635cf98..8c9544307a 100644 --- a/Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h +++ b/Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h @@ -989,8 +989,21 @@ #define NUM_RUNOUT_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each. #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. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/BQ/WITBOX/Configuration.h b/Marlin/src/config/examples/BQ/WITBOX/Configuration.h index 739fb8918a..ddad01acfd 100644 --- a/Marlin/src/config/examples/BQ/WITBOX/Configuration.h +++ b/Marlin/src/config/examples/BQ/WITBOX/Configuration.h @@ -977,8 +977,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Cartesio/Configuration.h b/Marlin/src/config/examples/Cartesio/Configuration.h index 22e73414a3..1db76dee47 100644 --- a/Marlin/src/config/examples/Cartesio/Configuration.h +++ b/Marlin/src/config/examples/Cartesio/Configuration.h @@ -988,8 +988,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Creality/CR-10/Configuration.h b/Marlin/src/config/examples/Creality/CR-10/Configuration.h index 3dd5f0843c..e9b49d96de 100755 --- a/Marlin/src/config/examples/Creality/CR-10/Configuration.h +++ b/Marlin/src/config/examples/Creality/CR-10/Configuration.h @@ -999,8 +999,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Creality/CR-10S/Configuration.h b/Marlin/src/config/examples/Creality/CR-10S/Configuration.h index 65e583c114..bd865cdfa5 100644 --- a/Marlin/src/config/examples/Creality/CR-10S/Configuration.h +++ b/Marlin/src/config/examples/Creality/CR-10S/Configuration.h @@ -989,9 +989,22 @@ #define FIL_RUNOUT_INVERTING true // set to true to invert the logic of the sensor. #define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins. //#define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins. - #define FILAMENT_RUNOUT_SCRIPT "M600" #define FIL_RUNOUT_PIN 2 // Creality CR10-S stock sensor + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. + #define FILAMENT_RUNOUT_SCRIPT "M600" + + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Creality/CR-10mini/Configuration.h b/Marlin/src/config/examples/Creality/CR-10mini/Configuration.h index 22562b5aac..6dc12d2a19 100644 --- a/Marlin/src/config/examples/Creality/CR-10mini/Configuration.h +++ b/Marlin/src/config/examples/Creality/CR-10mini/Configuration.h @@ -1008,8 +1008,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Creality/CR-8/Configuration.h b/Marlin/src/config/examples/Creality/CR-8/Configuration.h index a21dd75b6b..3285f922d3 100644 --- a/Marlin/src/config/examples/Creality/CR-8/Configuration.h +++ b/Marlin/src/config/examples/Creality/CR-8/Configuration.h @@ -999,8 +999,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Creality/Ender-2/Configuration.h b/Marlin/src/config/examples/Creality/Ender-2/Configuration.h index da3da449f1..c50ee9b16c 100644 --- a/Marlin/src/config/examples/Creality/Ender-2/Configuration.h +++ b/Marlin/src/config/examples/Creality/Ender-2/Configuration.h @@ -993,8 +993,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Creality/Ender-3/Configuration.h b/Marlin/src/config/examples/Creality/Ender-3/Configuration.h index b64de5d24b..0bb132fcb4 100644 --- a/Marlin/src/config/examples/Creality/Ender-3/Configuration.h +++ b/Marlin/src/config/examples/Creality/Ender-3/Configuration.h @@ -993,8 +993,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Creality/Ender-4/Configuration.h b/Marlin/src/config/examples/Creality/Ender-4/Configuration.h index e127c10ec0..466cc0d6dc 100644 --- a/Marlin/src/config/examples/Creality/Ender-4/Configuration.h +++ b/Marlin/src/config/examples/Creality/Ender-4/Configuration.h @@ -999,8 +999,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Einstart-S/Configuration.h b/Marlin/src/config/examples/Einstart-S/Configuration.h index 2c961fa43b..09a8629505 100644 --- a/Marlin/src/config/examples/Einstart-S/Configuration.h +++ b/Marlin/src/config/examples/Einstart-S/Configuration.h @@ -999,8 +999,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Felix/Configuration.h b/Marlin/src/config/examples/Felix/Configuration.h index 2b5ab1e692..a8402b3ae8 100644 --- a/Marlin/src/config/examples/Felix/Configuration.h +++ b/Marlin/src/config/examples/Felix/Configuration.h @@ -971,8 +971,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Felix/DUAL/Configuration.h b/Marlin/src/config/examples/Felix/DUAL/Configuration.h index 4b4de40af5..531cd8c0da 100644 --- a/Marlin/src/config/examples/Felix/DUAL/Configuration.h +++ b/Marlin/src/config/examples/Felix/DUAL/Configuration.h @@ -971,8 +971,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/FlashForge/CreatorPro/Configuration.h b/Marlin/src/config/examples/FlashForge/CreatorPro/Configuration.h index d92a2f9dc1..0b7bf17fb6 100644 --- a/Marlin/src/config/examples/FlashForge/CreatorPro/Configuration.h +++ b/Marlin/src/config/examples/FlashForge/CreatorPro/Configuration.h @@ -982,8 +982,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h b/Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h index e346ccf2af..4d63e41c54 100644 --- a/Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h +++ b/Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h @@ -995,8 +995,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Formbot/Raptor/Configuration.h b/Marlin/src/config/examples/Formbot/Raptor/Configuration.h index 178327dadd..59f4586bbe 100644 --- a/Marlin/src/config/examples/Formbot/Raptor/Configuration.h +++ b/Marlin/src/config/examples/Formbot/Raptor/Configuration.h @@ -1087,8 +1087,21 @@ #define FIL_RUNOUT_INVERTING true // set to true to invert the logic of the sensor. #define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins. //#define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Formbot/T_Rex_2+/Configuration.h b/Marlin/src/config/examples/Formbot/T_Rex_2+/Configuration.h index 5007f54d9e..a24ebf4617 100644 --- a/Marlin/src/config/examples/Formbot/T_Rex_2+/Configuration.h +++ b/Marlin/src/config/examples/Formbot/T_Rex_2+/Configuration.h @@ -1019,8 +1019,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Formbot/T_Rex_3/Configuration.h b/Marlin/src/config/examples/Formbot/T_Rex_3/Configuration.h index 36017b8f20..0d852d9918 100644 --- a/Marlin/src/config/examples/Formbot/T_Rex_3/Configuration.h +++ b/Marlin/src/config/examples/Formbot/T_Rex_3/Configuration.h @@ -1014,8 +1014,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Geeetech/GT2560/Configuration.h b/Marlin/src/config/examples/Geeetech/GT2560/Configuration.h index c53ddeb137..c945d9069e 100644 --- a/Marlin/src/config/examples/Geeetech/GT2560/Configuration.h +++ b/Marlin/src/config/examples/Geeetech/GT2560/Configuration.h @@ -1004,8 +1004,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h b/Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h index ae3315108f..9565d9a5ce 100644 --- a/Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h +++ b/Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Geeetech/MeCreator2/Configuration.h b/Marlin/src/config/examples/Geeetech/MeCreator2/Configuration.h index e2a3c31db7..8225db8822 100644 --- a/Marlin/src/config/examples/Geeetech/MeCreator2/Configuration.h +++ b/Marlin/src/config/examples/Geeetech/MeCreator2/Configuration.h @@ -996,8 +996,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h b/Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h index cd8488a191..0712e4f8e3 100644 --- a/Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h +++ b/Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h @@ -1005,8 +1005,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h b/Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h index 4aa68e4c01..33dd05a3e7 100644 --- a/Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h +++ b/Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h @@ -1004,8 +1004,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration.h b/Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration.h index c1d41d7dc8..7353b4260e 100644 --- a/Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration.h +++ b/Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration.h b/Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration.h index 7a4b81c758..4eef948958 100644 --- a/Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration.h +++ b/Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Infitary/i3-M508/Configuration.h b/Marlin/src/config/examples/Infitary/i3-M508/Configuration.h index fe00fb7e34..cc10774cf1 100644 --- a/Marlin/src/config/examples/Infitary/i3-M508/Configuration.h +++ b/Marlin/src/config/examples/Infitary/i3-M508/Configuration.h @@ -993,8 +993,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/JGAurora/A5/Configuration.h b/Marlin/src/config/examples/JGAurora/A5/Configuration.h index 552055959f..b629becf5b 100644 --- a/Marlin/src/config/examples/JGAurora/A5/Configuration.h +++ b/Marlin/src/config/examples/JGAurora/A5/Configuration.h @@ -1001,8 +1001,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/MakerParts/Configuration.h b/Marlin/src/config/examples/MakerParts/Configuration.h index fbd360eb65..b60dd74d7a 100644 --- a/Marlin/src/config/examples/MakerParts/Configuration.h +++ b/Marlin/src/config/examples/MakerParts/Configuration.h @@ -1009,8 +1009,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Malyan/M150/Configuration.h b/Marlin/src/config/examples/Malyan/M150/Configuration.h index 90d3776ade..1025ccb60e 100644 --- a/Marlin/src/config/examples/Malyan/M150/Configuration.h +++ b/Marlin/src/config/examples/Malyan/M150/Configuration.h @@ -1013,8 +1013,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Malyan/M200/Configuration.h b/Marlin/src/config/examples/Malyan/M200/Configuration.h index f6408af9f7..01af8f3c26 100644 --- a/Marlin/src/config/examples/Malyan/M200/Configuration.h +++ b/Marlin/src/config/examples/Malyan/M200/Configuration.h @@ -988,8 +988,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Micromake/C1/basic/Configuration.h b/Marlin/src/config/examples/Micromake/C1/basic/Configuration.h index 9743b70f8a..4a32847818 100644 --- a/Marlin/src/config/examples/Micromake/C1/basic/Configuration.h +++ b/Marlin/src/config/examples/Micromake/C1/basic/Configuration.h @@ -993,8 +993,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h b/Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h index 9f0cea7753..54d186fc3c 100644 --- a/Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h +++ b/Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h @@ -993,8 +993,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Mks/Robin/Configuration.h b/Marlin/src/config/examples/Mks/Robin/Configuration.h index aa280cce02..6b0c3f3504 100644 --- a/Marlin/src/config/examples/Mks/Robin/Configuration.h +++ b/Marlin/src/config/examples/Mks/Robin/Configuration.h @@ -990,8 +990,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Mks/Sbase/Configuration.h b/Marlin/src/config/examples/Mks/Sbase/Configuration.h index 2a9bafdd1b..fc4c536c42 100644 --- a/Marlin/src/config/examples/Mks/Sbase/Configuration.h +++ b/Marlin/src/config/examples/Mks/Sbase/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/RapideLite/RL200/Configuration.h b/Marlin/src/config/examples/RapideLite/RL200/Configuration.h index 1f7e07f05e..1cde9106e8 100644 --- a/Marlin/src/config/examples/RapideLite/RL200/Configuration.h +++ b/Marlin/src/config/examples/RapideLite/RL200/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/RepRapPro/Huxley/Configuration.h b/Marlin/src/config/examples/RepRapPro/Huxley/Configuration.h index 21469f9f76..24d5e5ffe3 100644 --- a/Marlin/src/config/examples/RepRapPro/Huxley/Configuration.h +++ b/Marlin/src/config/examples/RepRapPro/Huxley/Configuration.h @@ -1038,8 +1038,21 @@ Black rubber belt(MXL), 18 - tooth aluminium pulley : 87.489 step per mm (Huxley #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h b/Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h index 06ce2c3e02..e30f4c78c5 100644 --- a/Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h +++ b/Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/RigidBot/Configuration.h b/Marlin/src/config/examples/RigidBot/Configuration.h index c350722fc8..6a7cdcf09e 100644 --- a/Marlin/src/config/examples/RigidBot/Configuration.h +++ b/Marlin/src/config/examples/RigidBot/Configuration.h @@ -987,8 +987,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/SCARA/Configuration.h b/Marlin/src/config/examples/SCARA/Configuration.h index 81f6181f9e..e569f6c658 100644 --- a/Marlin/src/config/examples/SCARA/Configuration.h +++ b/Marlin/src/config/examples/SCARA/Configuration.h @@ -1002,8 +1002,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/STM32F10/Configuration.h b/Marlin/src/config/examples/STM32F10/Configuration.h index 2f5c4caba8..507b62cbd8 100644 --- a/Marlin/src/config/examples/STM32F10/Configuration.h +++ b/Marlin/src/config/examples/STM32F10/Configuration.h @@ -991,8 +991,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/STM32F4/Configuration.h b/Marlin/src/config/examples/STM32F4/Configuration.h index 5ed9b3a182..634a08846d 100644 --- a/Marlin/src/config/examples/STM32F4/Configuration.h +++ b/Marlin/src/config/examples/STM32F4/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Sanguinololu/Configuration.h b/Marlin/src/config/examples/Sanguinololu/Configuration.h index 19f9fcea78..5311f5ce39 100644 --- a/Marlin/src/config/examples/Sanguinololu/Configuration.h +++ b/Marlin/src/config/examples/Sanguinololu/Configuration.h @@ -1020,8 +1020,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/TheBorg/Configuration.h b/Marlin/src/config/examples/TheBorg/Configuration.h index 8c62573881..8bcae8a3b9 100644 --- a/Marlin/src/config/examples/TheBorg/Configuration.h +++ b/Marlin/src/config/examples/TheBorg/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/TinyBoy2/Configuration.h b/Marlin/src/config/examples/TinyBoy2/Configuration.h index cbb7612d31..44af23c1fb 100644 --- a/Marlin/src/config/examples/TinyBoy2/Configuration.h +++ b/Marlin/src/config/examples/TinyBoy2/Configuration.h @@ -1045,8 +1045,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Tronxy/X1/Configuration.h b/Marlin/src/config/examples/Tronxy/X1/Configuration.h index 4ea3bdf9fd..f3f61803c7 100644 --- a/Marlin/src/config/examples/Tronxy/X1/Configuration.h +++ b/Marlin/src/config/examples/Tronxy/X1/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Tronxy/X3A/Configuration.h b/Marlin/src/config/examples/Tronxy/X3A/Configuration.h index 52ff0f85f3..572be073d9 100644 --- a/Marlin/src/config/examples/Tronxy/X3A/Configuration.h +++ b/Marlin/src/config/examples/Tronxy/X3A/Configuration.h @@ -993,8 +993,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Tronxy/X5S/Configuration.h b/Marlin/src/config/examples/Tronxy/X5S/Configuration.h index 6440ed0067..e7e2b6cb5d 100644 --- a/Marlin/src/config/examples/Tronxy/X5S/Configuration.h +++ b/Marlin/src/config/examples/Tronxy/X5S/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Tronxy/XY100/Configuration.h b/Marlin/src/config/examples/Tronxy/XY100/Configuration.h index b5578145ed..bdb220145d 100644 --- a/Marlin/src/config/examples/Tronxy/XY100/Configuration.h +++ b/Marlin/src/config/examples/Tronxy/XY100/Configuration.h @@ -1000,8 +1000,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/UltiMachine/Archim1/Configuration.h b/Marlin/src/config/examples/UltiMachine/Archim1/Configuration.h index d3116256db..dae63e13ce 100644 --- a/Marlin/src/config/examples/UltiMachine/Archim1/Configuration.h +++ b/Marlin/src/config/examples/UltiMachine/Archim1/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h b/Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h index 02f16c5860..97e977850b 100644 --- a/Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h +++ b/Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/VORONDesign/Configuration.h b/Marlin/src/config/examples/VORONDesign/Configuration.h index c56e35bda7..52f7d12ee2 100644 --- a/Marlin/src/config/examples/VORONDesign/Configuration.h +++ b/Marlin/src/config/examples/VORONDesign/Configuration.h @@ -998,8 +998,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Velleman/K8200/Configuration.h b/Marlin/src/config/examples/Velleman/K8200/Configuration.h index 1eeaa07771..fc2eaa519a 100644 --- a/Marlin/src/config/examples/Velleman/K8200/Configuration.h +++ b/Marlin/src/config/examples/Velleman/K8200/Configuration.h @@ -1019,8 +1019,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Velleman/K8400/Configuration.h b/Marlin/src/config/examples/Velleman/K8400/Configuration.h index da2ade6237..a6b03b4e95 100644 --- a/Marlin/src/config/examples/Velleman/K8400/Configuration.h +++ b/Marlin/src/config/examples/Velleman/K8400/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h b/Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h index 3876a07412..9137b51037 100644 --- a/Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h +++ b/Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/WASP/PowerWASP/Configuration.h b/Marlin/src/config/examples/WASP/PowerWASP/Configuration.h index a5841c7464..3a0d982966 100644 --- a/Marlin/src/config/examples/WASP/PowerWASP/Configuration.h +++ b/Marlin/src/config/examples/WASP/PowerWASP/Configuration.h @@ -1008,8 +1008,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h b/Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h index b7ef0acd2a..5bbbe60eac 100644 --- a/Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h +++ b/Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h @@ -999,8 +999,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/adafruit/ST7565/Configuration.h b/Marlin/src/config/examples/adafruit/ST7565/Configuration.h index 35c98e0e77..4186ddbd3b 100644 --- a/Marlin/src/config/examples/adafruit/ST7565/Configuration.h +++ b/Marlin/src/config/examples/adafruit/ST7565/Configuration.h @@ -989,8 +989,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration.h b/Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration.h index e0d8b8bddc..ed2f558037 100644 --- a/Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration.h +++ b/Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration.h @@ -1177,8 +1177,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h b/Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h index 20d2d38e3b..412e69397c 100644 --- a/Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h +++ b/Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h @@ -1117,8 +1117,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h b/Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h index fea7a17e54..b478f2ef75 100644 --- a/Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h +++ b/Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h @@ -1116,8 +1116,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h b/Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h index dae0eabe43..135a67fa15 100644 --- a/Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h +++ b/Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h @@ -1116,8 +1116,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/delta/Geeetech/Rostock 301/Configuration.h b/Marlin/src/config/examples/delta/Geeetech/Rostock 301/Configuration.h index 4f0719c810..c77f889575 100644 --- a/Marlin/src/config/examples/delta/Geeetech/Rostock 301/Configuration.h +++ b/Marlin/src/config/examples/delta/Geeetech/Rostock 301/Configuration.h @@ -1107,8 +1107,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/delta/Hatchbox_Alpha/Configuration.h b/Marlin/src/config/examples/delta/Hatchbox_Alpha/Configuration.h index 41d8e9d70d..c3abc8a697 100644 --- a/Marlin/src/config/examples/delta/Hatchbox_Alpha/Configuration.h +++ b/Marlin/src/config/examples/delta/Hatchbox_Alpha/Configuration.h @@ -1119,8 +1119,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/delta/MKS/SBASE/Configuration.h b/Marlin/src/config/examples/delta/MKS/SBASE/Configuration.h index 012cc2f7a2..bb98e4119c 100644 --- a/Marlin/src/config/examples/delta/MKS/SBASE/Configuration.h +++ b/Marlin/src/config/examples/delta/MKS/SBASE/Configuration.h @@ -1104,8 +1104,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/delta/Tevo Little Monster/Configuration.h b/Marlin/src/config/examples/delta/Tevo Little Monster/Configuration.h index 6c0e825cd2..ef95c68272 100644 --- a/Marlin/src/config/examples/delta/Tevo Little Monster/Configuration.h +++ b/Marlin/src/config/examples/delta/Tevo Little Monster/Configuration.h @@ -1108,8 +1108,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/delta/generic/Configuration.h b/Marlin/src/config/examples/delta/generic/Configuration.h index 6aad3a64e7..0aba3b1b6a 100644 --- a/Marlin/src/config/examples/delta/generic/Configuration.h +++ b/Marlin/src/config/examples/delta/generic/Configuration.h @@ -1104,8 +1104,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/delta/kossel_mini/Configuration.h b/Marlin/src/config/examples/delta/kossel_mini/Configuration.h index e0895dddae..d955ddbc66 100644 --- a/Marlin/src/config/examples/delta/kossel_mini/Configuration.h +++ b/Marlin/src/config/examples/delta/kossel_mini/Configuration.h @@ -1106,8 +1106,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/delta/kossel_pro/Configuration.h b/Marlin/src/config/examples/delta/kossel_pro/Configuration.h index a796abe6fd..c1ea1a5f18 100644 --- a/Marlin/src/config/examples/delta/kossel_pro/Configuration.h +++ b/Marlin/src/config/examples/delta/kossel_pro/Configuration.h @@ -1107,8 +1107,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/delta/kossel_xl/Configuration.h b/Marlin/src/config/examples/delta/kossel_xl/Configuration.h index c21ea8bb04..9b163d3b47 100644 --- a/Marlin/src/config/examples/delta/kossel_xl/Configuration.h +++ b/Marlin/src/config/examples/delta/kossel_xl/Configuration.h @@ -1107,8 +1107,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h b/Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h index 51d4ddce0b..0e0364ad02 100644 --- a/Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h +++ b/Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h @@ -1003,8 +1003,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/makibox/Configuration.h b/Marlin/src/config/examples/makibox/Configuration.h index 831d199ea7..9ccd93de9c 100644 --- a/Marlin/src/config/examples/makibox/Configuration.h +++ b/Marlin/src/config/examples/makibox/Configuration.h @@ -992,8 +992,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/stm32f103ret6/Configuration.h b/Marlin/src/config/examples/stm32f103ret6/Configuration.h index 934d3fdbcd..12e9400dfc 100644 --- a/Marlin/src/config/examples/stm32f103ret6/Configuration.h +++ b/Marlin/src/config/examples/stm32f103ret6/Configuration.h @@ -991,8 +991,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/tvrrug/Round2/Configuration.h b/Marlin/src/config/examples/tvrrug/Round2/Configuration.h index 1da1864f88..65dcf19b8e 100644 --- a/Marlin/src/config/examples/tvrrug/Round2/Configuration.h +++ b/Marlin/src/config/examples/tvrrug/Round2/Configuration.h @@ -984,8 +984,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/config/examples/wt150/Configuration.h b/Marlin/src/config/examples/wt150/Configuration.h index cec24b0c4f..c49914aea3 100644 --- a/Marlin/src/config/examples/wt150/Configuration.h +++ b/Marlin/src/config/examples/wt150/Configuration.h @@ -994,8 +994,21 @@ #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_PULLDOWN // Use internal pulldown for filament runout pins. + + // Set one or more commands to run on filament runout. + // - Always applies to SD-card printing. + // - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set. #define FILAMENT_RUNOUT_SCRIPT "M600" + // With this option, if filament runs out during host-based printing, Marlin + // will send "//action:" to the host and let the + // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT + // will be used on filament runout for both host-based and SD-card printing. + // + // The host must be able to respond to the //action: command set here. + // + //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout" + // After a runout is detected, continue printing this length of filament // before executing the runout script. Useful for a sensor at the end of // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead. diff --git a/Marlin/src/feature/runout.h b/Marlin/src/feature/runout.h index 463f99d40b..65a262920b 100644 --- a/Marlin/src/feature/runout.h +++ b/Marlin/src/feature/runout.h @@ -95,7 +95,13 @@ class TFilamentMonitor : public FilamentMonitorBase { if (ran_out) { filament_ran_out = true; #if ENABLED(EXTENSIBLE_UI) - ExtUI::onFilamentRunout(); + ExtUI::onFilamentRunout(ExtUI::getActiveTool()); + #endif + #ifdef FILAMENT_RUNOUT_ACTION + SERIAL_ECHOLNPAIR("//action:" FILAMENT_RUNOUT_ACTION " ", active_extruder); + if (!IS_SD_PRINTING()) + reset(); + else #endif enqueue_and_echo_commands_P(PSTR(FILAMENT_RUNOUT_SCRIPT)); planner.synchronize(); diff --git a/Marlin/src/lcd/extensible_ui/ui_api.h b/Marlin/src/lcd/extensible_ui/ui_api.h index 9a61ef75be..7d64f84305 100644 --- a/Marlin/src/lcd/extensible_ui/ui_api.h +++ b/Marlin/src/lcd/extensible_ui/ui_api.h @@ -237,7 +237,7 @@ namespace ExtUI { void onPrintTimerStarted(); void onPrintTimerPaused(); void onPrintTimerStopped(); - void onFilamentRunout(); + void onFilamentRunout(const extruder_t extruder); void onStatusChanged(const char * const msg); void onFactoryReset(); void onStoreSettings();