From bdf54be4963e369c397f3af406db035503975f5b Mon Sep 17 00:00:00 2001 From: Admin Date: Thu, 26 Mar 2026 21:36:31 +0800 Subject: [PATCH] 1 --- ViewModel/MainWindowVM.cs | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/ViewModel/MainWindowVM.cs b/ViewModel/MainWindowVM.cs index 1999693..84f33c4 100644 --- a/ViewModel/MainWindowVM.cs +++ b/ViewModel/MainWindowVM.cs @@ -1795,6 +1795,10 @@ namespace ViewModel ExcepStop(ex.Message); } } + else { + + FrontStationSend.Safe = false; + } } } @@ -1830,6 +1834,7 @@ namespace ViewModel break; case GengralProcessEnum.Step2: RobotSafe = true; + FrontStationSend.Safe = true; //下视觉检查 if (DownVisionRun(DownVisionFlow)) { @@ -1838,7 +1843,7 @@ namespace ViewModel } break; case GengralProcessEnum.Step3: - + FrontStationSend.Safe = true; if (CurrXizui.State.StatusBackground == ColorStr.Yellow) //放缓存皮带 { AnalysisFlow = new FlowModel("产品分选"); @@ -1863,6 +1868,7 @@ namespace ViewModel break; case GengralProcessEnum.Step4: RobotSafe = true; + FrontStationSend.Safe = true; //测试盒取出 if (BoxOutPutRun(BoxOutPutFlow)) { @@ -1881,6 +1887,7 @@ namespace ViewModel } break; case GengralProcessEnum.Step5: + FrontStationSend.Safe = true; //获取可以投入的测试盒 CurrBox = TestBenchBox.Where(w => w.State.StatusBackground == ColorStr.Blue).FirstOrDefault(); if (CurrBox != null) @@ -1894,6 +1901,7 @@ namespace ViewModel break; case GengralProcessEnum.Step6: RobotSafe = true; + FrontStationSend.Safe = true; //测试盒投入 if (BoxInPutRun(BoxInPutFlow)) { @@ -1905,6 +1913,7 @@ namespace ViewModel break; case GengralProcessEnum.Step7: RobotSafe = true; + FrontStationSend.Safe = true; //产品分选 if (AnalysisRun(AnalysisFlow)) { @@ -2105,6 +2114,7 @@ namespace ViewModel } break; case GengralProcessEnum.Step11: + FrontStationSend.Safe = true; //等待前站撤销请求,取料交互完成 if (!FrontStationReceive.RequestOut && FrontStationReceive.Running || OfflineMode) { @@ -5434,6 +5444,15 @@ namespace ViewModel break; case GengralProcessEnum.Step2: //产品流到出料检知 + + if (CacheLineList[0].State.StatusBackground == ColorStr.White) { + + MyFlow.RunStep = GengralProcessEnum.Step1; + MyFlow.RunTime = DateTime.Now; + + } + else + if (MyFlow.OutSignal.LightUp) { CacheLineList[0].State.StatusBackground = ColorStr.White;