M600 updated
This commit is contained in:
parent
1b120bf500
commit
06063118bd
|
|
@ -11,3 +11,4 @@ Firmware/Doc
|
||||||
/Firmware/Firmware.vcxproj.filters
|
/Firmware/Firmware.vcxproj.filters
|
||||||
/Firmware/Firmware - Shortcut.lnk
|
/Firmware/Firmware - Shortcut.lnk
|
||||||
/Firmware/variants/1_75mm_MK3-MMU-EINSy10a-E3Dv6full.h.bak
|
/Firmware/variants/1_75mm_MK3-MMU-EINSy10a-E3Dv6full.h.bak
|
||||||
|
/Firmware/Marlin_main.cpp~RF12cfae7.TMP
|
||||||
|
|
|
||||||
|
|
@ -3117,9 +3117,9 @@ void gcode_M600(bool automatic, float x_position, float y_position, float z_shif
|
||||||
|
|
||||||
// Unload filament
|
// Unload filament
|
||||||
#if defined (SNMM) || defined (SNMM_V2)
|
#if defined (SNMM) || defined (SNMM_V2)
|
||||||
extr_unload(); //unload just current filament
|
extr_unload(); //unload just current filament for multimaterial printers (used also in M702)
|
||||||
#else
|
#else
|
||||||
unload_filament(); //unload filament fopr single material (used also in M702)
|
unload_filament(); //unload filament for single material (used also in M702)
|
||||||
#endif
|
#endif
|
||||||
//finish moves
|
//finish moves
|
||||||
st_synchronize();
|
st_synchronize();
|
||||||
|
|
@ -3159,7 +3159,7 @@ void gcode_M600(bool automatic, float x_position, float y_position, float z_shif
|
||||||
st_synchronize();
|
st_synchronize();
|
||||||
|
|
||||||
//Unretract
|
//Unretract
|
||||||
current_position[E_AXIS]= current_position[E_AXIS] - FILAMENTCHANGE_FIRSTRETRACT;
|
current_position[E_AXIS]= current_position[E_AXIS] - e_shift;
|
||||||
plan_buffer_line(lastpos[X_AXIS], lastpos[Y_AXIS], lastpos[Z_AXIS], current_position[E_AXIS], FILAMENTCHANGE_RFEED, active_extruder);
|
plan_buffer_line(lastpos[X_AXIS], lastpos[Y_AXIS], lastpos[Z_AXIS], current_position[E_AXIS], FILAMENTCHANGE_RFEED, active_extruder);
|
||||||
st_synchronize();
|
st_synchronize();
|
||||||
|
|
||||||
|
|
@ -9076,10 +9076,15 @@ void M600_wait_for_user() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void mmu_M600_load_filament(bool automatic) {
|
void mmu_M600_load_filament(bool automatic) {
|
||||||
|
//load filament for mmu v2
|
||||||
#ifdef SNMM_V2
|
#ifdef SNMM_V2
|
||||||
bool response = false;
|
bool response = false;
|
||||||
|
bool yes = false;
|
||||||
if (!automatic) {
|
if (!automatic) {
|
||||||
tmp_extruder = choose_extruder_menu();
|
yes = lcd_show_fullscreen_message_yes_no_and_wait_P(_i("Do you want to switch extruder?"), false);
|
||||||
|
if(yes) tmp_extruder = choose_extruder_menu();
|
||||||
|
else tmp_extruder = snmm_extruder;
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
tmp_extruder = (tmp_extruder+1)%5;
|
tmp_extruder = (tmp_extruder+1)%5;
|
||||||
|
|
@ -9130,6 +9135,7 @@ void M600_load_filament_movements() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void M600_load_filament() {
|
void M600_load_filament() {
|
||||||
|
//load filament for single material and SNMM
|
||||||
lcd_wait_interact();
|
lcd_wait_interact();
|
||||||
|
|
||||||
//load_filament_time = millis();
|
//load_filament_time = millis();
|
||||||
|
|
|
||||||
|
|
@ -5356,7 +5356,7 @@ void extr_adj(int extruder) //loading filament for SNMM
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void extr_unload() { //unloads filament
|
void extr_unload() { //unload just current filament for multimaterial printers
|
||||||
#ifndef SNMM_V2
|
#ifndef SNMM_V2
|
||||||
float tmp_motor[3] = DEFAULT_PWM_MOTOR_CURRENT;
|
float tmp_motor[3] = DEFAULT_PWM_MOTOR_CURRENT;
|
||||||
float tmp_motor_loud[3] = DEFAULT_PWM_MOTOR_CURRENT_LOUD;
|
float tmp_motor_loud[3] = DEFAULT_PWM_MOTOR_CURRENT_LOUD;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue