wangsr
nodyang 1 year ago
commit 7debe29fb0

@ -232,6 +232,8 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
MessageBox.Show("请选择一条产线!"); MessageBox.Show("请选择一条产线!");
return; return;
} }
MessageBox.Show("数据下传成功!");
} }
#endregion #endregion

@ -59,23 +59,24 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
ControlsEntity.ChooseMaterial2.SelectedIndex = -1; ControlsEntity.ChooseMaterial2.SelectedIndex = -1;
} }
var dryerView = LjPlanningPlcHelp.GetGelatG1; var getGelatG1 = LjPlanningPlcHelp.GetGelatG1;
var getWeterM1 = LjPlanningPlcHelp.GetWeterM1;
ControlsEntity.MaterialWeight1.MCValue = dryerView.RecipePlcViews[0].Set;
ControlsEntity.MaterialWeight2.MCValue = dryerView.RecipePlcViews[1].Set; ControlsEntity.MaterialWeight1.MCValue = getGelatG1.RecipePlcViews[0].Set;
ControlsEntity.MaterialTolerance1.MCValue = dryerView.RecipePlcViews[0].Tolerance; ControlsEntity.MaterialWeight2.MCValue = getGelatG1.RecipePlcViews[1].Set;
ControlsEntity.MaterialTolerance2.MCValue = dryerView.RecipePlcViews[1].Tolerance; ControlsEntity.MaterialTolerance1.MCValue = getGelatG1.RecipePlcViews[0].Tolerance;
ControlsEntity.GelSpeedSet.MCValue = dryerView.RecipeSteps[0].MixSpeed; ControlsEntity.MaterialTolerance2.MCValue = getGelatG1.RecipePlcViews[1].Tolerance;
ControlsEntity.GelPosTimeA.MCValue = dryerView.RecipeSteps[2].MixTemp; ControlsEntity.GelSpeedSet.MCValue = getGelatG1.RecipeSteps[0].MixSpeed;
ControlsEntity.GelNagTimeB.MCValue = dryerView.RecipeSteps[2].MixSpeed; ControlsEntity.GelPosTimeA.MCValue = getGelatG1.RecipeSteps[2].MixTemp;
ControlsEntity.GelPosTimeC.MCValue = dryerView.RecipeSteps[2].MixTime; ControlsEntity.GelNagTimeB.MCValue = getGelatG1.RecipeSteps[2].MixSpeed;
ControlsEntity.GelWaterTime.MCValue = dryerView.RecipeSteps[4].MixTime; ControlsEntity.GelPosTimeC.MCValue = getGelatG1.RecipeSteps[2].MixTime;
ControlsEntity.GelWaitTime.MCValue = dryerView.RecipeSteps[6].MixTime; ControlsEntity.GelWaterTime.MCValue = getGelatG1.RecipeSteps[4].MixTime;
ControlsEntity.GelCloseHeatTime.MCValue = dryerView.RecipeSteps[7].MixTime; ControlsEntity.GelWaitTime.MCValue = getGelatG1.RecipeSteps[6].MixTime;
ControlsEntity.GelOutDelayTime.MCValue = dryerView.RecipeSteps[7].MixTemp; ControlsEntity.GelCloseHeatTime.MCValue = getGelatG1.RecipeSteps[7].MixTime;
ControlsEntity.WetDryWeight.MCValue = LjPlanningPlcHelp.GetWeterM1[1].SetValue; ControlsEntity.GelOutDelayTime.MCValue = getGelatG1.RecipeSteps[7].MixTemp;
ControlsEntity.WetMixTime.MCValue = LjPlanningPlcHelp.GetWeterM1[2].MixTime; ControlsEntity.WetDryWeight.MCValue = getWeterM1[1].SetValue;
ControlsEntity.WetOutDelayTime.MCValue = LjPlanningPlcHelp.GetWeterM1[4].MixTime; ControlsEntity.WetMixTime.MCValue = getWeterM1[2].MixTime;
ControlsEntity.WetOutDelayTime.MCValue = getWeterM1[4].MixTime;
} }
/// <summary> /// <summary>

Loading…
Cancel
Save