[1.1.x] Update Thermal Protection Documentation (#8282)
* Fix thermal protection documentation. Even before the recent thermal protection changes, the documentation of the thermal protection feature in the config files did not match the implementation. I fixed the documentation and reconciled the M303 implementation with the documentation. * Applied documentation changes to sample config files * Renamed hysteresis to watch_temp_increase * Added gcodes back into documentation.
This commit is contained in:
committed by
Scott Lahteine
parent
abb15bc30a
commit
094bebcc2d
@@ -240,20 +240,20 @@ uint8_t Temperature::soft_pwm_amount[HOTENDS],
|
||||
;
|
||||
const int8_t watch_temp_period =
|
||||
#if ENABLED(THERMAL_PROTECTION_BED) && ENABLED(PIDTEMPBED) && ENABLED(THERMAL_PROTECTION_HOTENDS) && ENABLED(PIDTEMP)
|
||||
hotend < 0 ? temp - THERMAL_PROTECTION_BED_PERIOD : THERMAL_PROTECTION_PERIOD
|
||||
hotend < 0 ? WATCH_BED_TEMP_PERIOD : WATCH_TEMP_PERIOD
|
||||
#elif ENABLED(THERMAL_PROTECTION_BED) && ENABLED(PIDTEMPBED)
|
||||
THERMAL_PROTECTION_BED_PERIOD
|
||||
WATCH_BED_TEMP_PERIOD
|
||||
#else
|
||||
THERMAL_PROTECTION_PERIOD
|
||||
WATCH_TEMP_PERIOD
|
||||
#endif
|
||||
;
|
||||
const int8_t hysteresis =
|
||||
const int8_t watch_temp_increase =
|
||||
#if ENABLED(THERMAL_PROTECTION_BED) && ENABLED(PIDTEMPBED) && ENABLED(THERMAL_PROTECTION_HOTENDS) && ENABLED(PIDTEMP)
|
||||
hotend < 0 ? TEMP_BED_HYSTERESIS : TEMP_HYSTERESIS
|
||||
hotend < 0 ? WATCH_BED_TEMP_INCREASE : WATCH_TEMP_INCREASE
|
||||
#elif ENABLED(THERMAL_PROTECTION_BED) && ENABLED(PIDTEMPBED)
|
||||
TEMP_BED_HYSTERESIS
|
||||
WATCH_BED_TEMP_INCREASE
|
||||
#else
|
||||
TEMP_HYSTERESIS
|
||||
WATCH_TEMP_INCREASE
|
||||
#endif
|
||||
;
|
||||
millis_t temp_change_ms = next_temp_ms + watch_temp_period * 1000UL;
|
||||
@@ -430,10 +430,12 @@ uint8_t Temperature::soft_pwm_amount[HOTENDS],
|
||||
#if WATCH_THE_BED || WATCH_HOTENDS
|
||||
if (!heated && input > next_watch_temp) {
|
||||
if (input > watch_temp_target) heated = true;
|
||||
next_watch_temp = input + hysteresis;
|
||||
next_watch_temp = input + watch_temp_increase;
|
||||
temp_change_ms = ms + watch_temp_period * 1000UL;
|
||||
}
|
||||
else if ((!heated && ELAPSED(ms, temp_change_ms)) || (heated && input < temp - MAX_OVERSHOOT_PID_AUTOTUNE))
|
||||
else if (!heated && ELAPSED(ms, temp_change_ms))
|
||||
_temp_error(hotend, PSTR(MSG_T_HEATING_FAILED), PSTR(MSG_HEATING_FAILED_LCD));
|
||||
else if (heated && input < temp - MAX_OVERSHOOT_PID_AUTOTUNE)
|
||||
_temp_error(hotend, PSTR(MSG_T_THERMAL_RUNAWAY), PSTR(MSG_THERMAL_RUNAWAY));
|
||||
#endif
|
||||
} // every 2 seconds
|
||||
|
||||
Reference in New Issue
Block a user