aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW
diff options
context:
space:
mode:
authorRonen Sberlo <ronen.s@twine-s.com>2020-12-06 11:43:42 +0200
committerRonen Sberlo <ronen.s@twine-s.com>2020-12-06 11:43:42 +0200
commita634917be2b6951188ff20e6229f28a69f280394 (patch)
tree8c53a73e243b50553639ad1b07e2c7ee9e32ff4a /Software/Embedded_SW
parentafad6e269f061efe77729275c5f0d35f8a061a4e (diff)
downloadTango-a634917be2b6951188ff20e6229f28a69f280394.tar.gz
Tango-a634917be2b6951188ff20e6229f28a69f280394.zip
don't raise blower alarm on V0 calibration
Diffstat (limited to 'Software/Embedded_SW')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_Blowers.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_Blowers.c b/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_Blowers.c
index 71524b0ee..6e84c3107 100644
--- a/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_Blowers.c
+++ b/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_Blowers.c
@@ -65,6 +65,7 @@ uint8_t HeadBlowersEnable = 1;
uint8_t BlowerIdToSensorId[2] = {HEAD_PT100_ZONE_7_0X86_0, HEAD_PT100_ZONE_5_0X84_0}; //HEAD_FAN_RIGHT, HEAD_FAN_LEFT
uint32_t HeadBlowersInitControlId = 0xFF;
uint32_t HeadBlowersV0InitCount = 0;
+uint32_t HeadBlowersV0InitInProgress = 0;
typedef struct
{
@@ -347,9 +348,11 @@ void ArcHeadAlarms(void)
count5 = (count5 < 0)?(0):(count5);
}
if (currentFlow < 1.0) {
- if (++count6 == ARC_ALARM_LIMIT)
- setArcHeadAlarms(EVENT_TYPE__DYEING_HEAD_BLOWER_1_FLOW_TOO_LOW, true);
- count6 = (count6 > ARC_ALARM_LIMIT)?(ARC_ALARM_LIMIT):(count6);
+ if (!HeadBlowersV0InitInProgress) {
+ if (++count6 == ARC_ALARM_LIMIT)
+ setArcHeadAlarms(EVENT_TYPE__DYEING_HEAD_BLOWER_1_FLOW_TOO_LOW, true);
+ count6 = (count6 > ARC_ALARM_LIMIT)?(ARC_ALARM_LIMIT):(count6);
+ }
} else {
if (--count6 == 0)
setArcHeadAlarms(EVENT_TYPE__DYEING_HEAD_BLOWER_1_FLOW_TOO_LOW, false);
@@ -367,9 +370,11 @@ void ArcHeadAlarms(void)
count7 = (count7 < 0)?(0):(count7);
}
if (currentFlow < 1.0) {
- if (++count8 == ARC_ALARM_LIMIT)
- setArcHeadAlarms(EVENT_TYPE__DYEING_HEAD_BLOWER_2_FLOW_TOO_LOW, true);
- count8 = (count8 > ARC_ALARM_LIMIT)?(ARC_ALARM_LIMIT):(count8);
+ if (!HeadBlowersV0InitInProgress) {
+ if (++count8 == ARC_ALARM_LIMIT)
+ setArcHeadAlarms(EVENT_TYPE__DYEING_HEAD_BLOWER_2_FLOW_TOO_LOW, true);
+ count8 = (count8 > ARC_ALARM_LIMIT)?(ARC_ALARM_LIMIT):(count8);
+ }
} else {
if (--count8 == 0)
setArcHeadAlarms(EVENT_TYPE__DYEING_HEAD_BLOWER_2_FLOW_TOO_LOW, false);
@@ -515,6 +520,7 @@ uint32_t HeadBlowersInitCallbak(uint32_t IfIndex, uint32_t ReadValue)
HeadBlowersInitControlId = 0xFF;
HeadBlowerAirflowCalibration();
HeadBlowersOff(0);
+ HeadBlowersV0InitInProgress = 0;
Report("Head Blowers V0 calculated", __FILE__, __LINE__, PressureSensorV0[0], RpMessage, PressureSensorV0[1], 0);
Waste_Check_Flows();
}
@@ -539,6 +545,7 @@ uint32_t HeadBlowersV0Init(void)
//init Head Blowers V0
HeadBlowersV0InitCount = 0;
+ HeadBlowersV0InitInProgress = 1;
HeadBlowersInitControlId = AddControlCallback("Head Blowers V0 init", HeadBlowersInitCallbak, eOneSecond, TemplateDataReadCBFunction, 0, 0, 0);
Report("Head Blowers V0 init", __FILE__, __LINE__, Head_Type, RpMessage, 0, 0);
return OK;