Browse Source

update vertical position judge

chenkui 1 week ago
parent
commit
0e3066b669

+ 11 - 9
PunkHPX8_RT/Modules/PlatingCell/PlatingCellVerticalPositionRoutine.cs

@@ -104,21 +104,23 @@ namespace PunkHPX8_RT.Modules.PlatingCell
                 return false;
             }
 
+            string firstCurrentStep = _cellEntities[0].CurrentStepState;
+            string secondCurrentStep = _cellEntities[1].CurrentStepState;
             bool hasDoubleProductionWafer = firstWafer.WaferType == secondWafer.WaferType;
             if (hasDoubleProductionWafer)
             {
-                string firstCurrentStep = _cellEntities[0].CurrentStepState;
-                foreach (var item in _cellEntities)
-                {
-                    if (item.CurrentStepState != firstCurrentStep)
-                    {
-                        return false;
-                    }
-                }
+                return firstCurrentStep == secondCurrentStep;
             }
             else
             {
-
+                if (secondCurrentStep.StartsWith("Reclaim") || secondCurrentStep.StartsWith("Rinse") || secondCurrentStep.StartsWith("Dry"))
+                {
+                    return firstCurrentStep==secondCurrentStep;
+                }
+                else
+                {
+                    return true;
+                }
             }
             return true;
         }