diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs index 7ef77d8..cdfb233 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs @@ -545,7 +545,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning List lsSteps = new List(); for (int i = 0; i < 10; i++) { - var bytes = data.Skip(i * 10).Take(12).ToArray(); + var bytes = data.Skip(i * 12).Take(12).ToArray(); Step step = new Step() { MixCode = byteTransform.TransInt16(bytes, 0), @@ -582,7 +582,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning for (int i = 0; i < 10; i++) { - var bytes = data.Skip(i * 10).Take(20).ToArray(); + var bytes = data.Skip(i * 20).Take(20).ToArray(); MixStep step = new MixStep() {