From 71f231b5899ead2ffa15cf88feec11584376b8ff Mon Sep 17 00:00:00 2001 From: lhiven Date: Tue, 23 Jan 2024 09:39:13 +0900 Subject: [PATCH] =?UTF-8?q?=E5=BD=93=E6=89=B9=E6=AC=A1=E7=BB=93=E6=9D=9F?= =?UTF-8?q?=E5=90=8E=EF=BC=8CInput=E7=9B=98=E4=BB=8E=E5=9B=9E=E6=94=B6?= =?UTF-8?q?=E5=88=B0=E6=96=99=E4=BB=93=E6=94=B9=E4=B8=BA=E6=90=AC=E8=BF=90?= =?UTF-8?q?=E5=88=B0empty1=E6=96=99=E4=BB=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rs.SkyLine/Flow/TestCenter.cs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Rs.SkyLine/Flow/TestCenter.cs b/Rs.SkyLine/Flow/TestCenter.cs index 248aaf5..d381629 100644 --- a/Rs.SkyLine/Flow/TestCenter.cs +++ b/Rs.SkyLine/Flow/TestCenter.cs @@ -428,12 +428,17 @@ namespace Rs.MotionPlat.Flow switch (inquireSilo.SiloType) { case SchedulingSiloBase.ESiloType.ToBeTested: - - Task.Run(() => { - MessageQueue.Instance.Insert($"{ETrayType.Input}料仓收到切盘命令"); - StockManager.Instance.GetStock(ETrayType.Input).Unload(EStockTrayUnLoadMode.Whole, null); + + MessageQueue.Instance.Insert($"{ETrayType.Input}料仓收到切盘命令"); + //StockManager.Instance.GetStock(ETrayType.Input).Unload(EStockTrayUnLoadMode.Whole, null); + TakeTrayFlow.Instance.Take(ETrayType.Input, ETrayType.Empty1, () => { + StockManager.Instance.GetStock(ETrayType.Input).Status = EStockTrayStatus.Unloaded; + }, null, () => { + Task.Run(() => { + StockManager.Instance.GetStock(ETrayType.Empty1).Unload(EStockTrayUnLoadMode.Whole, null); + }); }); - + break; case SchedulingSiloBase.ESiloType.Passed: Task.Run(() => {