暂存plc 有问题 修复plc 读数有问题

wangsr
nodyang 1 year ago
parent 034d3b1a92
commit 27ab6500c7

@ -545,7 +545,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
List<Step> lsSteps = new List<Step>();
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()
{

Loading…
Cancel
Save