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