Browse Source

Merge pull request #4097 from thinkyhead/rc_fil_runout_cleanup

FIL_RUNOUT_INVERTING false by default
Scott Lahteine 8 years ago
parent
commit
9beb3f2f5e

+ 1
- 1
Marlin/Conditionals.h View File

@@ -643,7 +643,7 @@
643 643
   #define HAS_SERVO_2 (PIN_EXISTS(SERVO2))
644 644
   #define HAS_SERVO_3 (PIN_EXISTS(SERVO3))
645 645
   #define HAS_FILAMENT_WIDTH_SENSOR (PIN_EXISTS(FILWIDTH))
646
-  #define HAS_FILRUNOUT (PIN_EXISTS(FILRUNOUT))
646
+  #define HAS_FIL_RUNOUT (PIN_EXISTS(FIL_RUNOUT))
647 647
   #define HAS_HOME (PIN_EXISTS(HOME))
648 648
   #define HAS_KILL (PIN_EXISTS(KILL))
649 649
   #define HAS_SUICIDE (PIN_EXISTS(SUICIDE))

+ 1
- 1
Marlin/Configuration.h View File

@@ -585,7 +585,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
585 585
                                  // It is assumed that when logic high = filament available
586 586
                                  //                    when logic  low = filament ran out
587 587
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
588
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
588
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
589 589
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
590 590
   #define FILAMENT_RUNOUT_SCRIPT "M600"
591 591
 #endif

+ 3
- 3
Marlin/Marlin_main.cpp View File

@@ -689,9 +689,9 @@ void setup_killpin() {
689 689
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
690 690
 
691 691
   void setup_filrunoutpin() {
692
-    pinMode(FILRUNOUT_PIN, INPUT);
692
+    pinMode(FIL_RUNOUT_PIN, INPUT);
693 693
     #if ENABLED(ENDSTOPPULLUP_FIL_RUNOUT)
694
-      WRITE(FILRUNOUT_PIN, HIGH);
694
+      WRITE(FIL_RUNOUT_PIN, HIGH);
695 695
     #endif
696 696
   }
697 697
 
@@ -8167,7 +8167,7 @@ void idle(
8167 8167
 void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
8168 8168
 
8169 8169
   #if ENABLED(FILAMENT_RUNOUT_SENSOR)
8170
-    if (IS_SD_PRINTING && !(READ(FILRUNOUT_PIN) ^ FIL_RUNOUT_INVERTING))
8170
+    if (IS_SD_PRINTING && !(READ(FIL_RUNOUT_PIN) ^ FIL_RUNOUT_INVERTING))
8171 8171
       handle_filament_runout();
8172 8172
   #endif
8173 8173
 

+ 2
- 2
Marlin/SanityCheck.h View File

@@ -128,8 +128,8 @@
128 128
  * Filament Runout needs a pin and SD Support
129 129
  */
130 130
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
131
-  #if !HAS_FILRUNOUT
132
-    #error "FILAMENT_RUNOUT_SENSOR requires FILRUNOUT_PIN."
131
+  #if !HAS_FIL_RUNOUT
132
+    #error "FILAMENT_RUNOUT_SENSOR requires FIL_RUNOUT_PIN."
133 133
   #elif DISABLED(SDSUPPORT)
134 134
     #error "FILAMENT_RUNOUT_SENSOR requires SDSUPPORT."
135 135
   #endif

+ 1
- 1
Marlin/example_configurations/Cartesio/Configuration.h View File

@@ -584,7 +584,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
584 584
                                  // It is assumed that when logic high = filament available
585 585
                                  //                    when logic  low = filament ran out
586 586
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
587
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
587
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
588 588
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
589 589
   #define FILAMENT_RUNOUT_SCRIPT "M600"
590 590
 #endif

+ 1
- 1
Marlin/example_configurations/Felix/Configuration.h View File

@@ -567,7 +567,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
567 567
                                  // It is assumed that when logic high = filament available
568 568
                                  //                    when logic  low = filament ran out
569 569
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
570
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
570
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
571 571
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
572 572
   #define FILAMENT_RUNOUT_SCRIPT "M600"
573 573
 #endif

+ 1
- 1
Marlin/example_configurations/Felix/DUAL/Configuration.h View File

@@ -565,7 +565,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
565 565
                                  // It is assumed that when logic high = filament available
566 566
                                  //                    when logic  low = filament ran out
567 567
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
568
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
568
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
569 569
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
570 570
   #define FILAMENT_RUNOUT_SCRIPT "M600"
571 571
 #endif

+ 1
- 1
Marlin/example_configurations/Hephestos/Configuration.h View File

@@ -577,7 +577,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
577 577
                                  // It is assumed that when logic high = filament available
578 578
                                  //                    when logic  low = filament ran out
579 579
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
580
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
580
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
581 581
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
582 582
   #define FILAMENT_RUNOUT_SCRIPT "M600"
583 583
 #endif

+ 1
- 1
Marlin/example_configurations/Hephestos_2/Configuration.h View File

@@ -579,7 +579,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
579 579
                                  // It is assumed that when logic high = filament available
580 580
                                  //                    when logic  low = filament ran out
581 581
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
582
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
582
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
583 583
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
584 584
   #define FILAMENT_RUNOUT_SCRIPT "M600"
585 585
 #endif

+ 1
- 1
Marlin/example_configurations/K8200/Configuration.h View File

@@ -602,7 +602,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
602 602
                                  // It is assumed that when logic high = filament available
603 603
                                  //                    when logic  low = filament ran out
604 604
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
605
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
605
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
606 606
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
607 607
   #define FILAMENT_RUNOUT_SCRIPT "M600"
608 608
 #endif

+ 1
- 1
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h View File

@@ -585,7 +585,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
585 585
                                  // It is assumed that when logic high = filament available
586 586
                                  //                    when logic  low = filament ran out
587 587
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
588
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
588
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
589 589
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
590 590
   #define FILAMENT_RUNOUT_SCRIPT "M600"
591 591
 #endif

+ 1
- 1
Marlin/example_configurations/RigidBot/Configuration.h View File

@@ -579,7 +579,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
579 579
                                  // It is assumed that when logic high = filament available
580 580
                                  //                    when logic  low = filament ran out
581 581
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
582
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
582
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
583 583
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
584 584
   #define FILAMENT_RUNOUT_SCRIPT "M600"
585 585
 #endif

+ 1
- 1
Marlin/example_configurations/SCARA/Configuration.h View File

@@ -593,7 +593,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
593 593
                                  // It is assumed that when logic high = filament available
594 594
                                  //                    when logic  low = filament ran out
595 595
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
596
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
596
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
597 597
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
598 598
   #define FILAMENT_RUNOUT_SCRIPT "M600"
599 599
 #endif

+ 1
- 1
Marlin/example_configurations/TAZ4/Configuration.h View File

@@ -606,7 +606,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
606 606
                                  // It is assumed that when logic high = filament available
607 607
                                  //                    when logic  low = filament ran out
608 608
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
609
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
609
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
610 610
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
611 611
   #define FILAMENT_RUNOUT_SCRIPT "M600"
612 612
 #endif

+ 1
- 1
Marlin/example_configurations/WITBOX/Configuration.h View File

@@ -577,7 +577,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
577 577
                                  // It is assumed that when logic high = filament available
578 578
                                  //                    when logic  low = filament ran out
579 579
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
580
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
580
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
581 581
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
582 582
   #define FILAMENT_RUNOUT_SCRIPT "M600"
583 583
 #endif

+ 1
- 1
Marlin/example_configurations/adafruit/ST7565/Configuration.h View File

@@ -585,7 +585,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
585 585
                                  // It is assumed that when logic high = filament available
586 586
                                  //                    when logic  low = filament ran out
587 587
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
588
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
588
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
589 589
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
590 590
   #define FILAMENT_RUNOUT_SCRIPT "M600"
591 591
 #endif

+ 1
- 1
Marlin/example_configurations/delta/biv2.5/Configuration.h View File

@@ -664,7 +664,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
664 664
                                  // It is assumed that when logic high = filament available
665 665
                                  //                    when logic  low = filament ran out
666 666
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
667
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
667
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
668 668
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
669 669
   #define FILAMENT_RUNOUT_SCRIPT "M600"
670 670
 #endif

+ 1
- 1
Marlin/example_configurations/delta/generic/Configuration.h View File

@@ -658,7 +658,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
658 658
                                  // It is assumed that when logic high = filament available
659 659
                                  //                    when logic  low = filament ran out
660 660
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
661
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
661
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
662 662
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
663 663
   #define FILAMENT_RUNOUT_SCRIPT "M600"
664 664
 #endif

+ 1
- 1
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

@@ -661,7 +661,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
661 661
                                  // It is assumed that when logic high = filament available
662 662
                                  //                    when logic  low = filament ran out
663 663
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
664
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
664
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
665 665
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
666 666
   #define FILAMENT_RUNOUT_SCRIPT "M600"
667 667
 #endif

+ 1
- 1
Marlin/example_configurations/delta/kossel_pro/Configuration.h View File

@@ -655,7 +655,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
655 655
                                  // It is assumed that when logic high = filament available
656 656
                                  //                    when logic  low = filament ran out
657 657
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
658
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
658
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
659 659
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
660 660
   #define FILAMENT_RUNOUT_SCRIPT "M600"
661 661
 #endif

+ 1
- 1
Marlin/example_configurations/delta/kossel_xl/Configuration.h View File

@@ -656,7 +656,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
656 656
                                  // It is assumed that when logic high = filament available
657 657
                                  //                    when logic  low = filament ran out
658 658
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
659
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
659
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
660 660
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
661 661
   #define FILAMENT_RUNOUT_SCRIPT "M600"
662 662
 #endif

+ 1
- 1
Marlin/example_configurations/makibox/Configuration.h View File

@@ -588,7 +588,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
588 588
                                  // It is assumed that when logic high = filament available
589 589
                                  //                    when logic  low = filament ran out
590 590
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
591
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
591
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
592 592
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
593 593
   #define FILAMENT_RUNOUT_SCRIPT "M600"
594 594
 #endif

+ 1
- 1
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

@@ -575,7 +575,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
575 575
                                  // It is assumed that when logic high = filament available
576 576
                                  //                    when logic  low = filament ran out
577 577
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
578
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
578
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
579 579
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
580 580
   #define FILAMENT_RUNOUT_SCRIPT "M600"
581 581
 #endif

+ 1
- 1
Marlin/pins_CNCONTROLS_12.h View File

@@ -67,7 +67,7 @@
67 67
 //common I/O
68 68
 
69 69
  //#define TEMP_CHAMBER_PIN        13  // ANALOG INPUT !!
70
- #define FILRUNOUT_PIN             18
70
+ #define FIL_RUNOUT_PIN            18
71 71
  //#define PWM_1_PIN               12
72 72
  //#define PWM_2_PIN               13 
73 73
  //#define SPARE_IO                17  

+ 1
- 1
Marlin/pins_RAMPS_14.h View File

@@ -99,7 +99,7 @@
99 99
 #endif
100 100
 
101 101
 // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
102
-#define FILRUNOUT_PIN       4
102
+#define FIL_RUNOUT_PIN      4
103 103
 
104 104
 #if MB(RAMPS_14_EFF) || MB(RAMPS_13_EFF) || ENABLED(IS_RAMPS_EFB)
105 105
   #define FAN_PIN           9 // (Sprinter config)

Loading…
Cancel
Save