diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/PlcReadTempEntity.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/PlcReadTempEntity.cs index df65f10..470f2b0 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/PlcReadTempEntity.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/Entity/PlcReadTempEntity.cs @@ -74,7 +74,7 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl.Entity public int ValueWeight1 { get; set; } public int ValueWeight2 { get; set; } public int ValueWeight3 { get; set; } - public int ValueWeight4 { get; set; } + public string ValueWeight4 { get; set; } public float topPressure_V1_Set { get; set; } public float topPressure_V2_Set { get; set; } diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs index 9c5c60d..5d8e6e6 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs @@ -1440,25 +1440,27 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl //yang 4特殊处理下 采用2107 - if (!PlcReadTemp.DM2DSF01L_Set && !PlcReadTemp.DM2DSF01R_Set) - { - PlcReadTemp.ValueWeight4 = 0; - } - else - { + //if (!PlcReadTemp.DM2DSF01L_Set && !PlcReadTemp.DM2DSF01R_Set) + //{ + // PlcReadTemp.ValueWeight4 = "0"; + //} + //else + //{ - } - + //} if (PlcReadTemp.DM2DSF01L_Set) { - PlcReadTemp.ValueWeight4 = Convert.ToInt32(DB2107.Weter[6].FeedValue.ToString()); + + PlcReadTemp.ValueWeight4 = DB2107.Weter[6].FeedValue.ToString("0.#"); } else { - PlcReadTemp.ValueWeight4 = Convert.ToInt32(DB2107.Weter[7].FeedValue.ToString()); + + PlcReadTemp.ValueWeight4 = DB2107.Weter[7].FeedValue.ToString("0.#"); } + SetMCLabel(LabelE.ValueWeight1, PlcReadTemp.ValueWeight1); SetMCLabel(LabelE.ValueWeight2, PlcReadTemp.ValueWeight2); SetMCLabel(LabelE.ValueWeight3, PlcReadTemp.ValueWeight3);