Ad un tratto....problemi risclad. e temp. fuori controllo September 19, 2018 04:37PM |
Registered: 9 years ago Posts: 81 |
Re: Ad un tratto....problemi risclad. e temp. fuori controllo September 20, 2018 10:32AM |
Registered: 9 years ago Posts: 3,268 |
Re: Ad un tratto....problemi risclad. e temp. fuori controllo September 20, 2018 03:56PM |
Registered: 9 years ago Posts: 81 |
// Check if temperature is within the correct range soft_pwm[e] = (current_temperature[e] > minttemp[e] || is_preheating(e)) && current_temperature[e] < maxttemp[e] ? (int)pid_output >> 1 : 0; // Check if the temperature is failing to increase #if WATCH_HOTENDS // Is it time to check this extruder's heater? if (watch_heater_next_ms[e] && ELAPSED(ms, watch_heater_next_ms[e])) { // Has it failed to increase enough? if (degHotend(e) < watch_target_temp[e]) { // Stop! _temp_error(e, PSTR(MSG_T_HEATING_FAILED), PSTR(MSG_HEATING_FAILED_LCD)); } else { // Start again if the target is still far off start_watching_heater(e); } } #endif // THERMAL_PROTECTION_HOTENDS // Check if the temperature is failing to increase #if WATCH_THE_BED // Is it time to check the bed? if (watch_bed_next_ms && ELAPSED(ms, watch_bed_next_ms)) { // Has it failed to increase enough? if (degBed() < watch_target_bed_temp) { // Stop! _temp_error(-1, PSTR(MSG_T_HEATING_FAILED), PSTR(MSG_HEATING_FAILED_LCD)); } else { // Start again if the target is still far off start_watching_bed(); } }
int heater_index = heater_id >= 0 ? heater_id : HOTENDS; // If the target temperature changes, restart if (tr_target_temperature[heater_index] != target) { tr_target_temperature[heater_index] = target; *state = target > 0 ? TRFirstHeating : TRInactive; } switch (*state) { // Inactive state waits for a target temperature to be set case TRInactive: break; // When first heating, wait for the temperature to be reached then go to Stable state case TRFirstHeating: if (current < tr_target_temperature[heater_index]) break; *state = TRStable; // While the temperature is stable watch for a bad temperature case TRStable: if (current >= tr_target_temperature[heater_index] - hysteresis_degc) { *timer = millis() + period_seconds * 1000UL; break; } else if (PENDING(millis(), *timer)) break; *state = TRRunaway; case TRRunaway: _temp_error(heater_id, PSTR(MSG_T_THERMAL_RUNAWAY), PSTR(MSG_THERMAL_RUNAWAY)); }
Re: Ad un tratto....problemi risclad. e temp. fuori controllo September 20, 2018 06:09PM |
Registered: 6 years ago Posts: 1,059 |
Re: Ad un tratto....problemi risclad. e temp. fuori controllo October 25, 2018 03:53PM |
Registered: 9 years ago Posts: 81 |
Re: Ad un tratto....problemi risclad. e temp. fuori controllo October 27, 2018 03:24AM |
Registered: 9 years ago Posts: 6,409 |
Re: Ad un tratto....problemi risclad. e temp. fuori controllo October 27, 2018 05:18AM |
Registered: 9 years ago Posts: 81 |
Re: Ad un tratto....problemi risclad. e temp. fuori controllo October 27, 2018 05:44PM |
Registered: 9 years ago Posts: 81 |
Re: Ad un tratto....problemi risclad. e temp. fuori controllo October 28, 2018 06:57AM |
Registered: 6 years ago Posts: 1,059 |
Re: Ad un tratto....problemi risclad. e temp. fuori controllo December 04, 2018 05:13AM |
Registered: 7 years ago Posts: 32 |