|
|
|
@ -157,8 +157,6 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
|
|
|
|
|
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)
|
|
|
|
|
};
|
|
|
|
@ -581,13 +579,15 @@ 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),
|
|
|
|
|