Browse Source

Merge pull request #6266 from thinkyhead/rc_cleanup_after

Cleanup after recent merges
Scott Lahteine 8 years ago
parent
commit
98c9de11e1
34 changed files with 809 additions and 699 deletions
  1. 31
    25
      Marlin/Configuration.h
  2. 32
    53
      Marlin/Marlin_main.cpp
  3. 31
    25
      Marlin/example_configurations/Cartesio/Configuration.h
  4. 31
    25
      Marlin/example_configurations/Felix/Configuration.h
  5. 31
    25
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  6. 31
    25
      Marlin/example_configurations/Hephestos/Configuration.h
  7. 31
    25
      Marlin/example_configurations/Hephestos_2/Configuration.h
  8. 31
    25
      Marlin/example_configurations/K8200/Configuration.h
  9. 31
    25
      Marlin/example_configurations/K8400/Configuration.h
  10. 31
    25
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  11. 31
    25
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  12. 31
    25
      Marlin/example_configurations/RigidBot/Configuration.h
  13. 31
    25
      Marlin/example_configurations/SCARA/Configuration.h
  14. 31
    25
      Marlin/example_configurations/TAZ4/Configuration.h
  15. 31
    25
      Marlin/example_configurations/TinyBoy2/Configuration.h
  16. 31
    25
      Marlin/example_configurations/WITBOX/Configuration.h
  17. 31
    25
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  18. 31
    25
      Marlin/example_configurations/delta/flsun_kossel_mini/Configuration.h
  19. 31
    25
      Marlin/example_configurations/delta/generic/Configuration.h
  20. 31
    25
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  21. 31
    25
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  22. 31
    25
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  23. 31
    25
      Marlin/example_configurations/makibox/Configuration.h
  24. 31
    25
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  25. 1
    1
      Marlin/nozzle.h
  26. 3
    0
      Marlin/pins.h
  27. 52
    61
      Marlin/pinsDebug.h
  28. 1
    1
      Marlin/printcounter.cpp
  29. 1
    1
      Marlin/printcounter.h
  30. 2
    3
      Marlin/stepper.cpp
  31. 1
    1
      Marlin/stopwatch.cpp
  32. 1
    1
      Marlin/stopwatch.h
  33. 1
    1
      Marlin/twibus.cpp
  34. 1
    1
      Marlin/twibus.h

+ 31
- 25
Marlin/Configuration.h View File

@@ -596,7 +596,7 @@
596 596
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
597 597
  */
598 598
 
599
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
599
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
600 600
 //#define Z_PROBE_SLED
601 601
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
602 602
 
@@ -623,16 +623,16 @@
623 623
 #define Y_PROBE_OFFSET_FROM_EXTRUDER 10  // Y offset: -front +behind [the nozzle]
624 624
 #define Z_PROBE_OFFSET_FROM_EXTRUDER 0   // Z offset: -below +above  [the nozzle]
625 625
 
626
-/*   X and Y axis travel speed (mm/m) between probes */
626
+// X and Y axis travel speed (mm/m) between probes
627 627
 #define XY_PROBE_SPEED 8000
628 628
 
629
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
629
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
630 630
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
631 631
 
632
-/*   Speed for the "accurate" probe of each point  */
632
+// Speed for the "accurate" probe of each point
633 633
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
634 634
 
635
-/*   Use double touch for probing  */
635
+// Use double touch for probing
636 636
 //#define PROBE_DOUBLE_TOUCH
637 637
 
638 638
 /**
@@ -1547,33 +1547,39 @@
1547 1547
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1548 1548
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1549 1549
 
1550
-/**********************************************************************\
1551
- * Support for a filament diameter sensor
1552
- * Also allows adjustment of diameter at print time (vs  at slicing)
1553
- * Single extruder only at this point (extruder 0)
1554
- *
1555
- * Motherboards
1556
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1557
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1558
- * 301 - Rambo  - uses Analog input 3
1559
- * Note may require analog pins to be defined for different motherboards
1560
- **********************************************************************/
1561
-// Uncomment below to enable
1550
+/**
1551
+ * Filament Width Sensor
1552
+ *
1553
+ * Measures the filament width in real-time and adjusts
1554
+ * flow rate to compensate for any irregularities.
1555
+ *
1556
+ * Also allows the measured filament diameter to set the
1557
+ * extrusion rate, so the slicer only has to specify the
1558
+ * volume.
1559
+ *
1560
+ * Only a single extruder is supported at this time.
1561
+ *
1562
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1563
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1564
+ * 301 RAMBO       : Analog input 3
1565
+ *
1566
+ * Note: May require analog pins to be defined for other boards.
1567
+ */
1562 1568
 //#define FILAMENT_WIDTH_SENSOR
1563 1569
 
1564
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1570
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1565 1571
 
1566 1572
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1567
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1568
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1573
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1574
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1569 1575
 
1570
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1571
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1572
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1576
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1577
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1578
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1573 1579
 
1574
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1580
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1575 1581
 
1576
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1582
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1577 1583
   //#define FILAMENT_LCD_DISPLAY
1578 1584
 #endif
1579 1585
 

+ 32
- 53
Marlin/Marlin_main.cpp View File

@@ -1777,7 +1777,6 @@ static void clean_up_after_endstop_or_probe_move() {
1777 1777
         lcd_status_printf_P(0, PSTR(MSG_HOME " %s%s%s " MSG_FIRST), xx ? MSG_X : "", yy ? MSG_Y : "", zz ? MSG_Z : "");
1778 1778
       #endif
1779 1779
       return true;
1780
-
1781 1780
     }
1782 1781
     return false;
1783 1782
   }
@@ -1974,7 +1973,7 @@ static void clean_up_after_endstop_or_probe_move() {
1974 1973
 
1975 1974
 #if HAS_BED_PROBE
1976 1975
 
1977
- // TRIGGERED_WHEN_STOWED_TEST can easily be extended to servo probes, ... if needed.
1976
+  // TRIGGERED_WHEN_STOWED_TEST can easily be extended to servo probes, ... if needed.
1978 1977
   #if ENABLED(PROBE_IS_TRIGGERED_WHEN_STOWED_TEST)
1979 1978
     #if ENABLED(Z_MIN_PROBE_ENDSTOP)
1980 1979
       #define _TRIGGERED_WHEN_STOWED_TEST (READ(Z_MIN_PROBE_PIN) != Z_MIN_PROBE_ENDSTOP_INVERTING)
@@ -1983,7 +1982,6 @@ static void clean_up_after_endstop_or_probe_move() {
1983 1982
     #endif
1984 1983
   #endif
1985 1984
 
1986
-
1987 1985
   #if ENABLED(BLTOUCH)
1988 1986
     void bltouch_command(int angle) {
1989 1987
       servo[Z_ENDSTOP_SERVO_NR].move(angle);  // Give the BL-Touch the command and wait
@@ -1995,7 +1993,7 @@ static void clean_up_after_endstop_or_probe_move() {
1995 1993
         bltouch_command(BLTOUCH_RESET);    // try to reset it.
1996 1994
         bltouch_command(BLTOUCH_DEPLOY);   // Also needs to deploy and stow to
1997 1995
         bltouch_command(BLTOUCH_STOW);     // clear the triggered condition.
1998
-        safe_delay(1500);             // wait for internal self test to complete
1996
+        safe_delay(1500);                  // wait for internal self test to complete
1999 1997
                                            //   measured completion time was 0.65 seconds
2000 1998
                                            //   after reset, deploy & stow sequence
2001 1999
         if (TEST_BLTOUCH()) {              // If it still claims to be triggered...
@@ -2206,8 +2204,7 @@ static void clean_up_after_endstop_or_probe_move() {
2206 2204
   //   - Raise to the BETWEEN height
2207 2205
   // - Return the probed Z position
2208 2206
   //
2209
-//float probe_pt(const float &x, const float &y, const bool stow = true, const int verbose_level = 1) {
2210
-  float probe_pt(const float x, const float y, const bool stow, const int verbose_level) {
2207
+  float probe_pt(const float x, const float y, const bool stow/*=true*/, const int verbose_level/*=1*/) {
2211 2208
     #if ENABLED(DEBUG_LEVELING_FEATURE)
2212 2209
       if (DEBUGGING(LEVELING)) {
2213 2210
         SERIAL_ECHOPAIR(">>> probe_pt(", x);
@@ -2371,9 +2368,9 @@ static void clean_up_after_endstop_or_probe_move() {
2371 2368
   //
2372 2369
   // Enable if you prefer your output in JSON format
2373 2370
   // suitable for SCAD or JavaScript mesh visualizers.
2374
-  // 
2371
+  //
2375 2372
   // Visualize meshes in OpenSCAD using the included script.
2376
-  // 
2373
+  //
2377 2374
   //   buildroot/shared/scripts/MarlinMesh.scad
2378 2375
   //
2379 2376
   //#define SCAD_MESH_OUTPUT
@@ -5319,27 +5316,18 @@ inline void gcode_M42() {
5319 5316
 
5320 5317
   #include "pinsDebug.h"
5321 5318
 
5322
-
5323 5319
   inline void toggle_pins() {
5324
-    int pin, j, start = 0, I_flag = 0, end = NUM_DIGITAL_PINS - 1, wait = 500, repeat = 1;
5325
-
5326
-    if (code_seen('R'))
5327
-      repeat = code_value_int();
5320
+    int pin, j;
5328 5321
 
5329
-    if (code_seen('S'))
5330
-      start = code_value_int();
5322
+    bool I_flag = code_seen('I') ? code_value_bool() : false;
5331 5323
 
5332
-    if (code_seen('E'))
5333
-      end = code_value_int();
5324
+    int repeat = code_seen('R') ? code_value_int() : 1,
5325
+        start = code_seen('S') ? code_value_int() : 0,
5326
+        end = code_seen('E') ? code_value_int() : NUM_DIGITAL_PINS - 1,
5327
+        wait = code_seen('W') ? code_value_int() : 500;
5334 5328
 
5335
-    if (code_seen('I') )
5336
-      I_flag++;
5337
-
5338
-    if (code_seen('W'))
5339
-      wait = code_value_int();
5340
-
5341
-    for(pin = start; pin <= end; pin++) {
5342
-        if ( I_flag == 0 && pin_is_protected(pin)) {
5329
+    for (pin = start; pin <= end; pin++) {
5330
+        if (!I_flag && pin_is_protected(pin)) {
5343 5331
           SERIAL_ECHOPAIR("Sensitive Pin: ", pin);
5344 5332
           SERIAL_ECHOPGM(" untouched.\n");
5345 5333
         }
@@ -5348,22 +5336,17 @@ inline void gcode_M42() {
5348 5336
           pinMode(pin, OUTPUT);
5349 5337
           for(j = 0; j < repeat; j++) {
5350 5338
             digitalWrite(pin, 0);
5351
-            idle();
5352
-            delay(wait);
5339
+            safe_delay(wait);
5353 5340
             digitalWrite(pin, 1);
5354
-            idle();
5355
-            delay(wait);
5341
+            safe_delay(wait);
5356 5342
             digitalWrite(pin, 0);
5357
-            idle();
5358
-            delay(wait);
5343
+            safe_delay(wait);
5359 5344
           }
5360 5345
         }
5361 5346
       SERIAL_ECHOPGM("\n");
5362 5347
     }
5363 5348
     SERIAL_ECHOPGM("Done\n");
5364
-    return;
5365
-  }  // toggle pin(s)
5366
-
5349
+  } // toggle_pins
5367 5350
 
5368 5351
   inline void servo_probe_test(){
5369 5352
     #if !(NUM_SERVOS >= 1 && HAS_SERVO_0)
@@ -5452,7 +5435,7 @@ inline void gcode_M42() {
5452 5435
         if (probe_counter == 0) SERIAL_PROTOCOLLNPGM("trigger not detected");
5453 5436
       }      // measure active signal length
5454 5437
     #endif
5455
-  }        // servo_probe_test
5438
+  } // servo_probe_test
5456 5439
 
5457 5440
   /**
5458 5441
    * M43: Pin debug - report pin state, watch pins, toggle pins and servo probe test/report
@@ -5481,7 +5464,6 @@ inline void gcode_M42() {
5481 5464
    *  M43 S       - Servo probe test
5482 5465
    *                  P<index> - Probe index (optional - defaults to 0
5483 5466
    */
5484
-
5485 5467
   inline void gcode_M43() {
5486 5468
 
5487 5469
     if (code_seen('T')) {   // must be first ot else it's "S" and "E" parameters will execute endstop or servo test
@@ -5503,7 +5485,6 @@ inline void gcode_M42() {
5503 5485
       return;
5504 5486
     }
5505 5487
 
5506
-
5507 5488
     // Get the range of pins to test or watch
5508 5489
     int first_pin = 0, last_pin = NUM_DIGITAL_PINS - 1;
5509 5490
     if (code_seen('P')) {
@@ -5511,10 +5492,10 @@ inline void gcode_M42() {
5511 5492
       if (first_pin > NUM_DIGITAL_PINS - 1) return;
5512 5493
     }
5513 5494
 
5514
-    bool ignore_protection = code_seen('I');
5495
+    bool ignore_protection = code_seen('I') ? code_value_bool() : false;
5515 5496
 
5516 5497
     // Watch until click, M108, or reset
5517
-    if (code_seen('W')) { // watch digital pins
5498
+    if (code_seen('W') && code_value_bool()) { // watch digital pins
5518 5499
       SERIAL_PROTOCOLLNPGM("Watching pins");
5519 5500
       byte pin_state[last_pin - first_pin + 1];
5520 5501
       for (int8_t pin = first_pin; pin <= last_pin; pin++) {
@@ -5558,7 +5539,6 @@ inline void gcode_M42() {
5558 5539
       report_pin_state_extended(pin, ignore_protection);
5559 5540
   }
5560 5541
 
5561
-
5562 5542
 #endif // PINS_DEBUGGING
5563 5543
 
5564 5544
 #if ENABLED(Z_MIN_PROBE_REPEATABILITY_TEST)
@@ -6041,17 +6021,18 @@ inline void gcode_M105() {
6041 6021
 
6042 6022
 #endif
6043 6023
 
6044
-  #ifndef MIN_COOLING_SLOPE_DEG
6045
-    #define MIN_COOLING_SLOPE_DEG 1.50
6046
-  #endif
6047
-  #ifndef MIN_COOLING_SLOPE_TIME
6048
-    #define MIN_COOLING_SLOPE_TIME 60
6049
-  #endif
6050
-
6051 6024
 /**
6052 6025
  * M109: Sxxx Wait for extruder(s) to reach temperature. Waits only when heating.
6053 6026
  *       Rxxx Wait for extruder(s) to reach temperature. Waits when heating and cooling.
6054 6027
  */
6028
+
6029
+#ifndef MIN_COOLING_SLOPE_DEG
6030
+  #define MIN_COOLING_SLOPE_DEG 1.50
6031
+#endif
6032
+#ifndef MIN_COOLING_SLOPE_TIME
6033
+  #define MIN_COOLING_SLOPE_TIME 60
6034
+#endif
6035
+
6055 6036
 inline void gcode_M109() {
6056 6037
 
6057 6038
   if (get_target_extruder_from_command(109)) return;
@@ -6275,11 +6256,11 @@ inline void gcode_M109() {
6275 6256
           residency_start_ms = now;
6276 6257
         }
6277 6258
 
6278
-      #endif //TEMP_BED_RESIDENCY_TIME > 0
6259
+      #endif // TEMP_BED_RESIDENCY_TIME > 0
6279 6260
 
6280 6261
       // Prevent a wait-forever situation if R is misused i.e. M190 R0
6281 6262
       if (wants_to_cool) {
6282
-        // break after MIN_COOLING_SLOPE_TIME_BED seconds
6263
+        // Break after MIN_COOLING_SLOPE_TIME_BED seconds
6283 6264
         // if the temperature did not drop at least MIN_COOLING_SLOPE_DEG_BED
6284 6265
         if (!next_cool_check_ms || ELAPSED(now, next_cool_check_ms)) {
6285 6266
           if (old_temp - temp < MIN_COOLING_SLOPE_DEG_BED) break;
@@ -6307,7 +6288,7 @@ inline void gcode_M110() {
6307 6288
  * M111: Set the debug level
6308 6289
  */
6309 6290
 inline void gcode_M111() {
6310
-  marlin_debug_flags = code_seen('S') ? code_value_byte() : (uint8_t) DEBUG_NONE;
6291
+  marlin_debug_flags = code_seen('S') ? code_value_byte() : (uint8_t)DEBUG_NONE;
6311 6292
 
6312 6293
   const static char str_debug_1[] PROGMEM = MSG_DEBUG_ECHO;
6313 6294
   const static char str_debug_2[] PROGMEM = MSG_DEBUG_INFO;
@@ -6463,7 +6444,6 @@ inline void gcode_M140() {
6463 6444
     #if ENABLED(ULTIPANEL)
6464 6445
       powersupply = true;
6465 6446
       LCD_MESSAGEPGM(WELCOME_MSG);
6466
-      lcd_update();
6467 6447
     #endif
6468 6448
   }
6469 6449
 
@@ -6496,7 +6476,6 @@ inline void gcode_M81() {
6496 6476
       powersupply = false;
6497 6477
     #endif
6498 6478
     LCD_MESSAGEPGM(MACHINE_NAME " " MSG_OFF ".");
6499
-    lcd_update();
6500 6479
   #endif
6501 6480
 }
6502 6481
 
@@ -7774,7 +7753,7 @@ void quickstop_stepper() {
7774 7753
   }
7775 7754
 #endif
7776 7755
 
7777
-#if ENABLED(MESH_BED_LEVELING) 
7756
+#if ENABLED(MESH_BED_LEVELING)
7778 7757
   /**
7779 7758
    * M421: Set a single Mesh Bed Leveling Z coordinate
7780 7759
    * Use either 'M421 X<linear> Y<linear> Z<linear>' or 'M421 I<xindex> J<yindex> Z<linear>'

+ 31
- 25
Marlin/example_configurations/Cartesio/Configuration.h View File

@@ -595,7 +595,7 @@
595 595
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
596 596
  */
597 597
 
598
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
598
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
599 599
 //#define Z_PROBE_SLED
600 600
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
601 601
 
@@ -622,16 +622,16 @@
622 622
 #define Y_PROBE_OFFSET_FROM_EXTRUDER 10  // Y offset: -front +behind [the nozzle]
623 623
 #define Z_PROBE_OFFSET_FROM_EXTRUDER 0   // Z offset: -below +above  [the nozzle]
624 624
 
625
-/*   X and Y axis travel speed (mm/m) between probes */
625
+// X and Y axis travel speed (mm/m) between probes
626 626
 #define XY_PROBE_SPEED 8000
627 627
 
628
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
628
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
629 629
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
630 630
 
631
-/*   Speed for the "accurate" probe of each point  */
631
+// Speed for the "accurate" probe of each point
632 632
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
633 633
 
634
-/*   Use double touch for probing  */
634
+// Use double touch for probing
635 635
 //#define PROBE_DOUBLE_TOUCH
636 636
 
637 637
 /**
@@ -1546,33 +1546,39 @@
1546 1546
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1547 1547
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1548 1548
 
1549
-/**********************************************************************\
1550
- * Support for a filament diameter sensor
1551
- * Also allows adjustment of diameter at print time (vs  at slicing)
1552
- * Single extruder only at this point (extruder 0)
1553
- *
1554
- * Motherboards
1555
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1556
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1557
- * 301 - Rambo  - uses Analog input 3
1558
- * Note may require analog pins to be defined for different motherboards
1559
- **********************************************************************/
1560
-// Uncomment below to enable
1549
+/**
1550
+ * Filament Width Sensor
1551
+ *
1552
+ * Measures the filament width in real-time and adjusts
1553
+ * flow rate to compensate for any irregularities.
1554
+ *
1555
+ * Also allows the measured filament diameter to set the
1556
+ * extrusion rate, so the slicer only has to specify the
1557
+ * volume.
1558
+ *
1559
+ * Only a single extruder is supported at this time.
1560
+ *
1561
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1562
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1563
+ * 301 RAMBO       : Analog input 3
1564
+ *
1565
+ * Note: May require analog pins to be defined for other boards.
1566
+ */
1561 1567
 //#define FILAMENT_WIDTH_SENSOR
1562 1568
 
1563
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1569
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1564 1570
 
1565 1571
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1566
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1567
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1572
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1573
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1568 1574
 
1569
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1570
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1571
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1575
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1576
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1577
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1572 1578
 
1573
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1579
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1574 1580
 
1575
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1581
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1576 1582
   //#define FILAMENT_LCD_DISPLAY
1577 1583
 #endif
1578 1584
 

+ 31
- 25
Marlin/example_configurations/Felix/Configuration.h View File

@@ -579,7 +579,7 @@
579 579
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
580 580
  */
581 581
 
582
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
582
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
583 583
 //#define Z_PROBE_SLED
584 584
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
585 585
 
@@ -606,16 +606,16 @@
606 606
 #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
607 607
 #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
608 608
 
609
-/*   X and Y axis travel speed (mm/m) between probes */
609
+// X and Y axis travel speed (mm/m) between probes
610 610
 #define XY_PROBE_SPEED 8000
611 611
 
612
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
612
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
613 613
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
614 614
 
615
-/*   Speed for the "accurate" probe of each point  */
615
+// Speed for the "accurate" probe of each point
616 616
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
617 617
 
618
-/*   Use double touch for probing  */
618
+// Use double touch for probing
619 619
 //#define PROBE_DOUBLE_TOUCH
620 620
 
621 621
 /**
@@ -1530,33 +1530,39 @@
1530 1530
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1531 1531
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1532 1532
 
1533
-/**********************************************************************\
1534
- * Support for a filament diameter sensor
1535
- * Also allows adjustment of diameter at print time (vs  at slicing)
1536
- * Single extruder only at this point (extruder 0)
1537
- *
1538
- * Motherboards
1539
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1540
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1541
- * 301 - Rambo  - uses Analog input 3
1542
- * Note may require analog pins to be defined for different motherboards
1543
- **********************************************************************/
1544
-// Uncomment below to enable
1533
+/**
1534
+ * Filament Width Sensor
1535
+ *
1536
+ * Measures the filament width in real-time and adjusts
1537
+ * flow rate to compensate for any irregularities.
1538
+ *
1539
+ * Also allows the measured filament diameter to set the
1540
+ * extrusion rate, so the slicer only has to specify the
1541
+ * volume.
1542
+ *
1543
+ * Only a single extruder is supported at this time.
1544
+ *
1545
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1546
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1547
+ * 301 RAMBO       : Analog input 3
1548
+ *
1549
+ * Note: May require analog pins to be defined for other boards.
1550
+ */
1545 1551
 //#define FILAMENT_WIDTH_SENSOR
1546 1552
 
1547
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1553
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1548 1554
 
1549 1555
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1550
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1551
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1556
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1557
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1552 1558
 
1553
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1554
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1555
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1559
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1560
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1561
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1556 1562
 
1557
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1563
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1558 1564
 
1559
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1565
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1560 1566
   //#define FILAMENT_LCD_DISPLAY
1561 1567
 #endif
1562 1568
 

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

@@ -579,7 +579,7 @@
579 579
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
580 580
  */
581 581
 
582
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
582
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
583 583
 //#define Z_PROBE_SLED
584 584
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
585 585
 
@@ -606,16 +606,16 @@
606 606
 #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
607 607
 #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
608 608
 
609
-/*   X and Y axis travel speed (mm/m) between probes */
609
+// X and Y axis travel speed (mm/m) between probes
610 610
 #define XY_PROBE_SPEED 8000
611 611
 
612
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
612
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
613 613
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
614 614
 
615
-/*   Speed for the "accurate" probe of each point  */
615
+// Speed for the "accurate" probe of each point
616 616
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
617 617
 
618
-/*   Use double touch for probing  */
618
+// Use double touch for probing
619 619
 //#define PROBE_DOUBLE_TOUCH
620 620
 
621 621
 /**
@@ -1530,33 +1530,39 @@
1530 1530
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1531 1531
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1532 1532
 
1533
-/**********************************************************************\
1534
- * Support for a filament diameter sensor
1535
- * Also allows adjustment of diameter at print time (vs  at slicing)
1536
- * Single extruder only at this point (extruder 0)
1537
- *
1538
- * Motherboards
1539
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1540
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1541
- * 301 - Rambo  - uses Analog input 3
1542
- * Note may require analog pins to be defined for different motherboards
1543
- **********************************************************************/
1544
-// Uncomment below to enable
1533
+/**
1534
+ * Filament Width Sensor
1535
+ *
1536
+ * Measures the filament width in real-time and adjusts
1537
+ * flow rate to compensate for any irregularities.
1538
+ *
1539
+ * Also allows the measured filament diameter to set the
1540
+ * extrusion rate, so the slicer only has to specify the
1541
+ * volume.
1542
+ *
1543
+ * Only a single extruder is supported at this time.
1544
+ *
1545
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1546
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1547
+ * 301 RAMBO       : Analog input 3
1548
+ *
1549
+ * Note: May require analog pins to be defined for other boards.
1550
+ */
1545 1551
 //#define FILAMENT_WIDTH_SENSOR
1546 1552
 
1547
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1553
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1548 1554
 
1549 1555
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1550
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1551
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1556
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1557
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1552 1558
 
1553
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1554
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1555
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1559
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1560
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1561
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1556 1562
 
1557
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1563
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1558 1564
 
1559
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1565
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1560 1566
   //#define FILAMENT_LCD_DISPLAY
1561 1567
 #endif
1562 1568
 

+ 31
- 25
Marlin/example_configurations/Hephestos/Configuration.h View File

@@ -587,7 +587,7 @@
587 587
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
588 588
  */
589 589
 
590
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
590
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
591 591
 //#define Z_PROBE_SLED
592 592
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
593 593
 
@@ -614,16 +614,16 @@
614 614
 #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
615 615
 #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
616 616
 
617
-/*   X and Y axis travel speed (mm/m) between probes */
617
+// X and Y axis travel speed (mm/m) between probes
618 618
 #define XY_PROBE_SPEED 8000
619 619
 
620
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
620
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
621 621
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
622 622
 
623
-/*   Speed for the "accurate" probe of each point  */
623
+// Speed for the "accurate" probe of each point
624 624
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
625 625
 
626
-/*   Use double touch for probing  */
626
+// Use double touch for probing
627 627
 //#define PROBE_DOUBLE_TOUCH
628 628
 
629 629
 /**
@@ -1538,33 +1538,39 @@
1538 1538
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1539 1539
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1540 1540
 
1541
-/**********************************************************************\
1542
- * Support for a filament diameter sensor
1543
- * Also allows adjustment of diameter at print time (vs  at slicing)
1544
- * Single extruder only at this point (extruder 0)
1545
- *
1546
- * Motherboards
1547
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1548
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1549
- * 301 - Rambo  - uses Analog input 3
1550
- * Note may require analog pins to be defined for different motherboards
1551
- **********************************************************************/
1552
-// Uncomment below to enable
1541
+/**
1542
+ * Filament Width Sensor
1543
+ *
1544
+ * Measures the filament width in real-time and adjusts
1545
+ * flow rate to compensate for any irregularities.
1546
+ *
1547
+ * Also allows the measured filament diameter to set the
1548
+ * extrusion rate, so the slicer only has to specify the
1549
+ * volume.
1550
+ *
1551
+ * Only a single extruder is supported at this time.
1552
+ *
1553
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1554
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1555
+ * 301 RAMBO       : Analog input 3
1556
+ *
1557
+ * Note: May require analog pins to be defined for other boards.
1558
+ */
1553 1559
 //#define FILAMENT_WIDTH_SENSOR
1554 1560
 
1555
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1561
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1556 1562
 
1557 1563
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1558
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1559
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1564
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1565
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1560 1566
 
1561
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1562
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1563
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1567
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1568
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1569
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1564 1570
 
1565
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1571
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1566 1572
 
1567
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1573
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1568 1574
   //#define FILAMENT_LCD_DISPLAY
1569 1575
 #endif
1570 1576
 

+ 31
- 25
Marlin/example_configurations/Hephestos_2/Configuration.h View File

@@ -590,7 +590,7 @@
590 590
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
591 591
  */
592 592
 
593
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
593
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
594 594
 //#define Z_PROBE_SLED
595 595
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
596 596
 
@@ -617,16 +617,16 @@
617 617
 #define Y_PROBE_OFFSET_FROM_EXTRUDER 15  // Y offset: -front +behind [the nozzle]
618 618
 #define Z_PROBE_OFFSET_FROM_EXTRUDER 0   // Z offset: -below +above  [the nozzle]
619 619
 
620
-/*   X and Y axis travel speed (mm/m) between probes */
620
+// X and Y axis travel speed (mm/m) between probes
621 621
 #define XY_PROBE_SPEED 8000
622 622
 
623
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
623
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
624 624
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
625 625
 
626
-/*   Speed for the "accurate" probe of each point  */
626
+// Speed for the "accurate" probe of each point
627 627
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
628 628
 
629
-/*   Use double touch for probing  */
629
+// Use double touch for probing
630 630
 //#define PROBE_DOUBLE_TOUCH
631 631
 
632 632
 /**
@@ -1541,33 +1541,39 @@
1541 1541
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1542 1542
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1543 1543
 
1544
-/**********************************************************************\
1545
- * Support for a filament diameter sensor
1546
- * Also allows adjustment of diameter at print time (vs  at slicing)
1547
- * Single extruder only at this point (extruder 0)
1548
- *
1549
- * Motherboards
1550
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1551
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1552
- * 301 - Rambo  - uses Analog input 3
1553
- * Note may require analog pins to be defined for different motherboards
1554
- **********************************************************************/
1555
-// Uncomment below to enable
1544
+/**
1545
+ * Filament Width Sensor
1546
+ *
1547
+ * Measures the filament width in real-time and adjusts
1548
+ * flow rate to compensate for any irregularities.
1549
+ *
1550
+ * Also allows the measured filament diameter to set the
1551
+ * extrusion rate, so the slicer only has to specify the
1552
+ * volume.
1553
+ *
1554
+ * Only a single extruder is supported at this time.
1555
+ *
1556
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1557
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1558
+ * 301 RAMBO       : Analog input 3
1559
+ *
1560
+ * Note: May require analog pins to be defined for other boards.
1561
+ */
1556 1562
 //#define FILAMENT_WIDTH_SENSOR
1557 1563
 
1558
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1564
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1559 1565
 
1560 1566
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1561
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1562
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1567
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1568
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1563 1569
 
1564
-  #define MEASURED_UPPER_LIMIT         2.00  //upper limit factor used for sensor reading validation in mm
1565
-  #define MEASURED_LOWER_LIMIT         1.60  //lower limit factor for sensor reading validation in mm
1566
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1570
+  #define MEASURED_UPPER_LIMIT         2.00 // (mm) Upper limit used to validate sensor reading
1571
+  #define MEASURED_LOWER_LIMIT         1.60 // (mm) Lower limit used to validate sensor reading
1572
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1567 1573
 
1568
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1574
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1569 1575
 
1570
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1576
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1571 1577
   //#define FILAMENT_LCD_DISPLAY
1572 1578
 #endif
1573 1579
 

+ 31
- 25
Marlin/example_configurations/K8200/Configuration.h View File

@@ -625,7 +625,7 @@
625 625
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
626 626
  */
627 627
 
628
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
628
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
629 629
 //#define Z_PROBE_SLED
630 630
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
631 631
 
@@ -652,16 +652,16 @@
652 652
 #define Y_PROBE_OFFSET_FROM_EXTRUDER 10  // Y offset: -front +behind [the nozzle]
653 653
 #define Z_PROBE_OFFSET_FROM_EXTRUDER 0   // Z offset: -below +above  [the nozzle]
654 654
 
655
-/*   X and Y axis travel speed (mm/m) between probes */
655
+// X and Y axis travel speed (mm/m) between probes
656 656
 #define XY_PROBE_SPEED 8000
657 657
 
658
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
658
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
659 659
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
660 660
 
661
-/*   Speed for the "accurate" probe of each point  */
661
+// Speed for the "accurate" probe of each point
662 662
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
663 663
 
664
-/*   Use double touch for probing  */
664
+// Use double touch for probing
665 665
 //#define PROBE_DOUBLE_TOUCH
666 666
 
667 667
 /**
@@ -1580,33 +1580,39 @@
1580 1580
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1581 1581
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1582 1582
 
1583
-/**********************************************************************\
1584
- * Support for a filament diameter sensor
1585
- * Also allows adjustment of diameter at print time (vs  at slicing)
1586
- * Single extruder only at this point (extruder 0)
1587
- *
1588
- * Motherboards
1589
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1590
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1591
- * 301 - Rambo  - uses Analog input 3
1592
- * Note may require analog pins to be defined for different motherboards
1593
- **********************************************************************/
1594
-// Uncomment below to enable
1583
+/**
1584
+ * Filament Width Sensor
1585
+ *
1586
+ * Measures the filament width in real-time and adjusts
1587
+ * flow rate to compensate for any irregularities.
1588
+ *
1589
+ * Also allows the measured filament diameter to set the
1590
+ * extrusion rate, so the slicer only has to specify the
1591
+ * volume.
1592
+ *
1593
+ * Only a single extruder is supported at this time.
1594
+ *
1595
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1596
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1597
+ * 301 RAMBO       : Analog input 3
1598
+ *
1599
+ * Note: May require analog pins to be defined for other boards.
1600
+ */
1595 1601
 //#define FILAMENT_WIDTH_SENSOR
1596 1602
 
1597
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1603
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1598 1604
 
1599 1605
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1600
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1601
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1606
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1607
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1602 1608
 
1603
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1604
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1605
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1609
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1610
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1611
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1606 1612
 
1607
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1613
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1608 1614
 
1609
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1615
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1610 1616
   //#define FILAMENT_LCD_DISPLAY
1611 1617
 #endif
1612 1618
 

+ 31
- 25
Marlin/example_configurations/K8400/Configuration.h View File

@@ -596,7 +596,7 @@
596 596
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
597 597
  */
598 598
 
599
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
599
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
600 600
 //#define Z_PROBE_SLED
601 601
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
602 602
 
@@ -623,16 +623,16 @@
623 623
 #define Y_PROBE_OFFSET_FROM_EXTRUDER 10  // Y offset: -front +behind [the nozzle]
624 624
 #define Z_PROBE_OFFSET_FROM_EXTRUDER 0   // Z offset: -below +above  [the nozzle]
625 625
 
626
-/*   X and Y axis travel speed (mm/m) between probes */
626
+// X and Y axis travel speed (mm/m) between probes
627 627
 #define XY_PROBE_SPEED 8000
628 628
 
629
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
629
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
630 630
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
631 631
 
632
-/*   Speed for the "accurate" probe of each point  */
632
+// Speed for the "accurate" probe of each point
633 633
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
634 634
 
635
-/*   Use double touch for probing  */
635
+// Use double touch for probing
636 636
 //#define PROBE_DOUBLE_TOUCH
637 637
 
638 638
 /**
@@ -1547,33 +1547,39 @@
1547 1547
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1548 1548
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1549 1549
 
1550
-/**********************************************************************\
1551
- * Support for a filament diameter sensor
1552
- * Also allows adjustment of diameter at print time (vs  at slicing)
1553
- * Single extruder only at this point (extruder 0)
1554
- *
1555
- * Motherboards
1556
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1557
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1558
- * 301 - Rambo  - uses Analog input 3
1559
- * Note may require analog pins to be defined for different motherboards
1560
- **********************************************************************/
1561
-// Uncomment below to enable
1550
+/**
1551
+ * Filament Width Sensor
1552
+ *
1553
+ * Measures the filament width in real-time and adjusts
1554
+ * flow rate to compensate for any irregularities.
1555
+ *
1556
+ * Also allows the measured filament diameter to set the
1557
+ * extrusion rate, so the slicer only has to specify the
1558
+ * volume.
1559
+ *
1560
+ * Only a single extruder is supported at this time.
1561
+ *
1562
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1563
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1564
+ * 301 RAMBO       : Analog input 3
1565
+ *
1566
+ * Note: May require analog pins to be defined for other boards.
1567
+ */
1562 1568
 //#define FILAMENT_WIDTH_SENSOR
1563 1569
 
1564
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1570
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1565 1571
 
1566 1572
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1567
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1568
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1573
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1574
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1569 1575
 
1570
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1571
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1572
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1576
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1577
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1578
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1573 1579
 
1574
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1580
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1575 1581
 
1576
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1582
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1577 1583
   //#define FILAMENT_LCD_DISPLAY
1578 1584
 #endif
1579 1585
 

+ 31
- 25
Marlin/example_configurations/K8400/Dual-head/Configuration.h View File

@@ -596,7 +596,7 @@
596 596
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
597 597
  */
598 598
 
599
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
599
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
600 600
 //#define Z_PROBE_SLED
601 601
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
602 602
 
@@ -623,16 +623,16 @@
623 623
 #define Y_PROBE_OFFSET_FROM_EXTRUDER 10  // Y offset: -front +behind [the nozzle]
624 624
 #define Z_PROBE_OFFSET_FROM_EXTRUDER 0   // Z offset: -below +above  [the nozzle]
625 625
 
626
-/*   X and Y axis travel speed (mm/m) between probes */
626
+// X and Y axis travel speed (mm/m) between probes
627 627
 #define XY_PROBE_SPEED 8000
628 628
 
629
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
629
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
630 630
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
631 631
 
632
-/*   Speed for the "accurate" probe of each point  */
632
+// Speed for the "accurate" probe of each point
633 633
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
634 634
 
635
-/*   Use double touch for probing  */
635
+// Use double touch for probing
636 636
 //#define PROBE_DOUBLE_TOUCH
637 637
 
638 638
 /**
@@ -1547,33 +1547,39 @@
1547 1547
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1548 1548
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1549 1549
 
1550
-/**********************************************************************\
1551
- * Support for a filament diameter sensor
1552
- * Also allows adjustment of diameter at print time (vs  at slicing)
1553
- * Single extruder only at this point (extruder 0)
1554
- *
1555
- * Motherboards
1556
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1557
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1558
- * 301 - Rambo  - uses Analog input 3
1559
- * Note may require analog pins to be defined for different motherboards
1560
- **********************************************************************/
1561
-// Uncomment below to enable
1550
+/**
1551
+ * Filament Width Sensor
1552
+ *
1553
+ * Measures the filament width in real-time and adjusts
1554
+ * flow rate to compensate for any irregularities.
1555
+ *
1556
+ * Also allows the measured filament diameter to set the
1557
+ * extrusion rate, so the slicer only has to specify the
1558
+ * volume.
1559
+ *
1560
+ * Only a single extruder is supported at this time.
1561
+ *
1562
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1563
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1564
+ * 301 RAMBO       : Analog input 3
1565
+ *
1566
+ * Note: May require analog pins to be defined for other boards.
1567
+ */
1562 1568
 //#define FILAMENT_WIDTH_SENSOR
1563 1569
 
1564
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1570
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1565 1571
 
1566 1572
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1567
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1568
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1573
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1574
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1569 1575
 
1570
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1571
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1572
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1576
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1577
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1578
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1573 1579
 
1574
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1580
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1575 1581
 
1576
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1582
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1577 1583
   //#define FILAMENT_LCD_DISPLAY
1578 1584
 #endif
1579 1585
 

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

@@ -596,7 +596,7 @@
596 596
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
597 597
  */
598 598
 
599
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
599
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
600 600
 //#define Z_PROBE_SLED
601 601
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
602 602
 
@@ -623,16 +623,16 @@
623 623
 #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
624 624
 #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
625 625
 
626
-/*   X and Y axis travel speed (mm/m) between probes */
626
+// X and Y axis travel speed (mm/m) between probes
627 627
 #define XY_PROBE_SPEED 8000
628 628
 
629
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
629
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
630 630
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
631 631
 
632
-/*   Speed for the "accurate" probe of each point  */
632
+// Speed for the "accurate" probe of each point
633 633
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
634 634
 
635
-/*   Use double touch for probing  */
635
+// Use double touch for probing
636 636
 //#define PROBE_DOUBLE_TOUCH
637 637
 
638 638
 /**
@@ -1547,33 +1547,39 @@
1547 1547
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1548 1548
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1549 1549
 
1550
-/**********************************************************************\
1551
- * Support for a filament diameter sensor
1552
- * Also allows adjustment of diameter at print time (vs  at slicing)
1553
- * Single extruder only at this point (extruder 0)
1554
- *
1555
- * Motherboards
1556
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1557
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1558
- * 301 - Rambo  - uses Analog input 3
1559
- * Note may require analog pins to be defined for different motherboards
1560
- **********************************************************************/
1561
-// Uncomment below to enable
1550
+/**
1551
+ * Filament Width Sensor
1552
+ *
1553
+ * Measures the filament width in real-time and adjusts
1554
+ * flow rate to compensate for any irregularities.
1555
+ *
1556
+ * Also allows the measured filament diameter to set the
1557
+ * extrusion rate, so the slicer only has to specify the
1558
+ * volume.
1559
+ *
1560
+ * Only a single extruder is supported at this time.
1561
+ *
1562
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1563
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1564
+ * 301 RAMBO       : Analog input 3
1565
+ *
1566
+ * Note: May require analog pins to be defined for other boards.
1567
+ */
1562 1568
 //#define FILAMENT_WIDTH_SENSOR
1563 1569
 
1564
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1570
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1565 1571
 
1566 1572
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1567
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1568
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1573
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1574
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1569 1575
 
1570
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1571
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1572
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1576
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1577
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1578
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1573 1579
 
1574
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1580
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1575 1581
 
1576
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1582
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1577 1583
   //#define FILAMENT_LCD_DISPLAY
1578 1584
 #endif
1579 1585
 

+ 31
- 25
Marlin/example_configurations/RigidBot/Configuration.h View File

@@ -595,7 +595,7 @@
595 595
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
596 596
  */
597 597
 
598
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
598
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
599 599
 //#define Z_PROBE_SLED
600 600
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
601 601
 
@@ -622,16 +622,16 @@
622 622
 #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
623 623
 #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
624 624
 
625
-/*   X and Y axis travel speed (mm/m) between probes */
625
+// X and Y axis travel speed (mm/m) between probes
626 626
 #define XY_PROBE_SPEED 8000
627 627
 
628
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
628
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
629 629
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
630 630
 
631
-/*   Speed for the "accurate" probe of each point  */
631
+// Speed for the "accurate" probe of each point
632 632
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
633 633
 
634
-/*   Use double touch for probing  */
634
+// Use double touch for probing
635 635
 //#define PROBE_DOUBLE_TOUCH
636 636
 
637 637
 /**
@@ -1548,33 +1548,39 @@
1548 1548
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1549 1549
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1550 1550
 
1551
-/**********************************************************************\
1552
- * Support for a filament diameter sensor
1553
- * Also allows adjustment of diameter at print time (vs  at slicing)
1554
- * Single extruder only at this point (extruder 0)
1555
- *
1556
- * Motherboards
1557
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1558
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1559
- * 301 - Rambo  - uses Analog input 3
1560
- * Note may require analog pins to be defined for different motherboards
1561
- **********************************************************************/
1562
-// Uncomment below to enable
1551
+/**
1552
+ * Filament Width Sensor
1553
+ *
1554
+ * Measures the filament width in real-time and adjusts
1555
+ * flow rate to compensate for any irregularities.
1556
+ *
1557
+ * Also allows the measured filament diameter to set the
1558
+ * extrusion rate, so the slicer only has to specify the
1559
+ * volume.
1560
+ *
1561
+ * Only a single extruder is supported at this time.
1562
+ *
1563
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1564
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1565
+ * 301 RAMBO       : Analog input 3
1566
+ *
1567
+ * Note: May require analog pins to be defined for other boards.
1568
+ */
1563 1569
 //#define FILAMENT_WIDTH_SENSOR
1564 1570
 
1565
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1571
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1566 1572
 
1567 1573
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1568
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1569
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1574
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1575
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1570 1576
 
1571
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1572
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1573
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1577
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1578
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1579
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1574 1580
 
1575
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1581
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1576 1582
 
1577
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1583
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1578 1584
   //#define FILAMENT_LCD_DISPLAY
1579 1585
 #endif
1580 1586
 

+ 31
- 25
Marlin/example_configurations/SCARA/Configuration.h View File

@@ -611,7 +611,7 @@
611 611
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
612 612
  */
613 613
 
614
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
614
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
615 615
 //#define Z_PROBE_SLED
616 616
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
617 617
 
@@ -638,16 +638,16 @@
638 638
 #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
639 639
 #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
640 640
 
641
-/*   X and Y axis travel speed (mm/m) between probes */
641
+// X and Y axis travel speed (mm/m) between probes
642 642
 #define XY_PROBE_SPEED 8000
643 643
 
644
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
644
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
645 645
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
646 646
 
647
-/*   Speed for the "accurate" probe of each point  */
647
+// Speed for the "accurate" probe of each point
648 648
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
649 649
 
650
-/*   Use double touch for probing  */
650
+// Use double touch for probing
651 651
 //#define PROBE_DOUBLE_TOUCH
652 652
 
653 653
 /**
@@ -1562,33 +1562,39 @@
1562 1562
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1563 1563
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1564 1564
 
1565
-/**********************************************************************\
1566
- * Support for a filament diameter sensor
1567
- * Also allows adjustment of diameter at print time (vs  at slicing)
1568
- * Single extruder only at this point (extruder 0)
1569
- *
1570
- * Motherboards
1571
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1572
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1573
- * 301 - Rambo  - uses Analog input 3
1574
- * Note may require analog pins to be defined for different motherboards
1575
- **********************************************************************/
1576
-// Uncomment below to enable
1565
+/**
1566
+ * Filament Width Sensor
1567
+ *
1568
+ * Measures the filament width in real-time and adjusts
1569
+ * flow rate to compensate for any irregularities.
1570
+ *
1571
+ * Also allows the measured filament diameter to set the
1572
+ * extrusion rate, so the slicer only has to specify the
1573
+ * volume.
1574
+ *
1575
+ * Only a single extruder is supported at this time.
1576
+ *
1577
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1578
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1579
+ * 301 RAMBO       : Analog input 3
1580
+ *
1581
+ * Note: May require analog pins to be defined for other boards.
1582
+ */
1577 1583
 //#define FILAMENT_WIDTH_SENSOR
1578 1584
 
1579
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1585
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1580 1586
 
1581 1587
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1582
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1583
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1588
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1589
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1584 1590
 
1585
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1586
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1587
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1591
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1592
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1593
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1588 1594
 
1589
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1595
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1590 1596
 
1591
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1597
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1592 1598
   //#define FILAMENT_LCD_DISPLAY
1593 1599
 #endif
1594 1600
 

+ 31
- 25
Marlin/example_configurations/TAZ4/Configuration.h View File

@@ -616,7 +616,7 @@
616 616
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
617 617
  */
618 618
 
619
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
619
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
620 620
 //#define Z_PROBE_SLED
621 621
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
622 622
 
@@ -643,16 +643,16 @@
643 643
 #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
644 644
 #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
645 645
 
646
-/*   X and Y axis travel speed (mm/m) between probes */
646
+// X and Y axis travel speed (mm/m) between probes
647 647
 #define XY_PROBE_SPEED 8000
648 648
 
649
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
649
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
650 650
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
651 651
 
652
-/*   Speed for the "accurate" probe of each point  */
652
+// Speed for the "accurate" probe of each point
653 653
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
654 654
 
655
-/*   Use double touch for probing  */
655
+// Use double touch for probing
656 656
 //#define PROBE_DOUBLE_TOUCH
657 657
 
658 658
 /**
@@ -1567,33 +1567,39 @@
1567 1567
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1568 1568
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1569 1569
 
1570
-/**********************************************************************\
1571
- * Support for a filament diameter sensor
1572
- * Also allows adjustment of diameter at print time (vs  at slicing)
1573
- * Single extruder only at this point (extruder 0)
1574
- *
1575
- * Motherboards
1576
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1577
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1578
- * 301 - Rambo  - uses Analog input 3
1579
- * Note may require analog pins to be defined for different motherboards
1580
- **********************************************************************/
1581
-// Uncomment below to enable
1570
+/**
1571
+ * Filament Width Sensor
1572
+ *
1573
+ * Measures the filament width in real-time and adjusts
1574
+ * flow rate to compensate for any irregularities.
1575
+ *
1576
+ * Also allows the measured filament diameter to set the
1577
+ * extrusion rate, so the slicer only has to specify the
1578
+ * volume.
1579
+ *
1580
+ * Only a single extruder is supported at this time.
1581
+ *
1582
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1583
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1584
+ * 301 RAMBO       : Analog input 3
1585
+ *
1586
+ * Note: May require analog pins to be defined for other boards.
1587
+ */
1582 1588
 //#define FILAMENT_WIDTH_SENSOR
1583 1589
 
1584
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1590
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1585 1591
 
1586 1592
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1587
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1588
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1593
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1594
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1589 1595
 
1590
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1591
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1592
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1596
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1597
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1598
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1593 1599
 
1594
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1600
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1595 1601
 
1596
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1602
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1597 1603
   //#define FILAMENT_LCD_DISPLAY
1598 1604
 #endif
1599 1605
 

+ 31
- 25
Marlin/example_configurations/TinyBoy2/Configuration.h View File

@@ -647,7 +647,7 @@
647 647
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
648 648
  */
649 649
 
650
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
650
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
651 651
 //#define Z_PROBE_SLED
652 652
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
653 653
 
@@ -674,16 +674,16 @@
674 674
 #define Y_PROBE_OFFSET_FROM_EXTRUDER 15  // Y offset: -front +behind [the nozzle]
675 675
 #define Z_PROBE_OFFSET_FROM_EXTRUDER 0   // Z offset: -below +above  [the nozzle]
676 676
 
677
-/*   X and Y axis travel speed (mm/m) between probes */
677
+// X and Y axis travel speed (mm/m) between probes
678 678
 #define XY_PROBE_SPEED 8000
679 679
 
680
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
680
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
681 681
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
682 682
 
683
-/*   Speed for the "accurate" probe of each point  */
683
+// Speed for the "accurate" probe of each point
684 684
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
685 685
 
686
-/*   Use double touch for probing  */
686
+// Use double touch for probing
687 687
 //#define PROBE_DOUBLE_TOUCH
688 688
 
689 689
 /**
@@ -1598,33 +1598,39 @@
1598 1598
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1599 1599
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1600 1600
 
1601
-/**********************************************************************\
1602
- * Support for a filament diameter sensor
1603
- * Also allows adjustment of diameter at print time (vs  at slicing)
1604
- * Single extruder only at this point (extruder 0)
1605
- *
1606
- * Motherboards
1607
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1608
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1609
- * 301 - Rambo  - uses Analog input 3
1610
- * Note may require analog pins to be defined for different motherboards
1611
- **********************************************************************/
1612
-// Uncomment below to enable
1601
+/**
1602
+ * Filament Width Sensor
1603
+ *
1604
+ * Measures the filament width in real-time and adjusts
1605
+ * flow rate to compensate for any irregularities.
1606
+ *
1607
+ * Also allows the measured filament diameter to set the
1608
+ * extrusion rate, so the slicer only has to specify the
1609
+ * volume.
1610
+ *
1611
+ * Only a single extruder is supported at this time.
1612
+ *
1613
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1614
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1615
+ * 301 RAMBO       : Analog input 3
1616
+ *
1617
+ * Note: May require analog pins to be defined for other boards.
1618
+ */
1613 1619
 //#define FILAMENT_WIDTH_SENSOR
1614 1620
 
1615
-#define DEFAULT_NOMINAL_FILAMENT_DIA 1.75  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1621
+#define DEFAULT_NOMINAL_FILAMENT_DIA 1.75   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1616 1622
 
1617 1623
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1618
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1619
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1624
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1625
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1620 1626
 
1621
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1622
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1623
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1627
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1628
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1629
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1624 1630
 
1625
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1631
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1626 1632
 
1627
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1633
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1628 1634
   //#define FILAMENT_LCD_DISPLAY
1629 1635
 #endif
1630 1636
 

+ 31
- 25
Marlin/example_configurations/WITBOX/Configuration.h View File

@@ -587,7 +587,7 @@
587 587
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
588 588
  */
589 589
 
590
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
590
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
591 591
 //#define Z_PROBE_SLED
592 592
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
593 593
 
@@ -614,16 +614,16 @@
614 614
 #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
615 615
 #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
616 616
 
617
-/*   X and Y axis travel speed (mm/m) between probes */
617
+// X and Y axis travel speed (mm/m) between probes
618 618
 #define XY_PROBE_SPEED 8000
619 619
 
620
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
620
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
621 621
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
622 622
 
623
-/*   Speed for the "accurate" probe of each point  */
623
+// Speed for the "accurate" probe of each point
624 624
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
625 625
 
626
-/*   Use double touch for probing  */
626
+// Use double touch for probing
627 627
 //#define PROBE_DOUBLE_TOUCH
628 628
 
629 629
 /**
@@ -1538,33 +1538,39 @@
1538 1538
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1539 1539
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1540 1540
 
1541
-/**********************************************************************\
1542
- * Support for a filament diameter sensor
1543
- * Also allows adjustment of diameter at print time (vs  at slicing)
1544
- * Single extruder only at this point (extruder 0)
1545
- *
1546
- * Motherboards
1547
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1548
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1549
- * 301 - Rambo  - uses Analog input 3
1550
- * Note may require analog pins to be defined for different motherboards
1551
- **********************************************************************/
1552
-// Uncomment below to enable
1541
+/**
1542
+ * Filament Width Sensor
1543
+ *
1544
+ * Measures the filament width in real-time and adjusts
1545
+ * flow rate to compensate for any irregularities.
1546
+ *
1547
+ * Also allows the measured filament diameter to set the
1548
+ * extrusion rate, so the slicer only has to specify the
1549
+ * volume.
1550
+ *
1551
+ * Only a single extruder is supported at this time.
1552
+ *
1553
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1554
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1555
+ * 301 RAMBO       : Analog input 3
1556
+ *
1557
+ * Note: May require analog pins to be defined for other boards.
1558
+ */
1553 1559
 //#define FILAMENT_WIDTH_SENSOR
1554 1560
 
1555
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1561
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1556 1562
 
1557 1563
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1558
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1559
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1564
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1565
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1560 1566
 
1561
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1562
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1563
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1567
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1568
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1569
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1564 1570
 
1565
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1571
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1566 1572
 
1567
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1573
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1568 1574
   //#define FILAMENT_LCD_DISPLAY
1569 1575
 #endif
1570 1576
 

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

@@ -596,7 +596,7 @@
596 596
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
597 597
  */
598 598
 
599
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
599
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
600 600
 //#define Z_PROBE_SLED
601 601
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
602 602
 
@@ -623,16 +623,16 @@
623 623
 #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
624 624
 #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
625 625
 
626
-/*   X and Y axis travel speed (mm/m) between probes */
626
+// X and Y axis travel speed (mm/m) between probes
627 627
 #define XY_PROBE_SPEED 8000
628 628
 
629
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
629
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
630 630
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
631 631
 
632
-/*   Speed for the "accurate" probe of each point  */
632
+// Speed for the "accurate" probe of each point
633 633
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
634 634
 
635
-/*   Use double touch for probing  */
635
+// Use double touch for probing
636 636
 //#define PROBE_DOUBLE_TOUCH
637 637
 
638 638
 /**
@@ -1547,33 +1547,39 @@
1547 1547
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1548 1548
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1549 1549
 
1550
-/**********************************************************************\
1551
- * Support for a filament diameter sensor
1552
- * Also allows adjustment of diameter at print time (vs  at slicing)
1553
- * Single extruder only at this point (extruder 0)
1554
- *
1555
- * Motherboards
1556
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1557
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1558
- * 301 - Rambo  - uses Analog input 3
1559
- * Note may require analog pins to be defined for different motherboards
1560
- **********************************************************************/
1561
-// Uncomment below to enable
1550
+/**
1551
+ * Filament Width Sensor
1552
+ *
1553
+ * Measures the filament width in real-time and adjusts
1554
+ * flow rate to compensate for any irregularities.
1555
+ *
1556
+ * Also allows the measured filament diameter to set the
1557
+ * extrusion rate, so the slicer only has to specify the
1558
+ * volume.
1559
+ *
1560
+ * Only a single extruder is supported at this time.
1561
+ *
1562
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1563
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1564
+ * 301 RAMBO       : Analog input 3
1565
+ *
1566
+ * Note: May require analog pins to be defined for other boards.
1567
+ */
1562 1568
 //#define FILAMENT_WIDTH_SENSOR
1563 1569
 
1564
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1570
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1565 1571
 
1566 1572
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1567
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1568
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1573
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1574
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1569 1575
 
1570
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1571
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1572
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1576
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1577
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1578
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1573 1579
 
1574
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1580
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1575 1581
 
1576
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1582
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1577 1583
   //#define FILAMENT_LCD_DISPLAY
1578 1584
 #endif
1579 1585
 

+ 31
- 25
Marlin/example_configurations/delta/flsun_kossel_mini/Configuration.h View File

@@ -654,7 +654,7 @@
654 654
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
655 655
  */
656 656
 
657
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
657
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
658 658
 //#define Z_PROBE_SLED
659 659
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
660 660
 
@@ -681,16 +681,16 @@
681 681
 #define Y_PROBE_OFFSET_FROM_EXTRUDER 0   // Y offset: -front +behind [the nozzle]
682 682
 #define Z_PROBE_OFFSET_FROM_EXTRUDER 0.25  // Z offset: -below +above  [the nozzle]
683 683
 
684
-/*   X and Y axis travel speed (mm/m) between probes */
684
+// X and Y axis travel speed (mm/m) between probes
685 685
 #define XY_PROBE_SPEED 2000
686 686
 
687
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
687
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
688 688
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
689 689
 
690
-/*   Speed for the "accurate" probe of each point  */
690
+// Speed for the "accurate" probe of each point
691 691
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
692 692
 
693
-/*   Use double touch for probing  */
693
+// Use double touch for probing
694 694
 #define PROBE_DOUBLE_TOUCH
695 695
 
696 696
 /**
@@ -1654,33 +1654,39 @@
1654 1654
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1655 1655
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1656 1656
 
1657
-/**********************************************************************\
1658
- * Support for a filament diameter sensor
1659
- * Also allows adjustment of diameter at print time (vs  at slicing)
1660
- * Single extruder only at this point (extruder 0)
1661
- *
1662
- * Motherboards
1663
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1664
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1665
- * 301 - Rambo  - uses Analog input 3
1666
- * Note may require analog pins to be defined for different motherboards
1667
- **********************************************************************/
1668
-// Uncomment below to enable
1657
+/**
1658
+ * Filament Width Sensor
1659
+ *
1660
+ * Measures the filament width in real-time and adjusts
1661
+ * flow rate to compensate for any irregularities.
1662
+ *
1663
+ * Also allows the measured filament diameter to set the
1664
+ * extrusion rate, so the slicer only has to specify the
1665
+ * volume.
1666
+ *
1667
+ * Only a single extruder is supported at this time.
1668
+ *
1669
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1670
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1671
+ * 301 RAMBO       : Analog input 3
1672
+ *
1673
+ * Note: May require analog pins to be defined for other boards.
1674
+ */
1669 1675
 //#define FILAMENT_WIDTH_SENSOR
1670 1676
 
1671
-#define DEFAULT_NOMINAL_FILAMENT_DIA 1.75  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1677
+#define DEFAULT_NOMINAL_FILAMENT_DIA 1.75   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1672 1678
 
1673 1679
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1674
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1675
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1680
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1681
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1676 1682
 
1677
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1678
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1679
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1683
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1684
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1685
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1680 1686
 
1681
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1687
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1682 1688
 
1683
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1689
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1684 1690
   //#define FILAMENT_LCD_DISPLAY
1685 1691
 #endif
1686 1692
 

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

@@ -641,7 +641,7 @@
641 641
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
642 642
  */
643 643
 
644
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
644
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
645 645
 //#define Z_PROBE_SLED
646 646
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
647 647
 
@@ -668,16 +668,16 @@
668 668
 #define Y_PROBE_OFFSET_FROM_EXTRUDER -10   // Y offset: -front +behind [the nozzle]
669 669
 #define Z_PROBE_OFFSET_FROM_EXTRUDER -3.5  // Z offset: -below +above  [the nozzle]
670 670
 
671
-/*   X and Y axis travel speed (mm/m) between probes */
671
+// X and Y axis travel speed (mm/m) between probes
672 672
 #define XY_PROBE_SPEED 4000
673 673
 
674
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
674
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
675 675
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
676 676
 
677
-/*   Speed for the "accurate" probe of each point  */
677
+// Speed for the "accurate" probe of each point
678 678
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
679 679
 
680
-/*   Use double touch for probing  */
680
+// Use double touch for probing
681 681
 //#define PROBE_DOUBLE_TOUCH
682 682
 
683 683
 
@@ -1638,33 +1638,39 @@
1638 1638
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1639 1639
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1640 1640
 
1641
-/**********************************************************************\
1642
- * Support for a filament diameter sensor
1643
- * Also allows adjustment of diameter at print time (vs  at slicing)
1644
- * Single extruder only at this point (extruder 0)
1645
- *
1646
- * Motherboards
1647
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1648
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1649
- * 301 - Rambo  - uses Analog input 3
1650
- * Note may require analog pins to be defined for different motherboards
1651
- **********************************************************************/
1652
-// Uncomment below to enable
1641
+/**
1642
+ * Filament Width Sensor
1643
+ *
1644
+ * Measures the filament width in real-time and adjusts
1645
+ * flow rate to compensate for any irregularities.
1646
+ *
1647
+ * Also allows the measured filament diameter to set the
1648
+ * extrusion rate, so the slicer only has to specify the
1649
+ * volume.
1650
+ *
1651
+ * Only a single extruder is supported at this time.
1652
+ *
1653
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1654
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1655
+ * 301 RAMBO       : Analog input 3
1656
+ *
1657
+ * Note: May require analog pins to be defined for other boards.
1658
+ */
1653 1659
 //#define FILAMENT_WIDTH_SENSOR
1654 1660
 
1655
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1661
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1656 1662
 
1657 1663
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1658
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1659
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1664
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1665
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1660 1666
 
1661
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1662
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1663
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1667
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1668
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1669
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1664 1670
 
1665
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1671
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1666 1672
 
1667
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1673
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1668 1674
   //#define FILAMENT_LCD_DISPLAY
1669 1675
 #endif
1670 1676
 

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

@@ -634,7 +634,7 @@
634 634
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
635 635
  */
636 636
 
637
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
637
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
638 638
 //#define Z_PROBE_SLED
639 639
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
640 640
 
@@ -661,16 +661,16 @@
661 661
 #define Y_PROBE_OFFSET_FROM_EXTRUDER -10   // Y offset: -front +behind [the nozzle]
662 662
 #define Z_PROBE_OFFSET_FROM_EXTRUDER -3.5  // Z offset: -below +above  [the nozzle]
663 663
 
664
-/*   X and Y axis travel speed (mm/m) between probes */
664
+// X and Y axis travel speed (mm/m) between probes
665 665
 #define XY_PROBE_SPEED 4000
666 666
 
667
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
667
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
668 668
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
669 669
 
670
-/*   Speed for the "accurate" probe of each point  */
670
+// Speed for the "accurate" probe of each point
671 671
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
672 672
 
673
-/*   Use double touch for probing  */
673
+// Use double touch for probing
674 674
 //#define PROBE_DOUBLE_TOUCH
675 675
 
676 676
 /**
@@ -1634,33 +1634,39 @@
1634 1634
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1635 1635
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1636 1636
 
1637
-/**********************************************************************\
1638
- * Support for a filament diameter sensor
1639
- * Also allows adjustment of diameter at print time (vs  at slicing)
1640
- * Single extruder only at this point (extruder 0)
1641
- *
1642
- * Motherboards
1643
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1644
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1645
- * 301 - Rambo  - uses Analog input 3
1646
- * Note may require analog pins to be defined for different motherboards
1647
- **********************************************************************/
1648
-// Uncomment below to enable
1637
+/**
1638
+ * Filament Width Sensor
1639
+ *
1640
+ * Measures the filament width in real-time and adjusts
1641
+ * flow rate to compensate for any irregularities.
1642
+ *
1643
+ * Also allows the measured filament diameter to set the
1644
+ * extrusion rate, so the slicer only has to specify the
1645
+ * volume.
1646
+ *
1647
+ * Only a single extruder is supported at this time.
1648
+ *
1649
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1650
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1651
+ * 301 RAMBO       : Analog input 3
1652
+ *
1653
+ * Note: May require analog pins to be defined for other boards.
1654
+ */
1649 1655
 //#define FILAMENT_WIDTH_SENSOR
1650 1656
 
1651
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1657
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1652 1658
 
1653 1659
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1654
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1655
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1660
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1661
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1656 1662
 
1657
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1658
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1659
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1663
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1664
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1665
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1660 1666
 
1661
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1667
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1662 1668
 
1663
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1669
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1664 1670
   //#define FILAMENT_LCD_DISPLAY
1665 1671
 #endif
1666 1672
 

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

@@ -635,7 +635,7 @@
635 635
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
636 636
  */
637 637
 
638
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
638
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
639 639
 //#define Z_PROBE_SLED
640 640
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
641 641
 
@@ -665,16 +665,16 @@
665 665
  * not giving someone a head crash. Use something like G29 Z-0.2 to adjust as needed.
666 666
  */
667 667
 #define Z_PROBE_OFFSET_FROM_EXTRUDER -17.25  // Increase this if the first layer is too thin (remember: it's a negative number so increase means closer to zero).
668
-/*   X and Y axis travel speed (mm/m) between probes */
668
+// X and Y axis travel speed (mm/m) between probes
669 669
 #define XY_PROBE_SPEED 8000
670 670
 
671
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
671
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
672 672
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
673 673
 
674
-/*   Speed for the "accurate" probe of each point  */
674
+// Speed for the "accurate" probe of each point
675 675
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
676 676
 
677
-/*   Use double touch for probing  */
677
+// Use double touch for probing
678 678
 //#define PROBE_DOUBLE_TOUCH
679 679
 
680 680
 /**
@@ -1641,33 +1641,39 @@
1641 1641
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1642 1642
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1643 1643
 
1644
-/**********************************************************************\
1645
- * Support for a filament diameter sensor
1646
- * Also allows adjustment of diameter at print time (vs  at slicing)
1647
- * Single extruder only at this point (extruder 0)
1648
- *
1649
- * Motherboards
1650
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1651
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1652
- * 301 - Rambo  - uses Analog input 3
1653
- * Note may require analog pins to be defined for different motherboards
1654
- **********************************************************************/
1655
-// Uncomment below to enable
1644
+/**
1645
+ * Filament Width Sensor
1646
+ *
1647
+ * Measures the filament width in real-time and adjusts
1648
+ * flow rate to compensate for any irregularities.
1649
+ *
1650
+ * Also allows the measured filament diameter to set the
1651
+ * extrusion rate, so the slicer only has to specify the
1652
+ * volume.
1653
+ *
1654
+ * Only a single extruder is supported at this time.
1655
+ *
1656
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1657
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1658
+ * 301 RAMBO       : Analog input 3
1659
+ *
1660
+ * Note: May require analog pins to be defined for other boards.
1661
+ */
1656 1662
 //#define FILAMENT_WIDTH_SENSOR
1657 1663
 
1658
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1664
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1659 1665
 
1660 1666
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1661
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1662
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1667
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1668
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1663 1669
 
1664
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1665
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1666
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1670
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1671
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1672
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1667 1673
 
1668
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1674
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1669 1675
 
1670
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1676
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1671 1677
   //#define FILAMENT_LCD_DISPLAY
1672 1678
 #endif
1673 1679
 

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

@@ -654,7 +654,7 @@
654 654
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
655 655
  */
656 656
 
657
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
657
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
658 658
 //#define Z_PROBE_SLED
659 659
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
660 660
 
@@ -681,16 +681,16 @@
681 681
 #define Y_PROBE_OFFSET_FROM_EXTRUDER 0.0     // Z probe to nozzle Y offset: -front +behind
682 682
 #define Z_PROBE_OFFSET_FROM_EXTRUDER 0.3     // Z probe to nozzle Z offset: -below (always!)
683 683
 
684
-/*   X and Y axis travel speed (mm/m) between probes */
684
+// X and Y axis travel speed (mm/m) between probes
685 685
 #define XY_PROBE_SPEED 8000
686 686
 
687
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
687
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
688 688
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
689 689
 
690
-/*   Speed for the "accurate" probe of each point  */
690
+// Speed for the "accurate" probe of each point
691 691
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
692 692
 
693
-/*   Use double touch for probing  */
693
+// Use double touch for probing
694 694
 //#define PROBE_DOUBLE_TOUCH
695 695
 
696 696
 /**
@@ -1649,33 +1649,39 @@
1649 1649
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1650 1650
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1651 1651
 
1652
-/**********************************************************************\
1653
- * Support for a filament diameter sensor
1654
- * Also allows adjustment of diameter at print time (vs  at slicing)
1655
- * Single extruder only at this point (extruder 0)
1656
- *
1657
- * Motherboards
1658
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1659
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1660
- * 301 - Rambo  - uses Analog input 3
1661
- * Note may require analog pins to be defined for different motherboards
1662
- **********************************************************************/
1663
-// Uncomment below to enable
1652
+/**
1653
+ * Filament Width Sensor
1654
+ *
1655
+ * Measures the filament width in real-time and adjusts
1656
+ * flow rate to compensate for any irregularities.
1657
+ *
1658
+ * Also allows the measured filament diameter to set the
1659
+ * extrusion rate, so the slicer only has to specify the
1660
+ * volume.
1661
+ *
1662
+ * Only a single extruder is supported at this time.
1663
+ *
1664
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1665
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1666
+ * 301 RAMBO       : Analog input 3
1667
+ *
1668
+ * Note: May require analog pins to be defined for other boards.
1669
+ */
1664 1670
 //#define FILAMENT_WIDTH_SENSOR
1665 1671
 
1666
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1672
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1667 1673
 
1668 1674
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1669
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1670
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1675
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1676
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1671 1677
 
1672
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1673
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1674
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1678
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1679
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1680
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1675 1681
 
1676
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1682
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1677 1683
 
1678
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1684
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1679 1685
   //#define FILAMENT_LCD_DISPLAY
1680 1686
 #endif
1681 1687
 

+ 31
- 25
Marlin/example_configurations/makibox/Configuration.h View File

@@ -599,7 +599,7 @@
599 599
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
600 600
  */
601 601
 
602
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
602
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
603 603
 //#define Z_PROBE_SLED
604 604
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
605 605
 
@@ -626,16 +626,16 @@
626 626
 #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
627 627
 #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
628 628
 
629
-/*   X and Y axis travel speed (mm/m) between probes */
629
+// X and Y axis travel speed (mm/m) between probes
630 630
 #define XY_PROBE_SPEED 8000
631 631
 
632
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
632
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
633 633
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
634 634
 
635
-/*   Speed for the "accurate" probe of each point  */
635
+// Speed for the "accurate" probe of each point
636 636
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
637 637
 
638
-/*   Use double touch for probing  */
638
+// Use double touch for probing
639 639
 //#define PROBE_DOUBLE_TOUCH
640 640
 
641 641
 /**
@@ -1550,33 +1550,39 @@
1550 1550
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1551 1551
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1552 1552
 
1553
-/**********************************************************************\
1554
- * Support for a filament diameter sensor
1555
- * Also allows adjustment of diameter at print time (vs  at slicing)
1556
- * Single extruder only at this point (extruder 0)
1557
- *
1558
- * Motherboards
1559
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1560
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1561
- * 301 - Rambo  - uses Analog input 3
1562
- * Note may require analog pins to be defined for different motherboards
1563
- **********************************************************************/
1564
-// Uncomment below to enable
1553
+/**
1554
+ * Filament Width Sensor
1555
+ *
1556
+ * Measures the filament width in real-time and adjusts
1557
+ * flow rate to compensate for any irregularities.
1558
+ *
1559
+ * Also allows the measured filament diameter to set the
1560
+ * extrusion rate, so the slicer only has to specify the
1561
+ * volume.
1562
+ *
1563
+ * Only a single extruder is supported at this time.
1564
+ *
1565
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1566
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1567
+ * 301 RAMBO       : Analog input 3
1568
+ *
1569
+ * Note: May require analog pins to be defined for other boards.
1570
+ */
1565 1571
 //#define FILAMENT_WIDTH_SENSOR
1566 1572
 
1567
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1573
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1568 1574
 
1569 1575
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1570
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1571
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1576
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1577
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1572 1578
 
1573
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1574
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1575
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1579
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1580
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1581
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1576 1582
 
1577
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1583
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1578 1584
 
1579
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1585
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1580 1586
   //#define FILAMENT_LCD_DISPLAY
1581 1587
 #endif
1582 1588
 

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

@@ -592,7 +592,7 @@
592 592
  *   is enabled then it also applies to Z_PROBE_SPEED_SLOW.
593 593
  */
594 594
 
595
-/*   Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.  */
595
+// Enable if you have a Z probe mounted on a sled like those designed by Charles Bell.
596 596
 //#define Z_PROBE_SLED
597 597
 //#define SLED_DOCKING_OFFSET 5  // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
598 598
 
@@ -619,16 +619,16 @@
619 619
 #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Y offset: -front +behind [the nozzle]
620 620
 #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below +above  [the nozzle]
621 621
 
622
-/*   X and Y axis travel speed (mm/m) between probes */
622
+// X and Y axis travel speed (mm/m) between probes
623 623
 #define XY_PROBE_SPEED 8000
624 624
 
625
-/*   Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH) */
625
+// Speed for the first approach when double-probing (with PROBE_DOUBLE_TOUCH)
626 626
 #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
627 627
 
628
-/*   Speed for the "accurate" probe of each point  */
628
+// Speed for the "accurate" probe of each point
629 629
 #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
630 630
 
631
-/*   Use double touch for probing  */
631
+// Use double touch for probing
632 632
 //#define PROBE_DOUBLE_TOUCH
633 633
 
634 634
 /**
@@ -1543,33 +1543,39 @@
1543 1543
 // With this option servos are powered only during movement, then turned off to prevent jitter.
1544 1544
 //#define DEACTIVATE_SERVOS_AFTER_MOVE
1545 1545
 
1546
-/**********************************************************************\
1547
- * Support for a filament diameter sensor
1548
- * Also allows adjustment of diameter at print time (vs  at slicing)
1549
- * Single extruder only at this point (extruder 0)
1550
- *
1551
- * Motherboards
1552
- * 34 - RAMPS1.4 - uses Analog input 5 on the AUX2 connector
1553
- * 81 - Printrboard - Uses Analog input 2 on the Exp1 connector (version B,C,D,E)
1554
- * 301 - Rambo  - uses Analog input 3
1555
- * Note may require analog pins to be defined for different motherboards
1556
- **********************************************************************/
1557
-// Uncomment below to enable
1546
+/**
1547
+ * Filament Width Sensor
1548
+ *
1549
+ * Measures the filament width in real-time and adjusts
1550
+ * flow rate to compensate for any irregularities.
1551
+ *
1552
+ * Also allows the measured filament diameter to set the
1553
+ * extrusion rate, so the slicer only has to specify the
1554
+ * volume.
1555
+ *
1556
+ * Only a single extruder is supported at this time.
1557
+ *
1558
+ *  34 RAMPS_14    : Analog input 5 on the AUX2 connector
1559
+ *  81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
1560
+ * 301 RAMBO       : Analog input 3
1561
+ *
1562
+ * Note: May require analog pins to be defined for other boards.
1563
+ */
1558 1564
 //#define FILAMENT_WIDTH_SENSOR
1559 1565
 
1560
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00  //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software.  Used for sensor reading validation
1566
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
1561 1567
 
1562 1568
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
1563
-  #define FILAMENT_SENSOR_EXTRUDER_NUM 0   //The number of the extruder that has the filament sensor (0,1,2)
1564
-  #define MEASUREMENT_DELAY_CM        14   //measurement delay in cm.  This is the distance from filament sensor to middle of barrel
1569
+  #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
1570
+  #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
1565 1571
 
1566
-  #define MEASURED_UPPER_LIMIT         3.30  //upper limit factor used for sensor reading validation in mm
1567
-  #define MEASURED_LOWER_LIMIT         1.90  //lower limit factor for sensor reading validation in mm
1568
-  #define MAX_MEASUREMENT_DELAY       20     //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM  and lower number saves RAM)
1572
+  #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
1573
+  #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
1574
+  #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
1569 1575
 
1570
-  #define DEFAULT_MEASURED_FILAMENT_DIA  DEFAULT_NOMINAL_FILAMENT_DIA  //set measured to nominal initially
1576
+  #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
1571 1577
 
1572
-  //When using an LCD, uncomment the line below to display the Filament sensor data on the last line instead of status.  Status will appear for 5 sec.
1578
+  // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
1573 1579
   //#define FILAMENT_LCD_DISPLAY
1574 1580
 #endif
1575 1581
 

+ 1
- 1
Marlin/nozzle.h View File

@@ -1,4 +1,4 @@
1
-/*
1
+/**
2 2
  * Marlin 3D Printer Firmware
3 3
  * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4 4
  *

+ 3
- 0
Marlin/pins.h View File

@@ -303,6 +303,9 @@
303 303
 #if !defined(E3_AUTO_FAN_PIN) && defined(ORIG_E3_AUTO_FAN_PIN)
304 304
   #define E3_AUTO_FAN_PIN ORIG_E3_AUTO_FAN_PIN
305 305
 #endif
306
+#if !defined(E4_AUTO_FAN_PIN) && defined(ORIG_E4_AUTO_FAN_PIN)
307
+  #define E4_AUTO_FAN_PIN ORIG_E4_AUTO_FAN_PIN
308
+#endif
306 309
 
307 310
 // List of pins which to ignore when asked to change by gcode, 0 and 1 are RX and TX, do not mess with those!
308 311
 #define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, E0_MS1_PIN, E0_MS2_PIN,

+ 52
- 61
Marlin/pinsDebug.h View File

@@ -80,16 +80,16 @@ bool endstop_monitor_flag = false;
80 80
 
81 81
 const char* const pin_array[][3] PROGMEM = {
82 82
 
83
-/**
84
- *  [pin name]  [pin number]  [is digital or analog]  1 = digital, 0 = analog
85
- *  Each entry takes up 6 bytes in FLASH:
86
- *     2 byte pointer to location of the name string
87
- *     2 bytes containing the pin number
88
- *         analog pin numbers were convereted to digital when the array was created
89
- *     2 bytes containing the digital/analog bool flag
90
- */
91
-
92
- // manually add pins ...
83
+  /**
84
+   *  [pin name]  [pin number]  [is digital or analog]  1 = digital, 0 = analog
85
+   *  Each entry takes up 6 bytes in FLASH:
86
+   *     2 byte pointer to location of the name string
87
+   *     2 bytes containing the pin number
88
+   *         analog pin numbers were convereted to digital when the array was created
89
+   *     2 bytes containing the digital/analog bool flag
90
+   */
91
+
92
+  // manually add pins ...
93 93
   #if SERIAL_PORT == 0
94 94
     #if AVR_ATmega2560_FAMILY
95 95
       {RXD_NAME, 0, 1},
@@ -109,7 +109,8 @@ const char* const pin_array[][3] PROGMEM = {
109 109
 
110 110
 #define n_array (sizeof (pin_array) / sizeof (const char *))/3
111 111
 
112
-#if !defined(TIMER1B)    // working with Teensyduino extension so need to re-define some things
112
+#ifndef TIMER1B
113
+  // working with Teensyduino extension so need to re-define some things
113 114
   #include "pinsDebug_Teensyduino.h"
114 115
 #endif
115 116
 
@@ -132,7 +133,7 @@ static bool pwm_status(uint8_t pin) {
132 133
   switch(digitalPinToTimer(pin)) {
133 134
 
134 135
     #if defined(TCCR0A) && defined(COM0A1)
135
-      #if defined (TIMER0A)
136
+      #ifdef TIMER0A
136 137
         PWM_CASE(0,A);
137 138
       #endif
138 139
       PWM_CASE(0,B);
@@ -141,7 +142,7 @@ static bool pwm_status(uint8_t pin) {
141 142
     #if defined(TCCR1A) && defined(COM1A1)
142 143
       PWM_CASE(1,A);
143 144
       PWM_CASE(1,B);
144
-     #if defined(COM1C1) && defined (TIMER1C)
145
+     #if defined(COM1C1) && defined(TIMER1C)
145 146
       PWM_CASE(1,C);
146 147
      #endif
147 148
     #endif
@@ -200,13 +201,13 @@ const uint8_t* const PWM_other[][3] PROGMEM = {
200 201
 
201 202
 const uint8_t* const PWM_OCR[][3] PROGMEM = {
202 203
 
203
-  #if defined (TIMER0A)
204
+  #ifdef TIMER0A
204 205
     {&OCR0A,&OCR0B,0},
205 206
   #else
206 207
     {0,&OCR0B,0},
207 208
   #endif
208 209
 
209
-  #if defined(COM1C1) && defined (TIMER1C)
210
+  #if defined(COM1C1) && defined(TIMER1C)
210 211
    { (const uint8_t*) &OCR1A, (const uint8_t*) &OCR1B, (const uint8_t*) &OCR1C},
211 212
   #else
212 213
    { (const uint8_t*) &OCR1A, (const uint8_t*) &OCR1B,0},
@@ -217,7 +218,7 @@ const uint8_t* const PWM_OCR[][3] PROGMEM = {
217 218
   #endif
218 219
 
219 220
   #if defined(TCCR3A) && defined(COM3A1)
220
-    #if defined(COM3C1)
221
+    #ifdef COM3C1
221 222
       { (const uint8_t*) &OCR3A, (const uint8_t*) &OCR3B, (const uint8_t*) &OCR3C},
222 223
     #else
223 224
       { (const uint8_t*) &OCR3A, (const uint8_t*) &OCR3B,0},
@@ -279,12 +280,12 @@ void com_print(uint8_t N, uint8_t Z) {
279 280
 }
280 281
 
281 282
 
282
-void timer_prefix(uint8_t T, char L, uint8_t N){  // T - timer    L - pwm  n - WGM bit layout
283
+void timer_prefix(uint8_t T, char L, uint8_t N) {  // T - timer    L - pwm  n - WGM bit layout
283 284
   char buffer[20];   // for the sprintf statements
284
-  uint8_t *TCCRB = (uint8_t*) TCCR_B(T);
285
-  uint8_t *TCCRA = (uint8_t*) TCCR_A(T);
285
+  uint8_t *TCCRB = (uint8_t*)TCCR_B(T);
286
+  uint8_t *TCCRA = (uint8_t*)TCCR_A(T);
286 287
   uint8_t WGM = (((*TCCRB & _BV(WGM_2)) >> 1) | (*TCCRA & (_BV(WGM_0) | _BV(WGM_1))));
287
-  if (N == 4) WGM |=  ((*TCCRB & _BV(WGM_3)) >> 1);
288
+  if (N == 4) WGM |= ((*TCCRB & _BV(WGM_3)) >> 1);
288 289
 
289 290
   SERIAL_PROTOCOLPGM("    TIMER");
290 291
   SERIAL_PROTOCOLCHAR(T + '0');
@@ -323,18 +324,15 @@ void timer_prefix(uint8_t T, char L, uint8_t N){  // T - timer    L - pwm  n - W
323 324
   if (TEST(*TMSK, TOIE)) err_prob_interrupt();
324 325
 }
325 326
 
326
-
327
-
328 327
 static void pwm_details(uint8_t pin) {
329 328
   char buffer[20];   // for the sprintf statements
330 329
   uint8_t WGM;
331 330
 
332 331
   switch(digitalPinToTimer(pin)) {
333 332
 
334
-
335 333
     #if defined(TCCR0A) && defined(COM0A1)
336 334
 
337
-      #if defined (TIMER0A)
335
+      #ifdef TIMER0A
338 336
         case TIMER0A:
339 337
           timer_prefix(0,'A',3);
340 338
           break;
@@ -351,7 +349,7 @@ static void pwm_details(uint8_t pin) {
351 349
       case TIMER1B:
352 350
         timer_prefix(1,'B',4);
353 351
         break;
354
-      #if defined(COM1C1) && defined (TIMER1C)
352
+      #if defined(COM1C1) && defined(TIMER1C)
355 353
         case TIMER1C:
356 354
           timer_prefix(1,'C',4);
357 355
           break;
@@ -374,7 +372,7 @@ static void pwm_details(uint8_t pin) {
374 372
       case TIMER3B:
375 373
         timer_prefix(3,'B',4);
376 374
         break;
377
-      #if defined(COM3C1)
375
+      #ifdef COM3C1
378 376
         case TIMER3C:
379 377
           timer_prefix(3,'C',4);
380 378
           break;
@@ -410,17 +408,15 @@ static void pwm_details(uint8_t pin) {
410 408
   }
411 409
   SERIAL_PROTOCOLPGM("  ");
412 410
 
413
-// on pins that have two PWMs, print info on second PWM
411
+  // on pins that have two PWMs, print info on second PWM
414 412
   #if AVR_ATmega2560_FAMILY || AVR_AT90USB1286_FAMILY
415
-  // looking for port B7 - PWMs 0A and 1C
413
+    // looking for port B7 - PWMs 0A and 1C
416 414
     if ( ('B' == digitalPinToPort(pin) + 64) && (0x80 == digitalPinToBitMask(pin))) {
417
-      #if !defined(TEENSYDUINO_IDE)
418
-        SERIAL_EOL;
419
-        SERIAL_PROTOCOLPGM (" .                  TIMER1C is also tied to this pin             ");
415
+      #ifndef TEENSYDUINO_IDE
416
+        SERIAL_PROTOCOLPGM("\n .                  TIMER1C is also tied to this pin             ");
420 417
         timer_prefix(1,'C',4);
421 418
       #else
422
-        SERIAL_EOL;
423
-        SERIAL_PROTOCOLPGM (" .                  TIMER0A is also tied to this pin             ");
419
+        SERIAL_PROTOCOLPGM("\n .                  TIMER0A is also tied to this pin             ");
424 420
         timer_prefix(0,'A',3);
425 421
       #endif
426 422
     }
@@ -429,7 +425,7 @@ static void pwm_details(uint8_t pin) {
429 425
 
430 426
 bool get_pinMode(int8_t pin) { return *portModeRegister(digitalPinToPort(pin)) & digitalPinToBitMask(pin); }
431 427
 
432
-#if !defined(digitalRead_mod)    // use Teensyduino's version of digitalRead - it doesn't disable the PWMs
428
+#ifndef digitalRead_mod             // use Teensyduino's version of digitalRead - it doesn't disable the PWMs
433 429
   int digitalRead_mod(int8_t pin) { // same as digitalRead except the PWM stop section has been removed
434 430
     uint8_t port = digitalPinToPort(pin);
435 431
     return (port != NOT_A_PIN) && (*portInputRegister(port) & digitalPinToBitMask(pin)) ? HIGH : LOW;
@@ -437,34 +433,31 @@ bool get_pinMode(int8_t pin) { return *portModeRegister(digitalPinToPort(pin)) &
437 433
 #endif
438 434
 
439 435
 void print_port(int8_t pin) {   // print port number
440
-  #if defined(digitalPinToPort)
436
+  #ifdef digitalPinToPort
441 437
     SERIAL_PROTOCOLPGM("  Port: ");
442 438
     uint8_t x = digitalPinToPort(pin) + 64;
443 439
     SERIAL_CHAR(x);
444 440
     uint8_t temp = digitalPinToBitMask(pin);
445
-    for (x = '0'; (x < '9' && !(temp == 1)); x++){
446
-      temp = temp >> 1;
447
-    }
441
+    for (x = '0'; x < '9' && temp != 1; x++) temp >>= 1;
448 442
     SERIAL_CHAR(x);
449 443
   #else
450
-    SERIAL_PROTOCOLPGM("          ")
444
+    SERIAL_PROTOCOLPGM("          ");
451 445
   #endif
452 446
 }
453 447
 
454
-
455 448
 // pretty report with PWM info
456 449
 inline void report_pin_state_extended(int8_t pin, bool ignore, bool extended = true) {
457 450
   uint8_t temp_char;
458 451
   char *name_mem_pointer;
459 452
   char buffer[30];   // for the sprintf statements
460
-  bool found = false;
461
-  bool multi_name_pin = false;
453
+  bool found = false,
454
+       multi_name_pin = false;
462 455
   for (uint8_t x = 0; x < n_array; x++)  {    // scan entire array and report all instances of this pin
463 456
     if (pgm_read_byte(&pin_array[x][1]) == pin) {
464
-      if (found == true) multi_name_pin = true;
457
+      if (found) multi_name_pin = true;
465 458
       found = true;
466
-      if (multi_name_pin == false) {    // report digitial and analog pin number only on the first time through
467
-        sprintf(buffer, "PIN:% 3d ", pin);     // digital pin number
459
+      if (!multi_name_pin) {    // report digitial and analog pin number only on the first time through
460
+        sprintf(buffer, "PIN: %3d ", pin);     // digital pin number
468 461
         SERIAL_ECHO(buffer);
469 462
         print_port(pin);
470 463
         if (IS_ANALOG(pin)) {
@@ -479,7 +472,7 @@ inline void report_pin_state_extended(int8_t pin, bool ignore, bool extended = t
479 472
         temp_char = pgm_read_byte(name_mem_pointer + y);
480 473
         if (temp_char != 0) MYSERIAL.write(temp_char);
481 474
         else {
482
-          for (uint8_t i = 0; i < 28 - y; i++) MYSERIAL.write(" ");
475
+          for (uint8_t i = 0; i < 28 - y; i++) MYSERIAL.write(' ');
483 476
           break;
484 477
         }
485 478
       }
@@ -487,12 +480,12 @@ inline void report_pin_state_extended(int8_t pin, bool ignore, bool extended = t
487 480
         SERIAL_ECHOPGM("protected ");
488 481
       else {
489 482
         if (!(pgm_read_byte(&pin_array[x][2]))) {
490
-          sprintf(buffer, "Analog in =% 5d", analogRead(pin - analogInputToDigitalPin(0)));
483
+          sprintf(buffer, "Analog in = %5d", analogRead(pin - analogInputToDigitalPin(0)));
491 484
           SERIAL_ECHO(buffer);
492 485
         }
493 486
         else {
494 487
           if (!get_pinMode(pin)) {
495
-//            pinMode(pin, INPUT_PULLUP);  // make sure input isn't floating - stopped doing this 
488
+            //pinMode(pin, INPUT_PULLUP);  // make sure input isn't floating - stopped doing this
496 489
                                            // because this could interfere with inductive/capacitive
497 490
                                            // sensors (high impedance voltage divider) and with PT100 amplifier
498 491
             SERIAL_PROTOCOLPAIR("Input  = ", digitalRead_mod(pin));
@@ -502,43 +495,41 @@ inline void report_pin_state_extended(int8_t pin, bool ignore, bool extended = t
502 495
           }
503 496
           else SERIAL_PROTOCOLPAIR("Output = ", digitalRead_mod(pin));
504 497
         }
505
-        if (multi_name_pin == false && extended) pwm_details(pin);  // report PWM capabilities only on the first pass & only if doing an extended report
498
+        if (!multi_name_pin && extended) pwm_details(pin);  // report PWM capabilities only on the first pass & only if doing an extended report
506 499
       }
507 500
       SERIAL_EOL;
508 501
     }  // end of IF
509 502
   } // end of for loop
510 503
 
511
-  if (found == false) {
512
-    sprintf(buffer, "PIN:% 3d ", pin);
504
+  if (!found) {
505
+    sprintf(buffer, "PIN: %3d ", pin);
513 506
     SERIAL_ECHO(buffer);
514 507
     print_port(pin);
515 508
     if (IS_ANALOG(pin)) {
516 509
       sprintf(buffer, " (A%2d)  ", int(pin - analogInputToDigitalPin(0)));    // analog pin number
517 510
       SERIAL_ECHO(buffer);
518 511
     }
519
-    else SERIAL_ECHOPGM("        ");   // add padding if not an analog pin
512
+    else
513
+      SERIAL_ECHOPGM("        ");   // add padding if not an analog pin
520 514
     SERIAL_ECHOPGM("<unused/unknown>");
521
-    if (get_pinMode(pin)) {
515
+    if (get_pinMode(pin))
522 516
       SERIAL_PROTOCOLPAIR("            Output = ", digitalRead_mod(pin));
523
-    }
524 517
     else {
525 518
       if (IS_ANALOG(pin)) {
526
-        sprintf(buffer, "   Analog in =% 5d", analogRead(pin - analogInputToDigitalPin(0)));
519
+        sprintf(buffer, "   Analog in = %5d", analogRead(pin - analogInputToDigitalPin(0)));
527 520
         SERIAL_ECHO(buffer);
528 521
       }
529
-      else {
522
+      else
530 523
         SERIAL_ECHOPGM("         ");   // add padding if not an analog pin
531
-      } 
524
+
532 525
       SERIAL_PROTOCOLPAIR("   Input  = ", digitalRead_mod(pin));
533
-    }  
534
-//    if (!pwm_status(pin)) SERIAL_ECHOPGM(" ");    // add padding if it's not a PWM pin
526
+    }
527
+    //if (!pwm_status(pin)) SERIAL_ECHOCHAR(' ');    // add padding if it's not a PWM pin
535 528
     if (extended) pwm_details(pin);  // report PWM capabilities only if doing an extended report
536 529
     SERIAL_EOL;
537 530
   }
538 531
 }
539 532
 
540 533
 inline void report_pin_state(int8_t pin) {
541
-
542 534
   report_pin_state_extended(pin, false, false);
543
-
544 535
 }

+ 1
- 1
Marlin/printcounter.cpp View File

@@ -1,4 +1,4 @@
1
-/*
1
+/**
2 2
  * Marlin 3D Printer Firmware
3 3
  * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4 4
  *

+ 1
- 1
Marlin/printcounter.h View File

@@ -1,4 +1,4 @@
1
-/*
1
+/**
2 2
  * Marlin 3D Printer Firmware
3 3
  * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4 4
  *

+ 2
- 3
Marlin/stepper.cpp View File

@@ -346,8 +346,6 @@ ISR(TIMER1_COMPA_vect) {
346 346
 
347 347
 void Stepper::isr() {
348 348
 
349
-  static uint32_t step_remaining = 0;
350
-
351 349
   uint16_t ocr_val;
352 350
 
353 351
   #define ENDSTOP_NOMINAL_OCR_VAL 3000    // check endstops every 1.5ms to guarantee two stepper ISRs within 5ms for BLTouch
@@ -364,6 +362,7 @@ void Stepper::isr() {
364 362
   #if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
365 363
     #define SPLIT(L) _SPLIT(L)
366 364
   #else                 // sample endstops in between step pulses
365
+    static uint32_t step_remaining = 0;
367 366
     #define SPLIT(L) do { \
368 367
       _SPLIT(L); \
369 368
       if (ENDSTOPS_ENABLED && L > ENDSTOP_NOMINAL_OCR_VAL) { \
@@ -391,7 +390,7 @@ void Stepper::isr() {
391 390
       _ENABLE_ISRs(); // re-enable ISRs
392 391
       return;
393 392
     }
394
-  # endif
393
+  #endif
395 394
 
396 395
   if (cleaning_buffer_counter) {
397 396
     --cleaning_buffer_counter;

+ 1
- 1
Marlin/stopwatch.cpp View File

@@ -1,4 +1,4 @@
1
-/*
1
+/**
2 2
  * Marlin 3D Printer Firmware
3 3
  * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4 4
  *

+ 1
- 1
Marlin/stopwatch.h View File

@@ -1,4 +1,4 @@
1
-/*
1
+/**
2 2
  * Marlin 3D Printer Firmware
3 3
  * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4 4
  *

+ 1
- 1
Marlin/twibus.cpp View File

@@ -1,4 +1,4 @@
1
-/*
1
+/**
2 2
  * Marlin 3D Printer Firmware
3 3
  * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4 4
  *

+ 1
- 1
Marlin/twibus.h View File

@@ -1,4 +1,4 @@
1
-/*
1
+/**
2 2
  * Marlin 3D Printer Firmware
3 3
  * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4 4
  *

Loading…
Cancel
Save