From 856ddfa97887b1a75950e8175c47510aad291747 Mon Sep 17 00:00:00 2001 From: liuwf Date: Sat, 19 Oct 2024 09:06:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=8C=BA=E9=87=8D=E9=87=8F?= =?UTF-8?q?=E5=90=AF=E5=81=9C=E6=89=80=E6=9C=89=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac.WPF/Page/DevMonitorPage.xaml.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/SlnMesnac.WPF/Page/DevMonitorPage.xaml.cs b/SlnMesnac.WPF/Page/DevMonitorPage.xaml.cs index 5a4dab3..0ab4aa3 100644 --- a/SlnMesnac.WPF/Page/DevMonitorPage.xaml.cs +++ b/SlnMesnac.WPF/Page/DevMonitorPage.xaml.cs @@ -226,8 +226,9 @@ namespace SlnMesnac.WPF.Page bool unPackStatus = plc.readBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("拆包机系统运行状态")); if (recipeManageCache.SystemStatus == "1" && unPackStatus && (Cache_MaxWeight <= Cache_Weight)) { - // 停拆包机 - StopMachine(0); + // 停所有设备 + StopMachine(99); + // StopMachine(0); _logger.LogWarning($"设备缓存区当前重量:{Cache_Weight},预设最大重量值:{Cache_MaxWeight},已经超重并且拆包机运行,系统下发停机命令!"); } @@ -237,7 +238,8 @@ namespace SlnMesnac.WPF.Page if (!unPackWarn && plc.readBoolByAddress(baseBusiness.GetPlcAddressByConfigKey("拆包机MES允许远程")) == true) { - StartUnPack(); + StartAll(); + // StartUnPack(); } }