From 3c7fa74d605aaf53e4e113135a290b9e734c5f1b Mon Sep 17 00:00:00 2001 From: 3d-gussner <3d.gussner@gmail.com> Date: Fri, 22 Nov 2024 08:22:37 +0100 Subject: [PATCH 1/2] Added HEATER_LOWER_TEMP 50 to lower instead of turining off the hotend temperature during a pause. Thanks for the request #4716 by @alexiri --- Firmware/Marlin_main.cpp | 4 ++++ Firmware/variants/MK25-RAMBo10a.h | 3 +++ Firmware/variants/MK25-RAMBo13a.h | 3 +++ Firmware/variants/MK25S-RAMBo10a.h | 3 +++ Firmware/variants/MK25S-RAMBo13a.h | 3 +++ Firmware/variants/MK3-E3DREVO.h | 3 +++ Firmware/variants/MK3-E3DREVO_HF_60W.h | 3 +++ Firmware/variants/MK3.h | 3 +++ Firmware/variants/MK3S-E3DREVO.h | 3 +++ Firmware/variants/MK3S-E3DREVO_HF_60W.h | 3 +++ Firmware/variants/MK3S.h | 3 +++ Firmware/variants/obsolete/1_75mm_MK2-RAMBo10a-E3Dv6full.h | 3 +++ Firmware/variants/obsolete/1_75mm_MK2-RAMBo13a-E3Dv6full.h | 3 +++ 13 files changed, 40 insertions(+) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index ad9860012b..4790e25c03 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -9877,7 +9877,11 @@ void long_pause() //long pause print // Stop heaters heating_status = HeatingStatus::NO_HEATING; +#ifdef HEATER_LOWER_TEMP + setTargetHotend(degHotend(active_extruder)- HEATER_LOWER_TEMP); +#else setTargetHotend(0); +#endif //HEATER_LOWER_TEMP // Lift z raise_z(pause_position[Z_AXIS]); diff --git a/Firmware/variants/MK25-RAMBo10a.h b/Firmware/variants/MK25-RAMBo10a.h index 4e02bf14f0..77c0fa4770 100644 --- a/Firmware/variants/MK25-RAMBo10a.h +++ b/Firmware/variants/MK25-RAMBo10a.h @@ -184,6 +184,9 @@ #endif #define BED_MAXTEMP 125 +//Lowertemp +#define HEATER_LOWER_TEMP 50 //lower hotend temperature by 50°C + #if defined(E3D_PT100_EXTRUDER_WITH_AMP) || defined(E3D_PT100_EXTRUDER_NO_AMP) // Define PID constants for extruder with PT100 #define DEFAULT_Kp 21.70 diff --git a/Firmware/variants/MK25-RAMBo13a.h b/Firmware/variants/MK25-RAMBo13a.h index 3b7a81408c..b5d9324f43 100644 --- a/Firmware/variants/MK25-RAMBo13a.h +++ b/Firmware/variants/MK25-RAMBo13a.h @@ -185,6 +185,9 @@ #endif #define BED_MAXTEMP 125 +//Lowertemp +#define HEATER_LOWER_TEMP 50 //lower hotend temperature by 50°C + #if defined(E3D_PT100_EXTRUDER_WITH_AMP) || defined(E3D_PT100_EXTRUDER_NO_AMP) // Define PID constants for extruder with PT100 #define DEFAULT_Kp 21.70 diff --git a/Firmware/variants/MK25S-RAMBo10a.h b/Firmware/variants/MK25S-RAMBo10a.h index 906ba6859c..60e8923377 100644 --- a/Firmware/variants/MK25S-RAMBo10a.h +++ b/Firmware/variants/MK25S-RAMBo10a.h @@ -184,6 +184,9 @@ #endif #define BED_MAXTEMP 125 +//Lowertemp +#define HEATER_LOWER_TEMP 50 //lower hotend temperature by 50°C + #if defined(E3D_PT100_EXTRUDER_WITH_AMP) || defined(E3D_PT100_EXTRUDER_NO_AMP) // Define PID constants for extruder with PT100 #define DEFAULT_Kp 21.70 diff --git a/Firmware/variants/MK25S-RAMBo13a.h b/Firmware/variants/MK25S-RAMBo13a.h index bb3ad41af9..6a2eb77924 100644 --- a/Firmware/variants/MK25S-RAMBo13a.h +++ b/Firmware/variants/MK25S-RAMBo13a.h @@ -185,6 +185,9 @@ #endif #define BED_MAXTEMP 125 +//Lowertemp +#define HEATER_LOWER_TEMP 50 //lower hotend temperature by 50°C + #if defined(E3D_PT100_EXTRUDER_WITH_AMP) || defined(E3D_PT100_EXTRUDER_NO_AMP) // Define PID constants for extruder with PT100 #define DEFAULT_Kp 21.70 diff --git a/Firmware/variants/MK3-E3DREVO.h b/Firmware/variants/MK3-E3DREVO.h index 9efb587ddc..0b67db093e 100644 --- a/Firmware/variants/MK3-E3DREVO.h +++ b/Firmware/variants/MK3-E3DREVO.h @@ -324,6 +324,9 @@ #define BED_MAXTEMP 125 #define AMBIENT_MAXTEMP 80 +//Lowertemp +#define HEATER_LOWER_TEMP 50 //lower hotend temperature by 50°C + #if defined(E3D_PT100_EXTRUDER_WITH_AMP) || defined(E3D_PT100_EXTRUDER_NO_AMP) // Define PID constants for extruder with PT100 #define DEFAULT_Kp 21.70 diff --git a/Firmware/variants/MK3-E3DREVO_HF_60W.h b/Firmware/variants/MK3-E3DREVO_HF_60W.h index 5ec1bdb8db..53def67ca1 100644 --- a/Firmware/variants/MK3-E3DREVO_HF_60W.h +++ b/Firmware/variants/MK3-E3DREVO_HF_60W.h @@ -324,6 +324,9 @@ #define BED_MAXTEMP 125 #define AMBIENT_MAXTEMP 80 +//Lowertemp +#define HEATER_LOWER_TEMP 50 //lower hotend temperature by 50°C + #if defined(E3D_PT100_EXTRUDER_WITH_AMP) || defined(E3D_PT100_EXTRUDER_NO_AMP) // Define PID constants for extruder with PT100 #define DEFAULT_Kp 21.70 diff --git a/Firmware/variants/MK3.h b/Firmware/variants/MK3.h index b9ab1ed3c0..0cc478a4bc 100644 --- a/Firmware/variants/MK3.h +++ b/Firmware/variants/MK3.h @@ -324,6 +324,9 @@ #define BED_MAXTEMP 125 #define AMBIENT_MAXTEMP 80 +//Lowertemp +#define HEATER_LOWER_TEMP 50 //lower hotend temperature by 50°C + #if defined(E3D_PT100_EXTRUDER_WITH_AMP) || defined(E3D_PT100_EXTRUDER_NO_AMP) // Define PID constants for extruder with PT100 #define DEFAULT_Kp 21.70 diff --git a/Firmware/variants/MK3S-E3DREVO.h b/Firmware/variants/MK3S-E3DREVO.h index d426d7d7de..952e8e8813 100644 --- a/Firmware/variants/MK3S-E3DREVO.h +++ b/Firmware/variants/MK3S-E3DREVO.h @@ -326,6 +326,9 @@ #define BED_MAXTEMP 125 #define AMBIENT_MAXTEMP 80 +//Lowertemp +#define HEATER_LOWER_TEMP 50 //lower hotend temperature by 50°C + #if defined(E3D_PT100_EXTRUDER_WITH_AMP) || defined(E3D_PT100_EXTRUDER_NO_AMP) // Define PID constants for extruder with PT100 #define DEFAULT_Kp 21.70 diff --git a/Firmware/variants/MK3S-E3DREVO_HF_60W.h b/Firmware/variants/MK3S-E3DREVO_HF_60W.h index de86f6c027..ed8c2d64e6 100644 --- a/Firmware/variants/MK3S-E3DREVO_HF_60W.h +++ b/Firmware/variants/MK3S-E3DREVO_HF_60W.h @@ -326,6 +326,9 @@ #define BED_MAXTEMP 125 #define AMBIENT_MAXTEMP 80 +//Lowertemp +#define HEATER_LOWER_TEMP 50 //lower hotend temperature by 50°C + #if defined(E3D_PT100_EXTRUDER_WITH_AMP) || defined(E3D_PT100_EXTRUDER_NO_AMP) // Define PID constants for extruder with PT100 #define DEFAULT_Kp 21.70 diff --git a/Firmware/variants/MK3S.h b/Firmware/variants/MK3S.h index 32ca987b02..7252a1039e 100644 --- a/Firmware/variants/MK3S.h +++ b/Firmware/variants/MK3S.h @@ -326,6 +326,9 @@ #define BED_MAXTEMP 125 #define AMBIENT_MAXTEMP 80 +//Lowertemp +#define HEATER_LOWER_TEMP 50 //lower hotend temperature by 50°C + #if defined(E3D_PT100_EXTRUDER_WITH_AMP) || defined(E3D_PT100_EXTRUDER_NO_AMP) // Define PID constants for extruder with PT100 #define DEFAULT_Kp 21.70 diff --git a/Firmware/variants/obsolete/1_75mm_MK2-RAMBo10a-E3Dv6full.h b/Firmware/variants/obsolete/1_75mm_MK2-RAMBo10a-E3Dv6full.h index b9c970b370..0e2be257d5 100644 --- a/Firmware/variants/obsolete/1_75mm_MK2-RAMBo10a-E3Dv6full.h +++ b/Firmware/variants/obsolete/1_75mm_MK2-RAMBo10a-E3Dv6full.h @@ -117,6 +117,9 @@ EXTRUDER SETTINGS #endif #define BED_MAXTEMP 150 +//Lowertemp +#define HEATER_LOWER_TEMP 50 //lower hotend temperature by 50°C + #if defined(E3D_PT100_EXTRUDER_WITH_AMP) || defined(E3D_PT100_EXTRUDER_NO_AMP) // Define PID constants for extruder with PT100 #define DEFAULT_Kp 21.70 diff --git a/Firmware/variants/obsolete/1_75mm_MK2-RAMBo13a-E3Dv6full.h b/Firmware/variants/obsolete/1_75mm_MK2-RAMBo13a-E3Dv6full.h index b89d95f9be..168bbc8ba7 100644 --- a/Firmware/variants/obsolete/1_75mm_MK2-RAMBo13a-E3Dv6full.h +++ b/Firmware/variants/obsolete/1_75mm_MK2-RAMBo13a-E3Dv6full.h @@ -116,6 +116,9 @@ EXTRUDER SETTINGS #endif #define BED_MAXTEMP 150 +//Lowertemp +#define HEATER_LOWER_TEMP 50 //lower hotend temperature by 50°C + #if defined(E3D_PT100_EXTRUDER_WITH_AMP) || defined(E3D_PT100_EXTRUDER_NO_AMP) // Define PID constants for extruder with PT100 #define DEFAULT_Kp 21.70 From fa45b97d4aba823fc552ec95f866c260fc5dd97c Mon Sep 17 00:00:00 2001 From: 3d-gussner <3d.gussner@gmail.com> Date: Fri, 22 Nov 2024 16:02:18 +0100 Subject: [PATCH 2/2] Use target_temperature --- Firmware/Marlin_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 4790e25c03..18697d14af 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -9878,7 +9878,7 @@ void long_pause() //long pause print // Stop heaters heating_status = HeatingStatus::NO_HEATING; #ifdef HEATER_LOWER_TEMP - setTargetHotend(degHotend(active_extruder)- HEATER_LOWER_TEMP); + setTargetHotend(target_temperature[active_extruder]- HEATER_LOWER_TEMP); #else setTargetHotend(0); #endif //HEATER_LOWER_TEMP