From 9b486b5c75f8201ec09738324081901a69d61254 Mon Sep 17 00:00:00 2001 From: nodyang Date: Thu, 26 Oct 2023 14:58:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dplc=20=E8=AF=BB=E5=8F=96?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LjPlanning/LjPlanningPlcHelp.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs index 5f9f0d3..439fdb6 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjPlanning/LjPlanningPlcHelp.cs @@ -133,9 +133,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning Dowd(begin, view); begin += 10; } - - - + begin = 1038; for (int i = 0; i < recipeSteps.Count(); i++) { @@ -490,7 +488,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning RecipePlcView plcView = new RecipePlcView { Bin = byteTransform.TransUInt16(bytes, 0), - Set = byteTransform.TransSingle(bytes, 2), + Set = byteTransform.TransUInt16(bytes, 2), Tolerance = byteTransform.TransSingle(bytes, 6) }; ls.Add(plcView); @@ -538,7 +536,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning RecipePlcView plcView = new RecipePlcView { Bin = byteTransform.TransUInt16(bytes, 0), - Set = byteTransform.TransSingle(bytes, 2), + Set = byteTransform.TransUInt16(bytes, 2), Tolerance = byteTransform.TransSingle(bytes, 6) }; ls.Add(plcView);