aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/General
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-06-22 15:24:46 +0300
committerShlomo Hecht <shlomo@twine-s.com>2020-06-22 15:24:46 +0300
commit9ff1fdb7a1149d5c8335f78d236d59838aaa45c0 (patch)
tree84a35a948db5ae16ff9b0851d23c420cff9a32e5 /Software/Embedded_SW/Embedded/Modules/General
parent69a5fa82c4633e1c9afa3e0164ff215a8d54c1ed (diff)
downloadTango-9ff1fdb7a1149d5c8335f78d236d59838aaa45c0.tar.gz
Tango-9ff1fdb7a1149d5c8335f78d236d59838aaa45c0.zip
Embedded SW Release note - Version 1.4.6.33 - Pack 2+
============================================================= remove logs from I2C errors - show only summary. stop job, prevent job on internal heating. remove current alarm on entering idle. motor go to switch - improve accuracy. handle machine specific spool offset. add additional 4 steps for the RTFU raising in RML feeder tension. fix midtank warning bug (these alarm went missing). fix safety handling. I2C FIFO in code (not active yet).
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/General')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/General/Safety.c42
1 files changed, 41 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/General/Safety.c b/Software/Embedded_SW/Embedded/Modules/General/Safety.c
index e8454370c..400b083e4 100644
--- a/Software/Embedded_SW/Embedded/Modules/General/Safety.c
+++ b/Software/Embedded_SW/Embedded/Modules/General/Safety.c
@@ -65,7 +65,46 @@ uint32_t Safety_Main_State(uint32_t IfIndex, uint32_t BusyFlag)
if (AllDispensersInSafety)
{
- if (Get_COVER_1_State(DryerDoor))
+ if (WHS_GPI_SW_FILTER_PRES())
+ {
+ //report and handle filter missing
+ AlarmHandlingSetAlarm(EVENT_TYPE__AIR_FILTER_NOT_INSTALLED, true);
+ mAirFilterAlarmState = true;
+ AirFilterAlarmState = true;
+ }
+ else
+ {
+ if (WHS_GPI_WASTE_FLOW_SWITCH() == false)
+ {
+ //report and handle air flow failure
+ //if blower if off handling is different
+ AlarmHandlingSetAlarm(EVENT_TYPE__NO_AIR_PRESSURE, true);
+ mAirFlowAlarmState = true;
+ AirFlowAlarmState = true;
+ }
+ else
+ {
+ if (Get_COVER_1_State(DryerDoor))
+ {
+ //report and handle dryer door open
+ AlarmHandlingSetAlarm(EVENT_TYPE__DRYER_DOOR_OPEN, true);
+ mDrierDoorAlarmState = true;
+ DrierDoorAlarmState = true;
+ }
+ else
+ {
+ //if (WHS_GPI_WASTE_OVERFULL()) - cannot read this switch
+ {
+ //report and handle waste overflow
+ AlarmHandlingSetAlarm(EVENT_TYPE__WASTE_CONTAINER_OVERFLOW, true);
+ mWasteOverflowAlarmState = true;
+ WasteOverflowAlarmState = true;
+ }
+ }
+ }
+ }
+
+/* if (Get_COVER_1_State(DryerDoor))
{
//report and handle dryer door open
AlarmHandlingSetAlarm(EVENT_TYPE__DRYER_DOOR_OPEN, true);
@@ -103,6 +142,7 @@ uint32_t Safety_Main_State(uint32_t IfIndex, uint32_t BusyFlag)
}
}
}
+ */
}
else if (AnyDispensersInSafety)
{