|
|
|
@ -2459,6 +2459,7 @@ namespace ProductionSystem.Forms
|
|
|
|
|
Program.cureManualReset.WaitOne();
|
|
|
|
|
if (GetPlcValue("D670") != "")
|
|
|
|
|
{
|
|
|
|
|
var productBarcode = txtProductCode.Text;
|
|
|
|
|
//模拟数据
|
|
|
|
|
for (int i = 0; i < Program.Times.Length; i++)
|
|
|
|
|
{
|
|
|
|
@ -2467,7 +2468,7 @@ namespace ProductionSystem.Forms
|
|
|
|
|
//Program.GastankPressData[i] = Convert.ToSingle(random.NextDouble() * 60 + 600);
|
|
|
|
|
//Program.XVibrateData[i] = Convert.ToSingle(random.NextDouble() * 60 + 800);
|
|
|
|
|
//Program.YVibrateData[i] = Convert.ToSingle(random.NextDouble() * 60 + 1000);
|
|
|
|
|
var product = result2Service.QueryLatestStep(Program.ProductType, txtProductCode.Text);
|
|
|
|
|
var product = result2Service.QueryLatestStep(Program.ProductType, productBarcode);
|
|
|
|
|
var electricity = product.Electricity;
|
|
|
|
|
Program.CurrentData[i] = float.Parse(electricity);
|
|
|
|
|
Program.Times[i] = DateTime.Now.AddSeconds(i - 1000);
|
|
|
|
|