Переглянути джерело

Add M410 QuickStop command

Scott Lahteine 10 роки тому
джерело
коміт
47847765e2
1 змінених файлів з 13 додано та 0 видалено
  1. 13
    0
      Marlin/Marlin_main.cpp

+ 13
- 0
Marlin/Marlin_main.cpp Переглянути файл

@@ -184,6 +184,7 @@
184 184
  * M405 - Turn on Filament Sensor extrusion control.  Optional D<delay in cm> to set delay in centimeters between sensor and extruder
185 185
  * M406 - Turn off Filament Sensor extrusion control
186 186
  * M407 - Display measured filament diameter
187
+ * M410 - Quickstop - Abort all the planned moves
187 188
  * M500 - Store parameters in EEPROM
188 189
  * M501 - Read parameters from EEPROM (if you need reset them after you changed them temporarily).
189 190
  * M502 - Revert to the default "factory settings". You still need to store them in EEPROM afterwards if you want to.
@@ -4377,6 +4378,14 @@ inline void gcode_M400() { st_synchronize(); }
4377 4378
 #endif // FILAMENT_SENSOR
4378 4379
 
4379 4380
 /**
4381
+ * M410: quickstop - Abort all planned moves
4382
+ *
4383
+ * This will stop the carriages mid-move, so most likely they
4384
+ * will be out of sync with the stepper position after this.
4385
+ */
4386
+inline void gcode_M410() { quickStop(); }
4387
+
4388
+/**
4380 4389
  * M500: Store settings in EEPROM
4381 4390
  */
4382 4391
 inline void gcode_M500() {
@@ -5195,6 +5204,10 @@ void process_commands() {
5195 5204
           break;
5196 5205
       #endif // FILAMENT_SENSOR
5197 5206
 
5207
+      case 410: // M410 quickstop - Abort all the planned moves.
5208
+        gcode_M410();
5209
+        break;
5210
+
5198 5211
       case 500: // M500 Store settings in EEPROM
5199 5212
         gcode_M500();
5200 5213
         break;

Завантаження…
Відмінити
Зберегти