Преглед изворни кода

Added Fan control to the pre-heat settings.

I find that the PID routine works better when the cooling fan is switched on
at the beginning of a warm up routine.  Otherwise when you enable the fan
just before a print, you have a delay as the PIDre-adjusts.

This should also be safer as most cooling fans are directed at the hot -ends
thermal barrier!
Blair Thompson пре 13 година
родитељ
комит
2fd8c248fe
2 измењених фајлова са 8 додато и 2 уклоњено
  1. 6
    0
      Marlin/Configuration.h
  2. 2
    2
      Marlin/ultralcd.pde

+ 6
- 0
Marlin/Configuration.h Прегледај датотеку

@@ -194,10 +194,16 @@ const bool Z_ENDSTOPS_INVERTING = false; // set to true to invert the logic of t
194 194
   #define ULTRA_LCD
195 195
   #define LCD_WIDTH 20
196 196
   #define LCD_HEIGHT 4
197
+
198
+// Preheat Constants
197 199
   #define PLA_PREHEAT_HOTEND_TEMP 180 
198 200
   #define PLA_PREHEAT_HPB_TEMP 70
201
+  #define PLA_PREHEAT_FAN_SPEED 255		// Insert Value between 0 and 255
202
+
199 203
   #define ABS_PREHEAT_HOTEND_TEMP 240
200 204
   #define ABS_PREHEAT_HPB_TEMP 100
205
+  #define ABS_PREHEAT_FAN_SPEED 255		// Insert Value between 0 and 255
206
+
201 207
 #else //no panel but just lcd 
202 208
   #ifdef ULTRA_LCD
203 209
     #define LCD_WIDTH 16

+ 2
- 2
Marlin/ultralcd.pde Прегледај датотеку

@@ -490,10 +490,10 @@ void MainMenu::showPrepare()
490 490
       MENUITEM(  lcdprintPGM(MSG_SET_ORIGIN)  ,  BLOCK;enquecommand("G92 X0 Y0 Z0");beepshort(); ) ;
491 491
       break;
492 492
     case ItemP_preheat_pla:
493
-      MENUITEM(  lcdprintPGM(MSG_PREHEAT_PLA)  ,  BLOCK;setTargetHotend0(PLA_PREHEAT_HOTEND_TEMP);setTargetBed(PLA_PREHEAT_HPB_TEMP);beepshort(); ) ;
493
+      MENUITEM(  lcdprintPGM(MSG_PREHEAT_PLA)  ,  BLOCK;setTargetHotend0(PLA_PREHEAT_HOTEND_TEMP);setTargetBed(PLA_PREHEAT_HPB_TEMP);analogWrite(FAN_PIN, PLA_PREHEAT_FAN_SPEED); beepshort(); ) ;
494 494
       break;
495 495
     case ItemP_preheat_abs:
496
-      MENUITEM(  lcdprintPGM(MSG_PREHEAT_ABS)  ,  BLOCK;setTargetHotend0(ABS_PREHEAT_HOTEND_TEMP);setTargetBed(ABS_PREHEAT_HPB_TEMP);beepshort(); ) ;
496
+      MENUITEM(  lcdprintPGM(MSG_PREHEAT_ABS)  ,  BLOCK;setTargetHotend0(ABS_PREHEAT_HOTEND_TEMP);setTargetBed(ABS_PREHEAT_HPB_TEMP); analogWrite(FAN_PIN, ABS_PREHEAT_FAN_SPEED); beepshort(); ) ;
497 497
       break;
498 498
     case ItemP_cooldown:
499 499
       MENUITEM(  lcdprintPGM(MSG_COOLDOWN)  ,  BLOCK;setTargetHotend0(0);setTargetBed(0);beepshort(); ) ;

Loading…
Откажи
Сачувај