瀏覽代碼

✨ Configurable Switching Nozzle dwell (#24304)

InsanityAutomation 1 年之前
父節點
當前提交
91f9e1671f
沒有連結到貢獻者的電子郵件帳戶。
共有 2 個檔案被更改,包括 3 行新增2 行删除
  1. 1
    0
      Marlin/Configuration.h
  2. 2
    2
      Marlin/src/module/tool_change.cpp

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

@@ -270,6 +270,7 @@
270 270
   #define SWITCHING_NOZZLE_SERVO_NR 0
271 271
   //#define SWITCHING_NOZZLE_E1_SERVO_NR 1          // If two servos are used, the index of the second
272 272
   #define SWITCHING_NOZZLE_SERVO_ANGLES { 0, 90 }   // Angles for E0, E1 (single servo) or lowered/raised (dual servo)
273
+  #define SWITCHING_NOZZLE_SERVO_DWELL 2500         // Dwell time to wait for servo to make physical move
273 274
 #endif
274 275
 
275 276
 /**

+ 2
- 2
Marlin/src/module/tool_change.cpp 查看文件

@@ -132,7 +132,7 @@
132 132
       constexpr int16_t sns_angles[2] = SWITCHING_NOZZLE_SERVO_ANGLES;
133 133
       planner.synchronize();
134 134
       servo[sns_index[e]].move(sns_angles[angle_index]);
135
-      safe_delay(500);
135
+      safe_delay(SWITCHING_NOZZLE_SERVO_DWELL);
136 136
     }
137 137
 
138 138
     void lower_nozzle(const uint8_t e) { _move_nozzle_servo(e, 0); }
@@ -143,7 +143,7 @@
143 143
     void move_nozzle_servo(const uint8_t angle_index) {
144 144
       planner.synchronize();
145 145
       servo[SWITCHING_NOZZLE_SERVO_NR].move(servo_angles[SWITCHING_NOZZLE_SERVO_NR][angle_index]);
146
-      safe_delay(500);
146
+      safe_delay(SWITCHING_NOZZLE_SERVO_DWELL);
147 147
     }
148 148
 
149 149
   #endif

Loading…
取消
儲存