diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index ea0ab63ff..d5214d882 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 ea0ab63ff..d5214d882 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 6e41ba890..c76948944 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 8b261fd06..456ab7b13 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 8ef893b02..b83387e95 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 ad86e0f04..e322eded3 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 474351de9..ef978e1f4 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 bf7be458d..4016ee14b 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 28a7a99fa..0076f9905 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 3663ce733..1ddbc4584 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 6bdfc01ca..cf7c6eb3a 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 5d20a2013..4f049c548 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 fc197dd47..aac07912e 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 d40c88a5b..571976088 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 7bce73973..3229f2785 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 d31635cf9..8c9544307 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 739fb8918..ddad01acf 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 22e73414a..1db76dee4 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 3dd5f0843..e9b49d96d 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 65e583c11..bd865cdfa 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 22562b5aa..6dc12d2a1 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 a21dd75b6..3285f922d 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 da3da449f..c50ee9b16 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 b64de5d24..0bb132fcb 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 e127c10ec..466cc0d6d 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 2c961fa43..09a862950 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 2b5ab1e69..a8402b3ae 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 4b4de40af..531cd8c0d 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 d92a2f9dc..0b7bf17fb 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 e346ccf2a..4d63e41c5 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 178327dad..59f4586bb 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 5007f54d9..a24ebf461 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 36017b8f2..0d852d991 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 c53ddeb13..c945d9069 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 ae3315108..9565d9a5c 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 e2a3c31db..8225db882 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 cd8488a19..0712e4f8e 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 4aa68e4c0..33dd05a3e 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 c1d41d7dc..7353b4260 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 7a4b81c75..4eef94895 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 fe00fb7e3..cc10774cf 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 552055959..b629becf5 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 fbd360eb6..b60dd74d7 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 90d3776ad..1025ccb60 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 f6408af9f..01af8f3c2 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 9743b70f8..4a3284781 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 9f0cea775..54d186fc3 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 aa280cce0..6b0c3f350 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 2a9bafdd1..fc4c536c4 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 1f7e07f05..1cde9106e 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 21469f9f7..24d5e5ffe 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 06ce2c3e0..e30f4c78c 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 c350722fc..6a7cdcf09 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 81f6181f9..e569f6c65 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 2f5c4caba..507b62cbd 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 5ed9b3a18..634a08846 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 19f9fcea7..5311f5ce3 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 8c6257388..8bcae8a3b 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 cbb7612d3..44af23c1f 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 4ea3bdf9f..f3f61803c 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 52ff0f85f..572be073d 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 6440ed006..e7e2b6cb5 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 b5578145e..bdb220145 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 d3116256d..dae63e13c 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 02f16c586..97e977850 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 c56e35bda..52f7d12ee 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 1eeaa0777..fc2eaa519 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 da2ade623..a6b03b4e9 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 3876a0741..9137b5103 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 a5841c746..3a0d98296 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 b7ef0acd2..5bbbe60ea 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 35c98e0e7..4186ddbd3 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 e0d8b8bdd..ed2f55803 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 20d2d38e3..412e69397 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 fea7a17e5..b478f2ef7 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 dae0eabe4..135a67fa1 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 4f0719c81..c77f88957 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 41d8e9d70..c3abc8a69 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 012cc2f7a..bb98e4119 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 6c0e825cd..ef95c6827 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 6aad3a64e..0aba3b1b6 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 e0895ddda..d955ddbc6 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 a796abe6f..c1ea1a5f1 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 c21ea8bb0..9b163d3b4 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 51d4ddce0..0e0364ad0 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 831d199ea..9ccd93de9 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 934d3fdbc..12e9400df 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 1da1864f8..65dcf19b8 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 cec24b0c4..c49914aea 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 463f99d40..65a262920 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 9a61ef75b..7d64f8430 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();