adjust loading routine

This commit is contained in:
Siwat Sirichai 2022-01-31 22:44:21 +07:00
parent f2d2b123f2
commit 858a3b1b34
4 changed files with 34 additions and 20 deletions

View File

@ -69,7 +69,7 @@
#define X_MIN_POS 0 #define X_MIN_POS 0
#define Y_MAX_POS 212.5 #define Y_MAX_POS 212.5
#define Y_MIN_POS -4 //orig -4 #define Y_MIN_POS -4 //orig -4
#define Z_MAX_POS 210 #define Z_MAX_POS 207
#define Z_MIN_POS 0.15 #define Z_MIN_POS 0.15
// Canceled home position // Canceled home position
@ -104,7 +104,7 @@
#define DEFAULT_ACCELERATION 1250 // X, Y, Z and E max acceleration in mm/s^2 for printing moves (M204S) #define DEFAULT_ACCELERATION 1250 // X, Y, Z and E max acceleration in mm/s^2 for printing moves (M204S)
#define DEFAULT_RETRACT_ACCELERATION 1250 // X, Y, Z and E max acceleration in mm/s^2 for retracts (M204T) #define DEFAULT_RETRACT_ACCELERATION 1250 // X, Y, Z and E max acceleration in mm/s^2 for retracts (M204T)
#define MANUAL_FEEDRATE {2700, 2700, 1000, 100} // set the speeds for manual moves (mm/min) #define MANUAL_FEEDRATE {2700, 2700, 1000, 350} // set the speeds for manual moves (mm/min)
//Silent mode limits //Silent mode limits
#define SILENT_MAX_ACCEL_XY 960ul // max acceleration in silent mode in mm/s^2 #define SILENT_MAX_ACCEL_XY 960ul // max acceleration in silent mode in mm/s^2
@ -343,7 +343,7 @@
// Unload filament commands // Unload filament commands
#define UNLOAD_FILAMENT_0 "M83" #define UNLOAD_FILAMENT_0 "M83"
#define UNLOAD_FILAMENT_1 "G1 E-80 F7000" #define UNLOAD_FILAMENT_1 "G1 E-80 F15000"
/*------------------------------------ /*------------------------------------
CHANGE FILAMENT SETTINGS CHANGE FILAMENT SETTINGS
@ -490,7 +490,7 @@
#define FARM_PREHEAT_HOTEND_TEMP 250 #define FARM_PREHEAT_HOTEND_TEMP 250
#define FARM_PREHEAT_HPB_TEMP 80 #define FARM_PREHEAT_HPB_TEMP 80
#define PLA_PREHEAT_HOTEND_TEMP 215 #define PLA_PREHEAT_HOTEND_TEMP 200
#define PLA_PREHEAT_HPB_TEMP 60 #define PLA_PREHEAT_HPB_TEMP 60
#define ASA_PREHEAT_HOTEND_TEMP 260 #define ASA_PREHEAT_HOTEND_TEMP 260

View File

@ -1121,10 +1121,10 @@ void extr_unload()
plan_buffer_line_curposXYZE(25, active_extruder); plan_buffer_line_curposXYZE(25, active_extruder);
} }
current_position[E_AXIS] += 10; //extrusion //current_position[E_AXIS] += 10; //extrusion
plan_buffer_line_curposXYZE(10, active_extruder); //plan_buffer_line_curposXYZE(10, active_extruder);
st_current_set(2, E_MOTOR_HIGH_CURRENT); st_current_set(2, E_MOTOR_HIGH_CURRENT);
if (current_temperature[0] < 230) { //PLA & all other filaments /* if (current_temperature[0] < 230) { //PLA & all other filaments
current_position[E_AXIS] += 5.4; current_position[E_AXIS] += 5.4;
plan_buffer_line_curposXYZE(2800 / 60, active_extruder); plan_buffer_line_curposXYZE(2800 / 60, active_extruder);
current_position[E_AXIS] += 3.2; current_position[E_AXIS] += 3.2;
@ -1142,15 +1142,19 @@ void extr_unload()
/*current_position[X_AXIS] += 23; //delay /*current_position[X_AXIS] += 23; //delay
plan_buffer_line_curposXYZE(600 / 60, active_extruder); //delay plan_buffer_line_curposXYZE(600 / 60, active_extruder); //delay
current_position[X_AXIS] -= 23; //delay current_position[X_AXIS] -= 23; //delay
plan_buffer_line_curposXYZE(600 / 60, active_extruder); //delay*/ plan_buffer_line_curposXYZE(600 / 60, active_extruder); //delay
delay_keep_alive(4700); delay_keep_alive(4700);
} } */
max_feedrate[E_AXIS] = 80; max_feedrate[E_AXIS] = 160;
current_position[E_AXIS] -= (bowden_length[mmu_extruder] + 60 + FIL_LOAD_LENGTH) / 2; current_position[E_AXIS] -= 50;
plan_buffer_line_curposXYZE(500, active_extruder); plan_buffer_line_curposXYZE(40000 / 60, active_extruder);
current_position[E_AXIS] -= (bowden_length[mmu_extruder] + 60 + FIL_LOAD_LENGTH) / 2; st_synchronize();
plan_buffer_line_curposXYZE(500, active_extruder); current_position[E_AXIS] += 42;
plan_buffer_line_curposXYZE(500 / 60, active_extruder);
st_synchronize();
current_position[E_AXIS] -= 120;
plan_buffer_line_curposXYZE(40000 / 60, active_extruder);
st_synchronize(); st_synchronize();
//st_current_init(); //st_current_init();
if (SilentMode != SILENT_MODE_OFF) st_current_set(2, tmp_motor[2]); //set back to normal operation currents if (SilentMode != SILENT_MODE_OFF) st_current_set(2, tmp_motor[2]); //set back to normal operation currents

View File

@ -6362,14 +6362,14 @@ void unload_filament()
// extr_unload2(); // extr_unload2();
current_position[E_AXIS] -= 45; current_position[E_AXIS] -= 50;
plan_buffer_line_curposXYZE(5200 / 60, active_extruder); plan_buffer_line_curposXYZE(40000 / 60, active_extruder);
st_synchronize(); st_synchronize();
current_position[E_AXIS] -= 15; current_position[E_AXIS] += 42;
plan_buffer_line_curposXYZE(1000 / 60, active_extruder); plan_buffer_line_curposXYZE(500 / 60, active_extruder);
st_synchronize(); st_synchronize();
current_position[E_AXIS] -= 20; current_position[E_AXIS] -= 120;
plan_buffer_line_curposXYZE(1000 / 60, active_extruder); plan_buffer_line_curposXYZE(40000 / 60, active_extruder);
st_synchronize(); st_synchronize();
lcd_display_message_fullscreen_P(_T(MSG_PULL_OUT_FILAMENT)); lcd_display_message_fullscreen_P(_T(MSG_PULL_OUT_FILAMENT));

10
z-gantry.txt Normal file
View File

@ -0,0 +1,10 @@
206
207
208 X
209 X
210 X
211 X
212 X
213
214
215