From 6d15427e38aae0c6e45e97c103fbb26f74513e8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=94=84=E5=A4=B4?= Date: Sun, 9 Jun 2024 15:51:50 +0800 Subject: [PATCH] HowLevel --- .../LjDeliver/DeliverInitAction.cs | 2 ++ DataBlockHelper/DBHelpers/DB139Helper.cs | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliver/DeliverInitAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliver/DeliverInitAction.cs index d7255e5..3b4920a 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliver/DeliverInitAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliver/DeliverInitAction.cs @@ -243,10 +243,12 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver ControlsImprot.SetSwitchLight(SwitchlightE.HSiloI, list[8]); ControlsImprot.SetSwitchLight(SwitchlightE.HSiloJ, list[9]); + ControlsImprot.SetSwitchLight(SwitchlightE.HSiloK, list[10]); ControlsImprot.SetSwitchLight(SwitchlightE.HSiloL, list[11]); ControlsImprot.SetSwitchLight(SwitchlightE.HSiloM, list[12]); ControlsImprot.SetSwitchLight(SwitchlightE.HSiloN, list[13]); + ControlsImprot.SetSwitchLight(SwitchlightE.HSiloO, list[14]); diff --git a/DataBlockHelper/DBHelpers/DB139Helper.cs b/DataBlockHelper/DBHelpers/DB139Helper.cs index 2469195..e2f5358 100644 --- a/DataBlockHelper/DBHelpers/DB139Helper.cs +++ b/DataBlockHelper/DBHelpers/DB139Helper.cs @@ -1,4 +1,5 @@ using HslCommunication; +using HslCommunication.Profinet.Inovance; using System; using System.Collections.Generic; @@ -71,7 +72,10 @@ namespace DataBlockHelper.DBHelpers con = content[1]; result.Add(con.GetBit(0)); result.Add(con.GetBit(1)); - result.Add(con.GetBit(2)); + + var bbbb=con.GetBit(2); + + db = PlcConnect.Instance.Read("M1202.0", 1); @@ -82,6 +86,9 @@ namespace DataBlockHelper.DBHelpers result.Add(con.GetBit(1)); result.Add(con.GetBit(2)); result.Add(con.GetBit(3)); + + + result.Add(bbbb); return result; } }