7 8号的湿混机器显示称量位数不对

dep
我叫锄头 12 months ago
parent 5b7fd0cc53
commit fa6c67e67f

@ -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; }

@ -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);

Loading…
Cancel
Save