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();