|
|
@ -442,7 +442,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
|
|
|
|
|
|
|
#region 水称下传
|
|
|
|
#region 水称下传
|
|
|
|
|
|
|
|
|
|
|
|
public static void WaterDownload(MCTextBoxEntity TextE)
|
|
|
|
public static void WaterDownload(MCTextBoxEntity TextE, MCComboBoxEntity ComboE)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
WaterEntity HotA = new WaterEntity();
|
|
|
|
WaterEntity HotA = new WaterEntity();
|
|
|
|
WaterEntity ColdA = new WaterEntity();
|
|
|
|
WaterEntity ColdA = new WaterEntity();
|
|
|
@ -451,6 +451,11 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
|
|
|
|
|
|
|
float hotASet, hotBSet, coldASet, coldBSet, hotATol, hotBTol, coldATol, coldBTol;
|
|
|
|
float hotASet, hotBSet, coldASet, coldBSet, hotATol, hotBTol, coldATol, coldBTol;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
float cADeviation; ushort cALeftOrRight;
|
|
|
|
|
|
|
|
float hADeviation; ushort hALeftOrRight;
|
|
|
|
|
|
|
|
float cBDeviation; ushort cBLeftOrRight;
|
|
|
|
|
|
|
|
float hBDeviation; ushort hBLeftOrRight;
|
|
|
|
|
|
|
|
|
|
|
|
if (float.TryParse(Convert.ToString(TextE.HotValueA.MCValue), out hotASet) &&
|
|
|
|
if (float.TryParse(Convert.ToString(TextE.HotValueA.MCValue), out hotASet) &&
|
|
|
|
float.TryParse(Convert.ToString(TextE.HotToleranceA.MCValue), out hotATol) &&
|
|
|
|
float.TryParse(Convert.ToString(TextE.HotToleranceA.MCValue), out hotATol) &&
|
|
|
|
float.TryParse(Convert.ToString(TextE.HotValueB.MCValue), out hotBSet) &&
|
|
|
|
float.TryParse(Convert.ToString(TextE.HotValueB.MCValue), out hotBSet) &&
|
|
|
@ -458,16 +463,39 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
float.TryParse(Convert.ToString(TextE.ColdValueA.MCValue), out coldASet) &&
|
|
|
|
float.TryParse(Convert.ToString(TextE.ColdValueA.MCValue), out coldASet) &&
|
|
|
|
float.TryParse(Convert.ToString(TextE.ColdToleranceA.MCValue), out coldATol) &&
|
|
|
|
float.TryParse(Convert.ToString(TextE.ColdToleranceA.MCValue), out coldATol) &&
|
|
|
|
float.TryParse(Convert.ToString(TextE.ColdValueB.MCValue), out coldBSet) &&
|
|
|
|
float.TryParse(Convert.ToString(TextE.ColdValueB.MCValue), out coldBSet) &&
|
|
|
|
float.TryParse(Convert.ToString(TextE.ColdToleranceB.MCValue), out coldBTol))
|
|
|
|
float.TryParse(Convert.ToString(TextE.ColdToleranceB.MCValue), out coldBTol)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&& float.TryParse(Convert.ToString(TextE.CADeviation.MCValue), out cADeviation)
|
|
|
|
|
|
|
|
&& float.TryParse(Convert.ToString(TextE.HADeviation.MCValue), out hADeviation)
|
|
|
|
|
|
|
|
&& float.TryParse(Convert.ToString(TextE.CBDeviation.MCValue), out cBDeviation)
|
|
|
|
|
|
|
|
&& float.TryParse(Convert.ToString(TextE.HBDeviation.MCValue), out hBDeviation)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
HotA.Set = hotASet;
|
|
|
|
HotA.Set = hotASet;
|
|
|
|
HotB.Set = hotBSet;
|
|
|
|
HotB.Set = hotBSet;
|
|
|
|
ColdA.Set = coldASet;
|
|
|
|
ColdA.Set = coldASet;
|
|
|
|
ColdB.Set = coldBSet;
|
|
|
|
ColdB.Set = coldBSet;
|
|
|
|
|
|
|
|
|
|
|
|
HotA.Tolerance = hotATol;
|
|
|
|
HotA.Tolerance = hotATol;
|
|
|
|
HotB.Tolerance = hotBTol;
|
|
|
|
HotB.Tolerance = hotBTol;
|
|
|
|
ColdA.Tolerance = coldATol;
|
|
|
|
ColdA.Tolerance = coldATol;
|
|
|
|
ColdB.Tolerance = coldBTol;
|
|
|
|
ColdB.Tolerance = coldBTol;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HotA.differ = hADeviation;
|
|
|
|
|
|
|
|
HotB.differ = hBDeviation;
|
|
|
|
|
|
|
|
ColdA.differ = cADeviation;
|
|
|
|
|
|
|
|
ColdB.differ= cBDeviation;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HotA.stand = Convert.ToInt16(ComboE.HALeftOrRight.MCValue);
|
|
|
|
|
|
|
|
HotB.stand = Convert.ToInt16(ComboE.HBLeftOrRight.MCValue);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ColdA.stand = Convert.ToInt16(ComboE.CALeftOrRight.MCValue);
|
|
|
|
|
|
|
|
ColdB.stand = Convert.ToInt16(ComboE.CBLeftOrRight.MCValue);
|
|
|
|
|
|
|
|
|
|
|
|
Db2104WriteHelper.WriteAHostWater(HotA);
|
|
|
|
Db2104WriteHelper.WriteAHostWater(HotA);
|
|
|
|
Db2104WriteHelper.WriteBHostWater(HotB);
|
|
|
|
Db2104WriteHelper.WriteBHostWater(HotB);
|
|
|
|
Db2104WriteHelper.WriteAColWater(ColdA);
|
|
|
|
Db2104WriteHelper.WriteAColWater(ColdA);
|
|
|
|