|
|
|
@ -360,11 +360,42 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//设置现场重量
|
|
|
|
|
|
|
|
|
|
if(ButtonE.GelSetWeight == runtime.Sender)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var singE = ControlsHelper.SingleSelect(RadioE);
|
|
|
|
|
if (singE == 0)
|
|
|
|
|
{
|
|
|
|
|
MessageBox.Show("请选择湿混机");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
float t = Convert.ToSingle(TextE.ManualTolerance.MCValue.ToString());
|
|
|
|
|
float w = Convert.ToSingle(TextE.ManualWeight.MCValue.ToString());
|
|
|
|
|
int no = (singE + 1) / 2;
|
|
|
|
|
string message = $"确认设置螺旋{no} 现场重量 {w}";
|
|
|
|
|
if (MessageBox.Show($"{message}?", "现场参数确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (t < 0.1)
|
|
|
|
|
{
|
|
|
|
|
MessageBox.Show("公差不能小于0.1!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SetValue value = new SetValue()
|
|
|
|
|
{
|
|
|
|
|
Value = w,
|
|
|
|
|
Toterance = t
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PlcAutoWriteHelper.WetSetWeight(value, RadioE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|