|
|
|
@ -101,52 +101,55 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
ComboE.ChooseMaterial2.SelectedIndex = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var getGelatG1 = LjPlanningPlcHelp.GetGelatG1;
|
|
|
|
|
var getWeterM1 = LjPlanningPlcHelp.GetWeterM1;
|
|
|
|
|
var getGelatG2 = LjPlanningPlcHelp.GetGelatG2;
|
|
|
|
|
var getWeterM2 = LjPlanningPlcHelp.GetWeterM2;
|
|
|
|
|
var getGelatG3 = LjPlanningPlcHelp.GetGelatG3;
|
|
|
|
|
var getWeterM3 = LjPlanningPlcHelp.GetWeterM3;
|
|
|
|
|
var getGelatG4 = LjPlanningPlcHelp.GetGelatG4;
|
|
|
|
|
var getWeterM4 = LjPlanningPlcHelp.GetWeterM4;
|
|
|
|
|
var getGelatG5 = LjPlanningPlcHelp.GetGelatG5;
|
|
|
|
|
var getWeterM5 = LjPlanningPlcHelp.GetWeterM5;
|
|
|
|
|
var getGelatG6 = LjPlanningPlcHelp.GetGelatG6;
|
|
|
|
|
var getWeterM6 = LjPlanningPlcHelp.GetWeterM6;
|
|
|
|
|
var getGelatG7 = LjPlanningPlcHelp.GetGelatG7;
|
|
|
|
|
var getWeterM7 = LjPlanningPlcHelp.GetWeterM7;
|
|
|
|
|
var getGelatG8 = LjPlanningPlcHelp.GetGelatG8;
|
|
|
|
|
var getWeterM8 = LjPlanningPlcHelp.GetWeterM8;
|
|
|
|
|
|
|
|
|
|
switch (select)
|
|
|
|
|
{
|
|
|
|
|
case 1:
|
|
|
|
|
GWDataShow(getGelatG1, getWeterM1, TextE);
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
GWDataShow(getGelatG2, getWeterM2, TextE);
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
GWDataShow(getGelatG3, getWeterM3, TextE);
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
GWDataShow(getGelatG4, getWeterM4, TextE);
|
|
|
|
|
break;
|
|
|
|
|
case 5:
|
|
|
|
|
GWDataShow(getGelatG5, getWeterM5, TextE);
|
|
|
|
|
break;
|
|
|
|
|
case 6:
|
|
|
|
|
GWDataShow(getGelatG6, getWeterM6, TextE);
|
|
|
|
|
break;
|
|
|
|
|
case 7:
|
|
|
|
|
GWDataShow(getGelatG7, getWeterM7, TextE);
|
|
|
|
|
break;
|
|
|
|
|
case 8:
|
|
|
|
|
GWDataShow(getGelatG8, getWeterM8, TextE);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
GWDataShow(selected, TextE, select);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//var getGelatG1 = LjPlanningPlcHelp.GetGelatG1;
|
|
|
|
|
//var getWeterM1 = LjPlanningPlcHelp.GetWeterM1;
|
|
|
|
|
//var getGelatG2 = LjPlanningPlcHelp.GetGelatG2;
|
|
|
|
|
//var getWeterM2 = LjPlanningPlcHelp.GetWeterM2;
|
|
|
|
|
//var getGelatG3 = LjPlanningPlcHelp.GetGelatG3;
|
|
|
|
|
//var getWeterM3 = LjPlanningPlcHelp.GetWeterM3;
|
|
|
|
|
//var getGelatG4 = LjPlanningPlcHelp.GetGelatG4;
|
|
|
|
|
//var getWeterM4 = LjPlanningPlcHelp.GetWeterM4;
|
|
|
|
|
//var getGelatG5 = LjPlanningPlcHelp.GetGelatG5;
|
|
|
|
|
//var getWeterM5 = LjPlanningPlcHelp.GetWeterM5;
|
|
|
|
|
//var getGelatG6 = LjPlanningPlcHelp.GetGelatG6;
|
|
|
|
|
//var getWeterM6 = LjPlanningPlcHelp.GetWeterM6;
|
|
|
|
|
//var getGelatG7 = LjPlanningPlcHelp.GetGelatG7;
|
|
|
|
|
//var getWeterM7 = LjPlanningPlcHelp.GetWeterM7;
|
|
|
|
|
//var getGelatG8 = LjPlanningPlcHelp.GetGelatG8;
|
|
|
|
|
//var getWeterM8 = LjPlanningPlcHelp.GetWeterM8;
|
|
|
|
|
|
|
|
|
|
//switch (select)
|
|
|
|
|
//{
|
|
|
|
|
// case 1:
|
|
|
|
|
// GWDataShow(getGelatG1, getWeterM1, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// case 2:
|
|
|
|
|
// GWDataShow(getGelatG2, getWeterM2, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// case 3:
|
|
|
|
|
// GWDataShow(getGelatG3, getWeterM3, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// case 4:
|
|
|
|
|
// GWDataShow(getGelatG4, getWeterM4, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// case 5:
|
|
|
|
|
// GWDataShow(getGelatG5, getWeterM5, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// case 6:
|
|
|
|
|
// GWDataShow(getGelatG6, getWeterM6, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// case 7:
|
|
|
|
|
// GWDataShow(getGelatG7, getWeterM7, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// case 8:
|
|
|
|
|
// GWDataShow(getGelatG8, getWeterM8, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// default:
|
|
|
|
|
// return;
|
|
|
|
|
//}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -167,52 +170,54 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
ComboE.ChooseMaterial2.SelectedIndex = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var getGelatG1 = LjPlanningPlcHelp.GetGelatG1;
|
|
|
|
|
var getWeterM1 = LjPlanningPlcHelp.GetWeterM1;
|
|
|
|
|
var getGelatG2 = LjPlanningPlcHelp.GetGelatG2;
|
|
|
|
|
var getWeterM2 = LjPlanningPlcHelp.GetWeterM2;
|
|
|
|
|
var getGelatG3 = LjPlanningPlcHelp.GetGelatG3;
|
|
|
|
|
var getWeterM3 = LjPlanningPlcHelp.GetWeterM3;
|
|
|
|
|
var getGelatG4 = LjPlanningPlcHelp.GetGelatG4;
|
|
|
|
|
var getWeterM4 = LjPlanningPlcHelp.GetWeterM4;
|
|
|
|
|
var getGelatG5 = LjPlanningPlcHelp.GetGelatG5;
|
|
|
|
|
var getWeterM5 = LjPlanningPlcHelp.GetWeterM5;
|
|
|
|
|
var getGelatG6 = LjPlanningPlcHelp.GetGelatG6;
|
|
|
|
|
var getWeterM6 = LjPlanningPlcHelp.GetWeterM6;
|
|
|
|
|
var getGelatG7 = LjPlanningPlcHelp.GetGelatG7;
|
|
|
|
|
var getWeterM7 = LjPlanningPlcHelp.GetWeterM7;
|
|
|
|
|
var getGelatG8 = LjPlanningPlcHelp.GetGelatG8;
|
|
|
|
|
var getWeterM8 = LjPlanningPlcHelp.GetWeterM8;
|
|
|
|
|
|
|
|
|
|
switch (select)
|
|
|
|
|
{
|
|
|
|
|
case 1:
|
|
|
|
|
GWDataShow2(getGelatG1, getWeterM1, TextE);
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
GWDataShow2(getGelatG2, getWeterM2, TextE);
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
GWDataShow2(getGelatG3, getWeterM3, TextE);
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
GWDataShow2(getGelatG4, getWeterM4, TextE);
|
|
|
|
|
break;
|
|
|
|
|
case 5:
|
|
|
|
|
GWDataShow2(getGelatG5, getWeterM5, TextE);
|
|
|
|
|
break;
|
|
|
|
|
case 6:
|
|
|
|
|
GWDataShow2(getGelatG6, getWeterM6, TextE);
|
|
|
|
|
break;
|
|
|
|
|
case 7:
|
|
|
|
|
GWDataShow2(getGelatG7, getWeterM7, TextE);
|
|
|
|
|
break;
|
|
|
|
|
case 8:
|
|
|
|
|
GWDataShow2(getGelatG8, getWeterM8, TextE);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
GWDataShow2(selected, TextE, select);
|
|
|
|
|
|
|
|
|
|
//var getGelatG1 = LjPlanningPlcHelp.GetGelatG1;
|
|
|
|
|
//var getWeterM1 = LjPlanningPlcHelp.GetWeterM1;
|
|
|
|
|
//var getGelatG2 = LjPlanningPlcHelp.GetGelatG2;
|
|
|
|
|
//var getWeterM2 = LjPlanningPlcHelp.GetWeterM2;
|
|
|
|
|
//var getGelatG3 = LjPlanningPlcHelp.GetGelatG3;
|
|
|
|
|
//var getWeterM3 = LjPlanningPlcHelp.GetWeterM3;
|
|
|
|
|
//var getGelatG4 = LjPlanningPlcHelp.GetGelatG4;
|
|
|
|
|
//var getWeterM4 = LjPlanningPlcHelp.GetWeterM4;
|
|
|
|
|
//var getGelatG5 = LjPlanningPlcHelp.GetGelatG5;
|
|
|
|
|
//var getWeterM5 = LjPlanningPlcHelp.GetWeterM5;
|
|
|
|
|
//var getGelatG6 = LjPlanningPlcHelp.GetGelatG6;
|
|
|
|
|
//var getWeterM6 = LjPlanningPlcHelp.GetWeterM6;
|
|
|
|
|
//var getGelatG7 = LjPlanningPlcHelp.GetGelatG7;
|
|
|
|
|
//var getWeterM7 = LjPlanningPlcHelp.GetWeterM7;
|
|
|
|
|
//var getGelatG8 = LjPlanningPlcHelp.GetGelatG8;
|
|
|
|
|
//var getWeterM8 = LjPlanningPlcHelp.GetWeterM8;
|
|
|
|
|
|
|
|
|
|
//switch (select)
|
|
|
|
|
//{
|
|
|
|
|
// case 1:
|
|
|
|
|
// GWDataShow2(getGelatG1, getWeterM1, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// case 2:
|
|
|
|
|
// GWDataShow2(getGelatG2, getWeterM2, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// case 3:
|
|
|
|
|
// GWDataShow2(getGelatG3, getWeterM3, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// case 4:
|
|
|
|
|
// GWDataShow2(getGelatG4, getWeterM4, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// case 5:
|
|
|
|
|
// GWDataShow2(getGelatG5, getWeterM5, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// case 6:
|
|
|
|
|
// GWDataShow2(getGelatG6, getWeterM6, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// case 7:
|
|
|
|
|
// GWDataShow2(getGelatG7, getWeterM7, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// case 8:
|
|
|
|
|
// GWDataShow2(getGelatG8, getWeterM8, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// default:
|
|
|
|
|
// return;
|
|
|
|
|
//}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -272,28 +277,71 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
//ComboE.DryM15.SelectedIndex = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var getDryerD1 = LjPlanningPlcHelp.GetDryerD1;
|
|
|
|
|
var getDryerD2 = LjPlanningPlcHelp.GetDryerD2;
|
|
|
|
|
var getDryerD3 = LjPlanningPlcHelp.GetDryerD3;
|
|
|
|
|
var getDryerD4 = LjPlanningPlcHelp.GetDryerD4;
|
|
|
|
|
//var getDryerD1 = LjPlanningPlcHelp.GetDryerD1;
|
|
|
|
|
//var getDryerD2 = LjPlanningPlcHelp.GetDryerD2;
|
|
|
|
|
//var getDryerD3 = LjPlanningPlcHelp.GetDryerD3;
|
|
|
|
|
//var getDryerD4 = LjPlanningPlcHelp.GetDryerD4;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DryDataShow(drtSelected, TextE, select);
|
|
|
|
|
|
|
|
|
|
switch (select)
|
|
|
|
|
{
|
|
|
|
|
case 1:
|
|
|
|
|
DryDataShow(getDryerD1, TextE);
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
DryDataShow(getDryerD2, TextE);
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
DryDataShow(getDryerD3, TextE);
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
DryDataShow(getDryerD4, TextE);
|
|
|
|
|
break;
|
|
|
|
|
default: return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//switch (select)
|
|
|
|
|
//{
|
|
|
|
|
// case 1:
|
|
|
|
|
// DryDataShow(getDryerD1, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// case 2:
|
|
|
|
|
// DryDataShow(getDryerD2, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// case 3:
|
|
|
|
|
// DryDataShow(getDryerD3, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// case 4:
|
|
|
|
|
// DryDataShow(getDryerD4, TextE);
|
|
|
|
|
// break;
|
|
|
|
|
// default: return;
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void DryDataShow(List<DeviceMaterrial> Dry, MCTextBoxEntity TextE,int sel)
|
|
|
|
|
{
|
|
|
|
|
TextE.DryW1.MCValue = Dry[0].Weight;
|
|
|
|
|
TextE.DryW2.MCValue = Dry[1].Weight;
|
|
|
|
|
TextE.DryW3.MCValue = Dry[2].Weight;
|
|
|
|
|
TextE.DryW4.MCValue = Dry[3].Weight;
|
|
|
|
|
TextE.DryW5.MCValue = Dry[4].Weight;
|
|
|
|
|
TextE.DryW6.MCValue = Dry[5].Weight;
|
|
|
|
|
TextE.DryW7.MCValue = Dry[6].Weight;
|
|
|
|
|
TextE.DryW8.MCValue = Dry[7].Weight;
|
|
|
|
|
TextE.DryW9.MCValue = Dry[8].Weight;
|
|
|
|
|
TextE.DryW10.MCValue = Dry[9].Weight;
|
|
|
|
|
TextE.DryW11.MCValue = Dry[10].Weight;
|
|
|
|
|
TextE.DryW12.MCValue = Dry[11].Weight;
|
|
|
|
|
//TextE.DryW13.MCValue = Dry.RecipePlcViews[12].Set;
|
|
|
|
|
//TextE.DryW14.MCValue = Dry.RecipePlcViews[13].Set;
|
|
|
|
|
//TextE.DryW15.MCValue = Dry.RecipePlcViews[14].Set;
|
|
|
|
|
TextE.DryT1.MCValue = Dry[0].Allowance;
|
|
|
|
|
TextE.DryT2.MCValue = Dry[1].Allowance;
|
|
|
|
|
TextE.DryT3.MCValue = Dry[2].Allowance;
|
|
|
|
|
TextE.DryT4.MCValue = Dry[3].Allowance;
|
|
|
|
|
TextE.DryT5.MCValue = Dry[4].Allowance;
|
|
|
|
|
TextE.DryT6.MCValue = Dry[5].Allowance;
|
|
|
|
|
TextE.DryT7.MCValue = Dry[6].Allowance;
|
|
|
|
|
TextE.DryT8.MCValue = Dry[7].Allowance;
|
|
|
|
|
TextE.DryT9.MCValue = Dry[8].Allowance;
|
|
|
|
|
TextE.DryT10.MCValue = Dry[9].Allowance;
|
|
|
|
|
TextE.DryT11.MCValue = Dry[10].Allowance;
|
|
|
|
|
TextE.DryT12.MCValue = Dry[11].Allowance;
|
|
|
|
|
|
|
|
|
|
var d= FreeSqlUnit.Instance.Queryable<DryDownloadDetail>().Where(x => x.Id == sel).First();
|
|
|
|
|
|
|
|
|
|
TextE.DryWaitTime.MCValue = d.WaitTime;
|
|
|
|
|
TextE.DryOutDelayTime.MCValue = d.OutDelayTime;
|
|
|
|
|
TextE.DrySpeed1.MCValue = d.Speed1;
|
|
|
|
|
TextE.DrySpeed2.MCValue =d.Speed2;
|
|
|
|
|
TextE.DrySpeed3.MCValue = d.Speed3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void DryDataShow(DryerView Dry, MCTextBoxEntity TextE)
|
|
|
|
@ -335,6 +383,31 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
TextE.DrySpeed3.MCValue = Dry.RecipeSteps[2].MixSpeed;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void GWDataShow(List<DeviceMaterrial> Gels, MCTextBoxEntity TextE,int sel)
|
|
|
|
|
{
|
|
|
|
|
TextE.MaterialWeight1.MCValue = Gels[0].Weight;
|
|
|
|
|
TextE.MaterialWeight2.MCValue = Gels[1].Weight;
|
|
|
|
|
TextE.MaterialTolerance1.MCValue = Gels[0].Allowance;
|
|
|
|
|
TextE.MaterialTolerance2.MCValue = Gels[1].Allowance;
|
|
|
|
|
|
|
|
|
|
WetDetail web=FreeDb.FreeSqlUnit.Instance.Queryable<WetDetail>().Where(x=>x.Id==sel).First();
|
|
|
|
|
|
|
|
|
|
TextE.GelSpeedSet.MCValue = web.MixSpeed;
|
|
|
|
|
TextE.GelPosTimeA.MCValue =web.GelPosA;
|
|
|
|
|
TextE.GelNagTimeB.MCValue = web.GelPosB;
|
|
|
|
|
TextE.GelPosTimeC.MCValue = web.GelPosC;
|
|
|
|
|
TextE.GelWaterTime.MCValue = web.GelWater;
|
|
|
|
|
TextE.GelWaitTime.MCValue = web.GelWait;
|
|
|
|
|
TextE.GelCloseHeatTime.MCValue = web.GelCloseHeat;
|
|
|
|
|
TextE.GelOutDelayTime.MCValue = web.WetOutDelay;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TextE.WetDryWeight.MCValue = web.WetDryWei;
|
|
|
|
|
TextE.WetMixTime.MCValue = web.WetMix;
|
|
|
|
|
TextE.WetOutDelayTime.MCValue = web.WetOutDelay;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void GWDataShow(DryerView Gel, List<MixStep> Wet, MCTextBoxEntity TextE)
|
|
|
|
|
{
|
|
|
|
|
TextE.MaterialWeight1.MCValue = Gel.RecipePlcViews[0].Set;
|
|
|
|
@ -349,8 +422,8 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
TextE.GelWaitTime.MCValue = Gel.RecipeSteps[6].MixTime;
|
|
|
|
|
TextE.GelCloseHeatTime.MCValue = Gel.RecipeSteps[7].MixTime;
|
|
|
|
|
TextE.GelOutDelayTime.MCValue = Gel.RecipeSteps[7].MixTemp;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TextE.WetDryWeight.MCValue = Wet[1].SetValue;
|
|
|
|
|
TextE.WetMixTime.MCValue = Wet[2].MixTime;
|
|
|
|
|
TextE.WetOutDelayTime.MCValue = Wet[4].MixTime;
|
|
|
|
@ -378,6 +451,30 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
|
|
|
|
|
TextE.WetOutDelayTime.MCValue = Wet[4].MixTime;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void GWDataShow2(List<DeviceMaterrial> Gels, MCTextBoxEntity TextE, int sel)
|
|
|
|
|
{
|
|
|
|
|
TextE.MaterialWeight1.MCValue = Gels[0].Weight;
|
|
|
|
|
TextE.MaterialWeight2.MCValue = Gels[1].Weight;
|
|
|
|
|
TextE.MaterialTolerance1.MCValue = Gels[0].Allowance;
|
|
|
|
|
TextE.MaterialTolerance2.MCValue = Gels[1].Allowance;
|
|
|
|
|
|
|
|
|
|
WetDetail web = FreeDb.FreeSqlUnit.Instance.Queryable<WetDetail>().Where(x => x.Id == sel).First();
|
|
|
|
|
|
|
|
|
|
TextE.GelSpeedSet.MCValue = web.MixSpeed;
|
|
|
|
|
TextE.GelPosTimeA.MCValue = web.GelPosA;
|
|
|
|
|
TextE.GelNagTimeB.MCValue = web.GelPosB;
|
|
|
|
|
TextE.GelPosTimeC.MCValue = web.GelPosC;
|
|
|
|
|
TextE.GelWaterTime.MCValue = web.GelWater;
|
|
|
|
|
TextE.GelWaitTime.MCValue = web.GelWait;
|
|
|
|
|
TextE.GelCloseHeatTime.MCValue = web.GelCloseHeat;
|
|
|
|
|
TextE.GelOutDelayTime.MCValue = web.WetOutDelay;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TextE.WetMixTime.MCValue = web.WetMix;
|
|
|
|
|
TextE.WetOutDelayTime.MCValue = web.WetOutDelay;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 将C#数据实体转化为JSON数据
|
|
|
|
|