瀏覽代碼

1.run 对齐 2.修改load bug

JET-YDB\JET-YANGDB 3 月之前
父節點
當前提交
7ee7fd71a0
共有 1 個文件被更改,包括 11 次插入6 次删除
  1. 11 6
      Mars/JetEfem/LPs/LoadPortLoadRoutine.cs

+ 11 - 6
Mars/JetEfem/LPs/LoadPortLoadRoutine.cs

@@ -70,11 +70,11 @@ namespace JetEfemLib.LPs
 
         public RState Monitor()
         {
-            Runner.Run(RoutineStep.Clamp,      Clamp,        CheckDevice, _timeout * 1000)
-                //.Run(RoutineStep.Dock,       Dock,         CheckDevice, _timeout *1000)
-                .Run(RoutineStep.OpenDoor,     OpenDoor,     CheckDevice, _timeout * 1000)
-                .Run(RoutineStep.GetWaferInfo, QueryMapInfo, CheckDevice, _timeout * 1000)
-                .End(RoutineStep.QueryStatus2, QueryStatus,  CheckDevice, _timeout * 1000);
+            Runner.Run(RoutineStep.Clamp,      Clamp,        CheckDevice,   _timeout * 1000)
+                //.Run(RoutineStep.Dock,       Dock,         CheckDevice,   _timeout *1000)
+                .Run(RoutineStep.OpenDoor,     OpenDoor,     CheckOpenDoor, _timeout * 1000)
+                .Run(RoutineStep.GetWaferInfo, QueryMapInfo, CheckDevice,   _timeout * 1000)
+                .End(RoutineStep.QueryStatus2, QueryStatus,  CheckDevice,   _timeout * 1000);
             return Runner.Status;
         }
 
@@ -101,7 +101,7 @@ namespace JetEfemLib.LPs
 
         bool CheckDevice()
         {
-            return !(_lpModule.LPDevice.Error || _lpModule.LPDevice.IsBusy || _lpModule.LPDevice.DoorState != FoupDoorState.Open);
+            return !(_lpModule.LPDevice.Error || _lpModule.LPDevice.IsBusy);
         }
 
         bool OpenDoor()
@@ -115,6 +115,11 @@ namespace JetEfemLib.LPs
             return true;
         }
 
+        bool CheckOpenDoor()
+        {
+            return !(_lpModule.LPDevice.Error || _lpModule.LPDevice.IsBusy || _lpModule.LPDevice.DoorState != FoupDoorState.Open);
+        }
+
         bool QueryMapInfo()
         {
             Notify($"Start to get wafer info {_lpModule.LPDevice.Name}");