diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliver/DeliverInitAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliver/DeliverInitAction.cs index 2f33d44..6b6b737 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliver/DeliverInitAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliver/DeliverInitAction.cs @@ -224,7 +224,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver ControlsImprot.SetSwitchLight(SwitchlightE.LSiloK, list[10]); ControlsImprot.SetSwitchLight(SwitchlightE.LSiloL, list[11]); ControlsImprot.SetSwitchLight(SwitchlightE.LSiloM, list[12]); - ControlsImprot.SetSwitchLight(SwitchlightE.LSiloM, list[13]); + ControlsImprot.SetSwitchLight(SwitchlightE.LSiloN, list[13]); ControlsImprot.SetSwitchLight(SwitchlightE.LSiloO, list[14]); @@ -243,11 +243,11 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver ControlsImprot.SetSwitchLight(SwitchlightE.HSiloI, list[8]); ControlsImprot.SetSwitchLight(SwitchlightE.HSiloJ, list[9]); - //ControlsImprot.SetSwitchLight(SwitchlightE.LSiloK, list[10]); - //ControlsImprot.SetSwitchLight(SwitchlightE.LSiloL, list[11]); - //ControlsImprot.SetSwitchLight(SwitchlightE.LSiloM, list[12]); - //ControlsImprot.SetSwitchLight(SwitchlightE.LSiloM, list[13]); - ControlsImprot.SetSwitchLight(SwitchlightE.HSiloO, list[10]); + ControlsImprot.SetSwitchLight(SwitchlightE.LSiloK, list[10]); + ControlsImprot.SetSwitchLight(SwitchlightE.LSiloL, list[11]); + ControlsImprot.SetSwitchLight(SwitchlightE.LSiloM, list[12]); + ControlsImprot.SetSwitchLight(SwitchlightE.LSiloN, list[13]); + ControlsImprot.SetSwitchLight(SwitchlightE.HSiloO, list[14]); } diff --git a/DataBlockHelper/DBHelpers/DB139Helper.cs b/DataBlockHelper/DBHelpers/DB139Helper.cs index 7038e4c..2469195 100644 --- a/DataBlockHelper/DBHelpers/DB139Helper.cs +++ b/DataBlockHelper/DBHelpers/DB139Helper.cs @@ -72,8 +72,16 @@ namespace DataBlockHelper.DBHelpers result.Add(con.GetBit(0)); result.Add(con.GetBit(1)); result.Add(con.GetBit(2)); - + + db = PlcConnect.Instance.Read("M1202.0", 1); + content = db.Content.ToArray(); + con = content[0]; + + result.Add(con.GetBit(0)); + result.Add(con.GetBit(1)); + result.Add(con.GetBit(2)); + result.Add(con.GetBit(3)); return result; } } diff --git a/Main/MCEdit/Data/MCProject/nodeDataSource.xml b/Main/MCEdit/Data/MCProject/nodeDataSource.xml index 3600a0d..387be9b 100644 --- a/Main/MCEdit/Data/MCProject/nodeDataSource.xml +++ b/Main/MCEdit/Data/MCProject/nodeDataSource.xml @@ -1,3 +1,3 @@ - + \ No newline at end of file