unload filament can be repeated
This commit is contained in:
parent
059c255a35
commit
020a7ec257
@ -5428,25 +5428,28 @@ case 404: //M404 Enter the nominal filament width (3mm, 1.75mm ) N<3.0> or disp
|
|||||||
|
|
||||||
}
|
}
|
||||||
WRITE(BEEPER, LOW);
|
WRITE(BEEPER, LOW);
|
||||||
KEEPALIVE_STATE(IN_HANDLER);
|
|
||||||
|
|
||||||
|
lcd_change_fil_state = 0;
|
||||||
|
while (lcd_change_fil_state == 0) {
|
||||||
|
lcd_display_message_fullscreen_P(MSG_UNLOADING_FILAMENT);
|
||||||
|
KEEPALIVE_STATE(IN_HANDLER);
|
||||||
custom_message = true;
|
custom_message = true;
|
||||||
lcd_setstatuspgm(MSG_UNLOADING_FILAMENT);
|
lcd_setstatuspgm(MSG_UNLOADING_FILAMENT);
|
||||||
|
|
||||||
// Unload filament
|
// Unload filament
|
||||||
if(code_seen('L'))
|
if (code_seen('L'))
|
||||||
{
|
{
|
||||||
target[E_AXIS]+= code_value();
|
target[E_AXIS] += code_value();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#ifdef SNMM
|
#ifdef SNMM
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#ifdef FILAMENTCHANGE_FINALRETRACT
|
#ifdef FILAMENTCHANGE_FINALRETRACT
|
||||||
target[E_AXIS] += FILAMENTCHANGE_FINALRETRACT;
|
target[E_AXIS] += FILAMENTCHANGE_FINALRETRACT;
|
||||||
#endif
|
#endif
|
||||||
#endif // SNMM
|
#endif // SNMM
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SNMM
|
#ifdef SNMM
|
||||||
@ -5461,13 +5464,13 @@ case 404: //M404 Enter the nominal filament width (3mm, 1.75mm ) N<3.0> or disp
|
|||||||
plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], 50, active_extruder);
|
plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], 50, active_extruder);
|
||||||
target[E_AXIS] += (FIL_COOLING*-1);
|
target[E_AXIS] += (FIL_COOLING*-1);
|
||||||
plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], 50, active_extruder);
|
plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], 50, active_extruder);
|
||||||
target[E_AXIS] += (bowden_length[snmm_extruder] *-1);
|
target[E_AXIS] += (bowden_length[snmm_extruder] * -1);
|
||||||
plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], 3000, active_extruder);
|
plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], 3000, active_extruder);
|
||||||
st_synchronize();
|
st_synchronize();
|
||||||
|
|
||||||
#else
|
#else
|
||||||
// plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], FILAMENTCHANGE_RFEED, active_extruder);
|
// plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], FILAMENTCHANGE_RFEED, active_extruder);
|
||||||
plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], 3500/60, active_extruder);
|
plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], 3500 / 60, active_extruder);
|
||||||
#endif // SNMM
|
#endif // SNMM
|
||||||
|
|
||||||
|
|
||||||
@ -5478,7 +5481,11 @@ case 404: //M404 Enter the nominal filament width (3mm, 1.75mm ) N<3.0> or disp
|
|||||||
disable_e1();
|
disable_e1();
|
||||||
disable_e2();
|
disable_e2();
|
||||||
delay(100);
|
delay(100);
|
||||||
|
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
||||||
|
lcd_change_fil_state = !lcd_show_fullscreen_message_yes_no_and_wait_P(MSG_UNLOAD_SUCCESSFULL, false, false);
|
||||||
|
//lcd_return_to_status();
|
||||||
|
lcd_update_enable(true);
|
||||||
|
}
|
||||||
//Wait for user to insert filament
|
//Wait for user to insert filament
|
||||||
lcd_wait_interact();
|
lcd_wait_interact();
|
||||||
//load_filament_time = millis();
|
//load_filament_time = millis();
|
||||||
|
@ -1953,6 +1953,13 @@ const char * const MSG_UNLOAD_FILAMENT_4_LANG_TABLE[LANG_NUM] PROGMEM = {
|
|||||||
MSG_UNLOAD_FILAMENT_4_CZ
|
MSG_UNLOAD_FILAMENT_4_CZ
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const char MSG_UNLOAD_SUCCESSFULL_EN[] PROGMEM = "Repeat unloading filament?";
|
||||||
|
const char MSG_UNLOAD_SUCCESSFULL_CZ[] PROGMEM = "Opakovat vysunuti filamentu?";
|
||||||
|
const char * const MSG_UNLOAD_SUCCESSFULL_LANG_TABLE[LANG_NUM] PROGMEM = {
|
||||||
|
MSG_UNLOAD_SUCCESSFULL_EN,
|
||||||
|
MSG_UNLOAD_SUCCESSFULL_CZ
|
||||||
|
};
|
||||||
|
|
||||||
const char MSG_USB_PRINTING_EN[] PROGMEM = "USB printing ";
|
const char MSG_USB_PRINTING_EN[] PROGMEM = "USB printing ";
|
||||||
const char MSG_USB_PRINTING_CZ[] PROGMEM = "Tisk z USB ";
|
const char MSG_USB_PRINTING_CZ[] PROGMEM = "Tisk z USB ";
|
||||||
const char * const MSG_USB_PRINTING_LANG_TABLE[LANG_NUM] PROGMEM = {
|
const char * const MSG_USB_PRINTING_LANG_TABLE[LANG_NUM] PROGMEM = {
|
||||||
|
@ -652,6 +652,8 @@ extern const char* const MSG_UNLOAD_FILAMENT_3_LANG_TABLE[LANG_NUM];
|
|||||||
#define MSG_UNLOAD_FILAMENT_3 LANG_TABLE_SELECT(MSG_UNLOAD_FILAMENT_3_LANG_TABLE)
|
#define MSG_UNLOAD_FILAMENT_3 LANG_TABLE_SELECT(MSG_UNLOAD_FILAMENT_3_LANG_TABLE)
|
||||||
extern const char* const MSG_UNLOAD_FILAMENT_4_LANG_TABLE[LANG_NUM];
|
extern const char* const MSG_UNLOAD_FILAMENT_4_LANG_TABLE[LANG_NUM];
|
||||||
#define MSG_UNLOAD_FILAMENT_4 LANG_TABLE_SELECT(MSG_UNLOAD_FILAMENT_4_LANG_TABLE)
|
#define MSG_UNLOAD_FILAMENT_4 LANG_TABLE_SELECT(MSG_UNLOAD_FILAMENT_4_LANG_TABLE)
|
||||||
|
extern const char* const MSG_UNLOAD_SUCCESSFULL_LANG_TABLE[LANG_NUM];
|
||||||
|
#define MSG_UNLOAD_SUCCESSFULL LANG_TABLE_SELECT(MSG_UNLOAD_SUCCESSFULL_LANG_TABLE)
|
||||||
extern const char* const MSG_USB_PRINTING_LANG_TABLE[LANG_NUM];
|
extern const char* const MSG_USB_PRINTING_LANG_TABLE[LANG_NUM];
|
||||||
#define MSG_USB_PRINTING LANG_TABLE_SELECT(MSG_USB_PRINTING_LANG_TABLE)
|
#define MSG_USB_PRINTING LANG_TABLE_SELECT(MSG_USB_PRINTING_LANG_TABLE)
|
||||||
extern const char* const MSG_USED_LANG_TABLE[LANG_NUM];
|
extern const char* const MSG_USED_LANG_TABLE[LANG_NUM];
|
||||||
|
@ -351,3 +351,4 @@
|
|||||||
#define MSG_PLACE_STEEL_SHEET "Umistete prosim tiskovy plat na heatbed"
|
#define MSG_PLACE_STEEL_SHEET "Umistete prosim tiskovy plat na heatbed"
|
||||||
#define MSG_RECOVER_PRINT "Detekovan vypadek proudu.Obnovit tisk?"
|
#define MSG_RECOVER_PRINT "Detekovan vypadek proudu.Obnovit tisk?"
|
||||||
#define MSG_PRESS_TO_UNLOAD "Pro vysunuti filamentu stisknete prosim tlacitko"
|
#define MSG_PRESS_TO_UNLOAD "Pro vysunuti filamentu stisknete prosim tlacitko"
|
||||||
|
#define MSG_UNLOAD_SUCCESSFULL "Opakovat vysunuti filamentu?"
|
@ -367,3 +367,4 @@
|
|||||||
#define(length=17, lines=1) MSG_FANS_CHECK_ON "Fans check [on]"
|
#define(length=17, lines=1) MSG_FANS_CHECK_ON "Fans check [on]"
|
||||||
#define(length=17, lines=1) MSG_FANS_CHECK_OFF "Fans check [off]"
|
#define(length=17, lines=1) MSG_FANS_CHECK_OFF "Fans check [off]"
|
||||||
#define(length=20, lines=4) MSG_PRESS_TO_UNLOAD "Please press the knob to unload filament"
|
#define(length=20, lines=4) MSG_PRESS_TO_UNLOAD "Please press the knob to unload filament"
|
||||||
|
#define(length=20, lines=2) MSG_UNLOAD_SUCCESSFULL "Repeat unloading filament?"
|
||||||
|
Loading…
Reference in New Issue
Block a user