温度传感器故障时直接关闭加热

This commit is contained in:
张开科 2023-03-23 10:38:15 +08:00
parent dec922fbf6
commit 0800a15966
2 changed files with 10 additions and 0 deletions

View File

@ -26,6 +26,10 @@ void main()
Channel1_Error_Flag = System_Fault; //通道1温度传感器故障 Channel1_Error_Flag = System_Fault; //通道1温度传感器故障
// PWM.Heating_Flag1 = System_Fault; // PWM.Heating_Flag1 = System_Fault;
} }
else if (ADC.Display_Temp1_Value == 500)
{
Channel1_Error_Flag = System_Fault; //通道1温度传感器故障
}
else else
{ {
Channel1_Error_Flag = FALSE; Channel1_Error_Flag = FALSE;
@ -44,6 +48,10 @@ void main()
Channel2_Error_Flag = System_Fault; //通道2温度传感器故障 Channel2_Error_Flag = System_Fault; //通道2温度传感器故障
// PWM.Heating_Flag2 = System_Fault; // PWM.Heating_Flag2 = System_Fault;
} }
else if (ADC.Display_Temp2_Value == 500)
{
Channel2_Error_Flag = System_Fault; //通道1温度传感器故障
}
else else
{ {
Channel2_Error_Flag = FALSE; Channel2_Error_Flag = FALSE;

View File

@ -92,6 +92,7 @@ static void PWM1_HeatingSetting(uint8_t Percent)
else else
{ {
PWM.Heating_Flag1 = System_Fault; PWM.Heating_Flag1 = System_Fault;
Temp_Value = 0;
} }
} }
@ -131,6 +132,7 @@ static void PWM2_HeatingSetting(uint8_t Percent)
else else
{ {
PWM.Heating_Flag2 = System_Fault; PWM.Heating_Flag2 = System_Fault;
Temp_Value = 0;
} }
} }