瀏覽代碼

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
   #define ULTRA_LCD
194
   #define ULTRA_LCD
195
   #define LCD_WIDTH 20
195
   #define LCD_WIDTH 20
196
   #define LCD_HEIGHT 4
196
   #define LCD_HEIGHT 4
197
+
198
+// Preheat Constants
197
   #define PLA_PREHEAT_HOTEND_TEMP 180 
199
   #define PLA_PREHEAT_HOTEND_TEMP 180 
198
   #define PLA_PREHEAT_HPB_TEMP 70
200
   #define PLA_PREHEAT_HPB_TEMP 70
201
+  #define PLA_PREHEAT_FAN_SPEED 255		// Insert Value between 0 and 255
202
+
199
   #define ABS_PREHEAT_HOTEND_TEMP 240
203
   #define ABS_PREHEAT_HOTEND_TEMP 240
200
   #define ABS_PREHEAT_HPB_TEMP 100
204
   #define ABS_PREHEAT_HPB_TEMP 100
205
+  #define ABS_PREHEAT_FAN_SPEED 255		// Insert Value between 0 and 255
206
+
201
 #else //no panel but just lcd 
207
 #else //no panel but just lcd 
202
   #ifdef ULTRA_LCD
208
   #ifdef ULTRA_LCD
203
     #define LCD_WIDTH 16
209
     #define LCD_WIDTH 16

+ 2
- 2
Marlin/ultralcd.pde 查看文件

490
       MENUITEM(  lcdprintPGM(MSG_SET_ORIGIN)  ,  BLOCK;enquecommand("G92 X0 Y0 Z0");beepshort(); ) ;
490
       MENUITEM(  lcdprintPGM(MSG_SET_ORIGIN)  ,  BLOCK;enquecommand("G92 X0 Y0 Z0");beepshort(); ) ;
491
       break;
491
       break;
492
     case ItemP_preheat_pla:
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
       break;
494
       break;
495
     case ItemP_preheat_abs:
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
       break;
497
       break;
498
     case ItemP_cooldown:
498
     case ItemP_cooldown:
499
       MENUITEM(  lcdprintPGM(MSG_COOLDOWN)  ,  BLOCK;setTargetHotend0(0);setTargetBed(0);beepshort(); ) ;
499
       MENUITEM(  lcdprintPGM(MSG_COOLDOWN)  ,  BLOCK;setTargetHotend0(0);setTargetBed(0);beepshort(); ) ;

Loading…
取消
儲存