From 5db57c889c63442cf886a3aa8be2bfe45cb62ab6 Mon Sep 17 00:00:00 2001 From: liuwf Date: Sat, 21 Sep 2024 15:23:37 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac.WPF/Page/DevMonitorPage.xaml.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SlnMesnac.WPF/Page/DevMonitorPage.xaml.cs b/SlnMesnac.WPF/Page/DevMonitorPage.xaml.cs index 8f5c31c..2246f06 100644 --- a/SlnMesnac.WPF/Page/DevMonitorPage.xaml.cs +++ b/SlnMesnac.WPF/Page/DevMonitorPage.xaml.cs @@ -756,6 +756,12 @@ namespace SlnMesnac.WPF.Page Task.Run(() => { + // 启动除尘 + bool DustStatus = StartDust(); + if(!DustStatus) return; + + Thread.Sleep(500); + plc.writeBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("拆包机远程急停"), false); plc.writeBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("拆包机远程停止"), false); @@ -828,6 +834,9 @@ namespace SlnMesnac.WPF.Page bool result = StopMachine(99); if (result) { + // 停止除尘 + StopDust(); + MessageBoxAndLog("一键停止所有机器成功!"); App.Current.Dispatcher.BeginInvoke((Action)(() =>