diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs index f4d7f19..6de54d9 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs @@ -851,6 +851,8 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl bool DV2PCP13_AlarmR; #endregion + + private MCLabel MCWatchDog; public void Run(RuntimeParameter runtime) { @@ -1067,6 +1069,9 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl #endregion Controls = GetAllControls(); + + MCWatchDog =Controls.FirstOrDefault(x=>x.Name=="MCWatchDog") as MCLabel; + SetControl(); @@ -1680,7 +1685,12 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl /// private void NewThreadDb2107() { - WatchDog_Set = DB2107.NormalStatus.WatchDog >= 1 ? true : false; + + var normalStatusWatchDog = DB2107.NormalStatus.WatchDog; + WatchDog_Set = normalStatusWatchDog >= 1 ? true : false; + + MCWatchDog.MCValue = normalStatusWatchDog.ToString(); + EMStop_Set = DB2107.NormalStatus.EMStop; Vessel_1_HighLevel_Set = DB2107.Weight.Vessel_1.HighLevel; diff --git a/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml b/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml index 97bf0e7..2786ebd 100644 --- a/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml +++ b/Main/MCEdit/Data/MCProject/nodeForm/MainDetail.xml @@ -1,6 +1,26 @@ + + + + Red + DarkGray + + + False + + + + Modify + True + True + MCLabel149 + Red + 23, 115 + MCWatchDog + 65, 12 +