|
|
@ -1440,25 +1440,27 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
//yang 4特殊处理下 采用2107
|
|
|
|
//yang 4特殊处理下 采用2107
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!PlcReadTemp.DM2DSF01L_Set && !PlcReadTemp.DM2DSF01R_Set)
|
|
|
|
//if (!PlcReadTemp.DM2DSF01L_Set && !PlcReadTemp.DM2DSF01R_Set)
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
PlcReadTemp.ValueWeight4 = 0;
|
|
|
|
// PlcReadTemp.ValueWeight4 = "0";
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
else
|
|
|
|
//else
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//}
|
|
|
|
if (PlcReadTemp.DM2DSF01L_Set)
|
|
|
|
if (PlcReadTemp.DM2DSF01L_Set)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
PlcReadTemp.ValueWeight4 = Convert.ToInt32(DB2107.Weter[6].FeedValue.ToString());
|
|
|
|
|
|
|
|
|
|
|
|
PlcReadTemp.ValueWeight4 = DB2107.Weter[6].FeedValue.ToString("0.#");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
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.ValueWeight1, PlcReadTemp.ValueWeight1);
|
|
|
|
SetMCLabel(LabelE.ValueWeight2, PlcReadTemp.ValueWeight2);
|
|
|
|
SetMCLabel(LabelE.ValueWeight2, PlcReadTemp.ValueWeight2);
|
|
|
|
SetMCLabel(LabelE.ValueWeight3, PlcReadTemp.ValueWeight3);
|
|
|
|
SetMCLabel(LabelE.ValueWeight3, PlcReadTemp.ValueWeight3);
|
|
|
|