|
|
|
@ -156,9 +156,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
Dowd(begin, view);
|
|
|
|
|
begin += 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
begin = 1038;
|
|
|
|
|
for (int i = 0; i < recipeSteps.Count(); i++)
|
|
|
|
|
{
|
|
|
|
@ -485,7 +483,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var bytes = data.Skip(i * 10).Take(10).ToArray();
|
|
|
|
|
RecipePlcView plcView = new RecipePlcView
|
|
|
|
|
{
|
|
|
|
|
Bin = byteTransform.TransUInt16(bytes, 0),
|
|
|
|
|
Bin = byteTransform.TransInt16(bytes, 0),
|
|
|
|
|
Set = byteTransform.TransSingle(bytes, 2),
|
|
|
|
|
Tolerance = byteTransform.TransSingle(bytes, 6)
|
|
|
|
|
};
|
|
|
|
@ -502,8 +500,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)
|
|
|
|
|
};
|
|
|
|
@ -533,7 +531,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
var bytes = data.Skip(i * 10).Take(10).ToArray();
|
|
|
|
|
RecipePlcView plcView = new RecipePlcView
|
|
|
|
|
{
|
|
|
|
|
Bin = byteTransform.TransUInt16(bytes, 0),
|
|
|
|
|
Bin = byteTransform.TransInt16(bytes, 0),
|
|
|
|
|
Set = byteTransform.TransSingle(bytes, 2),
|
|
|
|
|
Tolerance = byteTransform.TransSingle(bytes, 6)
|
|
|
|
|
};
|
|
|
|
@ -550,8 +548,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)
|
|
|
|
|
};
|
|
|
|
@ -580,14 +578,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),
|
|
|
|
|