From a594bc65102e7feefc77e12a693db569c1c7c8dd Mon Sep 17 00:00:00 2001 From: nodyang Date: Fri, 27 Oct 2023 14:27:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=92=E5=85=A5=E7=9A=84plc=E7=9A=84=20?= =?UTF-8?q?=E5=89=8D=E6=8F=90=E6=98=AF=20=E6=B8=85=E7=90=86=E6=89=80?= =?UTF-8?q?=E6=9C=89=E7=9A=84step?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AutoControl/GelerWeterControl.cs | 1 + .../LjPlanning/LjPlanningPlcHelp.cs | 2 +- DataBlockHelper/DBHelpers/DB2105WriteHelper.cs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/GelerWeterControl.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/GelerWeterControl.cs index 0a2b6a7..bd9697c 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/GelerWeterControl.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/GelerWeterControl.cs @@ -475,6 +475,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl DB2105WriteHelper.WriteManScrewH4(); DB2105WriteHelper.WriteSetValueH2(value); break; + case 5: DB2105WriteHelper.WriteManScrewH5(); DB2105WriteHelper.WriteSetValueH3(value); diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs index 37ae21c..793f500 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs @@ -697,7 +697,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning private static void DowMSteps(int start, MixStep step) { int mixCode = start; - var s= PlcConnect.Instance.Write($"DB2104.{mixCode}.0", step.MixCode); + var s= PlcConnect.Instance.Write($"DB2104.{mixCode}.0", step.MixCode); int mixTime = start + 2; PlcConnect.Instance.Write($"DB2104.{mixTime}.0", step.MixTime); diff --git a/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs b/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs index ea72442..96d304e 100644 --- a/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs +++ b/DataBlockHelper/DBHelpers/DB2105WriteHelper.cs @@ -203,6 +203,7 @@ namespace DataBlockHelper.DBHelpers { return WriteG(94,5); } + public static bool WriteG2Pd()