Parcourir la source

fix the blocking bug while In loadlock is empty.

sangwq il y a 9 mois
Parent
commit
679a0eb967
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Venus/Venus_RT/Modules/SystemDispatcher.cs

+ 1 - 1
Venus/Venus_RT/Modules/SystemDispatcher.cs

@@ -3329,7 +3329,7 @@ namespace Venus_RT.Modules
                     {
                         if(_specialRoutingPattern == SpecialRoutingPattern.LongTimeRecipe && freeHands.Count == 2)
                         {
-                             if(_dictModuleTask.Where(mod => ModuleHelper.IsPm(mod.Key) && !mod.Value.HasWafer && mod.Value.Scheduler.IsOnline).Count() == 0)
+                             if(_dictModuleTask.Where(mod => ModuleHelper.IsPm(mod.Key) && !mod.Value.HasWafer && mod.Value.Scheduler.IsOnline).Count() == 0 && inLLWaferStatus.inSlot.Count > 0)
                             {
                                 var readyOutPMs = _dictModuleTask.Where(mod => ModuleHelper.IsPm(mod.Key) && mod.Value.HasWafer && mod.Value.TimeToReady < 25).OrderBy(mod => mod.Value.TimeToReady).ToList();
                                 if(readyOutPMs.Count > 0 && inLLModule.ReayForTMInTime(5) && _lstWaferTasks.Exists(wt => wt.currentMod == inLL && readyOutPMs.Exists(kv => kv.Key == wt.destMod)))