Browse Source

enhance the throughput calculation.

sangwq 1 year ago
parent
commit
6745f225c7
1 changed files with 1 additions and 3 deletions
  1. 1 3
      Venus/Venus_RT/Modules/AutoCycle.cs

+ 1 - 3
Venus/Venus_RT/Modules/AutoCycle.cs

@@ -2808,7 +2808,6 @@ namespace Venus_RT.Modules
                     return;
 
             bool allControlJobComplete = true;
-            bool bRefreshTroughput = false;
             List<ControlJobInfo> cjRemoveList = new List<ControlJobInfo>();
             foreach (var cj in _lstControlJobs)
             {
@@ -2908,7 +2907,6 @@ namespace Venus_RT.Modules
                                 (Singleton<TransferModule>.Instance.GetScheduler(ModuleHelper.Converter(cj.Module)) as SchedulerLoadPort).NoteJobComplete();
 
                             _lpCycleCount[ModuleHelper.Converter(cj.Module)]++;
-                            bRefreshTroughput = true;
                         }
                     }
 
@@ -2954,7 +2952,7 @@ namespace Venus_RT.Modules
             if (_isCycleMode && _cycledCount < (_isCycleMode ? _cycleSetPoint : 0))
             {
                 int totolCycleWafer = _lpCycleWafer.Sum(item => item.Value);
-                if (totolCycleWafer != _cycledWafer || bRefreshTroughput)  // refresh _throughput in time
+                if (totolCycleWafer != _cycledWafer || _lpCycleCount.Sum(item => item.Value) > 0 && _throughput < 0.01)  // refresh _throughput in time
                 {
                     _cycledWafer = totolCycleWafer;
                     if (_cycledCount > 0)