From 6cdf4da6809b6493a4cb96c4a5846d5c73ceff29 Mon Sep 17 00:00:00 2001 From: lhiven <236881222@qq.com> Date: Thu, 22 Feb 2024 15:08:59 +0800 Subject: [PATCH] =?UTF-8?q?NG=E7=9B=98=E6=90=AC=E8=BF=90=E5=88=B0input?= =?UTF-8?q?=E6=96=99=E4=BB=93=E5=A2=9E=E5=8A=A0=E6=89=93=E5=8D=B0=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rs.SkyLine/Flow/SubFlow/NgTrayToInputTrayFlow.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Rs.SkyLine/Flow/SubFlow/NgTrayToInputTrayFlow.cs b/Rs.SkyLine/Flow/SubFlow/NgTrayToInputTrayFlow.cs index 1ce596e..c9a46ae 100644 --- a/Rs.SkyLine/Flow/SubFlow/NgTrayToInputTrayFlow.cs +++ b/Rs.SkyLine/Flow/SubFlow/NgTrayToInputTrayFlow.cs @@ -39,7 +39,7 @@ namespace Rs.MotionPlat.Flow.SubFlow { if (Ops.IsOn("2号料仓料盘到位光电检测")) { - logInfo = $"检测到input料仓上料位有料,搬运到empty1料仓"; + logInfo =GetClassName()+ $"检测到input料仓上料位有料,搬运到empty1料仓"; MessageQueue.Instance.Insert(logInfo); TakeTrayFlow.Instance.Take(ETrayType.Input, ETrayType.Empty1, null, null, () => { Task.Run(() => { @@ -54,17 +54,19 @@ namespace Rs.MotionPlat.Flow.SubFlow { if(Ops.IsOn("4号料仓缺盘光电检测"))//如果还有需要搬运的料盘 { + logInfo = GetClassName() + "4号料仓还有需要搬运的料盘,继续上料盘"; + MessageQueue.Instance.Insert(logInfo); StockManager.Instance.GetStock(ETrayType.Ng).Load(EStockTrayLoadMode.Whole, null); } else { //没有料盘需要搬运了 - logInfo = $"check ng stock hasn't tray,stop load tray,take tray finished!"; + logInfo =GetClassName()+ $"check ng stock hasn't tray,stop load tray,take tray finished!"; MessageQueue.Instance.Insert(logInfo); break; } } - logInfo = "start take ng tray to input stock"; + logInfo = GetClassName() + "start take ng tray to input stock"; MessageQueue.Instance.Insert(logInfo ); TakeTrayFlow.Instance.Take(ETrayType.Ng, ETrayType.Input, () => { StockManager.Instance.GetStock(ETrayType.Ng).ChangeStatus(EStockTrayStatus.Empty); @@ -96,5 +98,10 @@ namespace Rs.MotionPlat.Flow.SubFlow }); } } + + private string GetClassName() + { + return "NgTrayToInputTrayFlow_"; + } } }