From ca33b1412d91b722d3d3450422ea1c6b0e40aa3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=94=84=E5=A4=B4?= Date: Sun, 9 Jun 2024 13:05:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entity/DeviceDetailEntity.cs | 14 + .../Entity/PlcReadTempEntity.cs | 14 + .../MainDetailControlAction.cs | 35 +++ DataBlockHelper/DBHelpers/DB2108HelperNew.cs | 126 ++++++++ .../DBHelpers/DB2108HelperWriteNew.cs | 56 ++++ .../DBHelpers/DB2110WriteHelper.cs | 58 ++++ DataBlockHelper/DBHelpers/Db2110Help.cs | 50 +++ DataBlockHelper/DataBlockHelper.csproj | 4 + .../Entity/DB2107Entity/PressureEntity.cs | 14 + .../Data/MCProject/nodeForm/MainDetail.xml | 290 +++++++++++++++++- 10 files changed, 651 insertions(+), 10 deletions(-) create mode 100644 DataBlockHelper/DBHelpers/DB2108HelperNew.cs create mode 100644 DataBlockHelper/DBHelpers/DB2108HelperWriteNew.cs create mode 100644 DataBlockHelper/DBHelpers/DB2110WriteHelper.cs create mode 100644 DataBlockHelper/DBHelpers/Db2110Help.cs diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/DeviceDetailEntity.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/DeviceDetailEntity.cs index ea5e855..0fb8fd3 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/DeviceDetailEntity.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/DeviceDetailEntity.cs @@ -25,14 +25,23 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl.Entity public MCLabel conveyV1_PV { get; set; } public MCLabel conveyV2_PV { get; set; } public MCLabel conveyV3_PV { get; set; } + + public MCLabel conveyV4_PV { get; set; } + public MCLabel conveyV5_PV { get; set; } public MCLabel mainPress_V1_ActualValue { get; set; } public MCLabel mainPress_V2_ActualValue { get; set; } public MCLabel mainPress_V3_ActualValue { get; set; } + + public MCLabel mainPress_V4_ActualValue { get; set; } + public MCLabel mainPress_V5_ActualValue { get; set; } public MCLabel purgeV1_PV { get; set; } public MCLabel purgeV2_PV { get; set; } public MCLabel purgeV3_PV { get; set; } + + public MCLabel purgeV4_PV { get; set; } + public MCLabel purgeV5_PV { get; set; } public MCLabel WScale_1_ActWeight { get; set; } public MCLabel WScale_2_ActWeight { get; set; } @@ -362,6 +371,11 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl.Entity public Jzf AS3BLT03 { get; set; } public Jzf AS3BLT04 { get; set; } public Jzf AS3BLT05 { get; set; } + + public Jzf AS4BLT04 { get; set; } + + public Jzf AS4BLT05 { get; set; } + public Jzf AS4BLT01 { get; set; } public Jzf AS4BLT03 { get; set; } public Jzf AS5BLT01 { get; set; } diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/PlcReadTempEntity.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/PlcReadTempEntity.cs index 28b4081..7a40b52 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/PlcReadTempEntity.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/PlcReadTempEntity.cs @@ -89,14 +89,23 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl.Entity public float conveyV1_PV_Set { get; set; } public float conveyV2_PV_Set { get; set; } public float conveyV3_PV_Set { get; set; } + + public float conveyV4_PV_Set { get; set; } + public float conveyV5_PV_Set { get; set; } public float mainPress_V1_ActualValue_Set { get; set; } public float mainPress_V2_ActualValue_Set { get; set; } public float mainPress_V3_ActualValue_Set { get; set; } + + public float mainPress_V4_ActualValue_Set { get; set; } + public float mainPress_V5_ActualValue_Set { get; set; } public float purgeV1_PV_Set { get; set; } public float purgeV2_PV_Set { get; set; } public float purgeV3_PV_Set { get; set; } + + public float purgeV4_PV_Set { get; set; } + public float purgeV5_PV_Set { get; set; } public float WScale_1_ActWeight_Set { get; set; } public float WScale_2_ActWeight_Set { get; set; } @@ -179,8 +188,13 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl.Entity public bool AS3BLT03_Set { get; set; } public bool AS3BLT04_Set { get; set; } public bool AS3BLT05_Set { get; set; } + public bool AS4BLT01_Set { get; set; } public bool AS4BLT03_Set { get; set; } + + public bool AS4BLT04_Set { get; set; } + public bool AS4BLT05_Set { get; set; } + public bool AS5BLT01_Set { get; set; } public bool AS5BLT02_Set { get; set; } public bool AS5BLT03_Set { get; set; } diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs index 13ae331..99edb0b 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs @@ -1529,14 +1529,22 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl PlcReadTemp.conveyV1_PV_Set = DB2107.PID.Convey_V1.PV; PlcReadTemp.conveyV2_PV_Set = DB2107.PID.Convey_V2.PV; PlcReadTemp.conveyV3_PV_Set = DB2107.PID.Convey_V3.PV; + + PlcReadTemp.conveyV4_PV_Set = DB2107.PID.Convey_V4.PV; + PlcReadTemp.conveyV5_PV_Set = DB2107.PID.Convey_V5.PV; PlcReadTemp.mainPress_V1_ActualValue_Set = DB2107.Pressure.MainPress_V1.ActualValue; PlcReadTemp.mainPress_V2_ActualValue_Set = DB2107.Pressure.MainPress_V2.ActualValue; PlcReadTemp.mainPress_V3_ActualValue_Set = DB2107.Pressure.MainPress_V3.ActualValue; + PlcReadTemp.mainPress_V4_ActualValue_Set = DB2107.Pressure.MainPress_V4.ActualValue; + PlcReadTemp.mainPress_V5_ActualValue_Set = DB2107.Pressure.MainPress_V5.ActualValue; PlcReadTemp.purgeV1_PV_Set = DB2107.PID.Purge_V1.PV; PlcReadTemp.purgeV2_PV_Set = DB2107.PID.Purge_V2.PV; PlcReadTemp.purgeV3_PV_Set = DB2107.PID.Purge_V3.PV; + PlcReadTemp.purgeV4_PV_Set = DB2107.PID.Purge_V4.PV; + + PlcReadTemp.purgeV5_PV_Set = DB2107.PID.Purge_V5.PV; PlcReadTemp.WScale_1_ActWeight_Set = DB2107.Weight.WScale_1.ActWeight; PlcReadTemp.WScale_2_ActWeight_Set = DB2107.Weight.WScale_2.ActWeight; @@ -1565,6 +1573,13 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl PlcReadTemp.AS3BLT05_Set = DB2107.Valve.AS3BLT05; PlcReadTemp.AS4BLT01_Set = DB2107.Valve.AS4BLT01; PlcReadTemp.AS4BLT03_Set = DB2107.Valve.AS4BLT03; + + PlcReadTemp.AS4BLT04_Set = DB2107.Valve.AS4BLT04; + + PlcReadTemp.AS4BLT05_Set = DB2107.Valve.AS4BLT05; + + //AS4BLT04_Set + PlcReadTemp.AS5BLT01_Set = DB2107.Valve.AS5BLT01; PlcReadTemp.AS5BLT02_Set = DB2107.Valve.AS5BLT02; PlcReadTemp.AS5BLT03_Set = DB2107.Valve.AS5BLT03; @@ -1780,14 +1795,24 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl ControlsHelper.SetMCLabel(LabelE.conveyV1_PV, (float)Math.Round(PlcReadTemp.conveyV1_PV_Set, 2)); ControlsHelper.SetMCLabel(LabelE.conveyV2_PV, (float)Math.Round(PlcReadTemp.conveyV2_PV_Set, 2)); ControlsHelper.SetMCLabel(LabelE.conveyV3_PV, (float)Math.Round(PlcReadTemp.conveyV3_PV_Set, 2)); + + ControlsHelper.SetMCLabel(LabelE.conveyV4_PV, (float)Math.Round(PlcReadTemp.conveyV4_PV_Set, 2)); + ControlsHelper.SetMCLabel(LabelE.conveyV5_PV, (float)Math.Round(PlcReadTemp.conveyV5_PV_Set, 2)); ControlsHelper.SetMCLabel(LabelE.mainPress_V1_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V1_ActualValue_Set, 2)); ControlsHelper.SetMCLabel(LabelE.mainPress_V2_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V2_ActualValue_Set, 2)); ControlsHelper.SetMCLabel(LabelE.mainPress_V3_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V3_ActualValue_Set, 2)); + + ControlsHelper.SetMCLabel(LabelE.mainPress_V4_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V4_ActualValue_Set, 2)); + + ControlsHelper.SetMCLabel(LabelE.mainPress_V5_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V5_ActualValue_Set, 2)); ControlsHelper.SetMCLabel(LabelE.purgeV1_PV, (float)Math.Round(PlcReadTemp.purgeV1_PV_Set, 2)); ControlsHelper.SetMCLabel(LabelE.purgeV2_PV, (float)Math.Round(PlcReadTemp.purgeV2_PV_Set, 2)); ControlsHelper.SetMCLabel(LabelE.purgeV3_PV, (float)Math.Round(PlcReadTemp.purgeV3_PV_Set, 2)); + + ControlsHelper.SetMCLabel(LabelE.purgeV4_PV, (float)Math.Round(PlcReadTemp.purgeV4_PV_Set, 2)); + ControlsHelper.SetMCLabel(LabelE.purgeV5_PV, (float)Math.Round(PlcReadTemp.purgeV5_PV_Set, 2)); ControlsHelper.SetMCLabel(LabelE.WScale_1_ActWeight, (float)Math.Round(PlcReadTemp.WScale_1_ActWeight_Set, 2)); ControlsHelper.SetMCLabel(LabelE.WScale_2_ActWeight, (float)Math.Round(PlcReadTemp.WScale_2_ActWeight_Set, 2)); @@ -1827,8 +1852,18 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl ControlsHelper.SetJzf(JzfE.AS3BLT03, PlcReadTemp.AS3BLT03_Set); ControlsHelper.SetJzf(JzfE.AS3BLT04, PlcReadTemp.AS3BLT04_Set); ControlsHelper.SetJzf(JzfE.AS3BLT05, PlcReadTemp.AS3BLT05_Set); + + ControlsHelper.SetJzf(JzfE.AS4BLT01, PlcReadTemp.AS4BLT01_Set); ControlsHelper.SetJzf(JzfE.AS4BLT03, PlcReadTemp.AS4BLT03_Set); + + + ControlsHelper.SetJzf(JzfE.AS4BLT04, PlcReadTemp.AS4BLT04_Set); + ControlsHelper.SetJzf(JzfE.AS4BLT05, PlcReadTemp.AS4BLT05_Set); + + + + ControlsHelper.SetJzf(JzfE.AS5BLT01, PlcReadTemp.AS5BLT01_Set); ControlsHelper.SetJzf(JzfE.AS5BLT02, PlcReadTemp.AS5BLT02_Set); ControlsHelper.SetJzf(JzfE.AS5BLT03, PlcReadTemp.AS5BLT03_Set); diff --git a/DataBlockHelper/DBHelpers/DB2108HelperNew.cs b/DataBlockHelper/DBHelpers/DB2108HelperNew.cs new file mode 100644 index 0000000..44b56b5 --- /dev/null +++ b/DataBlockHelper/DBHelpers/DB2108HelperNew.cs @@ -0,0 +1,126 @@ +using HslCommunication; + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Web.UI.WebControls; +using System.Web.UI; +using DataBlockHelper.Entity.DB2107Entity; + +namespace DataBlockHelper.DBHelpers +{ + public class DB2108HelperNew: DBHelper + { + public DB2108HelperNew() + { + OperateResult db = PlcConnect.Instance.Read("DB2108.0.0", 108); + bytes = db.Content; + } + + public MainFan Main => new MainFan(0, bytes); + + public MainFan CoolWaterA => new MainFan(2, bytes); + + public MainFan CoolWaterB => new MainFan(4, bytes); + + public MainFan HotWaterA => new MainFan(6, bytes); + + public MainFan HotWaterB => new MainFan(8, bytes); + + public MainFan Daybin1 => new MainFan(10, bytes); + public MainFan Daybin2 => new MainFan(12, bytes); + public MainFan Daybin3 => new MainFan(14, bytes); + public MainFan Daybin4 => new MainFan(16, bytes); + public MainFan Daybin5 => new MainFan(18, bytes); + public MainFan Daybin6 => new MainFan(20, bytes); + public MainFan Daybin7 => new MainFan(22, bytes); + public MainFan Daybin8 => new MainFan(24, bytes); + + public Time2108 Time=>new Time2108(26,bytes); + + public Pressure_HMI PR2PCP04=>new Pressure_HMI(50,bytes); + + + } + + public class MainFan + { + public MainFan(ushort startSet, byte[] bytes) + { + var content = bytes.Skip(startSet).Take(1).First(); + var trans = PlcConnect.Instance.ByteTransform; + enable= content.GetBit(0); + pause = content.GetBit(1); + ready = content.GetBit(2); + } + + public bool enable { get; set; } + public bool pause { get; set; } + public bool ready { get; set; } + } + + public class Time2108 + { + + public Time2108() { } + + + /// + + /// + /// + /// + public Time2108(ushort startSet, byte[] bytes) + { + var content = bytes.Skip(startSet).Take(24).ToArray(); + var trans = PlcConnect.Instance.ByteTransform; + VibSiloOn = trans.TransUInt16(content, 0); + VibSiloOff = trans.TransUInt16(content, 2); + VibDaybinOn = trans.TransUInt16(content, 4); + VibDaybinOff = trans.TransUInt16(content, 6); + + VibHopperOn = trans.TransUInt16(content, 8); + VibHopperOff = trans.TransUInt16(content, 10); + + PlsSiloOn = trans.TransUInt16(content, 12); + PlsSiloOff = trans.TransUInt16(content, 14); + + PlsDaybinOn = trans.TransUInt16(content, 16); + PlsDaybinOff = trans.TransUInt16(content, 18); + + PlsHopperOn = trans.TransUInt16(content, 20); + PlsHopperOff = trans.TransUInt16(content, 22); + } + + public ushort VibSiloOn { get; set; } + + public ushort VibSiloOff { get; set; } + + public ushort VibDaybinOn { get; set; } + + public ushort VibDaybinOff { get; set; } + + public ushort VibHopperOn { get; set; } + + public ushort VibHopperOff { get; set; } + + + public ushort PlsSiloOn { get; set; } + + public ushort PlsSiloOff { get; set; } + + + public ushort PlsDaybinOn { get; set; } + + public ushort PlsDaybinOff { get; set; } + + + public ushort PlsHopperOn { get; set; } + + public ushort PlsHopperOff { get; set; } + + + } +} diff --git a/DataBlockHelper/DBHelpers/DB2108HelperWriteNew.cs b/DataBlockHelper/DBHelpers/DB2108HelperWriteNew.cs new file mode 100644 index 0000000..e89b366 --- /dev/null +++ b/DataBlockHelper/DBHelpers/DB2108HelperWriteNew.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DataBlockHelper.DBHelpers +{ + public class DB2108HelperWriteNew + { + + private static readonly string DbName = "DB2108"; + public static void Inser(Time2108 time) + { + + var siemensS7Net = PlcConnect.Instance; + int start = 26; + siemensS7Net.Write($"{DbName}.{start}.0", time.VibSiloOn); + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", time.VibSiloOff); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", time.VibDaybinOn); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", time.VibDaybinOff); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", time.VibHopperOn); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", time.VibHopperOff); + + //38 + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", time.PlsSiloOn); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", time.PlsSiloOff); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", time.PlsDaybinOn); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", time.PlsDaybinOff); + + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", time.PlsHopperOn); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", time.PlsHopperOff); + + } + } +} diff --git a/DataBlockHelper/DBHelpers/DB2110WriteHelper.cs b/DataBlockHelper/DBHelpers/DB2110WriteHelper.cs new file mode 100644 index 0000000..9e6b274 --- /dev/null +++ b/DataBlockHelper/DBHelpers/DB2110WriteHelper.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DataBlockHelper.DBHelpers +{ + public class DB2110WriteHelper + { + private static readonly string DbName = "DB2110"; + + public static void Write(Db2110Help help) + { + var siemensS7Net = PlcConnect.Instance; + int start = 3384; + siemensS7Net.Write($"{DbName}.{start}.0", help.queA0); + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", help.queA1); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", help.queA2); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", help.queA3); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", help.queA4); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", help.queB0); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", help.queB1); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", help.queB2); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", help.queB3); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", help.queB4); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", help.queB5); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", help.queB6); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", help.queB7); + + start += 2; + siemensS7Net.Write($"{DbName}.{start}.0", help.queB8); + } + } +} diff --git a/DataBlockHelper/DBHelpers/Db2110Help.cs b/DataBlockHelper/DBHelpers/Db2110Help.cs new file mode 100644 index 0000000..9239798 --- /dev/null +++ b/DataBlockHelper/DBHelpers/Db2110Help.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DataBlockHelper.DBHelpers +{ + public class Db2110Help: DBHelper + { + public Db2110Help() + { + bytes = PlcConnect.Instance.Read("DB2110.3384.0", 28).Content; + var content = bytes.ToArray(); + + queA0 = PlcConnect.Instance.ByteTransform.TransInt16(content, 0); + queA1 = PlcConnect.Instance.ByteTransform.TransInt16(content, 2); + queA2 = PlcConnect.Instance.ByteTransform.TransInt16(content, 4); + queA3 = PlcConnect.Instance.ByteTransform.TransInt16(content, 6); + queA4 = PlcConnect.Instance.ByteTransform.TransInt16(content, 8); + queB0 = PlcConnect.Instance.ByteTransform.TransInt16(content, 10); + queB1 = PlcConnect.Instance.ByteTransform.TransInt16(content, 12); + queB2 = PlcConnect.Instance.ByteTransform.TransInt16(content, 14); + queB3 = PlcConnect.Instance.ByteTransform.TransInt16(content, 16); + queB4 = PlcConnect.Instance.ByteTransform.TransInt16(content, 18); + queB5 = PlcConnect.Instance.ByteTransform.TransInt16(content, 20); + queB6 = PlcConnect.Instance.ByteTransform.TransInt16(content, 22); + queB7 = PlcConnect.Instance.ByteTransform.TransInt16(content, 24); + queB8 = PlcConnect.Instance.ByteTransform.TransInt16(content, 26); + + } + + public short queA0 { get; set; } + public short queA1 { get; set; } + public short queA2 { get; set; } + public short queA3 { get; set; } + public short queA4 { get; set; } + + public short queB0 { get; set; } + public short queB1 { get; set; } + public short queB2 { get; set; } + public short queB3 { get; set; } + + public short queB4 { get; set; } + public short queB5 { get; set; } + public short queB6 { get; set; } + public short queB7 { get; set; } + public short queB8 { get; set; } + } +} diff --git a/DataBlockHelper/DataBlockHelper.csproj b/DataBlockHelper/DataBlockHelper.csproj index 69a6ff5..2348cdd 100644 --- a/DataBlockHelper/DataBlockHelper.csproj +++ b/DataBlockHelper/DataBlockHelper.csproj @@ -61,7 +61,11 @@ + + + + diff --git a/DataBlockHelper/Entity/DB2107Entity/PressureEntity.cs b/DataBlockHelper/Entity/DB2107Entity/PressureEntity.cs index d3838fc..c40b401 100644 --- a/DataBlockHelper/Entity/DB2107Entity/PressureEntity.cs +++ b/DataBlockHelper/Entity/DB2107Entity/PressureEntity.cs @@ -67,6 +67,20 @@ namespace DataBlockHelper.Entity.DB2107Entity } + public void Pressure_HMINew(ushort startSet, byte[] bytes) + { + //OperateResult read = PlcConnect.Instance.Read("DB2107." + startSet + ".0", 14); + + var content = bytes.Skip(startSet).Take(14).ToArray(); + + ActualValue = PlcConnect.Instance.ByteTransform.TransSingle(content, 0); + LowLimit = PlcConnect.Instance.ByteTransform.TransSingle(content, 4); + HighLimit = PlcConnect.Instance.ByteTransform.TransSingle(content, 8); + + + } + + public float ActualValue { get; private set; } public float LowLimit { get; private set; } public float HighLimit { get; private set; } diff --git a/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml b/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml index 8599387..d208f31 100644 --- a/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml +++ b/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml @@ -1,6 +1,276 @@ + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1874, 244 + SpecialLabelBlue234 + 1, 10 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1784, 244 + SpecialLabelBlue235 + 1, 10 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1687, 244 + SpecialLabelBlue236 + 1, 10 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1561, 245 + SpecialLabelBlue237 + 1, 10 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1470, 244 + SpecialLabelBlue238 + 1, 10 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1375, 243 + SpecialLabelBlue239 + 1, 10 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1320, 244 + SpecialLabelBlue240 + 1, 10 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1223, 245 + SpecialLabelBlue241 + 1, 10 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1131, 245 + SpecialLabelBlue242 + 1, 10 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1010, 243 + SpecialLabelBlue243 + 1, 10 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 918, 245 + SpecialLabelBlue244 + 1, 10 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 819, 243 + SpecialLabelBlue245 + 1, 10 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1861, 187 + SpecialLabelBlue246 + 28, 1 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 1888, 188 + SpecialLabelBlue247 + 1, 55 + + + + + + + False + + + + None + True + True + MiddleCenter + MintCream + 819, 243 + SpecialLabelBlue248 + 1070, 1 + @@ -153,7 +423,7 @@ Jzf74 13, 11 - + Red @@ -170,7 +440,7 @@ 0 ButtonHighlight 416, 296 - MCLabel245 + purgeV4_PV 11, 12 @@ -191,7 +461,7 @@ SpecialLabelBlue252 1, 60 - + Red @@ -208,7 +478,7 @@ 0 ButtonHighlight 420, 240 - MCLabel244 + conveyV4_PV 11, 12 @@ -229,11 +499,11 @@ SpecialLabelBlue253 18, 1 - + TurnOff 471, 300 - Jzf75 + AS4BLT05 13, 11 @@ -241,11 +511,11 @@ Xie5 24, 8 - + TurnOff 469, 281 - Jzf76 + AS4BLT04 13, 11 @@ -320,7 +590,7 @@ SpecialLabelBlue257 29, 1 - + Red @@ -337,7 +607,7 @@ 0 ButtonHighlight 403, 265 - MCLabel243 + mainPress_V4_ActualValue 11, 12