修复plc 读取错误

wangsr
nodyang 1 year ago
parent 1e30a7d07a
commit 9b486b5c75

@ -134,8 +134,6 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
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);

Loading…
Cancel
Save