diff --git a/Rs.SkyLine/Flow/NormalFlow/DischargeFlow.cs b/Rs.SkyLine/Flow/NormalFlow/DischargeFlow.cs index 96a07a0..72283cb 100644 --- a/Rs.SkyLine/Flow/NormalFlow/DischargeFlow.cs +++ b/Rs.SkyLine/Flow/NormalFlow/DischargeFlow.cs @@ -1738,52 +1738,26 @@ namespace Rs.MotionPlat.Flow } else { - //if(!endInputClicked) + if (Ops.IsOn("2号料仓缺盘光电检测")) { - //这里检测到料盘种已经没有产品了,需要切盘 - bool skip = false; - while (!skip) - { - if (Ops.IsOn("2号料仓缺盘光电检测")) + logInfo = GetClassName() + $"{curTask.FromType.ToString()}盘无料,准备切换料盘"; + MessageQueue.Instance.Insert(logInfo); + TakeTrayFlow.Instance.Take(ETrayType.Input, ETrayType.Empty1, + () => { - logInfo = GetClassName() + $"{curTask.FromType.ToString()}盘无料,准备切换料盘"; - MessageQueue.Instance.Insert(logInfo); - TakeTrayFlow.Instance.Take(ETrayType.Input, ETrayType.Empty1, - () => - { - Task.Run(() => - { - StockManager.Instance.GetStock(ETrayType.Input).Load(EStockTrayLoadMode.Whole, null); - }); - }, null, - () => - { - Task.Run(() => - { - StockManager.Instance.GetStock(ETrayType.Empty1).Unload(EStockTrayUnLoadMode.Whole, null); - }); - }); - StockManager.Instance.GetStock(ETrayType.Input).WaitFinished(); - skip = true; - //logInfo = "Input料仓最后一盘料,请确认是否继续上料?"; - //msgBox = MsgBox.ShowDialog(111, logInfo, (ETipButton.Yes | ETipButton.No), new Dictionary() { { ETipButton.Yes, "是|Yes" }, { ETipButton.No, "结束上料|EndInput" } }); - //if (msgBox.Button == ETipButton.Yes) - //{ - // //flowStep = EDischargeFlowStep.到取料位上方; - //} - //else - //{ - // //结束上料 - // endInputClicked = true; - // TestCenter.Instance.EndInput(); - // skip = true; - //} - } - else + Task.Run(() => + { + StockManager.Instance.GetStock(ETrayType.Input).Load(EStockTrayLoadMode.Whole, null); + }); + }, null, + () => { - - } - } + Task.Run(() => + { + StockManager.Instance.GetStock(ETrayType.Empty1).Unload(EStockTrayUnLoadMode.Whole, null); + }); + }); + StockManager.Instance.GetStock(ETrayType.Input).WaitFinished(); } flowStep = EDischargeFlowStep.等待任务结束到安全位; } diff --git a/Rs.SkyLine/Home.cs b/Rs.SkyLine/Home.cs index f029fbb..dba3571 100644 --- a/Rs.SkyLine/Home.cs +++ b/Rs.SkyLine/Home.cs @@ -261,7 +261,7 @@ namespace Rs.MotionPlat Process proc = Process.GetCurrentProcess(); if (proc != null) { - long userdMem = proc.PrivateMemorySize64; + long userdMem = proc.WorkingSet64; lblMemory.Text = $"Mem:{(userdMem/1024)/1024} MB"; } }