Browse Source

Change K1 to required option PID_K1

Richard Wackerbarth 6 years ago
parent
commit
c1184552ac
47 changed files with 150 additions and 151 deletions
  1. 3
    3
      Marlin/Configuration.h
  2. 3
    3
      Marlin/src/config/default/Configuration.h
  3. 3
    3
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h
  4. 3
    3
      Marlin/src/config/examples/AliExpress/CL-260/Configuration.h
  5. 3
    3
      Marlin/src/config/examples/Anet/A6/Configuration.h
  6. 3
    3
      Marlin/src/config/examples/Anet/A8/Configuration.h
  7. 3
    3
      Marlin/src/config/examples/Azteeg/X5GT/Configuration.h
  8. 3
    3
      Marlin/src/config/examples/BQ/Hephestos/Configuration.h
  9. 3
    3
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h
  10. 3
    3
      Marlin/src/config/examples/BQ/WITBOX/Configuration.h
  11. 3
    3
      Marlin/src/config/examples/Cartesio/Configuration.h
  12. 3
    3
      Marlin/src/config/examples/Creality/CR-10/Configuration.h
  13. 3
    3
      Marlin/src/config/examples/Felix/Configuration.h
  14. 3
    3
      Marlin/src/config/examples/Felix/DUAL/Configuration.h
  15. 3
    3
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h
  16. 3
    3
      Marlin/src/config/examples/Geeetech/GT2560/Configuration.h
  17. 3
    3
      Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h
  18. 3
    3
      Marlin/src/config/examples/Infitary/i3-M508/Configuration.h
  19. 3
    3
      Marlin/src/config/examples/Malyan/M150/Configuration.h
  20. 3
    3
      Marlin/src/config/examples/Micromake/C1/basic/Configuration.h
  21. 3
    3
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h
  22. 3
    3
      Marlin/src/config/examples/Mks/Sbase/Configuration.h
  23. 3
    3
      Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h
  24. 3
    3
      Marlin/src/config/examples/RigidBot/Configuration.h
  25. 3
    3
      Marlin/src/config/examples/SCARA/Configuration.h
  26. 3
    3
      Marlin/src/config/examples/STM32F10/Configuration.h
  27. 3
    3
      Marlin/src/config/examples/Sanguinololu/Configuration.h
  28. 3
    3
      Marlin/src/config/examples/TinyBoy2/Configuration.h
  29. 3
    3
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h
  30. 3
    3
      Marlin/src/config/examples/Velleman/K8200/Configuration.h
  31. 3
    3
      Marlin/src/config/examples/Velleman/K8400/Configuration.h
  32. 3
    3
      Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h
  33. 3
    3
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h
  34. 3
    3
      Marlin/src/config/examples/adafruit/ST7565/Configuration.h
  35. 3
    3
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h
  36. 3
    3
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h
  37. 3
    3
      Marlin/src/config/examples/delta/generic/Configuration.h
  38. 3
    3
      Marlin/src/config/examples/delta/kossel_mini/Configuration.h
  39. 3
    3
      Marlin/src/config/examples/delta/kossel_pro/Configuration.h
  40. 3
    3
      Marlin/src/config/examples/delta/kossel_xl/Configuration.h
  41. 3
    3
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h
  42. 3
    3
      Marlin/src/config/examples/makibox/Configuration.h
  43. 3
    3
      Marlin/src/config/examples/tvrrug/Round2/Configuration.h
  44. 3
    3
      Marlin/src/config/examples/wt150/Configuration.h
  45. 2
    0
      Marlin/src/inc/SanityCheck.h
  46. 2
    6
      Marlin/src/module/temperature.cpp
  47. 14
    13
      Marlin/src/module/temperature.h

+ 3
- 3
Marlin/Configuration.h View File

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 70 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX 74 // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 70      // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX  74      // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 16 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
   // Buda 2.0 on 24V

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 15 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -342,8 +342,9 @@
342 342
 
343 343
 // Comment the following line to disable PID and enable bang-bang.
344 344
 #define PIDTEMP
345
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
346
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
345
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
346
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
347
+#define PID_K1 0.95      // Smoothing factor within any PID loop
347 348
 #if ENABLED(PIDTEMP)
348 349
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
349 350
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -353,7 +354,6 @@
353 354
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
354 355
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
355 356
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
356
-  #define K1 0.95 //smoothing factor within the PID
357 357
 
358 358
   // Hephestos i3
359 359
   #define  DEFAULT_Kp 23.05

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

@@ -344,8 +344,9 @@
344 344
 
345 345
 // Comment the following line to disable PID and enable bang-bang.
346 346
 #define PIDTEMP
347
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
348
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
347
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
348
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
349
+#define PID_K1 0.95      // Smoothing factor within any PID loop
349 350
 #if ENABLED(PIDTEMP)
350 351
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
351 352
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -355,7 +356,6 @@
355 356
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
356 357
   #define PID_FUNCTIONAL_RANGE 50 // If the temperature difference between the target temperature and the actual temperature
357 358
                                     // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
358
-  #define K1 0.95 //smoothing factor within the PID
359 359
 
360 360
   // Tuned PID values using M303
361 361
   #define  DEFAULT_Kp 19.18

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

@@ -342,8 +342,9 @@
342 342
 
343 343
 // Comment the following line to disable PID and enable bang-bang.
344 344
 #define PIDTEMP
345
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
346
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
345
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
346
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
347
+#define PID_K1 0.95      // Smoothing factor within any PID loop
347 348
 #if ENABLED(PIDTEMP)
348 349
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
349 350
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -353,7 +354,6 @@
353 354
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
354 355
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
355 356
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
356
-  #define K1 0.95 //smoothing factor within the PID
357 357
 
358 358
   // Witbox
359 359
   #define  DEFAULT_Kp 22.2

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

@@ -340,8 +340,9 @@
340 340
 
341 341
 // Comment the following line to disable PID and enable bang-bang.
342 342
 #define PIDTEMP
343
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
344
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
343
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
344
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
345
+#define PID_K1 0.95      // Smoothing factor within any PID loop
345 346
 #if ENABLED(PIDTEMP)
346 347
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
347 348
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -351,7 +352,6 @@
351 352
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
352 353
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
353 354
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
354
-  #define K1 0.95 //smoothing factor within the PID
355 355
 
356 356
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
357 357
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // Felix 2.0+ electronics with v4 Hotend
356 356
   #define DEFAULT_Kp 12

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // Felix 2.0+ electronics with v4 Hotend
356 356
   #define DEFAULT_Kp 12

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

@@ -340,8 +340,9 @@
340 340
 
341 341
 // Comment the following line to disable PID and enable bang-bang.
342 342
 #define PIDTEMP
343
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
344
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
343
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
344
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
345
+#define PID_K1 0.95      // Smoothing factor within any PID loop
345 346
 #if ENABLED(PIDTEMP)
346 347
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
347 348
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -351,7 +352,6 @@
351 352
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
352 353
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
353 354
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
354
-  #define K1 0.95 //smoothing factor within the PID
355 355
 
356 356
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
357 357
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // Geeetech MK8 Extruder
356 356
   #define  DEFAULT_Kp 12.33

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -347,8 +347,9 @@
347 347
 
348 348
 // Comment the following line to disable PID and enable bang-bang.
349 349
 #define PIDTEMP
350
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
351
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
350
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
351
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
352
+#define PID_K1 0.95      // Smoothing factor within any PID loop
352 353
 #if ENABLED(PIDTEMP)
353 354
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
354 355
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -358,7 +359,6 @@
358 359
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
359 360
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
360 361
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
361
-  #define K1 0.95 //smoothing factor within the PID
362 362
 
363 363
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
364 364
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -340,8 +340,9 @@
340 340
 
341 341
 // Comment the following line to disable PID and enable bang-bang.
342 342
 #define PIDTEMP
343
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
344
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
343
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
344
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
345
+#define PID_K1 0.95      // Smoothing factor within any PID loop
345 346
 #if ENABLED(PIDTEMP)
346 347
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
347 348
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -351,7 +352,6 @@
351 352
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
352 353
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
353 354
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
354
-  #define K1 0.95 //smoothing factor within the PID
355 355
 
356 356
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
357 357
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -342,8 +342,9 @@
342 342
 
343 343
 // Comment the following line to disable PID and enable bang-bang.
344 344
 #define PIDTEMP
345
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
346
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
345
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
346
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
347
+#define PID_K1 0.95      // Smoothing factor within any PID loop
347 348
 #if ENABLED(PIDTEMP)
348 349
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
349 350
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -353,7 +354,6 @@
353 354
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
354 355
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
355 356
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
356
-  #define K1 0.95 //smoothing factor within the PID
357 357
 
358 358
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
359 359
 

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

@@ -369,8 +369,9 @@
369 369
 
370 370
 // Comment the following line to disable PID and enable bang-bang.
371 371
 #define PIDTEMP
372
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
373
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
372
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
373
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
374
+#define PID_K1 0.95      // Smoothing factor within any PID loop
374 375
 #if ENABLED(PIDTEMP)
375 376
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
376 377
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -380,7 +381,6 @@
380 381
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
381 382
   #define PID_FUNCTIONAL_RANGE 20 // If the temperature difference between the target temperature and the actual temperature
382 383
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
383
-  #define K1 0.95 //smoothing factor within the PID
384 384
 
385 385
   // Merlin Hotend: From Autotune
386 386
   #define  DEFAULT_Kp 24.5

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

@@ -340,8 +340,9 @@
340 340
 
341 341
 // Comment the following line to disable PID and enable bang-bang.
342 342
 #define PIDTEMP
343
-#define BANG_MAX 180 // limits current to nozzle while in bang-bang mode; 255=full current
344
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
343
+#define BANG_MAX 180     // Limits current to nozzle while in bang-bang mode; 255=full current
344
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
345
+#define PID_K1 0.95      // Smoothing factor within any PID loop
345 346
 #if ENABLED(PIDTEMP)
346 347
   #define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
347 348
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -351,7 +352,6 @@
351 352
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
352 353
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
353 354
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
354
-  #define K1 0.95 //smoothing factor within the PID
355 355
 
356 356
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
357 357
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -366,8 +366,9 @@
366 366
 
367 367
 // Comment the following line to disable PID and enable bang-bang.
368 368
 #define PIDTEMP
369
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
370
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
369
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
370
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
371
+#define PID_K1 0.95      // Smoothing factor within any PID loop
371 372
 #if ENABLED(PIDTEMP)
372 373
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
373 374
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -377,7 +378,6 @@
377 378
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
378 379
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
379 380
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
380
-  #define K1 0.95 //smoothing factor within the PID
381 381
 
382 382
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
383 383
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -359,8 +359,9 @@
359 359
 
360 360
 // Comment the following line to disable PID and enable bang-bang.
361 361
 #define PIDTEMP
362
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
363
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
362
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
363
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
364
+#define PID_K1 0.95      // Smoothing factor within any PID loop
364 365
 #if ENABLED(PIDTEMP)
365 366
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
366 367
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -370,7 +371,6 @@
370 371
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
371 372
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
372 373
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
373
-  #define K1 0.95 //smoothing factor within the PID
374 374
 
375 375
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
376 376
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -342,8 +342,9 @@
342 342
 
343 343
 // Comment the following line to disable PID and enable bang-bang.
344 344
 #define PIDTEMP
345
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
346
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
345
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
346
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
347
+#define PID_K1 0.95      // Smoothing factor within any PID loop
347 348
 #if ENABLED(PIDTEMP)
348 349
   #define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
349 350
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -353,7 +354,6 @@
353 354
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
354 355
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
355 356
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
356
-  #define K1 0.95 //smoothing factor within the PID
357 357
 
358 358
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
359 359
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   #define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   #define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -343,8 +343,9 @@
343 343
 
344 344
 // Comment the following line to disable PID and enable bang-bang.
345 345
 #define PIDTEMP
346
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
347
-#define PID_MAX  125 // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
346
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
347
+#define PID_MAX  125     // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
348
+#define PID_K1 0.95      // Smoothing factor within any PID loop
348 349
 #if ENABLED(PIDTEMP)
349 350
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
350 351
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -354,7 +355,6 @@
354 355
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
355 356
   #define PID_FUNCTIONAL_RANGE 50 // If the temperature difference between the target temperature and the actual temperature
356 357
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
357
-  #define K1 0.95 //smoothing factor within the PID
358 358
 
359 359
   // Kossel Pro
360 360
   #define  DEFAULT_Kp 19.30

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
   // oXis Kossel k800 XL

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

@@ -347,8 +347,9 @@
347 347
 
348 348
 // Comment the following line to disable PID and enable bang-bang.
349 349
 #define PIDTEMP
350
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
351
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
350
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
351
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
352
+#define PID_K1 0.95      // Smoothing factor within any PID loop
352 353
 #if ENABLED(PIDTEMP)
353 354
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
354 355
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -358,7 +359,6 @@
358 359
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
359 360
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
360 361
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
361
-  #define K1 0.95 //smoothing factor within the PID
362 362
 
363 363
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
364 364
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
   // J-Head Mk V-B

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

@@ -339,8 +339,9 @@
339 339
 
340 340
 // Comment the following line to disable PID and enable bang-bang.
341 341
 #define PIDTEMP
342
-#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
343
-#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
342
+#define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
343
+#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
344
+#define PID_K1 0.95      // Smoothing factor within any PID loop
344 345
 #if ENABLED(PIDTEMP)
345 346
   //#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
346 347
   //#define PID_DEBUG // Sends debug data to the serial port.
@@ -350,7 +351,6 @@
350 351
                                   // Set/get with gcode: M301 E[extruder number, 0-2]
351 352
   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
352 353
                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
353
-  #define K1 0.95 //smoothing factor within the PID
354 354
 
355 355
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
356 356
 

+ 2
- 0
Marlin/src/inc/SanityCheck.h View File

@@ -225,6 +225,8 @@
225 225
   #error "BABYSTEP_ZPROBE_GFX_REVERSE is now set by OVERLAY_GFX_REVERSE. Please update your configurations."
226 226
 #elif defined(UBL_GRANULAR_SEGMENTATION_FOR_CARTESIAN)
227 227
   #error "UBL_GRANULAR_SEGMENTATION_FOR_CARTESIAN is now SEGMENT_LEVELED_MOVES. Please update your configuration."
228
+#elif HAS_PID_HEATING && (defined(K1) || !defined(PID_K1))
229
+  #error "K1 is now PID_K1. Please update your configuration."
228 230
 #endif
229 231
 
230 232
 /**

+ 2
- 6
Marlin/src/module/temperature.cpp View File

@@ -49,10 +49,6 @@
49 49
   #include "../feature/filwidth.h"
50 50
 #endif
51 51
 
52
-#ifdef K1 // Defined in Configuration.h in the PID settings
53
-  #define K2 (1.0-K1)
54
-#endif
55
-
56 52
 #if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)
57 53
   static void* heater_ttbl_map[2] = { (void*)HEATER_0_TEMPTABLE, (void*)HEATER_1_TEMPTABLE };
58 54
   static uint8_t heater_ttbllen_map[2] = { HEATER_0_TEMPTABLE_LEN, HEATER_1_TEMPTABLE_LEN };
@@ -603,7 +599,7 @@ float Temperature::get_pid_output(const int8_t e) {
603 599
   #if ENABLED(PIDTEMP)
604 600
     #if DISABLED(PID_OPENLOOP)
605 601
       pid_error[HOTEND_INDEX] = target_temperature[HOTEND_INDEX] - current_temperature[HOTEND_INDEX];
606
-      dTerm[HOTEND_INDEX] = K2 * PID_PARAM(Kd, HOTEND_INDEX) * (current_temperature[HOTEND_INDEX] - temp_dState[HOTEND_INDEX]) + K1 * dTerm[HOTEND_INDEX];
602
+      dTerm[HOTEND_INDEX] = PID_K2 * PID_PARAM(Kd, HOTEND_INDEX) * (current_temperature[HOTEND_INDEX] - temp_dState[HOTEND_INDEX]) + PID_K1 * dTerm[HOTEND_INDEX];
607 603
       temp_dState[HOTEND_INDEX] = current_temperature[HOTEND_INDEX];
608 604
       #if HEATER_IDLE_HANDLER
609 605
         if (heater_idle_timeout_exceeded[HOTEND_INDEX]) {
@@ -700,7 +696,7 @@ float Temperature::get_pid_output(const int8_t e) {
700 696
       temp_iState_bed += pid_error_bed;
701 697
       iTerm_bed = bedKi * temp_iState_bed;
702 698
 
703
-      dTerm_bed = K2 * bedKd * (current_temperature_bed - temp_dState_bed) + K1 * dTerm_bed;
699
+      dTerm_bed = PID_K2 * bedKd * (current_temperature_bed - temp_dState_bed) + PID_K1 * dTerm_bed;
704 700
       temp_dState_bed = current_temperature_bed;
705 701
 
706 702
       pid_output = pTerm_bed + iTerm_bed - dTerm_bed;

+ 14
- 13
Marlin/src/module/temperature.h View File

@@ -88,6 +88,17 @@ enum ADCSensorState {
88 88
 
89 89
 #define ACTUAL_ADC_SAMPLES max(int(MIN_ADC_ISR_LOOPS), int(SensorsReady))
90 90
 
91
+#if HAS_PID_HEATING
92
+  #define PID_K2 (1.0-PID_K1)
93
+  #define PID_dT ((OVERSAMPLENR * float(ACTUAL_ADC_SAMPLES)) / (F_CPU / 64.0 / 256.0))
94
+
95
+  // Apply the scale factors to the PID values
96
+  #define scalePID_i(i)   ( (i) * PID_dT )
97
+  #define unscalePID_i(i) ( (i) / PID_dT )
98
+  #define scalePID_d(d)   ( (d) / PID_dT )
99
+  #define unscalePID_d(d) ( (d) * PID_dT )
100
+#endif
101
+
91 102
 #if !HAS_HEATER_BED
92 103
   constexpr int16_t target_temperature_bed = 0;
93 104
 #endif
@@ -116,10 +127,6 @@ class Temperature {
116 127
                      soft_pwm_count_fan[FAN_COUNT];
117 128
     #endif
118 129
 
119
-    #if ENABLED(PIDTEMP) || ENABLED(PIDTEMPBED)
120
-      #define PID_dT ((OVERSAMPLENR * float(ACTUAL_ADC_SAMPLES)) / TEMP_TIMER_FREQUENCY)
121
-    #endif
122
-
123 130
     #if ENABLED(PIDTEMP)
124 131
 
125 132
       #if ENABLED(PID_PARAMS_PER_HOTEND) && HOTENDS > 1
@@ -140,12 +147,6 @@ class Temperature {
140 147
 
141 148
       #endif // PID_PARAMS_PER_HOTEND
142 149
 
143
-      // Apply the scale factors to the PID values
144
-      #define scalePID_i(i)   ( (i) * PID_dT )
145
-      #define unscalePID_i(i) ( (i) / PID_dT )
146
-      #define scalePID_d(d)   ( (d) / PID_dT )
147
-      #define unscalePID_d(d) ( (d) * PID_dT )
148
-
149 150
     #endif
150 151
 
151 152
     #if ENABLED(PIDTEMPBED)
@@ -431,10 +432,10 @@ class Temperature {
431 432
     #if HAS_PID_HEATING
432 433
       static void PID_autotune(const float temp, const int8_t hotend, const int8_t ncycles, const bool set_result=false);
433 434
 
435
+      /**
436
+       * Update the temp manager when PID values change
437
+       */
434 438
       #if ENABLED(PIDTEMP)
435
-        /**
436
-         * Update the temp manager when PID values change
437
-         */
438 439
         FORCE_INLINE static void updatePID() {
439 440
           #if ENABLED(PID_EXTRUSION_SCALING)
440 441
             last_e_position = 0;

Loading…
Cancel
Save