new ambient thermistor table

MINTEMP_MINAMBIENT
This commit is contained in:
Robert Pelnar 2017-12-12 22:49:47 +01:00
parent 0271da3c67
commit 7e00248060
4 changed files with 42 additions and 15099 deletions

View file

@ -92,6 +92,13 @@ const bool Z_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic o
// Disable some commands
#define _DISABLE_M42_M226
// Minimum ambient temperature limit to start triggering MINTEMP errors [C]
// this value is litlebit higher that real limit, because ambient termistor is on the board and is temperated from it,
// temperature inside the case is around 31C for ambient temperature 25C, when the printer is powered on long time and idle
// the real limit is 15C (same as MINTEMP limit), this is because 15C is end of scale for both used thermistors (bed, heater)
#define MINTEMP_MINAMBIENT 18
//DEBUG
//#define _NO_ASM
#define DEBUG_DCODES //D codes

File diff suppressed because it is too large Load diff

View file

@ -1465,6 +1465,7 @@ void min_temp_error(uint8_t e) {
#ifdef DEBUG_DISABLE_MINTEMP
return;
#endif
if (current_temperature_ambient < MINTEMP_MINAMBIENT) return;
disable_heater();
if(IsStopped() == false) {
SERIAL_ERROR_START;
@ -1498,6 +1499,7 @@ void bed_min_temp_error(void) {
#ifdef DEBUG_DISABLE_MINTEMP
return;
#endif
if (current_temperature_ambient < MINTEMP_MINAMBIENT) return;
#if HEATER_BED_PIN > -1
WRITE(HEATER_BED_PIN, 0);
#endif

View file

@ -1249,39 +1249,39 @@ const short temptable_2000[][2] PROGMEM = {
{998*OVERSAMPLENR, -30},
{999*OVERSAMPLENR, -35},
{999*OVERSAMPLENR, -40},*/
{313*OVERSAMPLENR,125},
{347*OVERSAMPLENR,120},
{383*OVERSAMPLENR,115},
{422*OVERSAMPLENR,110},
{463*OVERSAMPLENR,105},
{506*OVERSAMPLENR,100},
{549*OVERSAMPLENR,95},
{594*OVERSAMPLENR,90},
{638*OVERSAMPLENR,85},
{681*OVERSAMPLENR,80},
{722*OVERSAMPLENR,75},
{762*OVERSAMPLENR,70},
{799*OVERSAMPLENR,65},
{833*OVERSAMPLENR,60},
{863*OVERSAMPLENR,55},
{890*OVERSAMPLENR,50},
{914*OVERSAMPLENR,45},
{934*OVERSAMPLENR,40},
{951*OVERSAMPLENR,35},
{966*OVERSAMPLENR,30},
{978*OVERSAMPLENR,25},
{988*OVERSAMPLENR,20},
{996*OVERSAMPLENR,15},
{1002*OVERSAMPLENR,10},
{1007*OVERSAMPLENR,5},
{1012*OVERSAMPLENR,0},
{1015*OVERSAMPLENR,-5},
{1017*OVERSAMPLENR,-10},
{1019*OVERSAMPLENR,-15},
{1020*OVERSAMPLENR,-20},
{1021*OVERSAMPLENR,-25},
{1022*OVERSAMPLENR,-30},
{1023*OVERSAMPLENR,-35},
{313*OVERSAMPLENR,125},
{347*OVERSAMPLENR,120},
{383*OVERSAMPLENR,115},
{422*OVERSAMPLENR,110},
{463*OVERSAMPLENR,105},
{506*OVERSAMPLENR,100},
{549*OVERSAMPLENR,95},
{594*OVERSAMPLENR,90},
{638*OVERSAMPLENR,85},
{681*OVERSAMPLENR,80},
{722*OVERSAMPLENR,75},
{762*OVERSAMPLENR,70},
{799*OVERSAMPLENR,65},
{833*OVERSAMPLENR,60},
{863*OVERSAMPLENR,55},
{890*OVERSAMPLENR,50},
{914*OVERSAMPLENR,45},
{934*OVERSAMPLENR,40},
{951*OVERSAMPLENR,35},
{966*OVERSAMPLENR,30},
{978*OVERSAMPLENR,25},
{988*OVERSAMPLENR,20},
{996*OVERSAMPLENR,15},
{1002*OVERSAMPLENR,10},
{1007*OVERSAMPLENR,5},
{1012*OVERSAMPLENR,0},
{1015*OVERSAMPLENR,-5},
{1017*OVERSAMPLENR,-10},
{1019*OVERSAMPLENR,-15},
{1020*OVERSAMPLENR,-20},
{1021*OVERSAMPLENR,-25},
{1022*OVERSAMPLENR,-30},
{1023*OVERSAMPLENR,-35},
{1023*OVERSAMPLENR,-40},
};
#endif