瀏覽代碼

added a partial release option to "m84" aka "stepper release". If you do tiny layers, you might want to keep the z-axis powered to not loose height positioning after homeing.

Bernhard 13 年之前
父節點
當前提交
5b4625f79c
共有 3 個檔案被更改,包括 16 行新增11 行删除
  1. 1
    0
      Marlin/Configuration.h
  2. 14
    10
      Marlin/Marlin.pde
  3. 1
    1
      Marlin/cardreader.pde

+ 1
- 0
Marlin/Configuration.h 查看文件

292
 //#define ULTRA_LCD  //general lcd support, also 16x2
292
 //#define ULTRA_LCD  //general lcd support, also 16x2
293
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
293
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
294
 #define SD_FINISHED_STEPPERRELEASE true  //if sd support and the file is finished: disable steppers?
294
 #define SD_FINISHED_STEPPERRELEASE true  //if sd support and the file is finished: disable steppers?
295
+#define SD_FINISHED_RELEASECOMMAND "M84 X Y E" // no z because of layer shift.
295
 
296
 
296
 //#define ULTIPANEL
297
 //#define ULTIPANEL
297
 #ifdef ULTIPANEL
298
 #ifdef ULTIPANEL

+ 14
- 10
Marlin/Marlin.pde 查看文件

903
       }
903
       }
904
       else
904
       else
905
       { 
905
       { 
906
-        #if ((E_ENABLE_PIN != X_ENABLE_PIN) && (E_ENABLE_PIN != Y_ENABLE_PIN)) // Only enable on boards that have seperate ENABLE_PINS
907
-        if(code_seen('E')) {
908
-          st_synchronize();
909
-          LCD_MESSAGEPGM("Free Move");
910
-          disable_e();
911
-        }
912
-        else {
906
+        bool all_axis = !((code_seen(axis_codes[0])) || (code_seen(axis_codes[1])) || (code_seen(axis_codes[2]))|| (code_seen(axis_codes[3])));
907
+        if(all_axis)
908
+        {
913
           finishAndDisableSteppers();
909
           finishAndDisableSteppers();
914
         }
910
         }
915
-        #else
916
-          finishAndDisableSteppers();
917
-        #endif
911
+        else
912
+        {
913
+          st_synchronize();
914
+          if(code_seen('X')) disable_x();
915
+          if(code_seen('Y')) disable_y();
916
+          if(code_seen('Z')) disable_z();
917
+          #if ((E_ENABLE_PIN != X_ENABLE_PIN) && (E_ENABLE_PIN != Y_ENABLE_PIN)) // Only enable on boards that have seperate ENABLE_PINS
918
+            if(code_seen('E')) disable_e();
919
+          #endif 
920
+          LCD_MESSAGEPGM("Partial Release");
921
+        }
918
       }
922
       }
919
       break;
923
       break;
920
     case 85: // M85
924
     case 85: // M85

+ 1
- 1
Marlin/cardreader.pde 查看文件

436
  if(SD_FINISHED_STEPPERRELEASE)
436
  if(SD_FINISHED_STEPPERRELEASE)
437
  {
437
  {
438
    //finishAndDisableSteppers();
438
    //finishAndDisableSteppers();
439
-   enquecommand("M84");
439
+   enquecommand(SD_FINISHED_RELEASECOMMAND);
440
  }
440
  }
441
  autotempShutdown();
441
  autotempShutdown();
442
 }
442
 }

Loading…
取消
儲存