|
|
|
@ -927,11 +927,30 @@ namespace ProductionSystem.Forms
|
|
|
|
|
PWMHelper.Open();
|
|
|
|
|
|
|
|
|
|
TmTool.WritePlc(TmTool.ShuiBeng3, 1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
T_Product_Step step=new T_Product_Step
|
|
|
|
|
{
|
|
|
|
|
StepName = ba.ToString(),
|
|
|
|
|
ProductType = Program.ProductType,
|
|
|
|
|
ProductBarcode = GetCode()
|
|
|
|
|
};
|
|
|
|
|
var model = paraConfigService.GetParaTargetVal(ba, Program.ProductType);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
step.Id = Guid.NewGuid().ToString("N");
|
|
|
|
|
step.ReturnValue = "0";
|
|
|
|
|
step.WriteValue ="0";
|
|
|
|
|
step.CreateTime = DateTime.Now;
|
|
|
|
|
step.Ms = "0";
|
|
|
|
|
step.EquipmentName ="SB3ZS_DB";
|
|
|
|
|
stepService.AddProductStep(step);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void Step7()
|
|
|
|
|
private void Step7()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
TmTool.SiTong(ModeTypeEnum.BZ7_DB, 1);
|
|
|
|
@ -973,11 +992,17 @@ namespace ProductionSystem.Forms
|
|
|
|
|
|
|
|
|
|
private void Step8()
|
|
|
|
|
{
|
|
|
|
|
TmTool.SiTong(ModeTypeEnum.BZ8_DB, 1);
|
|
|
|
|
TmTool.WritePlc(TmTool.SiTong1, 1);
|
|
|
|
|
TmTool.SiTong(ModeTypeEnum.BZ8_DB, 2);
|
|
|
|
|
TmTool.WritePlc(TmTool.SiTong2, 1);
|
|
|
|
|
//sitongfa 2 3
|
|
|
|
|
//膨胀阀0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TmTool.SiTong(ModeTypeEnum.BZ8_DB, 1,true);
|
|
|
|
|
TmTool.WritePlc(TmTool.SiTong1, 3);
|
|
|
|
|
TmTool.SiTong(ModeTypeEnum.BZ8_DB, 2,true);
|
|
|
|
|
TmTool.WritePlc(TmTool.SiTong2, 3);
|
|
|
|
|
|
|
|
|
|
TmTool.PengZhang1(ModeTypeEnum.BZ8_DB, true);
|
|
|
|
|
TmTool.WritePlc(TmTool.PengZhang1, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ICache _cache=Cache.Default;
|
|
|
|
|