dep_yangw
我叫锄头 10 months ago
parent 76d43cf514
commit 119287ea2b

@ -89,7 +89,7 @@ namespace ProductionSystem.Untils
} }
public void SendMsg2(string data, int num = 3, int mill = 500) public void SendMsg2(string data, int num = 3, int mill = 300)
{ {
@ -106,8 +106,6 @@ namespace ProductionSystem.Untils
{ {
break; break;
} }
Thread.Sleep(mill); Thread.Sleep(mill);
_mfser.SendLinMasterSend(Export); _mfser.SendLinMasterSend(Export);

@ -88,14 +88,9 @@ namespace ProductionSystem.Untils.Tool
mfSerialInfo.MsgFunc = null; mfSerialInfo.MsgFunc = null;
mfSerialInfo.Exit = true; mfSerialInfo.Exit = true;
b = true; b = true;
} }
} }
}; };
mfSerialInfo.SendMsg2(sendMes, 200, 300); mfSerialInfo.SendMsg2(sendMes, 200, 300);

@ -169,8 +169,6 @@ namespace ProductionSystem.Untils.Tool
} }
SitongTool sitongTool = new SitongTool(stf1.Com, val); SitongTool sitongTool = new SitongTool(stf1.Com, val);
var b = sitongTool.ToAction(); var b = sitongTool.ToAction();
sitongTool.Dispose(); sitongTool.Dispose();
stopwatch.Stop(); stopwatch.Stop();
@ -180,7 +178,6 @@ namespace ProductionSystem.Untils.Tool
step.CreateTime = DateTime.Now; step.CreateTime = DateTime.Now;
step.EquipmentName = eqName; step.EquipmentName = eqName;
step.Ms = stopwatch.Elapsed.TotalSeconds.ToString(CultureInfo.InvariantCulture); step.Ms = stopwatch.Elapsed.TotalSeconds.ToString(CultureInfo.InvariantCulture);
stepService.AddProductStep(step); stepService.AddProductStep(step);
return b; return b;

@ -145,7 +145,7 @@ namespace ProductionSystem.Untils.Tool
mfSerialInfo.SendMessage(sendMes); mfSerialInfo.SendMessage(sendMes);
} }
Exit = true;
Dispose(); Dispose();
} }
} }

Loading…
Cancel
Save