Browse Source

revise platingcell run recipe start bug

chenzk 1 week ago
parent
commit
8988c15c72
1 changed files with 18 additions and 6 deletions
  1. 18 6
      PunkHPX8_RT/Modules/PlatingCell/PlatingCellRunRecipeRoutine.cs

+ 18 - 6
PunkHPX8_RT/Modules/PlatingCell/PlatingCellRunRecipeRoutine.cs

@@ -433,9 +433,21 @@ namespace PunkHPX8_RT.Modules.PlatingCell
             //    LOG.WriteLog(eEvent.ERR_PLATINGCELL, Module, "Recipe DepSteps count is 0");
             //    return false;
             //}
-            CheckAxisHome();
-            CheckFacility();
-            CheckModuleAndReservoir();
+            if (!CheckAxisHome())
+            {
+                NotifyError(eEvent.ERR_PLATINGCELL, "Check Axis home error",0);
+                return false;
+            }
+            if (!CheckFacility())
+            {
+                NotifyError(eEvent.ERR_PLATINGCELL, "Check facility error", 0);
+                return false;
+            }
+            if (!CheckModuleAndReservoir())
+            {
+                NotifyError(eEvent.ERR_PLATINGCELL, "Check ModuleAndReservoir error", 0);
+                return false;
+            }
             return true;
         }
         private bool CheckModuleAndReservoir()
@@ -514,7 +526,7 @@ namespace PunkHPX8_RT.Modules.PlatingCell
             }
             if (systemFacilities.FacilitiesDataDic["CDA1Pressure"].IsError || systemFacilities.FacilitiesDataDic["CDA2Pressure"].IsError)
             {
-                LOG.WriteLog(eEvent.ERR_PLATINGCELL, Module, "Facility CDA Data is in errro range");
+                LOG.WriteLog(eEvent.ERR_PLATINGCELL, Module, "Facility CDA Data is in error range");
                 return false;
             }
             if (systemFacilities.FacilitiesDataDic["Nitrogen1APressure"].IsError  || 
@@ -522,12 +534,12 @@ namespace PunkHPX8_RT.Modules.PlatingCell
                 systemFacilities.FacilitiesDataDic["Nitrogen2APressure"].IsError ||
                 systemFacilities.FacilitiesDataDic["Nitrogen2BPressure"].IsError)
             {
-                LOG.WriteLog(eEvent.ERR_PLATINGCELL, Module, "Facility N2 Data is in errro range");
+                LOG.WriteLog(eEvent.ERR_PLATINGCELL, Module, "Facility N2 Data is in error range");
                 return false;
             }
             if (systemFacilities.FacilitiesDataDic["DiWaterPressure"].IsError)
             {
-                LOG.WriteLog(eEvent.ERR_PLATINGCELL, Module, "Facility Diw Pressure value is in errro range");
+                LOG.WriteLog(eEvent.ERR_PLATINGCELL, Module, "Facility Diw Pressure value is in error range");
                 return false;
             }
             return true;