From 9cb1a81080bd12327c50ff963d67efa17d454d77 Mon Sep 17 00:00:00 2001 From: nodyang Date: Wed, 28 Jun 2023 09:43:30 +0800 Subject: [PATCH] =?UTF-8?q?0628=20=E5=AF=B9plc=20=E5=B0=B1=E8=A1=8C?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Mesnac.Action.ChemicalWeighing/BasePlcHelper.cs | 2 ++ .../Mesnac.Action.ChemicalWeighing/Test/TestAction.cs | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/BasePlcHelper.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/BasePlcHelper.cs index b32cc41..5d194ce 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/BasePlcHelper.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/BasePlcHelper.cs @@ -993,6 +993,8 @@ namespace Mesnac.Action.ChemicalWeighing public DataKeyValue Spare4 { get; set; } public DataKeyValue RecipePause { get; set; } + + public DataKeyValue recipeName0 { get; set; } } diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs index 98a6854..81b9737 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestAction.cs @@ -21,7 +21,14 @@ namespace Mesnac.Action.ChemicalWeighing.Test //ParametersWithPc.B1.FirstWord 256 768 - + //badc1el26587193265870 + + var instanceRecipeName0 = BasePlcHelper.Instance.recipeName0; + + //badc1e 2 + var read = BasePlcHelper.Instance.PlcRead(instanceRecipeName0, out int[] ss); + + // var firstWordNowValue = BasePlcHelper.Instance.FirstWord.NowValue.ToInt(); var plcRead = BasePlcHelper.Instance.PlcRead("ParametersWithPc", "1165", 0, 1, out short[] ssss); //