|
|
|
@ -486,8 +486,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var bytes = data.Skip(i * 10).Take(10).ToArray();
|
|
|
|
|
RecipePlcView plcView = new RecipePlcView
|
|
|
|
|
{
|
|
|
|
|
Bin = byteTransform.TransUInt16(bytes, 0),
|
|
|
|
|
Set = byteTransform.TransUInt16(bytes, 2),
|
|
|
|
|
Bin = byteTransform.TransInt16(bytes, 0),
|
|
|
|
|
Set = byteTransform.TransSingle(bytes, 2),
|
|
|
|
|
Tolerance = byteTransform.TransSingle(bytes, 6)
|
|
|
|
|
};
|
|
|
|
|
ls.Add(plcView);
|
|
|
|
@ -503,8 +503,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var bytes = data.Skip(i * 10).Take(12).ToArray();
|
|
|
|
|
Step step = new Step()
|
|
|
|
|
{
|
|
|
|
|
MixCode = byteTransform.TransUInt16(bytes, 0),
|
|
|
|
|
MixTime = byteTransform.TransUInt16(bytes, 2),
|
|
|
|
|
MixCode = byteTransform.TransInt16(bytes, 0),
|
|
|
|
|
MixTime = byteTransform.TransInt16(bytes, 2),
|
|
|
|
|
MixTemp = byteTransform.TransSingle(bytes, 4),
|
|
|
|
|
MixSpeed = byteTransform.TransSingle(bytes, 8)
|
|
|
|
|
};
|
|
|
|
@ -534,8 +534,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var bytes = data.Skip(i * 10).Take(10).ToArray();
|
|
|
|
|
RecipePlcView plcView = new RecipePlcView
|
|
|
|
|
{
|
|
|
|
|
Bin = byteTransform.TransUInt16(bytes, 0),
|
|
|
|
|
Set = byteTransform.TransUInt16(bytes, 2),
|
|
|
|
|
Bin = byteTransform.TransInt16(bytes, 0),
|
|
|
|
|
Set = byteTransform.TransSingle(bytes, 2),
|
|
|
|
|
Tolerance = byteTransform.TransSingle(bytes, 6)
|
|
|
|
|
};
|
|
|
|
|
ls.Add(plcView);
|
|
|
|
@ -551,8 +551,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var bytes = data.Skip(i * 10).Take(12).ToArray();
|
|
|
|
|
Step step = new Step()
|
|
|
|
|
{
|
|
|
|
|
MixCode = byteTransform.TransUInt16(bytes, 0),
|
|
|
|
|
MixTime = byteTransform.TransUInt16(bytes, 2),
|
|
|
|
|
MixCode = byteTransform.TransInt16(bytes, 0),
|
|
|
|
|
MixTime = byteTransform.TransInt16(bytes, 2),
|
|
|
|
|
MixTemp = byteTransform.TransSingle(bytes, 4),
|
|
|
|
|
MixSpeed = byteTransform.TransSingle(bytes, 8)
|
|
|
|
|
};
|
|
|
|
@ -581,14 +581,16 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
|
|
|
|
|
var data = operateResult.Content;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < 10; i++)
|
|
|
|
|
{
|
|
|
|
|
var bytes = data.Skip(i * 10).Take(20).ToArray();
|
|
|
|
|
MixStep step = new MixStep()
|
|
|
|
|
{
|
|
|
|
|
MixCode = byteTransform.TransUInt16(bytes, 0),
|
|
|
|
|
MixTime = byteTransform.TransUInt16(bytes, 2),
|
|
|
|
|
|
|
|
|
|
MixCode = byteTransform.TransInt16(bytes, 0),
|
|
|
|
|
MixTime = byteTransform.TransInt16(bytes, 2),
|
|
|
|
|
MixTemp = byteTransform.TransSingle(bytes, 4),
|
|
|
|
|
MixSpeed = byteTransform.TransSingle(bytes, 8),
|
|
|
|
|
SetValue = byteTransform.TransSingle(bytes, 12),
|
|
|
|
|