From f1e88e257f991396fef5739f4d86da19cbbbf907 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E5=8F=AB=E9=94=84=E5=A4=B4?= Date: Sat, 13 Apr 2024 19:18:15 +0800 Subject: [PATCH] dis --- ProductionSystem/Forms/HomeFormInfo.cs | 1 + ProductionSystem/Untils/Tool/TmTool.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ProductionSystem/Forms/HomeFormInfo.cs b/ProductionSystem/Forms/HomeFormInfo.cs index 43276c5..0d16159 100644 --- a/ProductionSystem/Forms/HomeFormInfo.cs +++ b/ProductionSystem/Forms/HomeFormInfo.cs @@ -738,6 +738,7 @@ namespace ProductionSystem.Forms Thread.Sleep(Program.ReadPlcRate); Step1(); + Thread.Sleep(100); Step2(); // Step3(); // Step4(); diff --git a/ProductionSystem/Untils/Tool/TmTool.cs b/ProductionSystem/Untils/Tool/TmTool.cs index f92c711..ac8062d 100644 --- a/ProductionSystem/Untils/Tool/TmTool.cs +++ b/ProductionSystem/Untils/Tool/TmTool.cs @@ -114,7 +114,7 @@ namespace ProductionSystem.Untils.Tool } ExvTool exv = new ExvTool(pzf1.Com,val); var exv1 = exv.ToAction(); - exv1.TryDispose(); + exv.Dispose(); stopwatch.Stop(); step.Id = Guid.NewGuid().ToString("N"); step.ReturnValue = exv.Val;