ソースを参照

Merge pull request #9699 from Studiodyne/Studiodyne-filamentMulti

[2.0.x] Support multiple filament runout sensors
Scott Lahteine 7年前
コミット
a11fcd46a2
コミッターのメールアドレスに関連付けられたアカウントが存在しません
65個のファイルの変更446行の追加331行の削除
  1. 6
    5
      Marlin/Configuration.h
  2. 2
    20
      Marlin/src/Marlin.cpp
  3. 6
    5
      Marlin/src/config/default/Configuration.h
  4. 6
    5
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h
  5. 6
    5
      Marlin/src/config/examples/AliExpress/CL-260/Configuration.h
  6. 6
    5
      Marlin/src/config/examples/Anet/A6/Configuration.h
  7. 6
    5
      Marlin/src/config/examples/Anet/A8/Configuration.h
  8. 6
    5
      Marlin/src/config/examples/Azteeg/X5GT/Configuration.h
  9. 6
    5
      Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h
  10. 6
    5
      Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h
  11. 6
    5
      Marlin/src/config/examples/BQ/Hephestos/Configuration.h
  12. 6
    5
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h
  13. 6
    5
      Marlin/src/config/examples/BQ/WITBOX/Configuration.h
  14. 6
    5
      Marlin/src/config/examples/Cartesio/Configuration.h
  15. 6
    5
      Marlin/src/config/examples/Creality/CR-10/Configuration.h
  16. 6
    5
      Marlin/src/config/examples/Creality/CR-10S/Configuration.h
  17. 6
    5
      Marlin/src/config/examples/Creality/Ender/Configuration.h
  18. 6
    5
      Marlin/src/config/examples/Felix/Configuration.h
  19. 6
    5
      Marlin/src/config/examples/Felix/DUAL/Configuration.h
  20. 6
    5
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h
  21. 6
    5
      Marlin/src/config/examples/Geeetech/GT2560/Configuration.h
  22. 6
    5
      Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h
  23. 6
    5
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h
  24. 6
    5
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h
  25. 6
    5
      Marlin/src/config/examples/Infitary/i3-M508/Configuration.h
  26. 6
    5
      Marlin/src/config/examples/JGAurora/A5/Configuration.h
  27. 6
    5
      Marlin/src/config/examples/MakerParts/Configuration.h
  28. 6
    5
      Marlin/src/config/examples/Malyan/M150/Configuration.h
  29. 6
    5
      Marlin/src/config/examples/Malyan/M200/Configuration.h
  30. 6
    5
      Marlin/src/config/examples/Micromake/C1/basic/Configuration.h
  31. 6
    5
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h
  32. 6
    5
      Marlin/src/config/examples/Mks/Sbase/Configuration.h
  33. 6
    5
      Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h
  34. 6
    5
      Marlin/src/config/examples/RigidBot/Configuration.h
  35. 6
    5
      Marlin/src/config/examples/SCARA/Configuration.h
  36. 6
    5
      Marlin/src/config/examples/STM32F10/Configuration.h
  37. 6
    5
      Marlin/src/config/examples/Sanguinololu/Configuration.h
  38. 6
    5
      Marlin/src/config/examples/TheBorg/Configuration.h
  39. 6
    5
      Marlin/src/config/examples/TinyBoy2/Configuration.h
  40. 6
    5
      Marlin/src/config/examples/Tronxy/X1/Configuration.h
  41. 6
    5
      Marlin/src/config/examples/Tronxy/X5S/Configuration.h
  42. 6
    5
      Marlin/src/config/examples/Tronxy/XY100/Configuration.h
  43. 6
    5
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h
  44. 6
    5
      Marlin/src/config/examples/Velleman/K8200/Configuration.h
  45. 6
    5
      Marlin/src/config/examples/Velleman/K8400/Configuration.h
  46. 6
    5
      Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h
  47. 6
    5
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h
  48. 6
    5
      Marlin/src/config/examples/adafruit/ST7565/Configuration.h
  49. 6
    5
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h
  50. 6
    5
      Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h
  51. 6
    5
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h
  52. 6
    5
      Marlin/src/config/examples/delta/generic/Configuration.h
  53. 6
    5
      Marlin/src/config/examples/delta/kossel_mini/Configuration.h
  54. 6
    5
      Marlin/src/config/examples/delta/kossel_pro/Configuration.h
  55. 6
    5
      Marlin/src/config/examples/delta/kossel_xl/Configuration.h
  56. 6
    5
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h
  57. 6
    5
      Marlin/src/config/examples/makibox/Configuration.h
  58. 6
    5
      Marlin/src/config/examples/stm32f103ret6/Configuration.h
  59. 6
    5
      Marlin/src/config/examples/tvrrug/Round2/Configuration.h
  60. 6
    5
      Marlin/src/config/examples/wt150/Configuration.h
  61. 1
    1
      Marlin/src/feature/pause.cpp
  62. 28
    10
      Marlin/src/feature/runout.cpp
  63. 49
    2
      Marlin/src/feature/runout.h
  64. 0
    1
      Marlin/src/inc/Conditionals_post.h
  65. 12
    2
      Marlin/src/inc/SanityCheck.h

+ 6
- 5
Marlin/Configuration.h ファイルの表示

@@ -852,15 +852,16 @@
852 852
 #endif
853 853
 
854 854
 /**
855
- * Filament Runout Sensor
856
- * A mechanical or opto endstop is used to check for the presence of filament.
855
+ * Filament Runout Sensors
856
+ * Mechanical or opto endstops are used to check for the presence of filament.
857 857
  *
858
- * RAMPS-based boards use SERVO3_PIN.
859
- * For other boards you may need to define FIL_RUNOUT_PIN.
860
- * By default the firmware assumes HIGH = has filament, LOW = ran out
858
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
859
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
860
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
861 861
  */
862 862
 //#define FILAMENT_RUNOUT_SENSOR
863 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
864 865
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
865 866
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866 867
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 2
- 20
Marlin/src/Marlin.cpp ファイルの表示

@@ -216,20 +216,6 @@ void setup_killpin() {
216 216
   #endif
217 217
 }
218 218
 
219
-#if ENABLED(FILAMENT_RUNOUT_SENSOR)
220
-
221
-  void setup_filrunoutpin() {
222
-    #if ENABLED(FIL_RUNOUT_PULLUP)
223
-      SET_INPUT_PULLUP(FIL_RUNOUT_PIN);
224
-    #elif ENABLED(FIL_RUNOUT_PULLDOWN)
225
-      SET_INPUT_PULLDOWN(FIL_RUNOUT_PIN);
226
-    #else
227
-      SET_INPUT(FIL_RUNOUT_PIN);
228
-    #endif
229
-  }
230
-
231
-#endif
232
-
233 219
 void setup_powerhold() {
234 220
   #if HAS_SUICIDE
235 221
     OUT_WRITE(SUICIDE_PIN, HIGH);
@@ -336,11 +322,7 @@ void disable_all_steppers() {
336 322
 void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
337 323
 
338 324
   #if ENABLED(FILAMENT_RUNOUT_SENSOR)
339
-    if ((IS_SD_PRINTING || print_job_timer.isRunning())
340
-      && READ(FIL_RUNOUT_PIN) == FIL_RUNOUT_INVERTING
341
-      && thermalManager.targetHotEnoughToExtrude(active_extruder)
342
-    )
343
-      handle_filament_runout();
325
+    runout.run();
344 326
   #endif
345 327
 
346 328
   if (commands_in_queue < BUFSIZE) get_available_commands();
@@ -661,7 +643,7 @@ void setup() {
661 643
   #endif
662 644
 
663 645
   #if ENABLED(FILAMENT_RUNOUT_SENSOR)
664
-    setup_filrunoutpin();
646
+    runout.setup();
665 647
   #endif
666 648
 
667 649
   setup_killpin();

+ 6
- 5
Marlin/src/config/default/Configuration.h ファイルの表示

@@ -852,15 +852,16 @@
852 852
 #endif
853 853
 
854 854
 /**
855
- * Filament Runout Sensor
856
- * A mechanical or opto endstop is used to check for the presence of filament.
855
+ * Filament Runout Sensors
856
+ * Mechanical or opto endstops are used to check for the presence of filament.
857 857
  *
858
- * RAMPS-based boards use SERVO3_PIN.
859
- * For other boards you may need to define FIL_RUNOUT_PIN.
860
- * By default the firmware assumes HIGH = has filament, LOW = ran out
858
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
859
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
860
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
861 861
  */
862 862
 //#define FILAMENT_RUNOUT_SENSOR
863 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
864 865
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
865 866
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866 867
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h ファイルの表示

@@ -872,15 +872,16 @@
872 872
 #endif
873 873
 
874 874
 /**
875
- * Filament Runout Sensor
876
- * A mechanical or opto endstop is used to check for the presence of filament.
875
+ * Filament Runout Sensors
876
+ * Mechanical or opto endstops are used to check for the presence of filament.
877 877
  *
878
- * RAMPS-based boards use SERVO3_PIN.
879
- * For other boards you may need to define FIL_RUNOUT_PIN.
880
- * By default the firmware assumes HIGH = has filament, LOW = ran out
878
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
879
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
880
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
881 881
  */
882 882
 //#define FILAMENT_RUNOUT_SENSOR
883 883
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
884
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
884 885
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
885 886
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
886 887
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/AliExpress/CL-260/Configuration.h ファイルの表示

@@ -852,15 +852,16 @@
852 852
 #endif
853 853
 
854 854
 /**
855
- * Filament Runout Sensor
856
- * A mechanical or opto endstop is used to check for the presence of filament.
855
+ * Filament Runout Sensors
856
+ * Mechanical or opto endstops are used to check for the presence of filament.
857 857
  *
858
- * RAMPS-based boards use SERVO3_PIN.
859
- * For other boards you may need to define FIL_RUNOUT_PIN.
860
- * By default the firmware assumes HIGH = has filament, LOW = ran out
858
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
859
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
860
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
861 861
  */
862 862
 //#define FILAMENT_RUNOUT_SENSOR
863 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
864 865
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
865 866
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866 867
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Anet/A6/Configuration.h ファイルの表示

@@ -962,15 +962,16 @@
962 962
 #endif
963 963
 
964 964
 /**
965
- * Filament Runout Sensor
966
- * A mechanical or opto endstop is used to check for the presence of filament.
965
+ * Filament Runout Sensors
966
+ * Mechanical or opto endstops are used to check for the presence of filament.
967 967
  *
968
- * RAMPS-based boards use SERVO3_PIN.
969
- * For other boards you may need to define FIL_RUNOUT_PIN.
970
- * By default the firmware assumes HIGH = has filament, LOW = ran out
968
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
969
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
970
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
971 971
  */
972 972
 //#define FILAMENT_RUNOUT_SENSOR
973 973
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
974
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
974 975
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
975 976
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
976 977
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Anet/A8/Configuration.h ファイルの表示

@@ -859,15 +859,16 @@
859 859
 #endif
860 860
 
861 861
 /**
862
- * Filament Runout Sensor
863
- * A mechanical or opto endstop is used to check for the presence of filament.
862
+ * Filament Runout Sensors
863
+ * Mechanical or opto endstops are used to check for the presence of filament.
864 864
  *
865
- * RAMPS-based boards use SERVO3_PIN.
866
- * For other boards you may need to define FIL_RUNOUT_PIN.
867
- * By default the firmware assumes HIGH = has filament, LOW = ran out
865
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
866
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
867
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
868 868
  */
869 869
 //#define FILAMENT_RUNOUT_SENSOR
870 870
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
871
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
871 872
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
872 873
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
873 874
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Azteeg/X5GT/Configuration.h ファイルの表示

@@ -852,15 +852,16 @@
852 852
 #endif
853 853
 
854 854
 /**
855
- * Filament Runout Sensor
856
- * A mechanical or opto endstop is used to check for the presence of filament.
855
+ * Filament Runout Sensors
856
+ * Mechanical or opto endstops are used to check for the presence of filament.
857 857
  *
858
- * RAMPS-based boards use SERVO3_PIN.
859
- * For other boards you may need to define FIL_RUNOUT_PIN.
860
- * By default the firmware assumes HIGH = has filament, LOW = ran out
858
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
859
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
860
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
861 861
  */
862 862
 //#define FILAMENT_RUNOUT_SENSOR
863 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
864 865
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
865 866
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866 867
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h ファイルの表示

@@ -852,15 +852,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
852 852
 #endif
853 853
 
854 854
 /**
855
- * Filament Runout Sensor
856
- * A mechanical or opto endstop is used to check for the presence of filament.
855
+ * Filament Runout Sensors
856
+ * Mechanical or opto endstops are used to check for the presence of filament.
857 857
  *
858
- * RAMPS-based boards use SERVO3_PIN.
859
- * For other boards you may need to define FIL_RUNOUT_PIN.
860
- * By default the firmware assumes HIGH = has filament, LOW = ran out
858
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
859
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
860
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
861 861
  */
862 862
 //#define FILAMENT_RUNOUT_SENSOR
863 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
864 865
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
865 866
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866 867
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h ファイルの表示

@@ -852,15 +852,16 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
852 852
 #endif
853 853
 
854 854
 /**
855
- * Filament Runout Sensor
856
- * A mechanical or opto endstop is used to check for the presence of filament.
855
+ * Filament Runout Sensors
856
+ * Mechanical or opto endstops are used to check for the presence of filament.
857 857
  *
858
- * RAMPS-based boards use SERVO3_PIN.
859
- * For other boards you may need to define FIL_RUNOUT_PIN.
860
- * By default the firmware assumes HIGH = has filament, LOW = ran out
858
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
859
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
860
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
861 861
  */
862 862
 //#define FILAMENT_RUNOUT_SENSOR
863 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
864 865
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
865 866
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866 867
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/BQ/Hephestos/Configuration.h ファイルの表示

@@ -840,15 +840,16 @@
840 840
 #endif
841 841
 
842 842
 /**
843
- * Filament Runout Sensor
844
- * A mechanical or opto endstop is used to check for the presence of filament.
843
+ * Filament Runout Sensors
844
+ * Mechanical or opto endstops are used to check for the presence of filament.
845 845
  *
846
- * RAMPS-based boards use SERVO3_PIN.
847
- * For other boards you may need to define FIL_RUNOUT_PIN.
848
- * By default the firmware assumes HIGH = has filament, LOW = ran out
846
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
847
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
848
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
849 849
  */
850 850
 //#define FILAMENT_RUNOUT_SENSOR
851 851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
852 853
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
853 854
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
854 855
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h ファイルの表示

@@ -853,15 +853,16 @@
853 853
 #endif
854 854
 
855 855
 /**
856
- * Filament Runout Sensor
857
- * A mechanical or opto endstop is used to check for the presence of filament.
856
+ * Filament Runout Sensors
857
+ * Mechanical or opto endstops are used to check for the presence of filament.
858 858
  *
859
- * RAMPS-based boards use SERVO3_PIN.
860
- * For other boards you may need to define FIL_RUNOUT_PIN.
861
- * By default the firmware assumes HIGH = has filament, LOW = ran out
859
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
860
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
861
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
862 862
  */
863 863
 //#define FILAMENT_RUNOUT_SENSOR
864 864
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
865
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
865 866
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
866 867
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
867 868
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/BQ/WITBOX/Configuration.h ファイルの表示

@@ -840,15 +840,16 @@
840 840
 #endif
841 841
 
842 842
 /**
843
- * Filament Runout Sensor
844
- * A mechanical or opto endstop is used to check for the presence of filament.
843
+ * Filament Runout Sensors
844
+ * Mechanical or opto endstops are used to check for the presence of filament.
845 845
  *
846
- * RAMPS-based boards use SERVO3_PIN.
847
- * For other boards you may need to define FIL_RUNOUT_PIN.
848
- * By default the firmware assumes HIGH = has filament, LOW = ran out
846
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
847
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
848
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
849 849
  */
850 850
 //#define FILAMENT_RUNOUT_SENSOR
851 851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
852 853
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
853 854
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
854 855
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Cartesio/Configuration.h ファイルの表示

@@ -851,15 +851,16 @@
851 851
 #endif
852 852
 
853 853
 /**
854
- * Filament Runout Sensor
855
- * A mechanical or opto endstop is used to check for the presence of filament.
854
+ * Filament Runout Sensors
855
+ * Mechanical or opto endstops are used to check for the presence of filament.
856 856
  *
857
- * RAMPS-based boards use SERVO3_PIN.
858
- * For other boards you may need to define FIL_RUNOUT_PIN.
859
- * By default the firmware assumes HIGH = has filament, LOW = ran out
857
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
858
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
859
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
860 860
  */
861 861
 //#define FILAMENT_RUNOUT_SENSOR
862 862
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
863
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
863 864
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
864 865
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
865 866
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Creality/CR-10/Configuration.h ファイルの表示

@@ -862,15 +862,16 @@
862 862
 #endif
863 863
 
864 864
 /**
865
- * Filament Runout Sensor
866
- * A mechanical or opto endstop is used to check for the presence of filament.
865
+ * Filament Runout Sensors
866
+ * Mechanical or opto endstops are used to check for the presence of filament.
867 867
  *
868
- * RAMPS-based boards use SERVO3_PIN.
869
- * For other boards you may need to define FIL_RUNOUT_PIN.
870
- * By default the firmware assumes HIGH = has filament, LOW = ran out
868
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
869
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
870
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
871 871
  */
872 872
 //#define FILAMENT_RUNOUT_SENSOR
873 873
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
874
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
874 875
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
875 876
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
876 877
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Creality/CR-10S/Configuration.h ファイルの表示

@@ -843,15 +843,16 @@
843 843
 #endif
844 844
 
845 845
 /**
846
- * Filament Runout Sensor
847
- * A mechanical or opto endstop is used to check for the presence of filament.
846
+ * Filament Runout Sensors
847
+ * Mechanical or opto endstops are used to check for the presence of filament.
848 848
  *
849
- * RAMPS-based boards use SERVO3_PIN.
850
- * For other boards you may need to define FIL_RUNOUT_PIN.
851
- * By default the firmware assumes HIGH = has filament, LOW = ran out
849
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
850
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
851
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
852 852
  */
853 853
 #define FILAMENT_RUNOUT_SENSOR
854 854
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
855
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
855 856
   #define FIL_RUNOUT_INVERTING true // set to true to invert the logic of the sensor.
856 857
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
857 858
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Creality/Ender/Configuration.h ファイルの表示

@@ -847,15 +847,16 @@
847 847
 #endif
848 848
 
849 849
 /**
850
- * Filament Runout Sensor
851
- * A mechanical or opto endstop is used to check for the presence of filament.
850
+ * Filament Runout Sensors
851
+ * Mechanical or opto endstops are used to check for the presence of filament.
852 852
  *
853
- * RAMPS-based boards use SERVO3_PIN.
854
- * For other boards you may need to define FIL_RUNOUT_PIN.
855
- * By default the firmware assumes HIGH = has filament, LOW = ran out
853
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
854
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
855
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
856 856
  */
857 857
 //#define FILAMENT_RUNOUT_SENSOR
858 858
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
859
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
859 860
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
860 861
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
861 862
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Felix/Configuration.h ファイルの表示

@@ -834,15 +834,16 @@
834 834
 #endif
835 835
 
836 836
 /**
837
- * Filament Runout Sensor
838
- * A mechanical or opto endstop is used to check for the presence of filament.
837
+ * Filament Runout Sensors
838
+ * Mechanical or opto endstops are used to check for the presence of filament.
839 839
  *
840
- * RAMPS-based boards use SERVO3_PIN.
841
- * For other boards you may need to define FIL_RUNOUT_PIN.
842
- * By default the firmware assumes HIGH = has filament, LOW = ran out
840
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
841
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
842
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
843 843
  */
844 844
 //#define FILAMENT_RUNOUT_SENSOR
845 845
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
846
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
846 847
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
847 848
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
848 849
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Felix/DUAL/Configuration.h ファイルの表示

@@ -834,15 +834,16 @@
834 834
 #endif
835 835
 
836 836
 /**
837
- * Filament Runout Sensor
838
- * A mechanical or opto endstop is used to check for the presence of filament.
837
+ * Filament Runout Sensors
838
+ * Mechanical or opto endstops are used to check for the presence of filament.
839 839
  *
840
- * RAMPS-based boards use SERVO3_PIN.
841
- * For other boards you may need to define FIL_RUNOUT_PIN.
842
- * By default the firmware assumes HIGH = has filament, LOW = ran out
840
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
841
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
842
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
843 843
  */
844 844
 //#define FILAMENT_RUNOUT_SENSOR
845 845
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
846
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
846 847
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
847 848
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
848 849
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h ファイルの表示

@@ -858,15 +858,16 @@
858 858
 #endif
859 859
 
860 860
 /**
861
- * Filament Runout Sensor
862
- * A mechanical or opto endstop is used to check for the presence of filament.
861
+ * Filament Runout Sensors
862
+ * Mechanical or opto endstops are used to check for the presence of filament.
863 863
  *
864
- * RAMPS-based boards use SERVO3_PIN.
865
- * For other boards you may need to define FIL_RUNOUT_PIN.
866
- * By default the firmware assumes HIGH = has filament, LOW = ran out
864
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
865
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
866
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
867 867
  */
868 868
 //#define FILAMENT_RUNOUT_SENSOR
869 869
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
870
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
870 871
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
871 872
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
872 873
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Geeetech/GT2560/Configuration.h ファイルの表示

@@ -867,15 +867,16 @@
867 867
 #endif
868 868
 
869 869
 /**
870
- * Filament Runout Sensor
871
- * A mechanical or opto endstop is used to check for the presence of filament.
870
+ * Filament Runout Sensors
871
+ * Mechanical or opto endstops are used to check for the presence of filament.
872 872
  *
873
- * RAMPS-based boards use SERVO3_PIN.
874
- * For other boards you may need to define FIL_RUNOUT_PIN.
875
- * By default the firmware assumes HIGH = has filament, LOW = ran out
873
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
874
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
875
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
876 876
  */
877 877
 //#define FILAMENT_RUNOUT_SENSOR
878 878
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
879
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
879 880
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
880 881
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
881 882
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h ファイルの表示

@@ -852,15 +852,16 @@
852 852
 #endif
853 853
 
854 854
 /**
855
- * Filament Runout Sensor
856
- * A mechanical or opto endstop is used to check for the presence of filament.
855
+ * Filament Runout Sensors
856
+ * Mechanical or opto endstops are used to check for the presence of filament.
857 857
  *
858
- * RAMPS-based boards use SERVO3_PIN.
859
- * For other boards you may need to define FIL_RUNOUT_PIN.
860
- * By default the firmware assumes HIGH = has filament, LOW = ran out
858
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
859
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
860
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
861 861
  */
862 862
 //#define FILAMENT_RUNOUT_SENSOR
863 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
864 865
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
865 866
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866 867
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h ファイルの表示

@@ -859,15 +859,16 @@
859 859
 #endif
860 860
 
861 861
 /**
862
- * Filament Runout Sensor
863
- * A mechanical or opto endstop is used to check for the presence of filament.
862
+ * Filament Runout Sensors
863
+ * Mechanical or opto endstops are used to check for the presence of filament.
864 864
  *
865
- * RAMPS-based boards use SERVO3_PIN.
866
- * For other boards you may need to define FIL_RUNOUT_PIN.
867
- * By default the firmware assumes HIGH = has filament, LOW = ran out
865
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
866
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
867
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
868 868
  */
869 869
 //#define FILAMENT_RUNOUT_SENSOR
870 870
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
871
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
871 872
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
872 873
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
873 874
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h ファイルの表示

@@ -858,15 +858,16 @@
858 858
 #endif
859 859
 
860 860
 /**
861
- * Filament Runout Sensor
862
- * A mechanical or opto endstop is used to check for the presence of filament.
861
+ * Filament Runout Sensors
862
+ * Mechanical or opto endstops are used to check for the presence of filament.
863 863
  *
864
- * RAMPS-based boards use SERVO3_PIN.
865
- * For other boards you may need to define FIL_RUNOUT_PIN.
866
- * By default the firmware assumes HIGH = has filament, LOW = ran out
864
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
865
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
866
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
867 867
  */
868 868
 //#define FILAMENT_RUNOUT_SENSOR
869 869
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
870
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
870 871
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
871 872
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
872 873
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Infitary/i3-M508/Configuration.h ファイルの表示

@@ -856,15 +856,16 @@
856 856
 #endif
857 857
 
858 858
 /**
859
- * Filament Runout Sensor
860
- * A mechanical or opto endstop is used to check for the presence of filament.
859
+ * Filament Runout Sensors
860
+ * Mechanical or opto endstops are used to check for the presence of filament.
861 861
  *
862
- * RAMPS-based boards use SERVO3_PIN.
863
- * For other boards you may need to define FIL_RUNOUT_PIN.
864
- * By default the firmware assumes HIGH = has filament, LOW = ran out
862
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
863
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
864
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
865 865
  */
866 866
 //#define FILAMENT_RUNOUT_SENSOR
867 867
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
868
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
868 869
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
869 870
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
870 871
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/JGAurora/A5/Configuration.h ファイルの表示

@@ -864,15 +864,16 @@
864 864
 #endif
865 865
 
866 866
 /**
867
- * Filament Runout Sensor
868
- * A mechanical or opto endstop is used to check for the presence of filament.
867
+ * Filament Runout Sensors
868
+ * Mechanical or opto endstops are used to check for the presence of filament.
869 869
  *
870
- * RAMPS-based boards use SERVO3_PIN.
871
- * For other boards you may need to define FIL_RUNOUT_PIN.
872
- * By default the firmware assumes HIGH = has filament, LOW = ran out
870
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
871
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
872
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
873 873
  */
874 874
 #define FILAMENT_RUNOUT_SENSOR
875 875
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
876
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
876 877
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
877 878
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
878 879
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/MakerParts/Configuration.h ファイルの表示

@@ -872,15 +872,16 @@
872 872
 #endif
873 873
 
874 874
 /**
875
- * Filament Runout Sensor
876
- * A mechanical or opto endstop is used to check for the presence of filament.
875
+ * Filament Runout Sensors
876
+ * Mechanical or opto endstops are used to check for the presence of filament.
877 877
  *
878
- * RAMPS-based boards use SERVO3_PIN.
879
- * For other boards you may need to define FIL_RUNOUT_PIN.
880
- * By default the firmware assumes HIGH = has filament, LOW = ran out
878
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
879
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
880
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
881 881
  */
882 882
 //#define FILAMENT_RUNOUT_SENSOR
883 883
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
884
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
884 885
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
885 886
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
886 887
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Malyan/M150/Configuration.h ファイルの表示

@@ -876,15 +876,16 @@
876 876
 #endif
877 877
 
878 878
 /**
879
- * Filament Runout Sensor
880
- * A mechanical or opto endstop is used to check for the presence of filament.
879
+ * Filament Runout Sensors
880
+ * Mechanical or opto endstops are used to check for the presence of filament.
881 881
  *
882
- * RAMPS-based boards use SERVO3_PIN.
883
- * For other boards you may need to define FIL_RUNOUT_PIN.
884
- * By default the firmware assumes HIGH = has filament, LOW = ran out
882
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
883
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
884
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
885 885
  */
886 886
 //#define FILAMENT_RUNOUT_SENSOR
887 887
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
888
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
888 889
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
889 890
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
890 891
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Malyan/M200/Configuration.h ファイルの表示

@@ -851,15 +851,16 @@
851 851
 #endif
852 852
 
853 853
 /**
854
- * Filament Runout Sensor
855
- * A mechanical or opto endstop is used to check for the presence of filament.
854
+ * Filament Runout Sensors
855
+ * Mechanical or opto endstops are used to check for the presence of filament.
856 856
  *
857
- * RAMPS-based boards use SERVO3_PIN.
858
- * For other boards you may need to define FIL_RUNOUT_PIN.
859
- * By default the firmware assumes HIGH = has filament, LOW = ran out
857
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
858
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
859
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
860 860
  */
861 861
 //#define FILAMENT_RUNOUT_SENSOR
862 862
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
863
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
863 864
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
864 865
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
865 866
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Micromake/C1/basic/Configuration.h ファイルの表示

@@ -856,15 +856,16 @@
856 856
 #endif
857 857
 
858 858
 /**
859
- * Filament Runout Sensor
860
- * A mechanical or opto endstop is used to check for the presence of filament.
859
+ * Filament Runout Sensors
860
+ * Mechanical or opto endstops are used to check for the presence of filament.
861 861
  *
862
- * RAMPS-based boards use SERVO3_PIN.
863
- * For other boards you may need to define FIL_RUNOUT_PIN.
864
- * By default the firmware assumes HIGH = has filament, LOW = ran out
862
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
863
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
864
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
865 865
  */
866 866
 //#define FILAMENT_RUNOUT_SENSOR
867 867
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
868
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
868 869
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
869 870
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
870 871
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h ファイルの表示

@@ -856,15 +856,16 @@
856 856
 #endif
857 857
 
858 858
 /**
859
- * Filament Runout Sensor
860
- * A mechanical or opto endstop is used to check for the presence of filament.
859
+ * Filament Runout Sensors
860
+ * Mechanical or opto endstops are used to check for the presence of filament.
861 861
  *
862
- * RAMPS-based boards use SERVO3_PIN.
863
- * For other boards you may need to define FIL_RUNOUT_PIN.
864
- * By default the firmware assumes HIGH = has filament, LOW = ran out
862
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
863
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
864
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
865 865
  */
866 866
 //#define FILAMENT_RUNOUT_SENSOR
867 867
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
868
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
868 869
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
869 870
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
870 871
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Mks/Sbase/Configuration.h ファイルの表示

@@ -852,15 +852,16 @@
852 852
 #endif
853 853
 
854 854
 /**
855
- * Filament Runout Sensor
856
- * A mechanical or opto endstop is used to check for the presence of filament.
855
+ * Filament Runout Sensors
856
+ * Mechanical or opto endstops are used to check for the presence of filament.
857 857
  *
858
- * RAMPS-based boards use SERVO3_PIN.
859
- * For other boards you may need to define FIL_RUNOUT_PIN.
860
- * By default the firmware assumes HIGH = has filament, LOW = ran out
858
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
859
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
860
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
861 861
  */
862 862
 //#define FILAMENT_RUNOUT_SENSOR
863 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
864 865
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
865 866
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866 867
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h ファイルの表示

@@ -852,15 +852,16 @@
852 852
 #endif
853 853
 
854 854
 /**
855
- * Filament Runout Sensor
856
- * A mechanical or opto endstop is used to check for the presence of filament.
855
+ * Filament Runout Sensors
856
+ * Mechanical or opto endstops are used to check for the presence of filament.
857 857
  *
858
- * RAMPS-based boards use SERVO3_PIN.
859
- * For other boards you may need to define FIL_RUNOUT_PIN.
860
- * By default the firmware assumes HIGH = has filament, LOW = ran out
858
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
859
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
860
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
861 861
  */
862 862
 //#define FILAMENT_RUNOUT_SENSOR
863 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
864 865
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
865 866
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866 867
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/RigidBot/Configuration.h ファイルの表示

@@ -850,15 +850,16 @@
850 850
 #endif
851 851
 
852 852
 /**
853
- * Filament Runout Sensor
854
- * A mechanical or opto endstop is used to check for the presence of filament.
853
+ * Filament Runout Sensors
854
+ * Mechanical or opto endstops are used to check for the presence of filament.
855 855
  *
856
- * RAMPS-based boards use SERVO3_PIN.
857
- * For other boards you may need to define FIL_RUNOUT_PIN.
858
- * By default the firmware assumes HIGH = has filament, LOW = ran out
856
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
857
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
858
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
859 859
  */
860 860
 //#define FILAMENT_RUNOUT_SENSOR
861 861
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
862
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
862 863
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
863 864
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
864 865
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/SCARA/Configuration.h ファイルの表示

@@ -864,15 +864,16 @@
864 864
 #endif
865 865
 
866 866
 /**
867
- * Filament Runout Sensor
868
- * A mechanical or opto endstop is used to check for the presence of filament.
867
+ * Filament Runout Sensors
868
+ * Mechanical or opto endstops are used to check for the presence of filament.
869 869
  *
870
- * RAMPS-based boards use SERVO3_PIN.
871
- * For other boards you may need to define FIL_RUNOUT_PIN.
872
- * By default the firmware assumes HIGH = has filament, LOW = ran out
870
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
871
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
872
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
873 873
  */
874 874
 //#define FILAMENT_RUNOUT_SENSOR
875 875
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
876
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
876 877
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
877 878
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
878 879
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/STM32F10/Configuration.h ファイルの表示

@@ -855,15 +855,16 @@
855 855
 #endif
856 856
 
857 857
 /**
858
- * Filament Runout Sensor
859
- * A mechanical or opto endstop is used to check for the presence of filament.
858
+ * Filament Runout Sensors
859
+ * Mechanical or opto endstops are used to check for the presence of filament.
860 860
  *
861
- * RAMPS-based boards use SERVO3_PIN.
862
- * For other boards you may need to define FIL_RUNOUT_PIN.
863
- * By default the firmware assumes HIGH = has filament, LOW = ran out
861
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
862
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
863
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
864 864
  */
865 865
 //#define FILAMENT_RUNOUT_SENSOR
866 866
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
867
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
867 868
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
868 869
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
869 870
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Sanguinololu/Configuration.h ファイルの表示

@@ -883,15 +883,16 @@
883 883
 #endif
884 884
 
885 885
 /**
886
- * Filament Runout Sensor
887
- * A mechanical or opto endstop is used to check for the presence of filament.
886
+ * Filament Runout Sensors
887
+ * Mechanical or opto endstops are used to check for the presence of filament.
888 888
  *
889
- * RAMPS-based boards use SERVO3_PIN.
890
- * For other boards you may need to define FIL_RUNOUT_PIN.
891
- * By default the firmware assumes HIGH = has filament, LOW = ran out
889
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
890
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
891
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
892 892
  */
893 893
 //#define FILAMENT_RUNOUT_SENSOR
894 894
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
895
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
895 896
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
896 897
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
897 898
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/TheBorg/Configuration.h ファイルの表示

@@ -852,15 +852,16 @@
852 852
 #endif
853 853
 
854 854
 /**
855
- * Filament Runout Sensor
856
- * A mechanical or opto endstop is used to check for the presence of filament.
855
+ * Filament Runout Sensors
856
+ * Mechanical or opto endstops are used to check for the presence of filament.
857 857
  *
858
- * RAMPS-based boards use SERVO3_PIN.
859
- * For other boards you may need to define FIL_RUNOUT_PIN.
860
- * By default the firmware assumes HIGH = has filament, LOW = ran out
858
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
859
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
860
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
861 861
  */
862 862
 //#define FILAMENT_RUNOUT_SENSOR
863 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
864 865
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
865 866
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866 867
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/TinyBoy2/Configuration.h ファイルの表示

@@ -908,15 +908,16 @@
908 908
 #endif
909 909
 
910 910
 /**
911
- * Filament Runout Sensor
912
- * A mechanical or opto endstop is used to check for the presence of filament.
911
+ * Filament Runout Sensors
912
+ * Mechanical or opto endstops are used to check for the presence of filament.
913 913
  *
914
- * RAMPS-based boards use SERVO3_PIN.
915
- * For other boards you may need to define FIL_RUNOUT_PIN.
916
- * By default the firmware assumes HIGH = has filament, LOW = ran out
914
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
915
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
916
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
917 917
  */
918 918
 //#define FILAMENT_RUNOUT_SENSOR
919 919
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
920
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
920 921
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
921 922
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
922 923
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Tronxy/X1/Configuration.h ファイルの表示

@@ -843,15 +843,16 @@
843 843
 #endif
844 844
 
845 845
 /**
846
- * Filament Runout Sensor
847
- * A mechanical or opto endstop is used to check for the presence of filament.
846
+ * Filament Runout Sensors
847
+ * Mechanical or opto endstops are used to check for the presence of filament.
848 848
  *
849
- * RAMPS-based boards use SERVO3_PIN.
850
- * For other boards you may need to define FIL_RUNOUT_PIN.
851
- * By default the firmware assumes HIGH = has filament, LOW = ran out
849
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
850
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
851
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
852 852
  */
853 853
 //#define FILAMENT_RUNOUT_SENSOR
854 854
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
855
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
855 856
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
856 857
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
857 858
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Tronxy/X5S/Configuration.h ファイルの表示

@@ -852,15 +852,16 @@
852 852
 #endif
853 853
 
854 854
 /**
855
- * Filament Runout Sensor
856
- * A mechanical or opto endstop is used to check for the presence of filament.
855
+ * Filament Runout Sensors
856
+ * Mechanical or opto endstops are used to check for the presence of filament.
857 857
  *
858
- * RAMPS-based boards use SERVO3_PIN.
859
- * For other boards you may need to define FIL_RUNOUT_PIN.
860
- * By default the firmware assumes HIGH = has filament, LOW = ran out
858
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
859
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
860
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
861 861
  */
862 862
 //#define FILAMENT_RUNOUT_SENSOR
863 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
864 865
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
865 866
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866 867
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Tronxy/XY100/Configuration.h ファイルの表示

@@ -863,15 +863,16 @@
863 863
 #endif
864 864
 
865 865
 /**
866
- * Filament Runout Sensor
867
- * A mechanical or opto endstop is used to check for the presence of filament.
866
+ * Filament Runout Sensors
867
+ * Mechanical or opto endstops are used to check for the presence of filament.
868 868
  *
869
- * RAMPS-based boards use SERVO3_PIN.
870
- * For other boards you may need to define FIL_RUNOUT_PIN.
871
- * By default the firmware assumes HIGH = has filament, LOW = ran out
869
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
870
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
871
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
872 872
  */
873 873
 //#define FILAMENT_RUNOUT_SENSOR
874 874
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
875
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
875 876
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
876 877
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
877 878
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h ファイルの表示

@@ -843,15 +843,16 @@
843 843
 #endif
844 844
 
845 845
 /**
846
- * Filament Runout Sensor
847
- * A mechanical or opto endstop is used to check for the presence of filament.
846
+ * Filament Runout Sensors
847
+ * Mechanical or opto endstops are used to check for the presence of filament.
848 848
  *
849
- * RAMPS-based boards use SERVO3_PIN.
850
- * For other boards you may need to define FIL_RUNOUT_PIN.
851
- * By default the firmware assumes HIGH = has filament, LOW = ran out
849
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
850
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
851
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
852 852
  */
853 853
 //#define FILAMENT_RUNOUT_SENSOR
854 854
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
855
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
855 856
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
856 857
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
857 858
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Velleman/K8200/Configuration.h ファイルの表示

@@ -882,15 +882,16 @@
882 882
 #endif
883 883
 
884 884
 /**
885
- * Filament Runout Sensor
886
- * A mechanical or opto endstop is used to check for the presence of filament.
885
+ * Filament Runout Sensors
886
+ * Mechanical or opto endstops are used to check for the presence of filament.
887 887
  *
888
- * RAMPS-based boards use SERVO3_PIN.
889
- * For other boards you may need to define FIL_RUNOUT_PIN.
890
- * By default the firmware assumes HIGH = has filament, LOW = ran out
888
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
889
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
890
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
891 891
  */
892 892
 //#define FILAMENT_RUNOUT_SENSOR
893 893
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
894
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
894 895
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
895 896
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
896 897
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Velleman/K8400/Configuration.h ファイルの表示

@@ -852,15 +852,16 @@
852 852
 #endif
853 853
 
854 854
 /**
855
- * Filament Runout Sensor
856
- * A mechanical or opto endstop is used to check for the presence of filament.
855
+ * Filament Runout Sensors
856
+ * Mechanical or opto endstops are used to check for the presence of filament.
857 857
  *
858
- * RAMPS-based boards use SERVO3_PIN.
859
- * For other boards you may need to define FIL_RUNOUT_PIN.
860
- * By default the firmware assumes HIGH = has filament, LOW = ran out
858
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
859
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
860
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
861 861
  */
862 862
 //#define FILAMENT_RUNOUT_SENSOR
863 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
864 865
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
865 866
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866 867
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h ファイルの表示

@@ -852,15 +852,16 @@
852 852
 #endif
853 853
 
854 854
 /**
855
- * Filament Runout Sensor
856
- * A mechanical or opto endstop is used to check for the presence of filament.
855
+ * Filament Runout Sensors
856
+ * Mechanical or opto endstops are used to check for the presence of filament.
857 857
  *
858
- * RAMPS-based boards use SERVO3_PIN.
859
- * For other boards you may need to define FIL_RUNOUT_PIN.
860
- * By default the firmware assumes HIGH = has filament, LOW = ran out
858
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
859
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
860
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
861 861
  */
862 862
 //#define FILAMENT_RUNOUT_SENSOR
863 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
864 865
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
865 866
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866 867
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h ファイルの表示

@@ -853,15 +853,16 @@
853 853
 #endif
854 854
 
855 855
 /**
856
- * Filament Runout Sensor
857
- * A mechanical or opto endstop is used to check for the presence of filament.
856
+ * Filament Runout Sensors
857
+ * Mechanical or opto endstops are used to check for the presence of filament.
858 858
  *
859
- * RAMPS-based boards use SERVO3_PIN.
860
- * For other boards you may need to define FIL_RUNOUT_PIN.
861
- * By default the firmware assumes HIGH = has filament, LOW = ran out
859
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
860
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
861
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
862 862
  */
863 863
 //#define FILAMENT_RUNOUT_SENSOR
864 864
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
865
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
865 866
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
866 867
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
867 868
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/adafruit/ST7565/Configuration.h ファイルの表示

@@ -852,15 +852,16 @@
852 852
 #endif
853 853
 
854 854
 /**
855
- * Filament Runout Sensor
856
- * A mechanical or opto endstop is used to check for the presence of filament.
855
+ * Filament Runout Sensors
856
+ * Mechanical or opto endstops are used to check for the presence of filament.
857 857
  *
858
- * RAMPS-based boards use SERVO3_PIN.
859
- * For other boards you may need to define FIL_RUNOUT_PIN.
860
- * By default the firmware assumes HIGH = has filament, LOW = ran out
858
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
859
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
860
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
861 861
  */
862 862
 //#define FILAMENT_RUNOUT_SENSOR
863 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
864 865
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
865 866
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866 867
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h ファイルの表示

@@ -982,15 +982,16 @@
982 982
 #endif
983 983
 
984 984
 /**
985
- * Filament Runout Sensor
986
- * A mechanical or opto endstop is used to check for the presence of filament.
985
+ * Filament Runout Sensors
986
+ * Mechanical or opto endstops are used to check for the presence of filament.
987 987
  *
988
- * RAMPS-based boards use SERVO3_PIN.
989
- * For other boards you may need to define FIL_RUNOUT_PIN.
990
- * By default the firmware assumes HIGH = has filament, LOW = ran out
988
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
989
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
990
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
991 991
  */
992 992
 //#define FILAMENT_RUNOUT_SENSOR
993 993
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
994
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
994 995
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
995 996
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
996 997
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h ファイルの表示

@@ -973,15 +973,16 @@
973 973
 #endif
974 974
 
975 975
 /**
976
- * Filament Runout Sensor
977
- * A mechanical or opto endstop is used to check for the presence of filament.
976
+ * Filament Runout Sensors
977
+ * Mechanical or opto endstops are used to check for the presence of filament.
978 978
  *
979
- * RAMPS-based boards use SERVO3_PIN.
980
- * For other boards you may need to define FIL_RUNOUT_PIN.
981
- * By default the firmware assumes HIGH = has filament, LOW = ran out
979
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
980
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
981
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
982 982
  */
983 983
 //#define FILAMENT_RUNOUT_SENSOR
984 984
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
985
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
985 986
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
986 987
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
987 988
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h ファイルの表示

@@ -982,15 +982,16 @@
982 982
 #endif
983 983
 
984 984
 /**
985
- * Filament Runout Sensor
986
- * A mechanical or opto endstop is used to check for the presence of filament.
985
+ * Filament Runout Sensors
986
+ * Mechanical or opto endstops are used to check for the presence of filament.
987 987
  *
988
- * RAMPS-based boards use SERVO3_PIN.
989
- * For other boards you may need to define FIL_RUNOUT_PIN.
990
- * By default the firmware assumes HIGH = has filament, LOW = ran out
988
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
989
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
990
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
991 991
  */
992 992
 //#define FILAMENT_RUNOUT_SENSOR
993 993
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
994
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
994 995
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
995 996
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
996 997
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/delta/generic/Configuration.h ファイルの表示

@@ -969,15 +969,16 @@
969 969
 #endif
970 970
 
971 971
 /**
972
- * Filament Runout Sensor
973
- * A mechanical or opto endstop is used to check for the presence of filament.
972
+ * Filament Runout Sensors
973
+ * Mechanical or opto endstops are used to check for the presence of filament.
974 974
  *
975
- * RAMPS-based boards use SERVO3_PIN.
976
- * For other boards you may need to define FIL_RUNOUT_PIN.
977
- * By default the firmware assumes HIGH = has filament, LOW = ran out
975
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
976
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
977
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
978 978
  */
979 979
 //#define FILAMENT_RUNOUT_SENSOR
980 980
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
981
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
981 982
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
982 983
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
983 984
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/delta/kossel_mini/Configuration.h ファイルの表示

@@ -972,15 +972,16 @@
972 972
 #endif
973 973
 
974 974
 /**
975
- * Filament Runout Sensor
976
- * A mechanical or opto endstop is used to check for the presence of filament.
975
+ * Filament Runout Sensors
976
+ * Mechanical or opto endstops are used to check for the presence of filament.
977 977
  *
978
- * RAMPS-based boards use SERVO3_PIN.
979
- * For other boards you may need to define FIL_RUNOUT_PIN.
980
- * By default the firmware assumes HIGH = has filament, LOW = ran out
978
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
979
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
980
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
981 981
  */
982 982
 //#define FILAMENT_RUNOUT_SENSOR
983 983
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
984
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
984 985
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
985 986
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
986 987
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/delta/kossel_pro/Configuration.h ファイルの表示

@@ -972,15 +972,16 @@
972 972
 #endif
973 973
 
974 974
 /**
975
- * Filament Runout Sensor
976
- * A mechanical or opto endstop is used to check for the presence of filament.
975
+ * Filament Runout Sensors
976
+ * Mechanical or opto endstops are used to check for the presence of filament.
977 977
  *
978
- * RAMPS-based boards use SERVO3_PIN.
979
- * For other boards you may need to define FIL_RUNOUT_PIN.
980
- * By default the firmware assumes HIGH = has filament, LOW = ran out
978
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
979
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
980
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
981 981
  */
982 982
 //#define FILAMENT_RUNOUT_SENSOR
983 983
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
984
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
984 985
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
985 986
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
986 987
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/delta/kossel_xl/Configuration.h ファイルの表示

@@ -981,15 +981,16 @@
981 981
 #endif
982 982
 
983 983
 /**
984
- * Filament Runout Sensor
985
- * A mechanical or opto endstop is used to check for the presence of filament.
984
+ * Filament Runout Sensors
985
+ * Mechanical or opto endstops are used to check for the presence of filament.
986 986
  *
987
- * RAMPS-based boards use SERVO3_PIN.
988
- * For other boards you may need to define FIL_RUNOUT_PIN.
989
- * By default the firmware assumes HIGH = has filament, LOW = ran out
987
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
988
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
989
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
990 990
  */
991 991
 //#define FILAMENT_RUNOUT_SENSOR
992 992
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
993
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
993 994
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
994 995
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
995 996
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h ファイルの表示

@@ -866,15 +866,16 @@
866 866
 #endif
867 867
 
868 868
 /**
869
- * Filament Runout Sensor
870
- * A mechanical or opto endstop is used to check for the presence of filament.
869
+ * Filament Runout Sensors
870
+ * Mechanical or opto endstops are used to check for the presence of filament.
871 871
  *
872
- * RAMPS-based boards use SERVO3_PIN.
873
- * For other boards you may need to define FIL_RUNOUT_PIN.
874
- * By default the firmware assumes HIGH = has filament, LOW = ran out
872
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
873
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
874
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
875 875
  */
876 876
 #define FILAMENT_RUNOUT_SENSOR
877 877
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
878
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
878 879
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
879 880
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
880 881
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/makibox/Configuration.h ファイルの表示

@@ -855,15 +855,16 @@
855 855
 #endif
856 856
 
857 857
 /**
858
- * Filament Runout Sensor
859
- * A mechanical or opto endstop is used to check for the presence of filament.
858
+ * Filament Runout Sensors
859
+ * Mechanical or opto endstops are used to check for the presence of filament.
860 860
  *
861
- * RAMPS-based boards use SERVO3_PIN.
862
- * For other boards you may need to define FIL_RUNOUT_PIN.
863
- * By default the firmware assumes HIGH = has filament, LOW = ran out
861
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
862
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
863
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
864 864
  */
865 865
 //#define FILAMENT_RUNOUT_SENSOR
866 866
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
867
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
867 868
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
868 869
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
869 870
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/stm32f103ret6/Configuration.h ファイルの表示

@@ -853,15 +853,16 @@
853 853
 #endif
854 854
 
855 855
 /**
856
- * Filament Runout Sensor
857
- * A mechanical or opto endstop is used to check for the presence of filament.
856
+ * Filament Runout Sensors
857
+ * Mechanical or opto endstops are used to check for the presence of filament.
858 858
  *
859
- * RAMPS-based boards use SERVO3_PIN.
860
- * For other boards you may need to define FIL_RUNOUT_PIN.
861
- * By default the firmware assumes HIGH = has filament, LOW = ran out
859
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
860
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
861
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
862 862
  */
863 863
 //#define FILAMENT_RUNOUT_SENSOR
864 864
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
865
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
865 866
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
866 867
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
867 868
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/tvrrug/Round2/Configuration.h ファイルの表示

@@ -847,15 +847,16 @@
847 847
 #endif
848 848
 
849 849
 /**
850
- * Filament Runout Sensor
851
- * A mechanical or opto endstop is used to check for the presence of filament.
850
+ * Filament Runout Sensors
851
+ * Mechanical or opto endstops are used to check for the presence of filament.
852 852
  *
853
- * RAMPS-based boards use SERVO3_PIN.
854
- * For other boards you may need to define FIL_RUNOUT_PIN.
855
- * By default the firmware assumes HIGH = has filament, LOW = ran out
853
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
854
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
855
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
856 856
  */
857 857
 //#define FILAMENT_RUNOUT_SENSOR
858 858
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
859
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
859 860
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
860 861
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
861 862
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 6
- 5
Marlin/src/config/examples/wt150/Configuration.h ファイルの表示

@@ -857,15 +857,16 @@
857 857
 #endif
858 858
 
859 859
 /**
860
- * Filament Runout Sensor
861
- * A mechanical or opto endstop is used to check for the presence of filament.
860
+ * Filament Runout Sensors
861
+ * Mechanical or opto endstops are used to check for the presence of filament.
862 862
  *
863
- * RAMPS-based boards use SERVO3_PIN.
864
- * For other boards you may need to define FIL_RUNOUT_PIN.
865
- * By default the firmware assumes HIGH = has filament, LOW = ran out
863
+ * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
864
+ * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
865
+ * By default the firmware assumes HIGH=FILAMENT PRESENT.
866 866
  */
867 867
 //#define FILAMENT_RUNOUT_SENSOR
868 868
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
869
+  #define NUM_RUNOUT_SENSORS   1     // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
869 870
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
870 871
   #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
871 872
   //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.

+ 1
- 1
Marlin/src/feature/pause.cpp ファイルの表示

@@ -500,7 +500,7 @@ void resume_print(const float &load_length/*=0*/, const float &purge_length/*=AD
500 500
   planner.set_e_position_mm(destination[E_AXIS] = current_position[E_AXIS] = resume_position[E_AXIS]);
501 501
 
502 502
   #if ENABLED(FILAMENT_RUNOUT_SENSOR)
503
-    filament_ran_out = false;
503
+    runout.reset();
504 504
   #endif
505 505
 
506 506
   #if ENABLED(ULTIPANEL)

+ 28
- 10
Marlin/src/feature/runout.cpp ファイルの表示

@@ -24,21 +24,39 @@
24 24
  * feature/runout.cpp - Runout sensor support
25 25
  */
26 26
 
27
-#include "../inc/MarlinConfig.h"
27
+#include "../inc/MarlinConfigPre.h"
28 28
 
29 29
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
30 30
 
31
-#include "../module/stepper.h"
32
-#include "../gcode/queue.h"
31
+#include "runout.h"
33 32
 
34
-bool filament_ran_out = false;
33
+FilamentRunoutSensor runout;
35 34
 
36
-void handle_filament_runout() {
37
-  if (!filament_ran_out) {
38
-    filament_ran_out = true;
39
-    enqueue_and_echo_commands_P(PSTR(FILAMENT_RUNOUT_SCRIPT));
40
-    stepper.synchronize();
41
-  }
35
+bool FilamentRunoutSensor::filament_ran_out; // = false;
36
+
37
+void FilamentRunoutSensor::setup() {
38
+
39
+  #if ENABLED(FIL_RUNOUT_PULLUP)
40
+    #define INIT_RUNOUT_PIN(P) SET_INPUT_PULLUP(P)
41
+  #elif ENABLED(FIL_RUNOUT_PULLDOWN)
42
+    #define INIT_RUNOUT_PIN(P) SET_INPUT_PULLDOWN(P)
43
+  #else
44
+    #define INIT_RUNOUT_PIN(P) SET_INPUT(P)
45
+  #endif
46
+
47
+  INIT_RUNOUT_PIN(FIL_RUNOUT_PIN);
48
+  #if NUM_RUNOUT_SENSORS > 1
49
+    INIT_RUNOUT_PIN(FIL_RUNOUT2_PIN);
50
+    #if NUM_RUNOUT_SENSORS > 2
51
+      INIT_RUNOUT_PIN(FIL_RUNOUT3_PIN);
52
+      #if NUM_RUNOUT_SENSORS > 3
53
+        INIT_RUNOUT_PIN(FIL_RUNOUT4_PIN);
54
+        #if NUM_RUNOUT_SENSORS > 4
55
+          INIT_RUNOUT_PIN(FIL_RUNOUT5_PIN);
56
+        #endif
57
+      #endif
58
+    #endif
59
+  #endif
42 60
 }
43 61
 
44 62
 #endif // FILAMENT_RUNOUT_SENSOR

+ 49
- 2
Marlin/src/feature/runout.h ファイルの表示

@@ -27,8 +27,55 @@
27 27
 #ifndef _RUNOUT_H_
28 28
 #define _RUNOUT_H_
29 29
 
30
-extern bool filament_ran_out;
30
+#include "../sd/cardreader.h"
31
+#include "../module/printcounter.h"
32
+#include "../module/stepper.h"
33
+#include "../gcode/queue.h"
31 34
 
32
-void handle_filament_runout();
35
+#include "../inc/MarlinConfig.h"
36
+
37
+class FilamentRunoutSensor {
38
+
39
+  FilamentRunoutSensor() {}
40
+
41
+  static bool filament_ran_out;
42
+  static void setup();
43
+
44
+  FORCE_INLINE static reset() { filament_ran_out = false; }
45
+
46
+  FORCE_INLINE static bool check() {
47
+    #if NUM_RUNOUT_SENSORS < 2
48
+      // A single sensor applying to all extruders
49
+      return READ(FIL_RUNOUT_PIN) == FIL_RUNOUT_INVERTING;
50
+    #else
51
+      // Read the sensor for the active extruder
52
+      switch (active_extruder) {
53
+        case 0: return READ(FIL_RUNOUT_PIN) == FIL_RUNOUT_INVERTING;
54
+        case 1: return READ(FIL_RUNOUT2_PIN) == FIL_RUNOUT_INVERTING;
55
+        #if NUM_RUNOUT_SENSORS > 2
56
+          case 2: return READ(FIL_RUNOUT3_PIN) == FIL_RUNOUT_INVERTING;
57
+          #if NUM_RUNOUT_SENSORS > 3
58
+            case 3: return READ(FIL_RUNOUT4_PIN) == FIL_RUNOUT_INVERTING;
59
+            #if NUM_RUNOUT_SENSORS > 4
60
+              case 4: return READ(FIL_RUNOUT5_PIN) == FIL_RUNOUT_INVERTING;
61
+            #endif
62
+          #endif
63
+        #endif
64
+      }
65
+    #endif
66
+    return false;
67
+  }
68
+
69
+  FORCE_INLINE static void run() {
70
+    if ((IS_SD_PRINTING || print_job_timer.isRunning()) && check() && !filament_ran_out) {
71
+      filament_ran_out = true;
72
+      enqueue_and_echo_commands_P(PSTR(FILAMENT_RUNOUT_SCRIPT));
73
+      stepper.synchronize();
74
+    }
75
+  }
76
+
77
+};
78
+
79
+extern FilamentRunoutSensor runout;
33 80
 
34 81
 #endif // _RUNOUT_H_

+ 0
- 1
Marlin/src/inc/Conditionals_post.h ファイルの表示

@@ -792,7 +792,6 @@
792 792
 
793 793
 // Sensors
794 794
 #define HAS_FILAMENT_WIDTH_SENSOR (PIN_EXISTS(FILWIDTH))
795
-#define HAS_FIL_RUNOUT (PIN_EXISTS(FIL_RUNOUT))
796 795
 
797 796
 // User Interface
798 797
 #define HAS_HOME (PIN_EXISTS(HOME))

+ 12
- 2
Marlin/src/inc/SanityCheck.h ファイルの表示

@@ -429,11 +429,21 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
429 429
 #endif
430 430
 
431 431
 /**
432
- * Filament Runout needs a pin and either SD Support or Auto print start detection
432
+ * Filament Runout needs one or more pins and either SD Support or Auto print start detection
433 433
  */
434 434
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
435
-  #if !HAS_FIL_RUNOUT
435
+  #if !PIN_EXISTS(FIL_RUNOUT)
436 436
     #error "FILAMENT_RUNOUT_SENSOR requires FIL_RUNOUT_PIN."
437
+  #elif NUM_RUNOUT_SENSORS > E_STEPPERS
438
+    #error "NUM_RUNOUT_SENSORS cannot exceed the number of E steppers."
439
+  #elif NUM_RUNOUT_SENSORS > 1 && !PIN_EXISTS(FIL_RUNOUT2)
440
+    #error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 1 requires FIL_RUNOUT2_PIN."
441
+  #elif NUM_RUNOUT_SENSORS > 2 && !PIN_EXISTS(FIL_RUNOUT3)
442
+    #error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 2 requires FIL_RUNOUT3_PIN."
443
+  #elif NUM_RUNOUT_SENSORS > 3 && !PIN_EXISTS(FIL_RUNOUT4)
444
+    #error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 3 requires FIL_RUNOUT4_PIN."
445
+  #elif NUM_RUNOUT_SENSORS > 4 && !PIN_EXISTS(FIL_RUNOUT5)
446
+    #error "FILAMENT_RUNOUT_SENSOR with NUM_RUNOUT_SENSORS > 4 requires FIL_RUNOUT5_PIN."
437 447
   #elif DISABLED(SDSUPPORT) && DISABLED(PRINTJOB_TIMER_AUTOSTART)
438 448
     #error "FILAMENT_RUNOUT_SENSOR requires SDSUPPORT or PRINTJOB_TIMER_AUTOSTART."
439 449
   #elif DISABLED(ADVANCED_PAUSE_FEATURE)

読み込み中…
キャンセル
保存