Koncim: IBox, etc.
This commit is contained in:
@@ -5,6 +5,7 @@ using System.Text;
|
||||
using System.IO.Ports;
|
||||
using log4net;
|
||||
using TBF.BenchControl.Generic;
|
||||
using TBF.Boxes;
|
||||
|
||||
namespace TBF.BenchControl.MettlerToledo
|
||||
{
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using log4net;
|
||||
using TBF.Boxes;
|
||||
|
||||
namespace TBF.BenchControl.MettlerToledo
|
||||
{
|
||||
@@ -51,7 +52,7 @@ namespace TBF.BenchControl.MettlerToledo
|
||||
|
||||
if (balanceDev.MsrmntState == MsrmntState.Valid)
|
||||
{
|
||||
result.F = balanceDev.Mass;
|
||||
result.Val = balanceDev.Mass;
|
||||
done = true;
|
||||
return Event.BalanceDone; /// Mass read OK
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using log4net;
|
||||
using TBF.Boxes;
|
||||
|
||||
namespace TBF.BenchControl.MettlerToledo
|
||||
{
|
||||
@@ -71,7 +72,7 @@ namespace TBF.BenchControl.MettlerToledo
|
||||
for (int i = 1; i < totalReadingsCount - 1; i++) calcMass += massReadings[i];
|
||||
calcMass = (calcMass / (totalReadingsCount - 2));
|
||||
|
||||
result.F = calcMass;
|
||||
result.Val = calcMass;
|
||||
return Event.BalanceDone; /// Mass has just been calculated
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using log4net;
|
||||
using TBF.Boxes;
|
||||
|
||||
namespace TBF.BenchControl.MettlerToledo
|
||||
{
|
||||
@@ -50,14 +51,14 @@ namespace TBF.BenchControl.MettlerToledo
|
||||
|
||||
if (balanceDev.MsrmntState == MsrmntState.Overload)
|
||||
{
|
||||
tara.F = balanceDev.Capacity;
|
||||
tara.Val = balanceDev.Capacity;
|
||||
done = true;
|
||||
return Event.BalanceOverload;
|
||||
}
|
||||
|
||||
if (balanceDev.MsrmntState == MsrmntState.Valid)
|
||||
{
|
||||
tara.F = balanceDev.Mass;
|
||||
tara.Val = balanceDev.Mass;
|
||||
done = true;
|
||||
return Event.BalanceDone; /// Taring completed
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user