From 1d1c6dfa00537cd50f9dd493cde8741378007419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E5=8F=AB=E9=94=84=E5=A4=B4?= Date: Tue, 16 Apr 2024 17:07:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=B7=E8=8E=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProductionSystem/Forms/HomeFormInfo.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ProductionSystem/Forms/HomeFormInfo.cs b/ProductionSystem/Forms/HomeFormInfo.cs index b49aab1..86439d9 100644 --- a/ProductionSystem/Forms/HomeFormInfo.cs +++ b/ProductionSystem/Forms/HomeFormInfo.cs @@ -738,6 +738,7 @@ namespace ProductionSystem.Forms public void ToCache(Action action) { string name = GetCode() + action.Method.Name; + XTrace.WriteLine($"开始步骤{name}"); if (!_cache.ContainsKey(name)) { _cache.Set(name, DateTime.Now, TimeSpan.FromMinutes(10)); @@ -891,7 +892,7 @@ namespace ProductionSystem.Forms step.Id = Guid.NewGuid().ToString("N"); - step.ReturnValue = _uxTool.Val; + step.ReturnValue = _uxTool.Write; step.WriteValue = _uxTool.Write; step.CreateTime = DateTime.Now; step.Ms = "0"; @@ -923,7 +924,7 @@ namespace ProductionSystem.Forms //水泵2关闭 _uxTool.closeSend(); - TmTool.WritePlc(TmTool.ShuiBeng2, 1); + TmTool.WritePlc(TmTool.ShuiBeng2, 0); //启动水泵3 PWMHelper.Open();