Browse Source

Check the temperature before filament change

Scott Lahteine 9 years ago
parent
commit
4ce9ddbb74
3 changed files with 8 additions and 0 deletions
  1. 6
    0
      Marlin/Marlin_main.cpp
  2. 1
    0
      Marlin/configurator/config/language.h
  3. 1
    0
      Marlin/language.h

+ 6
- 0
Marlin/Marlin_main.cpp View File

@@ -4891,6 +4891,12 @@ inline void gcode_M503() {
4891 4891
    */
4892 4892
   inline void gcode_M600() {
4893 4893
     float target[NUM_AXIS], lastpos[NUM_AXIS], fr60 = feedrate / 60;
4894
+    if (degHotend(active_extruder) < extrude_min_temp) {
4895
+      SERIAL_ERROR_START;
4896
+      SERIAL_ERRORLNPGM(MSG_TOO_COLD_FOR_M600);
4897
+      return;
4898
+    }
4899
+
4894 4900
     for (int i=0; i<NUM_AXIS; i++)
4895 4901
       target[i] = lastpos[i] = current_position[i];
4896 4902
 

+ 1
- 0
Marlin/configurator/config/language.h View File

@@ -170,6 +170,7 @@
170 170
 #define MSG_ENDSTOPS_HIT                    "endstops hit: "
171 171
 #define MSG_ERR_COLD_EXTRUDE_STOP           " cold extrusion prevented"
172 172
 #define MSG_ERR_LONG_EXTRUDE_STOP           " too long extrusion prevented"
173
+#define MSG_TOO_COLD_FOR_M600               "M600 Hotend too cold to change filament"
173 174
 #define MSG_BABYSTEPPING_X                  "Babystepping X"
174 175
 #define MSG_BABYSTEPPING_Y                  "Babystepping Y"
175 176
 #define MSG_BABYSTEPPING_Z                  "Babystepping Z"

+ 1
- 0
Marlin/language.h View File

@@ -171,6 +171,7 @@
171 171
 #define MSG_ENDSTOPS_HIT                    "endstops hit: "
172 172
 #define MSG_ERR_COLD_EXTRUDE_STOP           " cold extrusion prevented"
173 173
 #define MSG_ERR_LONG_EXTRUDE_STOP           " too long extrusion prevented"
174
+#define MSG_TOO_COLD_FOR_M600               "M600 Hotend too cold to change filament"
174 175
 #define MSG_BABYSTEPPING_X                  "Babystepping X"
175 176
 #define MSG_BABYSTEPPING_Y                  "Babystepping Y"
176 177
 #define MSG_BABYSTEPPING_Z                  "Babystepping Z"

Loading…
Cancel
Save