From 31db1ef9601c3824b4722fc22e06f22fbfd066df Mon Sep 17 00:00:00 2001 From: lhiven Date: Thu, 17 Apr 2025 08:56:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93OK=E6=96=99=E4=BB=93=E8=B6=85=E8=BF=87?= =?UTF-8?q?20=E5=B1=82=E6=97=B6=EF=BC=8C=E5=BC=B9=E5=87=BAOK=E6=96=99?= =?UTF-8?q?=E4=BB=93=EF=BC=8C=E6=94=B6=E6=96=99=E5=90=8E=E7=BB=A7=E7=BB=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Flow/NormalFlow/DischargeFlow.cs | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/Rs.DeweyTester/Flow/NormalFlow/DischargeFlow.cs b/Rs.DeweyTester/Flow/NormalFlow/DischargeFlow.cs index d34c110..6c1c602 100644 --- a/Rs.DeweyTester/Flow/NormalFlow/DischargeFlow.cs +++ b/Rs.DeweyTester/Flow/NormalFlow/DischargeFlow.cs @@ -780,10 +780,23 @@ namespace Rs.MotionPlat.Flow } else { - DischargeModuleGoSafePosFlow.Instance.GoSafePostion(); - TakeTrayFlow.Instance.Take(ETrayType.Empty, ETrayType.Ok, true, true); - GlobalTray.OkTary.ChangeStatus(ESlotStatus.NotHave); - ThreePointLocationFlow.Instance.Location(ETrayType.Ok); + if(StockManager.GetCurrentLayer(1)<20) + { + DischargeModuleGoSafePosFlow.Instance.GoSafePostion(); + TakeTrayFlow.Instance.Take(ETrayType.Empty, ETrayType.Ok, true, true); + GlobalTray.OkTary.ChangeStatus(ESlotStatus.NotHave); + ThreePointLocationFlow.Instance.Location(ETrayType.Ok); + } + else + { + DischargeModuleGoSafePosFlow.Instance.GoSafePostion(); + TakeTrayFlow.Instance.Take(ETrayType.Empty, ETrayType.Ok, true, true); + StockManager.OutStock(1); + StockManager.InStock(1); + StockManager.PrepareTray(1); + TakeTrayFlow.Instance.Take(ETrayType.Empty, ETrayType.Ok, true, true); + GlobalTray.OkTary.ChangeStatus(ESlotStatus.NotHave); + } } //料盘已满