<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>THERMAL RUNAWAY PROTECTION</title>
        <description> Buongiorno a tutti 
Sono un felice possessore di una Stampante Prusai3 interamente autocostruita (no kits).
Ho da poco effettuato l&#039;upgrade hardware con l&#039;aggiunta del letto di stampa riscaldato utilizzando un Heated Bed standard MK2 collegato alla RAMPS.
Funziona tutto regolarmente ma se provo ad aumentare la temperatura del Heated Bed dal pannello della stampante durante la stampa, 
questa si ferma con il messaggio  &quot;THERMAL RUNAWAY PROTECTION&quot;

Ho visto che in Marlin è presente la sezione ====Thermal Runaway Protection==== 
ed oltre alla spiegazione che mi sono letto
sono presenti le righe 

// Parameters for all extruder heaters
define THERMAL_RUNAWAY_PROTECTION_PERIOD 40 //in seconds
define THERMAL_RUNAWAY_PROTECTION_HYSTERESIS 4 // in degree Celsius

// Parameters for the bed heater
#define THERMAL_RUNAWAY_PROTECTION_BED_PERIOD 20 //in seconds
#define THERMAL_RUNAWAY_PROTECTION_BED_HYSTERESIS 2 // in degree Celsius

Queste ultime 2 righe relative all&#039;Heated Bed erano commentate ed ho dovuto decommentarle altrimenti Arduino non mi flashava il FW.

Le stampe funzionano benissimo ma non posso aumentare nemmeno di qualche grado la temperatura dell&#039; Heated Bed durante la stampa mendiante il pannello della stampante pena il blocco della stampa con l&#039;errore &quot;THERMAL RUNAWAY PROTECTION&quot; .

Se cambio le temperature dell&#039;Hot End invece non si blocca nulla.

Voglio precisare che stampo sempre in Stand Alone dalla SD. No connessione USB con il PC.

Soprattutto durante le prove (visto che ho appena montato il letto riscaldato trovo che sia utile poter smanettare dal pannello durante le stampa per trovare i valori di temperatura ottimali.

C&#039;è un modo per evitare questo errore?</description>
        <link>https://reprap.org/forum/read.php?361,510908,510908#msg-510908</link>
        <lastBuildDate>Fri, 14 Aug 2026 11:40:50 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?361,510908,616090#msg-616090</guid>
            <title>Re: THERMAL RUNAWAY PROTECTION</title>
            <link>https://reprap.org/forum/read.php?361,510908,616090#msg-616090</link>
            <description><![CDATA[ Mi dispiace per il mio italiano vorrei chiederti un consiglio, perché io ho lo stesso problema mio poster Prusa I2 "Runaway termica, sistema fermato Heater _ID: 0" e si ferma.]]></description>
            <dc:creator>Cdric</dc:creator>
            <category>GCODE, Software e Firmware</category>
            <pubDate>Tue, 26 Jan 2016 15:15:09 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?361,510908,511471#msg-511471</guid>
            <title>Re: THERMAL RUNAWAY PROTECTION</title>
            <link>https://reprap.org/forum/read.php?361,510908,511471#msg-511471</link>
            <description><![CDATA[ Grazie Mago<br />
Ho scaricato MarlinKimbra. Mi studio un attimo la tua guida e lo carico nella mia Prusa i3.<br />
Poi ti dico come va.<br />
<br />
Ciao e grazie per il tuo consiglio.]]></description>
            <dc:creator>DANYARD</dc:creator>
            <category>GCODE, Software e Firmware</category>
            <pubDate>Wed, 20 May 2015 15:40:46 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?361,510908,511394#msg-511394</guid>
            <title>Re: THERMAL RUNAWAY PROTECTION</title>
            <link>https://reprap.org/forum/read.php?361,510908,511394#msg-511394</link>
            <description><![CDATA[ Non devi inserire nessuna riga hai solo una versione vecchia di marlin, quelle che ti ho messo io su sono del MarlinKimbra....]]></description>
            <dc:creator>MagoKimbra</dc:creator>
            <category>GCODE, Software e Firmware</category>
            <pubDate>Wed, 20 May 2015 12:27:47 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?361,510908,511211#msg-511211</guid>
            <title>Re: THERMAL RUNAWAY PROTECTION</title>
            <link>https://reprap.org/forum/read.php?361,510908,511211#msg-511211</link>
            <description><![CDATA[ Ciao Mago<br />
la mia versione di Marlin è la 1.0.0.<br />
Ho trovato qualcosa riguardo al THERMAL_RUNAWAY_PROTECTION_PERIOD in <b>temperature.cpp</b><br />
<pre class="bbcode">
#ifdef THERMAL_RUNAWAY_PROTECTION_PERIOD &amp;&amp; THERMAL_RUNAWAY_PROTECTION_PERIOD &gt; 0
void thermal_runaway_protection(int *state, unsigned long *timer, float temperature, float target_temperature, int heater_id, int period_seconds, int hysteresis_degc)
{
/*
      SERIAL_ECHO_START;
      SERIAL_ECHO("Thermal Thermal Runaway Running. Heater ID:");
      SERIAL_ECHO(heater_id);
      SERIAL_ECHO(" ;  State:");
      SERIAL_ECHO(*state);
      SERIAL_ECHO(" ;  Timer:");
      SERIAL_ECHO(*timer);
      SERIAL_ECHO(" ;  Temperature:");
      SERIAL_ECHO(temperature);
      SERIAL_ECHO(" ;  Target Temp:");
      SERIAL_ECHO(target_temperature);
      SERIAL_ECHOLN("");    
*/
  if ((target_temperature == 0) || thermal_runaway)
  {
    *state = 0;
    *timer = 0;
    return;
  }
  switch (*state)
  {
    case 0: // "Heater Inactive" state
      if (target_temperature &gt; 0) *state = 1;
      break;
    case 1: // "First Heating" state
      if (temperature &gt;= target_temperature) *state = 2;
      break;
    case 2: // "Temperature Stable" state
      if (temperature &gt;= (target_temperature - hysteresis_degc))
      {
        *timer = millis();
      } 
      else if ( (millis() - *timer) &gt; period_seconds*1000)
      {
        SERIAL_ERROR_START;
        SERIAL_ERRORLNPGM("Thermal Runaway, system stopped! Heater_ID: ");
        SERIAL_ERRORLN((int)heater_id);
        LCD_ALERTMESSAGEPGM("THERMAL RUNAWAY");
        thermal_runaway = true;
        while(1)
        {
          disable_heater();
          disable_x();
          disable_y();
          disable_z();
          disable_e0();
          disable_e1();
          disable_e2();
          manage_heater();
          lcd_update();
        }
      }
      break;
  }
}
#endif</pre>
<br />
<br />
ed in  <b>temperature.h</b><br />
<br />
<pre class="bbcode">
#ifdef THERMAL_RUNAWAY_PROTECTION_PERIOD &amp;&amp; THERMAL_RUNAWAY_PROTECTION_PERIOD &gt; 0
void thermal_runaway_protection(int *state, unsigned long *timer, float temperature, float target_temperature, int heater_id, int period_seconds, int hysteresis_degc);
static int thermal_runaway_state_machine[3]; // = {0,0,0};
static unsigned long thermal_runaway_timer[3]; // = {0,0,0};
static bool thermal_runaway = false;
  #if TEMP_SENSOR_BED != 0
    static int thermal_runaway_bed_state_machine;
    static unsigned long thermal_runaway_bed_timer;
  #endif
#endif

FORCE_INLINE void autotempShutdown(){
 #ifdef AUTOTEMP
 if(autotemp_enabled)
 {
  autotemp_enabled=false;
  if(degTargetHotend(active_extruder)&gt;autotemp_min)
    setTargetHotend(0,active_extruder);
 }
 #endif
}

void PID_autotune(float temp, int extruder, int ncycles);

#endif</pre>
<br />
Dove devo inserire le righe da te suggerite?  scusa ma con il firmware non sono molto mago! <br />
Ti allego i due files più il Configuration.h<br />
<br />
Grazie]]></description>
            <dc:creator>DANYARD</dc:creator>
            <category>GCODE, Software e Firmware</category>
            <pubDate>Wed, 20 May 2015 03:36:49 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?361,510908,510958#msg-510958</guid>
            <title>Re: THERMAL RUNAWAY PROTECTION</title>
            <link>https://reprap.org/forum/read.php?361,510908,510958#msg-510958</link>
            <description><![CDATA[ Che versione hai di Marlin???<br />
<br />
In MarlinKImbra Development c'è<br />
<br />
<pre class="bbcode">
//#define THERMAL_PROTECTION_HOTENDS // Enable thermal protection for all extruders
//#define THERMAL_PROTECTION_BED     // Enable thermal protection for the heated bed
</pre>]]></description>
            <dc:creator>MagoKimbra</dc:creator>
            <category>GCODE, Software e Firmware</category>
            <pubDate>Tue, 19 May 2015 13:53:35 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?361,510908,510908#msg-510908</guid>
            <title>THERMAL RUNAWAY PROTECTION</title>
            <link>https://reprap.org/forum/read.php?361,510908,510908#msg-510908</link>
            <description><![CDATA[ Buongiorno a tutti <br />
Sono un felice possessore di una Stampante Prusai3 interamente autocostruita (no kits).<br />
Ho da poco effettuato l'upgrade hardware con l'aggiunta del letto di stampa riscaldato utilizzando un Heated Bed standard MK2 collegato alla RAMPS.<br />
Funziona tutto regolarmente ma se provo ad aumentare la temperatura del Heated Bed dal pannello della stampante durante la stampa, <br />
questa si ferma con il messaggio  "THERMAL RUNAWAY PROTECTION"<br />
<br />
Ho visto che in Marlin è presente la sezione ====Thermal Runaway Protection==== <br />
ed oltre alla spiegazione che mi sono letto<br />
sono presenti le righe <br />
<br />
// Parameters for all extruder heaters<br />
define THERMAL_RUNAWAY_PROTECTION_PERIOD 40 //in seconds<br />
define THERMAL_RUNAWAY_PROTECTION_HYSTERESIS 4 // in degree Celsius<br />
<br />
// Parameters for the bed heater<br />
#define THERMAL_RUNAWAY_PROTECTION_BED_PERIOD 20 //in seconds<br />
#define THERMAL_RUNAWAY_PROTECTION_BED_HYSTERESIS 2 // in degree Celsius<br />
<br />
Queste ultime 2 righe relative all'Heated Bed erano commentate ed ho dovuto decommentarle altrimenti Arduino non mi flashava il FW.<br />
<br />
Le stampe funzionano benissimo ma non posso aumentare nemmeno di qualche grado la temperatura dell' Heated Bed durante la stampa mendiante il pannello della stampante pena il blocco della stampa con l'errore "THERMAL RUNAWAY PROTECTION" .<br />
<br />
Se cambio le temperature dell'Hot End invece non si blocca nulla.<br />
<br />
Voglio precisare che stampo sempre in Stand Alone dalla SD. No connessione USB con il PC.<br />
<br />
Soprattutto durante le prove (visto che ho appena montato il letto riscaldato trovo che sia utile poter smanettare dal pannello durante le stampa per trovare i valori di temperatura ottimali.<br />
<br />
C'è un modo per evitare questo errore?]]></description>
            <dc:creator>DANYARD</dc:creator>
            <category>GCODE, Software e Firmware</category>
            <pubDate>Tue, 19 May 2015 12:18:07 -0400</pubDate>
        </item>
    </channel>
</rss>
