Browse Source

Action to notify host of filament runout. (#12817)

Marcio Teixeira 5 years ago
parent
commit
f214118e45
91 changed files with 1166 additions and 3 deletions
  1. 13
    0
      Marlin/Configuration.h
  2. 13
    0
      Marlin/src/config/default/Configuration.h
  3. 13
    0
      Marlin/src/config/examples/3DFabXYZ/Migbot/Configuration.h
  4. 13
    0
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h
  5. 13
    0
      Marlin/src/config/examples/AliExpress/CL-260/Configuration.h
  6. 13
    0
      Marlin/src/config/examples/Anet/A2/Configuration.h
  7. 13
    0
      Marlin/src/config/examples/Anet/A2plus/Configuration.h
  8. 13
    0
      Marlin/src/config/examples/Anet/A6/Configuration.h
  9. 13
    0
      Marlin/src/config/examples/Anet/A8/Configuration.h
  10. 13
    0
      Marlin/src/config/examples/AnyCubic/i3/Configuration.h
  11. 13
    0
      Marlin/src/config/examples/ArmEd/Configuration.h
  12. 13
    0
      Marlin/src/config/examples/Azteeg/X5GT/Configuration.h
  13. 13
    0
      Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h
  14. 13
    0
      Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h
  15. 13
    0
      Marlin/src/config/examples/BQ/Hephestos/Configuration.h
  16. 13
    0
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h
  17. 13
    0
      Marlin/src/config/examples/BQ/WITBOX/Configuration.h
  18. 13
    0
      Marlin/src/config/examples/Cartesio/Configuration.h
  19. 13
    0
      Marlin/src/config/examples/Creality/CR-10/Configuration.h
  20. 14
    1
      Marlin/src/config/examples/Creality/CR-10S/Configuration.h
  21. 13
    0
      Marlin/src/config/examples/Creality/CR-10mini/Configuration.h
  22. 13
    0
      Marlin/src/config/examples/Creality/CR-8/Configuration.h
  23. 13
    0
      Marlin/src/config/examples/Creality/Ender-2/Configuration.h
  24. 13
    0
      Marlin/src/config/examples/Creality/Ender-3/Configuration.h
  25. 13
    0
      Marlin/src/config/examples/Creality/Ender-4/Configuration.h
  26. 13
    0
      Marlin/src/config/examples/Einstart-S/Configuration.h
  27. 13
    0
      Marlin/src/config/examples/Felix/Configuration.h
  28. 13
    0
      Marlin/src/config/examples/Felix/DUAL/Configuration.h
  29. 13
    0
      Marlin/src/config/examples/FlashForge/CreatorPro/Configuration.h
  30. 13
    0
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h
  31. 13
    0
      Marlin/src/config/examples/Formbot/Raptor/Configuration.h
  32. 13
    0
      Marlin/src/config/examples/Formbot/T_Rex_2+/Configuration.h
  33. 13
    0
      Marlin/src/config/examples/Formbot/T_Rex_3/Configuration.h
  34. 13
    0
      Marlin/src/config/examples/Geeetech/GT2560/Configuration.h
  35. 13
    0
      Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h
  36. 13
    0
      Marlin/src/config/examples/Geeetech/MeCreator2/Configuration.h
  37. 13
    0
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h
  38. 13
    0
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h
  39. 13
    0
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration.h
  40. 13
    0
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration.h
  41. 13
    0
      Marlin/src/config/examples/Infitary/i3-M508/Configuration.h
  42. 13
    0
      Marlin/src/config/examples/JGAurora/A5/Configuration.h
  43. 13
    0
      Marlin/src/config/examples/MakerParts/Configuration.h
  44. 13
    0
      Marlin/src/config/examples/Malyan/M150/Configuration.h
  45. 13
    0
      Marlin/src/config/examples/Malyan/M200/Configuration.h
  46. 13
    0
      Marlin/src/config/examples/Micromake/C1/basic/Configuration.h
  47. 13
    0
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h
  48. 13
    0
      Marlin/src/config/examples/Mks/Robin/Configuration.h
  49. 13
    0
      Marlin/src/config/examples/Mks/Sbase/Configuration.h
  50. 13
    0
      Marlin/src/config/examples/RapideLite/RL200/Configuration.h
  51. 13
    0
      Marlin/src/config/examples/RepRapPro/Huxley/Configuration.h
  52. 13
    0
      Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h
  53. 13
    0
      Marlin/src/config/examples/RigidBot/Configuration.h
  54. 13
    0
      Marlin/src/config/examples/SCARA/Configuration.h
  55. 13
    0
      Marlin/src/config/examples/STM32F10/Configuration.h
  56. 13
    0
      Marlin/src/config/examples/STM32F4/Configuration.h
  57. 13
    0
      Marlin/src/config/examples/Sanguinololu/Configuration.h
  58. 13
    0
      Marlin/src/config/examples/TheBorg/Configuration.h
  59. 13
    0
      Marlin/src/config/examples/TinyBoy2/Configuration.h
  60. 13
    0
      Marlin/src/config/examples/Tronxy/X1/Configuration.h
  61. 13
    0
      Marlin/src/config/examples/Tronxy/X3A/Configuration.h
  62. 13
    0
      Marlin/src/config/examples/Tronxy/X5S/Configuration.h
  63. 13
    0
      Marlin/src/config/examples/Tronxy/XY100/Configuration.h
  64. 13
    0
      Marlin/src/config/examples/UltiMachine/Archim1/Configuration.h
  65. 13
    0
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h
  66. 13
    0
      Marlin/src/config/examples/VORONDesign/Configuration.h
  67. 13
    0
      Marlin/src/config/examples/Velleman/K8200/Configuration.h
  68. 13
    0
      Marlin/src/config/examples/Velleman/K8400/Configuration.h
  69. 13
    0
      Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h
  70. 13
    0
      Marlin/src/config/examples/WASP/PowerWASP/Configuration.h
  71. 13
    0
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h
  72. 13
    0
      Marlin/src/config/examples/adafruit/ST7565/Configuration.h
  73. 13
    0
      Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration.h
  74. 13
    0
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h
  75. 13
    0
      Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h
  76. 13
    0
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h
  77. 13
    0
      Marlin/src/config/examples/delta/Geeetech/Rostock 301/Configuration.h
  78. 13
    0
      Marlin/src/config/examples/delta/Hatchbox_Alpha/Configuration.h
  79. 13
    0
      Marlin/src/config/examples/delta/MKS/SBASE/Configuration.h
  80. 13
    0
      Marlin/src/config/examples/delta/Tevo Little Monster/Configuration.h
  81. 13
    0
      Marlin/src/config/examples/delta/generic/Configuration.h
  82. 13
    0
      Marlin/src/config/examples/delta/kossel_mini/Configuration.h
  83. 13
    0
      Marlin/src/config/examples/delta/kossel_pro/Configuration.h
  84. 13
    0
      Marlin/src/config/examples/delta/kossel_xl/Configuration.h
  85. 13
    0
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h
  86. 13
    0
      Marlin/src/config/examples/makibox/Configuration.h
  87. 13
    0
      Marlin/src/config/examples/stm32f103ret6/Configuration.h
  88. 13
    0
      Marlin/src/config/examples/tvrrug/Round2/Configuration.h
  89. 13
    0
      Marlin/src/config/examples/wt150/Configuration.h
  90. 7
    1
      Marlin/src/feature/runout.h
  91. 1
    1
      Marlin/src/lcd/extensible_ui/ui_api.h

+ 13
- 0
Marlin/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/default/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/3DFabXYZ/Migbot/Configuration.h View File

@@ -995,8 +995,21 @@
995 995
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
996 996
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
997 997
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
998
+
999
+  // Set one or more commands to run on filament runout.
1000
+  //  - Always applies to SD-card printing.
1001
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
998 1002
   #define FILAMENT_RUNOUT_SCRIPT "M600"
999 1003
 
1004
+  // With this option, if filament runs out during host-based printing, Marlin
1005
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1006
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1007
+  // will be used on filament runout for both host-based and SD-card printing.
1008
+  //
1009
+  // The host must be able to respond to the //action: command set here.
1010
+  //
1011
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1012
+
1000 1013
   // After a runout is detected, continue printing this length of filament
1001 1014
   // before executing the runout script. Useful for a sensor at the end of
1002 1015
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h View File

@@ -1009,8 +1009,21 @@
1009 1009
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1010 1010
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1011 1011
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1012
+
1013
+  // Set one or more commands to run on filament runout.
1014
+  //  - Always applies to SD-card printing.
1015
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1012 1016
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1013 1017
 
1018
+  // With this option, if filament runs out during host-based printing, Marlin
1019
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1020
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1021
+  // will be used on filament runout for both host-based and SD-card printing.
1022
+  //
1023
+  // The host must be able to respond to the //action: command set here.
1024
+  //
1025
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1026
+
1014 1027
   // After a runout is detected, continue printing this length of filament
1015 1028
   // before executing the runout script. Useful for a sensor at the end of
1016 1029
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/AliExpress/CL-260/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Anet/A2/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Anet/A2plus/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Anet/A6/Configuration.h View File

@@ -1103,8 +1103,21 @@
1103 1103
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1104 1104
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1105 1105
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1106
+
1107
+  // Set one or more commands to run on filament runout.
1108
+  //  - Always applies to SD-card printing.
1109
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1106 1110
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1107 1111
 
1112
+  // With this option, if filament runs out during host-based printing, Marlin
1113
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1114
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1115
+  // will be used on filament runout for both host-based and SD-card printing.
1116
+  //
1117
+  // The host must be able to respond to the //action: command set here.
1118
+  //
1119
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1120
+
1108 1121
   // After a runout is detected, continue printing this length of filament
1109 1122
   // before executing the runout script. Useful for a sensor at the end of
1110 1123
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Anet/A8/Configuration.h View File

@@ -1002,8 +1002,21 @@
1002 1002
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1003 1003
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1004 1004
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1005
+
1006
+  // Set one or more commands to run on filament runout.
1007
+  //  - Always applies to SD-card printing.
1008
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1005 1009
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1006 1010
 
1011
+  // With this option, if filament runs out during host-based printing, Marlin
1012
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1013
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1014
+  // will be used on filament runout for both host-based and SD-card printing.
1015
+  //
1016
+  // The host must be able to respond to the //action: command set here.
1017
+  //
1018
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1019
+
1007 1020
   // After a runout is detected, continue printing this length of filament
1008 1021
   // before executing the runout script. Useful for a sensor at the end of
1009 1022
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/AnyCubic/i3/Configuration.h View File

@@ -1000,8 +1000,21 @@
1000 1000
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1001 1001
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1002 1002
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1003
+
1004
+  // Set one or more commands to run on filament runout.
1005
+  //  - Always applies to SD-card printing.
1006
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1003 1007
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1004 1008
 
1009
+  // With this option, if filament runs out during host-based printing, Marlin
1010
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1011
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1012
+  // will be used on filament runout for both host-based and SD-card printing.
1013
+  //
1014
+  // The host must be able to respond to the //action: command set here.
1015
+  //
1016
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1017
+
1005 1018
   // After a runout is detected, continue printing this length of filament
1006 1019
   // before executing the runout script. Useful for a sensor at the end of
1007 1020
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/ArmEd/Configuration.h View File

@@ -990,8 +990,21 @@
990 990
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
991 991
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
992 992
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
993
+
994
+  // Set one or more commands to run on filament runout.
995
+  //  - Always applies to SD-card printing.
996
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
993 997
   #define FILAMENT_RUNOUT_SCRIPT "M600"
994 998
 
999
+  // With this option, if filament runs out during host-based printing, Marlin
1000
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1001
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1002
+  // will be used on filament runout for both host-based and SD-card printing.
1003
+  //
1004
+  // The host must be able to respond to the //action: command set here.
1005
+  //
1006
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1007
+
995 1008
   // After a runout is detected, continue printing this length of filament
996 1009
   // before executing the runout script. Useful for a sensor at the end of
997 1010
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Azteeg/X5GT/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/BQ/Hephestos/Configuration.h View File

@@ -977,8 +977,21 @@
977 977
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
978 978
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
979 979
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
980
+
981
+  // Set one or more commands to run on filament runout.
982
+  //  - Always applies to SD-card printing.
983
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
980 984
   #define FILAMENT_RUNOUT_SCRIPT "M600"
981 985
 
986
+  // With this option, if filament runs out during host-based printing, Marlin
987
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
988
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
989
+  // will be used on filament runout for both host-based and SD-card printing.
990
+  //
991
+  // The host must be able to respond to the //action: command set here.
992
+  //
993
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
994
+
982 995
   // After a runout is detected, continue printing this length of filament
983 996
   // before executing the runout script. Useful for a sensor at the end of
984 997
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
990 990
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
991 991
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/BQ/WITBOX/Configuration.h View File

@@ -977,8 +977,21 @@
977 977
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
978 978
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
979 979
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
980
+
981
+  // Set one or more commands to run on filament runout.
982
+  //  - Always applies to SD-card printing.
983
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
980 984
   #define FILAMENT_RUNOUT_SCRIPT "M600"
981 985
 
986
+  // With this option, if filament runs out during host-based printing, Marlin
987
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
988
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
989
+  // will be used on filament runout for both host-based and SD-card printing.
990
+  //
991
+  // The host must be able to respond to the //action: command set here.
992
+  //
993
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
994
+
982 995
   // After a runout is detected, continue printing this length of filament
983 996
   // before executing the runout script. Useful for a sensor at the end of
984 997
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Cartesio/Configuration.h View File

@@ -988,8 +988,21 @@
988 988
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
989 989
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
990 990
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
991
+
992
+  // Set one or more commands to run on filament runout.
993
+  //  - Always applies to SD-card printing.
994
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
991 995
   #define FILAMENT_RUNOUT_SCRIPT "M600"
992 996
 
997
+  // With this option, if filament runs out during host-based printing, Marlin
998
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
999
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1000
+  // will be used on filament runout for both host-based and SD-card printing.
1001
+  //
1002
+  // The host must be able to respond to the //action: command set here.
1003
+  //
1004
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1005
+
993 1006
   // After a runout is detected, continue printing this length of filament
994 1007
   // before executing the runout script. Useful for a sensor at the end of
995 1008
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Creality/CR-10/Configuration.h View File

@@ -999,8 +999,21 @@
999 999
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1000 1000
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1001 1001
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1002
+
1003
+  // Set one or more commands to run on filament runout.
1004
+  //  - Always applies to SD-card printing.
1005
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1002 1006
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1003 1007
 
1008
+  // With this option, if filament runs out during host-based printing, Marlin
1009
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1010
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1011
+  // will be used on filament runout for both host-based and SD-card printing.
1012
+  //
1013
+  // The host must be able to respond to the //action: command set here.
1014
+  //
1015
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1016
+
1004 1017
   // After a runout is detected, continue printing this length of filament
1005 1018
   // before executing the runout script. Useful for a sensor at the end of
1006 1019
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 14
- 1
Marlin/src/config/examples/Creality/CR-10S/Configuration.h View File

@@ -989,9 +989,22 @@
989 989
   #define FIL_RUNOUT_INVERTING true // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
-  #define FILAMENT_RUNOUT_SCRIPT "M600"
993 992
   #define FIL_RUNOUT_PIN 2 // Creality CR10-S stock sensor
994 993
 
994
+  // Set one or more commands to run on filament runout.
995
+  //  - Always applies to SD-card printing.
996
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
997
+  #define FILAMENT_RUNOUT_SCRIPT "M600"
998
+
999
+  // With this option, if filament runs out during host-based printing, Marlin
1000
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1001
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1002
+  // will be used on filament runout for both host-based and SD-card printing.
1003
+  //
1004
+  // The host must be able to respond to the //action: command set here.
1005
+  //
1006
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1007
+
995 1008
   // After a runout is detected, continue printing this length of filament
996 1009
   // before executing the runout script. Useful for a sensor at the end of
997 1010
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Creality/CR-10mini/Configuration.h View File

@@ -1008,8 +1008,21 @@
1008 1008
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1009 1009
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1010 1010
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1011
+
1012
+  // Set one or more commands to run on filament runout.
1013
+  //  - Always applies to SD-card printing.
1014
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1011 1015
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1012 1016
 
1017
+  // With this option, if filament runs out during host-based printing, Marlin
1018
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1019
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1020
+  // will be used on filament runout for both host-based and SD-card printing.
1021
+  //
1022
+  // The host must be able to respond to the //action: command set here.
1023
+  //
1024
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1025
+
1013 1026
   // After a runout is detected, continue printing this length of filament
1014 1027
   // before executing the runout script. Useful for a sensor at the end of
1015 1028
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Creality/CR-8/Configuration.h View File

@@ -999,8 +999,21 @@
999 999
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1000 1000
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1001 1001
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1002
+
1003
+  // Set one or more commands to run on filament runout.
1004
+  //  - Always applies to SD-card printing.
1005
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1002 1006
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1003 1007
 
1008
+  // With this option, if filament runs out during host-based printing, Marlin
1009
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1010
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1011
+  // will be used on filament runout for both host-based and SD-card printing.
1012
+  //
1013
+  // The host must be able to respond to the //action: command set here.
1014
+  //
1015
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1016
+
1004 1017
   // After a runout is detected, continue printing this length of filament
1005 1018
   // before executing the runout script. Useful for a sensor at the end of
1006 1019
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Creality/Ender-2/Configuration.h View File

@@ -993,8 +993,21 @@
993 993
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
994 994
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
995 995
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
996
+
997
+  // Set one or more commands to run on filament runout.
998
+  //  - Always applies to SD-card printing.
999
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
996 1000
   #define FILAMENT_RUNOUT_SCRIPT "M600"
997 1001
 
1002
+  // With this option, if filament runs out during host-based printing, Marlin
1003
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1004
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1005
+  // will be used on filament runout for both host-based and SD-card printing.
1006
+  //
1007
+  // The host must be able to respond to the //action: command set here.
1008
+  //
1009
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1010
+
998 1011
   // After a runout is detected, continue printing this length of filament
999 1012
   // before executing the runout script. Useful for a sensor at the end of
1000 1013
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Creality/Ender-3/Configuration.h View File

@@ -993,8 +993,21 @@
993 993
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
994 994
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
995 995
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
996
+
997
+  // Set one or more commands to run on filament runout.
998
+  //  - Always applies to SD-card printing.
999
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
996 1000
   #define FILAMENT_RUNOUT_SCRIPT "M600"
997 1001
 
1002
+  // With this option, if filament runs out during host-based printing, Marlin
1003
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1004
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1005
+  // will be used on filament runout for both host-based and SD-card printing.
1006
+  //
1007
+  // The host must be able to respond to the //action: command set here.
1008
+  //
1009
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1010
+
998 1011
   // After a runout is detected, continue printing this length of filament
999 1012
   // before executing the runout script. Useful for a sensor at the end of
1000 1013
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Creality/Ender-4/Configuration.h View File

@@ -999,8 +999,21 @@
999 999
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1000 1000
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1001 1001
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1002
+
1003
+  // Set one or more commands to run on filament runout.
1004
+  //  - Always applies to SD-card printing.
1005
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1002 1006
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1003 1007
 
1008
+  // With this option, if filament runs out during host-based printing, Marlin
1009
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1010
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1011
+  // will be used on filament runout for both host-based and SD-card printing.
1012
+  //
1013
+  // The host must be able to respond to the //action: command set here.
1014
+  //
1015
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1016
+
1004 1017
   // After a runout is detected, continue printing this length of filament
1005 1018
   // before executing the runout script. Useful for a sensor at the end of
1006 1019
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Einstart-S/Configuration.h View File

@@ -999,8 +999,21 @@
999 999
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1000 1000
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1001 1001
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1002
+
1003
+  // Set one or more commands to run on filament runout.
1004
+  //  - Always applies to SD-card printing.
1005
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1002 1006
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1003 1007
 
1008
+  // With this option, if filament runs out during host-based printing, Marlin
1009
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1010
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1011
+  // will be used on filament runout for both host-based and SD-card printing.
1012
+  //
1013
+  // The host must be able to respond to the //action: command set here.
1014
+  //
1015
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1016
+
1004 1017
   // After a runout is detected, continue printing this length of filament
1005 1018
   // before executing the runout script. Useful for a sensor at the end of
1006 1019
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Felix/Configuration.h View File

@@ -971,8 +971,21 @@
971 971
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
972 972
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
973 973
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
974
+
975
+  // Set one or more commands to run on filament runout.
976
+  //  - Always applies to SD-card printing.
977
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
974 978
   #define FILAMENT_RUNOUT_SCRIPT "M600"
975 979
 
980
+  // With this option, if filament runs out during host-based printing, Marlin
981
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
982
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
983
+  // will be used on filament runout for both host-based and SD-card printing.
984
+  //
985
+  // The host must be able to respond to the //action: command set here.
986
+  //
987
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
988
+
976 989
   // After a runout is detected, continue printing this length of filament
977 990
   // before executing the runout script. Useful for a sensor at the end of
978 991
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Felix/DUAL/Configuration.h View File

@@ -971,8 +971,21 @@
971 971
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
972 972
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
973 973
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
974
+
975
+  // Set one or more commands to run on filament runout.
976
+  //  - Always applies to SD-card printing.
977
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
974 978
   #define FILAMENT_RUNOUT_SCRIPT "M600"
975 979
 
980
+  // With this option, if filament runs out during host-based printing, Marlin
981
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
982
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
983
+  // will be used on filament runout for both host-based and SD-card printing.
984
+  //
985
+  // The host must be able to respond to the //action: command set here.
986
+  //
987
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
988
+
976 989
   // After a runout is detected, continue printing this length of filament
977 990
   // before executing the runout script. Useful for a sensor at the end of
978 991
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/FlashForge/CreatorPro/Configuration.h View File

@@ -982,8 +982,21 @@
982 982
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
983 983
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
984 984
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
985
+
986
+  // Set one or more commands to run on filament runout.
987
+  //  - Always applies to SD-card printing.
988
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
985 989
   #define FILAMENT_RUNOUT_SCRIPT "M600"
986 990
 
991
+  // With this option, if filament runs out during host-based printing, Marlin
992
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
993
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
994
+  // will be used on filament runout for both host-based and SD-card printing.
995
+  //
996
+  // The host must be able to respond to the //action: command set here.
997
+  //
998
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
999
+
987 1000
   // After a runout is detected, continue printing this length of filament
988 1001
   // before executing the runout script. Useful for a sensor at the end of
989 1002
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h View File

@@ -995,8 +995,21 @@
995 995
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
996 996
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
997 997
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
998
+
999
+  // Set one or more commands to run on filament runout.
1000
+  //  - Always applies to SD-card printing.
1001
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
998 1002
   #define FILAMENT_RUNOUT_SCRIPT "M600"
999 1003
 
1004
+  // With this option, if filament runs out during host-based printing, Marlin
1005
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1006
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1007
+  // will be used on filament runout for both host-based and SD-card printing.
1008
+  //
1009
+  // The host must be able to respond to the //action: command set here.
1010
+  //
1011
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1012
+
1000 1013
   // After a runout is detected, continue printing this length of filament
1001 1014
   // before executing the runout script. Useful for a sensor at the end of
1002 1015
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Formbot/Raptor/Configuration.h View File

@@ -1087,8 +1087,21 @@
1087 1087
   #define FIL_RUNOUT_INVERTING true  // set to true to invert the logic of the sensor.
1088 1088
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1089 1089
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1090
+
1091
+  // Set one or more commands to run on filament runout.
1092
+  //  - Always applies to SD-card printing.
1093
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1090 1094
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1091 1095
 
1096
+  // With this option, if filament runs out during host-based printing, Marlin
1097
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1098
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1099
+  // will be used on filament runout for both host-based and SD-card printing.
1100
+  //
1101
+  // The host must be able to respond to the //action: command set here.
1102
+  //
1103
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1104
+
1092 1105
   // After a runout is detected, continue printing this length of filament
1093 1106
   // before executing the runout script. Useful for a sensor at the end of
1094 1107
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Formbot/T_Rex_2+/Configuration.h View File

@@ -1019,8 +1019,21 @@
1019 1019
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1020 1020
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1021 1021
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1022
+
1023
+  // Set one or more commands to run on filament runout.
1024
+  //  - Always applies to SD-card printing.
1025
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1022 1026
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1023 1027
 
1028
+  // With this option, if filament runs out during host-based printing, Marlin
1029
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1030
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1031
+  // will be used on filament runout for both host-based and SD-card printing.
1032
+  //
1033
+  // The host must be able to respond to the //action: command set here.
1034
+  //
1035
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1036
+
1024 1037
   // After a runout is detected, continue printing this length of filament
1025 1038
   // before executing the runout script. Useful for a sensor at the end of
1026 1039
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Formbot/T_Rex_3/Configuration.h View File

@@ -1014,8 +1014,21 @@
1014 1014
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1015 1015
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1016 1016
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1017
+
1018
+  // Set one or more commands to run on filament runout.
1019
+  //  - Always applies to SD-card printing.
1020
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1017 1021
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1018 1022
 
1023
+  // With this option, if filament runs out during host-based printing, Marlin
1024
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1025
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1026
+  // will be used on filament runout for both host-based and SD-card printing.
1027
+  //
1028
+  // The host must be able to respond to the //action: command set here.
1029
+  //
1030
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1031
+
1019 1032
   // After a runout is detected, continue printing this length of filament
1020 1033
   // before executing the runout script. Useful for a sensor at the end of
1021 1034
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Geeetech/GT2560/Configuration.h View File

@@ -1004,8 +1004,21 @@
1004 1004
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1005 1005
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1006 1006
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1007
+
1008
+  // Set one or more commands to run on filament runout.
1009
+  //  - Always applies to SD-card printing.
1010
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1007 1011
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1008 1012
 
1013
+  // With this option, if filament runs out during host-based printing, Marlin
1014
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1015
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1016
+  // will be used on filament runout for both host-based and SD-card printing.
1017
+  //
1018
+  // The host must be able to respond to the //action: command set here.
1019
+  //
1020
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1021
+
1009 1022
   // After a runout is detected, continue printing this length of filament
1010 1023
   // before executing the runout script. Useful for a sensor at the end of
1011 1024
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Geeetech/MeCreator2/Configuration.h View File

@@ -996,8 +996,21 @@
996 996
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
997 997
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
998 998
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
999
+
1000
+  // Set one or more commands to run on filament runout.
1001
+  //  - Always applies to SD-card printing.
1002
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
999 1003
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1000 1004
 
1005
+  // With this option, if filament runs out during host-based printing, Marlin
1006
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1007
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1008
+  // will be used on filament runout for both host-based and SD-card printing.
1009
+  //
1010
+  // The host must be able to respond to the //action: command set here.
1011
+  //
1012
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1013
+
1001 1014
   // After a runout is detected, continue printing this length of filament
1002 1015
   // before executing the runout script. Useful for a sensor at the end of
1003 1016
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h View File

@@ -1005,8 +1005,21 @@
1005 1005
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1006 1006
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1007 1007
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1008
+
1009
+  // Set one or more commands to run on filament runout.
1010
+  //  - Always applies to SD-card printing.
1011
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1008 1012
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1009 1013
 
1014
+  // With this option, if filament runs out during host-based printing, Marlin
1015
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1016
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1017
+  // will be used on filament runout for both host-based and SD-card printing.
1018
+  //
1019
+  // The host must be able to respond to the //action: command set here.
1020
+  //
1021
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1022
+
1010 1023
   // After a runout is detected, continue printing this length of filament
1011 1024
   // before executing the runout script. Useful for a sensor at the end of
1012 1025
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h View File

@@ -1004,8 +1004,21 @@
1004 1004
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1005 1005
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1006 1006
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1007
+
1008
+  // Set one or more commands to run on filament runout.
1009
+  //  - Always applies to SD-card printing.
1010
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1007 1011
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1008 1012
 
1013
+  // With this option, if filament runs out during host-based printing, Marlin
1014
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1015
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1016
+  // will be used on filament runout for both host-based and SD-card printing.
1017
+  //
1018
+  // The host must be able to respond to the //action: command set here.
1019
+  //
1020
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1021
+
1009 1022
   // After a runout is detected, continue printing this length of filament
1010 1023
   // before executing the runout script. Useful for a sensor at the end of
1011 1024
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Infitary/i3-M508/Configuration.h View File

@@ -993,8 +993,21 @@
993 993
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
994 994
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
995 995
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
996
+
997
+  // Set one or more commands to run on filament runout.
998
+  //  - Always applies to SD-card printing.
999
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
996 1000
   #define FILAMENT_RUNOUT_SCRIPT "M600"
997 1001
 
1002
+  // With this option, if filament runs out during host-based printing, Marlin
1003
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1004
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1005
+  // will be used on filament runout for both host-based and SD-card printing.
1006
+  //
1007
+  // The host must be able to respond to the //action: command set here.
1008
+  //
1009
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1010
+
998 1011
   // After a runout is detected, continue printing this length of filament
999 1012
   // before executing the runout script. Useful for a sensor at the end of
1000 1013
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/JGAurora/A5/Configuration.h View File

@@ -1001,8 +1001,21 @@
1001 1001
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1002 1002
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1003 1003
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1004
+
1005
+  // Set one or more commands to run on filament runout.
1006
+  //  - Always applies to SD-card printing.
1007
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1004 1008
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1005 1009
 
1010
+  // With this option, if filament runs out during host-based printing, Marlin
1011
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1012
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1013
+  // will be used on filament runout for both host-based and SD-card printing.
1014
+  //
1015
+  // The host must be able to respond to the //action: command set here.
1016
+  //
1017
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1018
+
1006 1019
   // After a runout is detected, continue printing this length of filament
1007 1020
   // before executing the runout script. Useful for a sensor at the end of
1008 1021
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/MakerParts/Configuration.h View File

@@ -1009,8 +1009,21 @@
1009 1009
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1010 1010
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1011 1011
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1012
+
1013
+  // Set one or more commands to run on filament runout.
1014
+  //  - Always applies to SD-card printing.
1015
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1012 1016
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1013 1017
 
1018
+  // With this option, if filament runs out during host-based printing, Marlin
1019
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1020
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1021
+  // will be used on filament runout for both host-based and SD-card printing.
1022
+  //
1023
+  // The host must be able to respond to the //action: command set here.
1024
+  //
1025
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1026
+
1014 1027
   // After a runout is detected, continue printing this length of filament
1015 1028
   // before executing the runout script. Useful for a sensor at the end of
1016 1029
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Malyan/M150/Configuration.h View File

@@ -1013,8 +1013,21 @@
1013 1013
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1014 1014
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1015 1015
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1016
+
1017
+  // Set one or more commands to run on filament runout.
1018
+  //  - Always applies to SD-card printing.
1019
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1016 1020
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1017 1021
 
1022
+  // With this option, if filament runs out during host-based printing, Marlin
1023
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1024
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1025
+  // will be used on filament runout for both host-based and SD-card printing.
1026
+  //
1027
+  // The host must be able to respond to the //action: command set here.
1028
+  //
1029
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1030
+
1018 1031
   // After a runout is detected, continue printing this length of filament
1019 1032
   // before executing the runout script. Useful for a sensor at the end of
1020 1033
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Malyan/M200/Configuration.h View File

@@ -988,8 +988,21 @@
988 988
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
989 989
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
990 990
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
991
+
992
+  // Set one or more commands to run on filament runout.
993
+  //  - Always applies to SD-card printing.
994
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
991 995
   #define FILAMENT_RUNOUT_SCRIPT "M600"
992 996
 
997
+  // With this option, if filament runs out during host-based printing, Marlin
998
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
999
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1000
+  // will be used on filament runout for both host-based and SD-card printing.
1001
+  //
1002
+  // The host must be able to respond to the //action: command set here.
1003
+  //
1004
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1005
+
993 1006
   // After a runout is detected, continue printing this length of filament
994 1007
   // before executing the runout script. Useful for a sensor at the end of
995 1008
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Micromake/C1/basic/Configuration.h View File

@@ -993,8 +993,21 @@
993 993
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
994 994
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
995 995
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
996
+
997
+  // Set one or more commands to run on filament runout.
998
+  //  - Always applies to SD-card printing.
999
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
996 1000
   #define FILAMENT_RUNOUT_SCRIPT "M600"
997 1001
 
1002
+  // With this option, if filament runs out during host-based printing, Marlin
1003
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1004
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1005
+  // will be used on filament runout for both host-based and SD-card printing.
1006
+  //
1007
+  // The host must be able to respond to the //action: command set here.
1008
+  //
1009
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1010
+
998 1011
   // After a runout is detected, continue printing this length of filament
999 1012
   // before executing the runout script. Useful for a sensor at the end of
1000 1013
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h View File

@@ -993,8 +993,21 @@
993 993
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
994 994
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
995 995
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
996
+
997
+  // Set one or more commands to run on filament runout.
998
+  //  - Always applies to SD-card printing.
999
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
996 1000
   #define FILAMENT_RUNOUT_SCRIPT "M600"
997 1001
 
1002
+  // With this option, if filament runs out during host-based printing, Marlin
1003
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1004
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1005
+  // will be used on filament runout for both host-based and SD-card printing.
1006
+  //
1007
+  // The host must be able to respond to the //action: command set here.
1008
+  //
1009
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1010
+
998 1011
   // After a runout is detected, continue printing this length of filament
999 1012
   // before executing the runout script. Useful for a sensor at the end of
1000 1013
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Mks/Robin/Configuration.h View File

@@ -990,8 +990,21 @@
990 990
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
991 991
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
992 992
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
993
+
994
+  // Set one or more commands to run on filament runout.
995
+  //  - Always applies to SD-card printing.
996
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
993 997
   #define FILAMENT_RUNOUT_SCRIPT "M600"
994 998
 
999
+  // With this option, if filament runs out during host-based printing, Marlin
1000
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1001
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1002
+  // will be used on filament runout for both host-based and SD-card printing.
1003
+  //
1004
+  // The host must be able to respond to the //action: command set here.
1005
+  //
1006
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1007
+
995 1008
   // After a runout is detected, continue printing this length of filament
996 1009
   // before executing the runout script. Useful for a sensor at the end of
997 1010
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Mks/Sbase/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/RapideLite/RL200/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/RepRapPro/Huxley/Configuration.h View File

@@ -1038,8 +1038,21 @@ Black rubber belt(MXL), 18 - tooth aluminium pulley : 87.489 step per mm (Huxley
1038 1038
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1039 1039
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1040 1040
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1041
+
1042
+  // Set one or more commands to run on filament runout.
1043
+  //  - Always applies to SD-card printing.
1044
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1041 1045
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1042 1046
 
1047
+  // With this option, if filament runs out during host-based printing, Marlin
1048
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1049
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1050
+  // will be used on filament runout for both host-based and SD-card printing.
1051
+  //
1052
+  // The host must be able to respond to the //action: command set here.
1053
+  //
1054
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1055
+
1043 1056
   // After a runout is detected, continue printing this length of filament
1044 1057
   // before executing the runout script. Useful for a sensor at the end of
1045 1058
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/RigidBot/Configuration.h View File

@@ -987,8 +987,21 @@
987 987
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
988 988
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
989 989
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
990
+
991
+  // Set one or more commands to run on filament runout.
992
+  //  - Always applies to SD-card printing.
993
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
990 994
   #define FILAMENT_RUNOUT_SCRIPT "M600"
991 995
 
996
+  // With this option, if filament runs out during host-based printing, Marlin
997
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
998
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
999
+  // will be used on filament runout for both host-based and SD-card printing.
1000
+  //
1001
+  // The host must be able to respond to the //action: command set here.
1002
+  //
1003
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1004
+
992 1005
   // After a runout is detected, continue printing this length of filament
993 1006
   // before executing the runout script. Useful for a sensor at the end of
994 1007
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/SCARA/Configuration.h View File

@@ -1002,8 +1002,21 @@
1002 1002
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1003 1003
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1004 1004
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1005
+
1006
+  // Set one or more commands to run on filament runout.
1007
+  //  - Always applies to SD-card printing.
1008
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1005 1009
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1006 1010
 
1011
+  // With this option, if filament runs out during host-based printing, Marlin
1012
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1013
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1014
+  // will be used on filament runout for both host-based and SD-card printing.
1015
+  //
1016
+  // The host must be able to respond to the //action: command set here.
1017
+  //
1018
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1019
+
1007 1020
   // After a runout is detected, continue printing this length of filament
1008 1021
   // before executing the runout script. Useful for a sensor at the end of
1009 1022
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/STM32F10/Configuration.h View File

@@ -991,8 +991,21 @@
991 991
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
992 992
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
993 993
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
994
+
995
+  // Set one or more commands to run on filament runout.
996
+  //  - Always applies to SD-card printing.
997
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
994 998
   #define FILAMENT_RUNOUT_SCRIPT "M600"
995 999
 
1000
+  // With this option, if filament runs out during host-based printing, Marlin
1001
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1002
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1003
+  // will be used on filament runout for both host-based and SD-card printing.
1004
+  //
1005
+  // The host must be able to respond to the //action: command set here.
1006
+  //
1007
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1008
+
996 1009
   // After a runout is detected, continue printing this length of filament
997 1010
   // before executing the runout script. Useful for a sensor at the end of
998 1011
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/STM32F4/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Sanguinololu/Configuration.h View File

@@ -1020,8 +1020,21 @@
1020 1020
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1021 1021
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1022 1022
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1023
+
1024
+  // Set one or more commands to run on filament runout.
1025
+  //  - Always applies to SD-card printing.
1026
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1023 1027
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1024 1028
 
1029
+  // With this option, if filament runs out during host-based printing, Marlin
1030
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1031
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1032
+  // will be used on filament runout for both host-based and SD-card printing.
1033
+  //
1034
+  // The host must be able to respond to the //action: command set here.
1035
+  //
1036
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1037
+
1025 1038
   // After a runout is detected, continue printing this length of filament
1026 1039
   // before executing the runout script. Useful for a sensor at the end of
1027 1040
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/TheBorg/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/TinyBoy2/Configuration.h View File

@@ -1045,8 +1045,21 @@
1045 1045
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1046 1046
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1047 1047
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1048
+
1049
+  // Set one or more commands to run on filament runout.
1050
+  //  - Always applies to SD-card printing.
1051
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1048 1052
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1049 1053
 
1054
+  // With this option, if filament runs out during host-based printing, Marlin
1055
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1056
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1057
+  // will be used on filament runout for both host-based and SD-card printing.
1058
+  //
1059
+  // The host must be able to respond to the //action: command set here.
1060
+  //
1061
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1062
+
1050 1063
   // After a runout is detected, continue printing this length of filament
1051 1064
   // before executing the runout script. Useful for a sensor at the end of
1052 1065
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Tronxy/X1/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Tronxy/X3A/Configuration.h View File

@@ -993,8 +993,21 @@
993 993
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
994 994
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
995 995
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
996
+
997
+  // Set one or more commands to run on filament runout.
998
+  //  - Always applies to SD-card printing.
999
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
996 1000
   #define FILAMENT_RUNOUT_SCRIPT "M600"
997 1001
 
1002
+  // With this option, if filament runs out during host-based printing, Marlin
1003
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1004
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1005
+  // will be used on filament runout for both host-based and SD-card printing.
1006
+  //
1007
+  // The host must be able to respond to the //action: command set here.
1008
+  //
1009
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1010
+
998 1011
   // After a runout is detected, continue printing this length of filament
999 1012
   // before executing the runout script. Useful for a sensor at the end of
1000 1013
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Tronxy/X5S/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Tronxy/XY100/Configuration.h View File

@@ -1000,8 +1000,21 @@
1000 1000
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1001 1001
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1002 1002
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1003
+
1004
+  // Set one or more commands to run on filament runout.
1005
+  //  - Always applies to SD-card printing.
1006
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1003 1007
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1004 1008
 
1009
+  // With this option, if filament runs out during host-based printing, Marlin
1010
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1011
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1012
+  // will be used on filament runout for both host-based and SD-card printing.
1013
+  //
1014
+  // The host must be able to respond to the //action: command set here.
1015
+  //
1016
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1017
+
1005 1018
   // After a runout is detected, continue printing this length of filament
1006 1019
   // before executing the runout script. Useful for a sensor at the end of
1007 1020
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/UltiMachine/Archim1/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/VORONDesign/Configuration.h View File

@@ -998,8 +998,21 @@
998 998
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
999 999
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1000 1000
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1001
+
1002
+  // Set one or more commands to run on filament runout.
1003
+  //  - Always applies to SD-card printing.
1004
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1001 1005
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1002 1006
 
1007
+  // With this option, if filament runs out during host-based printing, Marlin
1008
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1009
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1010
+  // will be used on filament runout for both host-based and SD-card printing.
1011
+  //
1012
+  // The host must be able to respond to the //action: command set here.
1013
+  //
1014
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1015
+
1003 1016
   // After a runout is detected, continue printing this length of filament
1004 1017
   // before executing the runout script. Useful for a sensor at the end of
1005 1018
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Velleman/K8200/Configuration.h View File

@@ -1019,8 +1019,21 @@
1019 1019
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1020 1020
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1021 1021
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1022
+
1023
+  // Set one or more commands to run on filament runout.
1024
+  //  - Always applies to SD-card printing.
1025
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1022 1026
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1023 1027
 
1028
+  // With this option, if filament runs out during host-based printing, Marlin
1029
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1030
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1031
+  // will be used on filament runout for both host-based and SD-card printing.
1032
+  //
1033
+  // The host must be able to respond to the //action: command set here.
1034
+  //
1035
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1036
+
1024 1037
   // After a runout is detected, continue printing this length of filament
1025 1038
   // before executing the runout script. Useful for a sensor at the end of
1026 1039
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Velleman/K8400/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/WASP/PowerWASP/Configuration.h View File

@@ -1008,8 +1008,21 @@
1008 1008
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1009 1009
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1010 1010
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1011
+
1012
+  // Set one or more commands to run on filament runout.
1013
+  //  - Always applies to SD-card printing.
1014
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1011 1015
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1012 1016
 
1017
+  // With this option, if filament runs out during host-based printing, Marlin
1018
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1019
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1020
+  // will be used on filament runout for both host-based and SD-card printing.
1021
+  //
1022
+  // The host must be able to respond to the //action: command set here.
1023
+  //
1024
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1025
+
1013 1026
   // After a runout is detected, continue printing this length of filament
1014 1027
   // before executing the runout script. Useful for a sensor at the end of
1015 1028
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h View File

@@ -999,8 +999,21 @@
999 999
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1000 1000
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1001 1001
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1002
+
1003
+  // Set one or more commands to run on filament runout.
1004
+  //  - Always applies to SD-card printing.
1005
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1002 1006
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1003 1007
 
1008
+  // With this option, if filament runs out during host-based printing, Marlin
1009
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1010
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1011
+  // will be used on filament runout for both host-based and SD-card printing.
1012
+  //
1013
+  // The host must be able to respond to the //action: command set here.
1014
+  //
1015
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1016
+
1004 1017
   // After a runout is detected, continue printing this length of filament
1005 1018
   // before executing the runout script. Useful for a sensor at the end of
1006 1019
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/adafruit/ST7565/Configuration.h View File

@@ -989,8 +989,21 @@
989 989
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
990 990
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
991 991
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
992
+
993
+  // Set one or more commands to run on filament runout.
994
+  //  - Always applies to SD-card printing.
995
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
992 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
993 997
 
998
+  // With this option, if filament runs out during host-based printing, Marlin
999
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1000
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1001
+  // will be used on filament runout for both host-based and SD-card printing.
1002
+  //
1003
+  // The host must be able to respond to the //action: command set here.
1004
+  //
1005
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1006
+
994 1007
   // After a runout is detected, continue printing this length of filament
995 1008
   // before executing the runout script. Useful for a sensor at the end of
996 1009
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration.h View File

@@ -1177,8 +1177,21 @@
1177 1177
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1178 1178
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1179 1179
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1180
+
1181
+  // Set one or more commands to run on filament runout.
1182
+  //  - Always applies to SD-card printing.
1183
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1180 1184
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1181 1185
 
1186
+  // With this option, if filament runs out during host-based printing, Marlin
1187
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1188
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1189
+  // will be used on filament runout for both host-based and SD-card printing.
1190
+  //
1191
+  // The host must be able to respond to the //action: command set here.
1192
+  //
1193
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1194
+
1182 1195
   // After a runout is detected, continue printing this length of filament
1183 1196
   // before executing the runout script. Useful for a sensor at the end of
1184 1197
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h View File

@@ -1117,8 +1117,21 @@
1117 1117
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1118 1118
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1119 1119
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1120
+
1121
+  // Set one or more commands to run on filament runout.
1122
+  //  - Always applies to SD-card printing.
1123
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1120 1124
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1121 1125
 
1126
+  // With this option, if filament runs out during host-based printing, Marlin
1127
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1128
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1129
+  // will be used on filament runout for both host-based and SD-card printing.
1130
+  //
1131
+  // The host must be able to respond to the //action: command set here.
1132
+  //
1133
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1134
+
1122 1135
   // After a runout is detected, continue printing this length of filament
1123 1136
   // before executing the runout script. Useful for a sensor at the end of
1124 1137
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h View File

@@ -1116,8 +1116,21 @@
1116 1116
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1117 1117
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1118 1118
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1119
+
1120
+  // Set one or more commands to run on filament runout.
1121
+  //  - Always applies to SD-card printing.
1122
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1119 1123
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1120 1124
 
1125
+  // With this option, if filament runs out during host-based printing, Marlin
1126
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1127
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1128
+  // will be used on filament runout for both host-based and SD-card printing.
1129
+  //
1130
+  // The host must be able to respond to the //action: command set here.
1131
+  //
1132
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1133
+
1121 1134
   // After a runout is detected, continue printing this length of filament
1122 1135
   // before executing the runout script. Useful for a sensor at the end of
1123 1136
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h View File

@@ -1116,8 +1116,21 @@
1116 1116
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1117 1117
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1118 1118
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1119
+
1120
+  // Set one or more commands to run on filament runout.
1121
+  //  - Always applies to SD-card printing.
1122
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1119 1123
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1120 1124
 
1125
+  // With this option, if filament runs out during host-based printing, Marlin
1126
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1127
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1128
+  // will be used on filament runout for both host-based and SD-card printing.
1129
+  //
1130
+  // The host must be able to respond to the //action: command set here.
1131
+  //
1132
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1133
+
1121 1134
   // After a runout is detected, continue printing this length of filament
1122 1135
   // before executing the runout script. Useful for a sensor at the end of
1123 1136
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/delta/Geeetech/Rostock 301/Configuration.h View File

@@ -1107,8 +1107,21 @@
1107 1107
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1108 1108
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1109 1109
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1110
+
1111
+  // Set one or more commands to run on filament runout.
1112
+  //  - Always applies to SD-card printing.
1113
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1110 1114
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1111 1115
 
1116
+  // With this option, if filament runs out during host-based printing, Marlin
1117
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1118
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1119
+  // will be used on filament runout for both host-based and SD-card printing.
1120
+  //
1121
+  // The host must be able to respond to the //action: command set here.
1122
+  //
1123
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1124
+
1112 1125
   // After a runout is detected, continue printing this length of filament
1113 1126
   // before executing the runout script. Useful for a sensor at the end of
1114 1127
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/delta/Hatchbox_Alpha/Configuration.h View File

@@ -1119,8 +1119,21 @@
1119 1119
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1120 1120
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1121 1121
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1122
+
1123
+  // Set one or more commands to run on filament runout.
1124
+  //  - Always applies to SD-card printing.
1125
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1122 1126
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1123 1127
 
1128
+  // With this option, if filament runs out during host-based printing, Marlin
1129
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1130
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1131
+  // will be used on filament runout for both host-based and SD-card printing.
1132
+  //
1133
+  // The host must be able to respond to the //action: command set here.
1134
+  //
1135
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1136
+
1124 1137
   // After a runout is detected, continue printing this length of filament
1125 1138
   // before executing the runout script. Useful for a sensor at the end of
1126 1139
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/delta/MKS/SBASE/Configuration.h View File

@@ -1104,8 +1104,21 @@
1104 1104
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1105 1105
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1106 1106
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1107
+
1108
+  // Set one or more commands to run on filament runout.
1109
+  //  - Always applies to SD-card printing.
1110
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1107 1111
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1108 1112
 
1113
+  // With this option, if filament runs out during host-based printing, Marlin
1114
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1115
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1116
+  // will be used on filament runout for both host-based and SD-card printing.
1117
+  //
1118
+  // The host must be able to respond to the //action: command set here.
1119
+  //
1120
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1121
+
1109 1122
   // After a runout is detected, continue printing this length of filament
1110 1123
   // before executing the runout script. Useful for a sensor at the end of
1111 1124
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/delta/Tevo Little Monster/Configuration.h View File

@@ -1108,8 +1108,21 @@
1108 1108
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1109 1109
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1110 1110
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1111
+
1112
+  // Set one or more commands to run on filament runout.
1113
+  //  - Always applies to SD-card printing.
1114
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1111 1115
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1112 1116
 
1117
+  // With this option, if filament runs out during host-based printing, Marlin
1118
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1119
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1120
+  // will be used on filament runout for both host-based and SD-card printing.
1121
+  //
1122
+  // The host must be able to respond to the //action: command set here.
1123
+  //
1124
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1125
+
1113 1126
   // After a runout is detected, continue printing this length of filament
1114 1127
   // before executing the runout script. Useful for a sensor at the end of
1115 1128
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/delta/generic/Configuration.h View File

@@ -1104,8 +1104,21 @@
1104 1104
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1105 1105
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1106 1106
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1107
+
1108
+  // Set one or more commands to run on filament runout.
1109
+  //  - Always applies to SD-card printing.
1110
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1107 1111
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1108 1112
 
1113
+  // With this option, if filament runs out during host-based printing, Marlin
1114
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1115
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1116
+  // will be used on filament runout for both host-based and SD-card printing.
1117
+  //
1118
+  // The host must be able to respond to the //action: command set here.
1119
+  //
1120
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1121
+
1109 1122
   // After a runout is detected, continue printing this length of filament
1110 1123
   // before executing the runout script. Useful for a sensor at the end of
1111 1124
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/delta/kossel_mini/Configuration.h View File

@@ -1106,8 +1106,21 @@
1106 1106
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1107 1107
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1108 1108
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1109
+
1110
+  // Set one or more commands to run on filament runout.
1111
+  //  - Always applies to SD-card printing.
1112
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1109 1113
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1110 1114
 
1115
+  // With this option, if filament runs out during host-based printing, Marlin
1116
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1117
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1118
+  // will be used on filament runout for both host-based and SD-card printing.
1119
+  //
1120
+  // The host must be able to respond to the //action: command set here.
1121
+  //
1122
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1123
+
1111 1124
   // After a runout is detected, continue printing this length of filament
1112 1125
   // before executing the runout script. Useful for a sensor at the end of
1113 1126
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/delta/kossel_pro/Configuration.h View File

@@ -1107,8 +1107,21 @@
1107 1107
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1108 1108
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1109 1109
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1110
+
1111
+  // Set one or more commands to run on filament runout.
1112
+  //  - Always applies to SD-card printing.
1113
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1110 1114
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1111 1115
 
1116
+  // With this option, if filament runs out during host-based printing, Marlin
1117
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1118
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1119
+  // will be used on filament runout for both host-based and SD-card printing.
1120
+  //
1121
+  // The host must be able to respond to the //action: command set here.
1122
+  //
1123
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1124
+
1112 1125
   // After a runout is detected, continue printing this length of filament
1113 1126
   // before executing the runout script. Useful for a sensor at the end of
1114 1127
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/delta/kossel_xl/Configuration.h View File

@@ -1107,8 +1107,21 @@
1107 1107
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1108 1108
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1109 1109
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1110
+
1111
+  // Set one or more commands to run on filament runout.
1112
+  //  - Always applies to SD-card printing.
1113
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1110 1114
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1111 1115
 
1116
+  // With this option, if filament runs out during host-based printing, Marlin
1117
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1118
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1119
+  // will be used on filament runout for both host-based and SD-card printing.
1120
+  //
1121
+  // The host must be able to respond to the //action: command set here.
1122
+  //
1123
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1124
+
1112 1125
   // After a runout is detected, continue printing this length of filament
1113 1126
   // before executing the runout script. Useful for a sensor at the end of
1114 1127
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h View File

@@ -1003,8 +1003,21 @@
1003 1003
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
1004 1004
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
1005 1005
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
1006
+
1007
+  // Set one or more commands to run on filament runout.
1008
+  //  - Always applies to SD-card printing.
1009
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
1006 1010
   #define FILAMENT_RUNOUT_SCRIPT "M600"
1007 1011
 
1012
+  // With this option, if filament runs out during host-based printing, Marlin
1013
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1014
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1015
+  // will be used on filament runout for both host-based and SD-card printing.
1016
+  //
1017
+  // The host must be able to respond to the //action: command set here.
1018
+  //
1019
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1020
+
1008 1021
   // After a runout is detected, continue printing this length of filament
1009 1022
   // before executing the runout script. Useful for a sensor at the end of
1010 1023
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/makibox/Configuration.h View File

@@ -992,8 +992,21 @@
992 992
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
993 993
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
994 994
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
995
+
996
+  // Set one or more commands to run on filament runout.
997
+  //  - Always applies to SD-card printing.
998
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
995 999
   #define FILAMENT_RUNOUT_SCRIPT "M600"
996 1000
 
1001
+  // With this option, if filament runs out during host-based printing, Marlin
1002
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1003
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1004
+  // will be used on filament runout for both host-based and SD-card printing.
1005
+  //
1006
+  // The host must be able to respond to the //action: command set here.
1007
+  //
1008
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1009
+
997 1010
   // After a runout is detected, continue printing this length of filament
998 1011
   // before executing the runout script. Useful for a sensor at the end of
999 1012
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/stm32f103ret6/Configuration.h View File

@@ -991,8 +991,21 @@
991 991
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
992 992
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
993 993
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
994
+
995
+  // Set one or more commands to run on filament runout.
996
+  //  - Always applies to SD-card printing.
997
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
994 998
   #define FILAMENT_RUNOUT_SCRIPT "M600"
995 999
 
1000
+  // With this option, if filament runs out during host-based printing, Marlin
1001
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1002
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1003
+  // will be used on filament runout for both host-based and SD-card printing.
1004
+  //
1005
+  // The host must be able to respond to the //action: command set here.
1006
+  //
1007
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1008
+
996 1009
   // After a runout is detected, continue printing this length of filament
997 1010
   // before executing the runout script. Useful for a sensor at the end of
998 1011
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/tvrrug/Round2/Configuration.h View File

@@ -984,8 +984,21 @@
984 984
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
985 985
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
986 986
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
987
+
988
+  // Set one or more commands to run on filament runout.
989
+  //  - Always applies to SD-card printing.
990
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
987 991
   #define FILAMENT_RUNOUT_SCRIPT "M600"
988 992
 
993
+  // With this option, if filament runs out during host-based printing, Marlin
994
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
995
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
996
+  // will be used on filament runout for both host-based and SD-card printing.
997
+  //
998
+  // The host must be able to respond to the //action: command set here.
999
+  //
1000
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1001
+
989 1002
   // After a runout is detected, continue printing this length of filament
990 1003
   // before executing the runout script. Useful for a sensor at the end of
991 1004
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 13
- 0
Marlin/src/config/examples/wt150/Configuration.h View File

@@ -994,8 +994,21 @@
994 994
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
995 995
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
996 996
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
997
+
998
+  // Set one or more commands to run on filament runout.
999
+  //  - Always applies to SD-card printing.
1000
+  //  - Applies to host-based printing if ACTION_ON_FILAMENT_RUNOUT is not set.
997 1001
   #define FILAMENT_RUNOUT_SCRIPT "M600"
998 1002
 
1003
+  // With this option, if filament runs out during host-based printing, Marlin
1004
+  // will send "//action:<ACTION_ON_FILAMENT_RUNOUT>" to the host and let the
1005
+  // host handle filament change. If left undefined the FILAMENT_RUNOUT_SCRIPT
1006
+  // will be used on filament runout for both host-based and SD-card printing.
1007
+  //
1008
+  // The host must be able to respond to the //action: command set here.
1009
+  //
1010
+  //#define ACTION_ON_FILAMENT_RUNOUT "pause: filament_runout"
1011
+
999 1012
   // After a runout is detected, continue printing this length of filament
1000 1013
   // before executing the runout script. Useful for a sensor at the end of
1001 1014
   // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.

+ 7
- 1
Marlin/src/feature/runout.h View File

@@ -95,7 +95,13 @@ class TFilamentMonitor : public FilamentMonitorBase {
95 95
         if (ran_out) {
96 96
           filament_ran_out = true;
97 97
           #if ENABLED(EXTENSIBLE_UI)
98
-            ExtUI::onFilamentRunout();
98
+            ExtUI::onFilamentRunout(ExtUI::getActiveTool());
99
+          #endif
100
+          #ifdef FILAMENT_RUNOUT_ACTION
101
+            SERIAL_ECHOLNPAIR("//action:" FILAMENT_RUNOUT_ACTION " ", active_extruder);
102
+            if (!IS_SD_PRINTING())
103
+              reset();
104
+            else
99 105
           #endif
100 106
           enqueue_and_echo_commands_P(PSTR(FILAMENT_RUNOUT_SCRIPT));
101 107
           planner.synchronize();

+ 1
- 1
Marlin/src/lcd/extensible_ui/ui_api.h View File

@@ -237,7 +237,7 @@ namespace ExtUI {
237 237
   void onPrintTimerStarted();
238 238
   void onPrintTimerPaused();
239 239
   void onPrintTimerStopped();
240
-  void onFilamentRunout();
240
+  void onFilamentRunout(const extruder_t extruder);
241 241
   void onStatusChanged(const char * const msg);
242 242
   void onFactoryReset();
243 243
   void onStoreSettings();

Loading…
Cancel
Save