diff --git a/TBF/Properties/AssemblyInfo.cs b/TBF/Properties/AssemblyInfo.cs
index 7b28254bd..c82124633 100644
--- a/TBF/Properties/AssemblyInfo.cs
+++ b/TBF/Properties/AssemblyInfo.cs
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
// Build Number
// Revision
//
-[assembly: AssemblyVersion("3.1.1607.0")]
-[assembly: AssemblyFileVersion("3.1.1607.0")]
+[assembly: AssemblyVersion("3.1.1608.0")]
+[assembly: AssemblyFileVersion("3.1.1608.0")]
diff --git a/TBF/Rig/ControlBoard/Uni/UniCB.cs b/TBF/Rig/ControlBoard/Uni/UniCB.cs
index f90474da8..770d0bddc 100644
--- a/TBF/Rig/ControlBoard/Uni/UniCB.cs
+++ b/TBF/Rig/ControlBoard/Uni/UniCB.cs
@@ -138,7 +138,7 @@ namespace TBF.Rig.ControlBoard.Uni
public bool IsUIBlocked { get; set; }
/// Measured values valid during a test
- public double RefFrequency { get { return Data.ReferenceFreq[0]; } }
+ public double RefFrequency { get { return Data.ReferenceFreq[0]; } }
public double RefFrequency1 { get { return Data.ReferenceFreq[1]; } }
public double RefFrequency2 { get { return Data.ReferenceFreq[2]; } }
public double RefFrequency3 { get { return Data.ReferenceFreq[3]; } }
@@ -355,6 +355,11 @@ namespace TBF.Rig.ControlBoard.Uni
/// No connection to control board ... set indicator bit
route += ((UInt128)1) << cbCfg.BitNr;
}
+ if ((State & (ulong)StatusP.EmgcyStopActive) != 0)
+ {
+ /// No connection to control board ... set indicator bit
+ route += ((UInt128)1) << (cbCfg.BitNr + 1);
+ }
}
log.DebugFormat("Route synced with RRoute and UI changes, new route = {0}", Utils.RouteToStr(route));
}
diff --git a/TBF/Rig/ControlBoard/Uni/UniCBCfg.cs b/TBF/Rig/ControlBoard/Uni/UniCBCfg.cs
index 2613f4e98..f526c766c 100644
--- a/TBF/Rig/ControlBoard/Uni/UniCBCfg.cs
+++ b/TBF/Rig/ControlBoard/Uni/UniCBCfg.cs
@@ -51,7 +51,7 @@ namespace TBF.Rig.ControlBoard.Uni
public double MsrdValLimLo { get; set; }
public double MsrdValLimHi { get; set; }
- public int BitNr { get { return 64; } } /// Bit-position
+ public int BitNr { get { return 80; } } /// Bit-position
public bool Inverted { get { return false; } } /// When true the valve function is inverted: 0 = open, 1 = closed
[XmlIgnore]
diff --git a/TBF/Rig/Dummy/Balance/Component.cs b/TBF/Rig/Dummy/Balance/Component.cs
index cc303ed9a..da8cc1b66 100644
--- a/TBF/Rig/Dummy/Balance/Component.cs
+++ b/TBF/Rig/Dummy/Balance/Component.cs
@@ -70,7 +70,7 @@ namespace TBF.Rig.Dummy.Balance
/// Run this operation
public Event Run()
{
- return Event.BalanceDone;
+ return Event.ScaleDone;
}
/// Stop this operation
diff --git a/TBF/Rig/Events.cs b/TBF/Rig/Events.cs
index 013971faf..3559402ba 100644
--- a/TBF/Rig/Events.cs
+++ b/TBF/Rig/Events.cs
@@ -84,8 +84,8 @@ namespace TBF.Rig
ValvesSet,
AmbientDone,
- BalanceDone,
- BalanceOverload,
+ ScaleDone,
+ ScaleOverload,
ScaleTimeout,
PressureDone,
PressureInDone,
diff --git a/TBF/Rig/MettlerToledo/Multi/ReadMassOp.cs b/TBF/Rig/MettlerToledo/Multi/ReadMassOp.cs
index af7acde71..25fd9c9f1 100644
--- a/TBF/Rig/MettlerToledo/Multi/ReadMassOp.cs
+++ b/TBF/Rig/MettlerToledo/Multi/ReadMassOp.cs
@@ -56,7 +56,7 @@ namespace TBF.Rig.MettlerToledo.Multi
if (!done)
return Event.Busy;
else
- return Event.BalanceDone;
+ return Event.ScaleDone;
}
else if (started && scale.MsrmntState != MsrmntState.Busy)
{
@@ -65,7 +65,7 @@ namespace TBF.Rig.MettlerToledo.Multi
scale.MsrmntState, scale.Mass);
done = true;
started = false;
- return Event.BalanceDone; /// Mass read OK
+ return Event.ScaleDone; /// Mass read OK
}
else
{
diff --git a/TBF/Rig/MettlerToledo/Multi/ReadStableMassOp.cs b/TBF/Rig/MettlerToledo/Multi/ReadStableMassOp.cs
index dd7bfc72e..508e1e95a 100644
--- a/TBF/Rig/MettlerToledo/Multi/ReadStableMassOp.cs
+++ b/TBF/Rig/MettlerToledo/Multi/ReadStableMassOp.cs
@@ -88,7 +88,7 @@ namespace TBF.Rig.MettlerToledo.Multi
return Event.None;
}
- if (currentReadingsCount >= totalReadingsCount) return Event.BalanceDone; /// Mass has already been calculated
+ if (currentReadingsCount >= totalReadingsCount) return Event.ScaleDone; /// Mass has already been calculated
if (scale.MsrmntState == MsrmntState.Busy) return Event.None;
@@ -109,7 +109,7 @@ namespace TBF.Rig.MettlerToledo.Multi
calcMass = (calcMass / (totalReadingsCount - 2));
log.InfoFormat("ReadStableMassOp.Run() ... valid mass={0} ... returning Event.BalanceDone", calcMass);
result.Val = calcMass;
- return Event.BalanceDone; /// Mass has just been calculated
+ return Event.ScaleDone; /// Mass has just been calculated
#else
double minimum = double.MaxValue;
double maximum = double.MinValue;
diff --git a/TBF/Rig/MettlerToledo/Multi/TaringOp.cs b/TBF/Rig/MettlerToledo/Multi/TaringOp.cs
index 5e275eab8..a4b12e251 100644
--- a/TBF/Rig/MettlerToledo/Multi/TaringOp.cs
+++ b/TBF/Rig/MettlerToledo/Multi/TaringOp.cs
@@ -48,7 +48,7 @@ namespace TBF.Rig.MettlerToledo.Multi
///
public Event Run()
{
- if (done) return Event.BalanceDone; /// Taring has been done already
+ if (done) return Event.ScaleDone; /// Taring has been done already
if (balanceDev.MsrmntState == MsrmntState.Busy) return Event.Busy;
@@ -56,14 +56,14 @@ namespace TBF.Rig.MettlerToledo.Multi
{
tara.Val = balanceDev.Capacity;
done = true;
- return Event.BalanceOverload;
+ return Event.ScaleOverload;
}
if (balanceDev.MsrmntState == MsrmntState.Valid)
{
tara.Val = balanceDev.Mass;
done = true;
- return Event.BalanceDone; /// Taring completed
+ return Event.ScaleDone; /// Taring completed
}
return Event.Busy;
diff --git a/TBF/Rig/MettlerToledo/Multi/ZeroOp.cs b/TBF/Rig/MettlerToledo/Multi/ZeroOp.cs
index 061bb9945..b4c6dfb89 100644
--- a/TBF/Rig/MettlerToledo/Multi/ZeroOp.cs
+++ b/TBF/Rig/MettlerToledo/Multi/ZeroOp.cs
@@ -41,20 +41,20 @@ namespace TBF.Rig.MettlerToledo.Multi
///
public Event Run()
{
- if (done) return Event.BalanceDone; /// Zero has been done already
+ if (done) return Event.ScaleDone; /// Zero has been done already
if (balanceDev.MsrmntState == MsrmntState.Busy) return Event.Busy;
if (balanceDev.MsrmntState == MsrmntState.Overload)
{
done = true;
- return Event.BalanceOverload;
+ return Event.ScaleOverload;
}
if (balanceDev.MsrmntState == MsrmntState.Valid)
{
done = true;
- return Event.BalanceDone; /// Zero completed
+ return Event.ScaleDone; /// Zero completed
}
return Event.Busy;
diff --git a/TBF/Rig/MettlerToledo/ReadMassesOp.cs b/TBF/Rig/MettlerToledo/ReadMassesOp.cs
index 7266c57b9..6706a400b 100644
--- a/TBF/Rig/MettlerToledo/ReadMassesOp.cs
+++ b/TBF/Rig/MettlerToledo/ReadMassesOp.cs
@@ -43,7 +43,7 @@ namespace TBF.Rig.MettlerToledo
///
public Event Run()
{
- if (done) return Event.BalanceDone; /// Mass has already been read
+ if (done) return Event.ScaleDone; /// Mass has already been read
for (int i = 0; i < Standard.BalanceDev.BalancesCount; i++)
{
@@ -60,7 +60,7 @@ namespace TBF.Rig.MettlerToledo
}
}
done = true;
- return Event.BalanceDone;
+ return Event.ScaleDone;
}
/// Stop this operation
diff --git a/TBF/Rig/MettlerToledo/Standard/GetSerNumOp.cs b/TBF/Rig/MettlerToledo/Standard/GetSerNumOp.cs
index 0253a99f1..0edc68106 100644
--- a/TBF/Rig/MettlerToledo/Standard/GetSerNumOp.cs
+++ b/TBF/Rig/MettlerToledo/Standard/GetSerNumOp.cs
@@ -63,7 +63,7 @@ namespace TBF.Rig.MettlerToledo.Standard
if (scale.MsrmntState == MsrmntState.Valid)
{
serialNumber = scale.SerialNumber;
- return Event.BalanceDone; /// S/N read successful
+ return Event.ScaleDone; /// S/N read successful
}
if (scale.MsrmntState == MsrmntState.Failed)
diff --git a/TBF/Rig/MettlerToledo/Standard/ReadMassOp.cs b/TBF/Rig/MettlerToledo/Standard/ReadMassOp.cs
index e917da15e..fe36d9f94 100644
--- a/TBF/Rig/MettlerToledo/Standard/ReadMassOp.cs
+++ b/TBF/Rig/MettlerToledo/Standard/ReadMassOp.cs
@@ -42,7 +42,7 @@ namespace TBF.Rig.MettlerToledo.Standard
public Event Run()
{
result.Val = scale.Mass;
- return Event.BalanceDone;
+ return Event.ScaleDone;
}
/// Stop this operation
diff --git a/TBF/Rig/MettlerToledo/Standard/ReadStableMassOp.cs b/TBF/Rig/MettlerToledo/Standard/ReadStableMassOp.cs
index ba33bf0a4..c0399d88e 100644
--- a/TBF/Rig/MettlerToledo/Standard/ReadStableMassOp.cs
+++ b/TBF/Rig/MettlerToledo/Standard/ReadStableMassOp.cs
@@ -130,7 +130,7 @@ namespace TBF.Rig.MettlerToledo.Standard
if (measurementCompleted)
{
- return Event.BalanceDone;
+ return Event.ScaleDone;
}
if (scale.MsrmntState == MsrmntState.Busy)
@@ -176,7 +176,7 @@ namespace TBF.Rig.MettlerToledo.Standard
log.InfoFormat("ReadStableMassOp.Run() ... valid mass={0} ... returning Event.BalanceDone", result.Val);
measurementCompleted = true;
- return Event.BalanceDone; /// Mass has just been calculated
+ return Event.ScaleDone; /// Mass has just been calculated
}
}
else if (method == Config.Entities.MassMethod.StdDev)
@@ -195,7 +195,7 @@ namespace TBF.Rig.MettlerToledo.Standard
log.InfoFormat("ReadStableMassOp.Run() ... valid mass={0} ... returning Event.BalanceDone", result.Val);
measurementCompleted = true;
- return Event.BalanceDone; /// Mass has just been calculated
+ return Event.ScaleDone; /// Mass has just been calculated
}
}
else
@@ -210,14 +210,14 @@ namespace TBF.Rig.MettlerToledo.Standard
log.InfoFormat("ReadStableMassOp.Run() ... valid mass={0} ... returning Event.BalanceDone", result.Val);
measurementCompleted = true;
- return Event.BalanceDone; /// Mass has just been calculated
+ return Event.ScaleDone; /// Mass has just been calculated
}
}
if (measurementCompleted)
{
- return Event.BalanceDone;
+ return Event.ScaleDone;
}
else
{
diff --git a/TBF/Rig/MettlerToledo/Standard/SetUnitsOp.cs b/TBF/Rig/MettlerToledo/Standard/SetUnitsOp.cs
index 87828111a..07fd89e32 100644
--- a/TBF/Rig/MettlerToledo/Standard/SetUnitsOp.cs
+++ b/TBF/Rig/MettlerToledo/Standard/SetUnitsOp.cs
@@ -65,7 +65,7 @@ namespace TBF.Rig.MettlerToledo.Standard
return Event.None;
}
- if (scale.MsrmntState == MsrmntState.Valid) return Event.BalanceDone; /// Units set
+ if (scale.MsrmntState == MsrmntState.Valid) return Event.ScaleDone; /// Units set
if (scale.MsrmntState == MsrmntState.Failed) return Event.Error; /// Failed
return Event.None; /// No result yet
}
diff --git a/TBF/Rig/MettlerToledo/Standard/TaringOp.cs b/TBF/Rig/MettlerToledo/Standard/TaringOp.cs
index 99112fa09..4de97e6b4 100644
--- a/TBF/Rig/MettlerToledo/Standard/TaringOp.cs
+++ b/TBF/Rig/MettlerToledo/Standard/TaringOp.cs
@@ -67,7 +67,7 @@ namespace TBF.Rig.MettlerToledo.Standard
return Event.Busy;
}
- if (done) return Event.BalanceDone; /// Taring has been done already
+ if (done) return Event.ScaleDone; /// Taring has been done already
if (scale.MsrmntState == MsrmntState.Busy) return Event.Busy;
@@ -75,14 +75,14 @@ namespace TBF.Rig.MettlerToledo.Standard
{
tara.Val = scale.Capacity;
done = true;
- return Event.BalanceOverload;
+ return Event.ScaleOverload;
}
if (scale.MsrmntState == MsrmntState.Valid)
{
tara.Val = scale.Mass;
done = true;
- return Event.BalanceDone; /// Taring completed
+ return Event.ScaleDone; /// Taring completed
}
scale.SendTaraCmd(); /// Failed -> repeat taring
diff --git a/TBF/Rig/MettlerToledo/Standard/ZeroOp.cs b/TBF/Rig/MettlerToledo/Standard/ZeroOp.cs
index 153ab6352..7519aa5ac 100644
--- a/TBF/Rig/MettlerToledo/Standard/ZeroOp.cs
+++ b/TBF/Rig/MettlerToledo/Standard/ZeroOp.cs
@@ -64,20 +64,20 @@ namespace TBF.Rig.MettlerToledo.Standard
return Event.Busy;
}
- if (done) return Event.BalanceDone; /// Zeroing has been done already
+ if (done) return Event.ScaleDone; /// Zeroing has been done already
if (scale.MsrmntState == MsrmntState.Busy) return Event.Busy;
if (scale.MsrmntState == MsrmntState.Overload)
{
done = true;
- return Event.BalanceOverload;
+ return Event.ScaleOverload;
}
if (scale.MsrmntState == MsrmntState.Valid)
{
done = true;
- return Event.BalanceDone; /// Zeroing completed
+ return Event.ScaleDone; /// Zeroing completed
}
scale.SendZeroWhenStableCmd(); /// Failed -> repeat zeroing
diff --git a/TBF/Rig/Sequences/MainSeq.cs b/TBF/Rig/Sequences/MainSeq.cs
index 9fa1227b4..b821c57d8 100644
--- a/TBF/Rig/Sequences/MainSeq.cs
+++ b/TBF/Rig/Sequences/MainSeq.cs
@@ -157,7 +157,7 @@ namespace TBF.Rig.Sequences
if (e.Contains(Event.Error)) goto error;
if (e.Contains(Event.UiCmdStop)) goto stop;
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
select_procedure:
diff --git a/TBF/Rig/Sequences/SequenceBase.cs b/TBF/Rig/Sequences/SequenceBase.cs
index 28f950023..ff38cced7 100644
--- a/TBF/Rig/Sequences/SequenceBase.cs
+++ b/TBF/Rig/Sequences/SequenceBase.cs
@@ -279,7 +279,7 @@ namespace TBF.Rig.Sequences
stopped = true;
break;
}
- if (e.Contains(Event.BalanceOverload)) { }; /// Tank should be emptying now
+ if (e.Contains(Event.ScaleOverload)) { }; /// Tank should be emptying now
///
if (!(tank is IScale))
{
@@ -289,7 +289,7 @@ namespace TBF.Rig.Sequences
remainingTimeSec.Val % 60, Strings.sec));
}
}
- while ((tank is IScale) && !e.Contains(Event.BalanceDone));
+ while ((tank is IScale) && !e.Contains(Event.ScaleDone));
if (stopped) break;
}
@@ -332,7 +332,7 @@ namespace TBF.Rig.Sequences
stopped = true;
break;
}
- if (e.Contains(Event.BalanceOverload)) { }; /// Tank should be emptying now
+ if (e.Contains(Event.ScaleOverload)) { }; /// Tank should be emptying now
///
if (!(tank is IScale))
{
@@ -342,7 +342,7 @@ namespace TBF.Rig.Sequences
(remainingTimeSec.Val + tank.EmptyTimeSec / 2) % 60, Strings.sec));
}
}
- while ((tank is IScale) && !e.Contains(Event.BalanceDone));
+ while ((tank is IScale) && !e.Contains(Event.ScaleDone));
if (stopped) break;
}
@@ -382,7 +382,7 @@ namespace TBF.Rig.Sequences
stopped = true;
break;
}
- if (e.Contains(Event.BalanceOverload)) { }; /// Tank should be emptying now
+ if (e.Contains(Event.ScaleOverload)) { }; /// Tank should be emptying now
///
if (!(tank is IScale))
{
@@ -393,7 +393,7 @@ namespace TBF.Rig.Sequences
}
}
- while ((tank is IScale) && !e.Contains(Event.BalanceDone));
+ while ((tank is IScale) && !e.Contains(Event.ScaleDone));
if (stopped) break;
}
@@ -416,7 +416,7 @@ namespace TBF.Rig.Sequences
if (e.Contains(Event.Error)) return Event.Error;
if (TestAndLogUiCmdStop(e)) return Event.UiCmdStop;
}
- while (!e.Contains(Event.ValvesSet) || ((tank is IScale) && !e.Contains(Event.BalanceDone)));
+ while (!e.Contains(Event.ValvesSet) || ((tank is IScale) && !e.Contains(Event.ScaleDone)));
if (tank.DrainValve2 != null)
{
@@ -432,7 +432,7 @@ namespace TBF.Rig.Sequences
if (e.Contains(Event.Error)) return Event.Error;
if (TestAndLogUiCmdStop(e)) return Event.UiCmdStop;
}
- while (!e.Contains(Event.ValvesSet) || ((tank is IScale) && !e.Contains(Event.BalanceDone)));
+ while (!e.Contains(Event.ValvesSet) || ((tank is IScale) && !e.Contains(Event.ScaleDone)));
}
if (tank is IScale)
@@ -449,7 +449,7 @@ namespace TBF.Rig.Sequences
if (e.Contains(Event.Error)) return Event.Error;
if (TestAndLogUiCmdStop(e)) return Event.UiCmdStop;
}
- while (!e.Contains(Event.BalanceDone) || !e.Contains(Event.TimerExpired));
+ while (!e.Contains(Event.ScaleDone) || !e.Contains(Event.TimerExpired));
}
if (stopped)
@@ -1090,7 +1090,7 @@ namespace TBF.Rig.Sequences
if (TestAndLogUiCmdStop(e)) return Event.UiCmdStop;
if (e.Contains(Event.TestCompleted) || e.Contains(Event.Next)) return Event.TestCompleted;
}
- while ( (realTest && (outPath.Scale is IScale) && !e.Contains(Event.BalanceDone)) ||
+ while ( (realTest && (outPath.Scale is IScale) && !e.Contains(Event.ScaleDone)) ||
!e.Contains(Event.ReadAllRegistersDone));
return Event.Done;
diff --git a/TBF/Rig/TestMethods/CombinedWithDetection/CombinedWithDetectionSeq.cs b/TBF/Rig/TestMethods/CombinedWithDetection/CombinedWithDetectionSeq.cs
index 90fa8b154..1fc6c42f2 100644
--- a/TBF/Rig/TestMethods/CombinedWithDetection/CombinedWithDetectionSeq.cs
+++ b/TBF/Rig/TestMethods/CombinedWithDetection/CombinedWithDetectionSeq.cs
@@ -209,7 +209,7 @@ namespace TBF.Rig.TestMethods.CombinedWithDetection
if (e.Contains(Event.Error)) goto error;
if (TestAndLogUiCmdStop(test,e)) goto stopTest;
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
double estimatedEndMass = Mass.Val + test.Volume;
if (estimatedEndMass < scale.Capacity * Constants.TankFullFactor)
@@ -552,7 +552,7 @@ namespace TBF.Rig.TestMethods.CombinedWithDetection
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
///
Mass.Val = StartMass.Val;
tMass1 = StateMachine.Time;
@@ -649,7 +649,7 @@ namespace TBF.Rig.TestMethods.CombinedWithDetection
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
///
tMass2 = StateMachine.Time;
TestEndTime = DateTime.Now;
diff --git a/TBF/Rig/TestMethods/DiverterTest/DiverterTestSeq.cs b/TBF/Rig/TestMethods/DiverterTest/DiverterTestSeq.cs
index 5c516f972..643bea6c9 100644
--- a/TBF/Rig/TestMethods/DiverterTest/DiverterTestSeq.cs
+++ b/TBF/Rig/TestMethods/DiverterTest/DiverterTestSeq.cs
@@ -193,7 +193,7 @@ namespace TBF.Rig.TestMethods.DiverterTest
if (e.Contains(Event.Error)) { retVal = Event.Error; goto stopTest; }
if (TestAndLogUiCmdStop(test, e)) { retVal = Event.UiCmdStop; goto stopTest; }
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
double estimatedEndMass = Mass.Val + test.Volume;
if (estimatedEndMass >= scale.Capacity * Constants.TankFullFactor)
@@ -457,7 +457,7 @@ namespace TBF.Rig.TestMethods.DiverterTest
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
Mass.Val = StartMass.Val;
tMass1 = StateMachine.Time;
@@ -613,7 +613,7 @@ namespace TBF.Rig.TestMethods.DiverterTest
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
///
tMass2 = StateMachine.Time;
log.WarnFormat("End mass = {0}kg", EndMass);
diff --git a/TBF/Rig/TestMethods/FixedStartAdvanced/FixedStartAdvancedSeq.cs b/TBF/Rig/TestMethods/FixedStartAdvanced/FixedStartAdvancedSeq.cs
index 56123d860..c30ce9260 100644
--- a/TBF/Rig/TestMethods/FixedStartAdvanced/FixedStartAdvancedSeq.cs
+++ b/TBF/Rig/TestMethods/FixedStartAdvanced/FixedStartAdvancedSeq.cs
@@ -179,7 +179,7 @@ namespace TBF.Rig.TestMethods.FixedStartAdvanced
if (e.Contains(Event.Error)) { retVal = Event.Error; goto stopTest; }
if (TestAndLogUiCmdStop(test, e)) { retVal = Event.UiCmdStop; goto stopTest; }
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
}
///
/// Skip draining in case there is enough room in the tank
@@ -386,7 +386,7 @@ namespace TBF.Rig.TestMethods.FixedStartAdvanced
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
///
TestStartTime = DateTime.Now;
Mass.Val = StartMass.Val;
@@ -501,7 +501,7 @@ namespace TBF.Rig.TestMethods.FixedStartAdvanced
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
///
tMass2 = StateMachine.Time;
TestEndTime = DateTime.Now;
diff --git a/TBF/Rig/TestMethods/FixedStartMassCollAdvanced/FixedStartMassCollAdvancedSeq.cs b/TBF/Rig/TestMethods/FixedStartMassCollAdvanced/FixedStartMassCollAdvancedSeq.cs
index 020c50581..479b25a50 100644
--- a/TBF/Rig/TestMethods/FixedStartMassCollAdvanced/FixedStartMassCollAdvancedSeq.cs
+++ b/TBF/Rig/TestMethods/FixedStartMassCollAdvanced/FixedStartMassCollAdvancedSeq.cs
@@ -203,7 +203,7 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollAdvanced
if (e.Contains(Event.Error)) { retVal = Event.Error; goto stopTest; }
if (TestAndLogUiCmdStop(test, e)) { retVal = Event.UiCmdStop; goto stopTest; }
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
}
///
/// Skip draining in case there is enough room in the tank
@@ -238,7 +238,7 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollAdvanced
if (e.Contains(Event.Error)) { retVal = Event.Error; goto stopTest; }
if (TestAndLogUiCmdStop(test, e)) { retVal = Event.UiCmdStop; goto stopTest; }
}
- while (!e.Contains(Event.ValvesSet) || !e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ValvesSet) || !e.Contains(Event.ScaleDone));
#endregion
@@ -287,7 +287,7 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollAdvanced
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
///
Mass.Val = StartMass.Val;
tMass1 = StateMachine.Time;
@@ -648,7 +648,7 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollAdvanced
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
///
tMass2 = StateMachine.Time;
diff --git a/TBF/Rig/TestMethods/FixedStartMassCollDeferredEval/FixedStartMassCollDeferredEvalSeq.cs b/TBF/Rig/TestMethods/FixedStartMassCollDeferredEval/FixedStartMassCollDeferredEvalSeq.cs
index effacd2c8..bd968ec94 100644
--- a/TBF/Rig/TestMethods/FixedStartMassCollDeferredEval/FixedStartMassCollDeferredEvalSeq.cs
+++ b/TBF/Rig/TestMethods/FixedStartMassCollDeferredEval/FixedStartMassCollDeferredEvalSeq.cs
@@ -225,7 +225,7 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollDeferredEval
if (e.Contains(Event.Error)) { retVal = Event.Error; goto stopTest; }
if (TestAndLogUiCmdStop(test, e)) { retVal = Event.UiCmdStop; goto stopTest; }
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
}
///
/// Skip draining in case there is enough room in the tank
@@ -260,7 +260,7 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollDeferredEval
if (e.Contains(Event.Error)) { retVal = Event.Error; goto stopTest; }
if (TestAndLogUiCmdStop(test, e)) { retVal = Event.UiCmdStop; goto stopTest; }
}
- while (!e.Contains(Event.ValvesSet) || !e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ValvesSet) || !e.Contains(Event.ScaleDone));
@@ -532,7 +532,7 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollDeferredEval
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
///
Mass.Val = StartMass.Val;
tMass1 = StateMachine.Time;
@@ -799,7 +799,7 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollDeferredEval
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
///
tMass2 = StateMachine.Time;
TestEndTime = DateTime.Now;
diff --git a/TBF/Rig/TestMethods/FixedStartMassCollection/FixedStartMassCollectionSeq.cs b/TBF/Rig/TestMethods/FixedStartMassCollection/FixedStartMassCollectionSeq.cs
index 468179087..725962a44 100644
--- a/TBF/Rig/TestMethods/FixedStartMassCollection/FixedStartMassCollectionSeq.cs
+++ b/TBF/Rig/TestMethods/FixedStartMassCollection/FixedStartMassCollectionSeq.cs
@@ -202,7 +202,7 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollection
if (e.Contains(Event.Error)) { retVal = Event.Error; goto stopTest; }
if (TestAndLogUiCmdStop(test, e)) { retVal = Event.UiCmdStop; goto stopTest; }
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
}
///
/// Skip draining in case there is enough room in the tank
@@ -237,7 +237,7 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollection
if (e.Contains(Event.Error)) { retVal = Event.Error; goto stopTest; }
if (TestAndLogUiCmdStop(test, e)) { retVal = Event.UiCmdStop; goto stopTest; }
}
- while (!e.Contains(Event.ValvesSet) || !e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ValvesSet) || !e.Contains(Event.ScaleDone));
@@ -508,7 +508,7 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollection
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
///
Mass.Val = StartMass.Val;
tMass1 = StateMachine.Time;
@@ -794,7 +794,7 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollection
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
///
tMass2 = StateMachine.Time;
diff --git a/TBF/Rig/TestMethods/FlyingStartFirstRepetWithMassColl/FlyingStartFirstRepetWithMassCollSeq.cs b/TBF/Rig/TestMethods/FlyingStartFirstRepetWithMassColl/FlyingStartFirstRepetWithMassCollSeq.cs
index 304604e22..a5d02d7c7 100644
--- a/TBF/Rig/TestMethods/FlyingStartFirstRepetWithMassColl/FlyingStartFirstRepetWithMassCollSeq.cs
+++ b/TBF/Rig/TestMethods/FlyingStartFirstRepetWithMassColl/FlyingStartFirstRepetWithMassCollSeq.cs
@@ -220,7 +220,7 @@ namespace TBF.Rig.TestMethods.FlyingStartFirstRepetWithMassColl
if (e.Contains(Event.Error)) { retVal = Event.Error; goto stopTest; }
if (TestAndLogUiCmdStop(test, e)) { retVal = Event.UiCmdStop; goto stopTest; }
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
double estimatedEndMass = Mass.Val + test.Volume;
if (estimatedEndMass >= scale.Capacity * Constants.TankFullFactor)
@@ -549,7 +549,7 @@ namespace TBF.Rig.TestMethods.FlyingStartFirstRepetWithMassColl
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
Mass.Val = StartMass.Val;
tMass1 = StateMachine.Time;
@@ -673,7 +673,7 @@ namespace TBF.Rig.TestMethods.FlyingStartFirstRepetWithMassColl
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
///
tMass2 = StateMachine.Time;
log.WarnFormat("End mass = {0}kg", EndMass);
diff --git a/TBF/Rig/TestMethods/FlyingStartMassCollComparative/FlyingStartMassCollComparativeSeq.cs b/TBF/Rig/TestMethods/FlyingStartMassCollComparative/FlyingStartMassCollComparativeSeq.cs
index 06fbabec9..8379ab9ed 100644
--- a/TBF/Rig/TestMethods/FlyingStartMassCollComparative/FlyingStartMassCollComparativeSeq.cs
+++ b/TBF/Rig/TestMethods/FlyingStartMassCollComparative/FlyingStartMassCollComparativeSeq.cs
@@ -234,7 +234,7 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollComparative
if (e.Contains(Event.Error)) { retVal = Event.Error; goto stopTest; }
if (TestAndLogUiCmdStop(test, e)) { retVal = Event.UiCmdStop; goto stopTest; }
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
double estimatedEndMass = Mass.Val + test.Volume;
if (estimatedEndMass >= scale.Capacity * Constants.TankFullFactor)
@@ -579,7 +579,7 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollComparative
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
log.WarnFormat("Reference mass = {0}kg", measuredRefMass);
@@ -630,7 +630,7 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollComparative
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
Mass.Val = StartMass.Val;
tMass1 = StateMachine.Time;
@@ -761,7 +761,7 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollComparative
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
///
tMass2 = StateMachine.Time;
log.WarnFormat("End mass = {0}kg", EndMass);
diff --git a/TBF/Rig/TestMethods/FlyingStartMassCollProlonged/FlyingStartMassCollProlongedSeq.cs b/TBF/Rig/TestMethods/FlyingStartMassCollProlonged/FlyingStartMassCollProlongedSeq.cs
index bdc2b3168..89cb5564c 100644
--- a/TBF/Rig/TestMethods/FlyingStartMassCollProlonged/FlyingStartMassCollProlongedSeq.cs
+++ b/TBF/Rig/TestMethods/FlyingStartMassCollProlonged/FlyingStartMassCollProlongedSeq.cs
@@ -212,7 +212,7 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollProlonged
if (e.Contains(Event.Error)) { retVal = Event.Error; goto stopTest; }
if (TestAndLogUiCmdStop(test, e)) { retVal = Event.UiCmdStop; goto stopTest; }
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
double estimatedEndMass = Mass.Val + volumeToTank;
if (estimatedEndMass >= scale.Capacity * Constants.TankFullFactor)
@@ -541,7 +541,7 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollProlonged
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
Mass.Val = StartMass.Val;
tMass1 = StateMachine.Time;
@@ -608,7 +608,7 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollProlonged
DoInsideMeasurementLoop(cBrd, heatMetersTestParams, test, repetitionNr, estimtdEndTime);
/// Continue in 2nd part of the test when mass measurement is completed, 'Next' button can be used in Debug version
}
- while (!e.Contains(Event.BalanceDone) && !e.Contains(Event.ScaleTimeout) && !e.Contains(Event.Next));
+ while (!e.Contains(Event.ScaleDone) && !e.Contains(Event.ScaleTimeout) && !e.Contains(Event.Next));
///
/// 2nd part of the test and optional opening of the drain valve
diff --git a/TBF/Rig/TestMethods/FlyingStartMassCollection/FlyingStartMassCollectionSeq.cs b/TBF/Rig/TestMethods/FlyingStartMassCollection/FlyingStartMassCollectionSeq.cs
index 583255f7c..ab3477c53 100644
--- a/TBF/Rig/TestMethods/FlyingStartMassCollection/FlyingStartMassCollectionSeq.cs
+++ b/TBF/Rig/TestMethods/FlyingStartMassCollection/FlyingStartMassCollectionSeq.cs
@@ -209,7 +209,7 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollection
if (e.Contains(Event.Error)) { retVal = Event.Error; goto stopTest; }
if (TestAndLogUiCmdStop(test, e)) { retVal = Event.UiCmdStop; goto stopTest; }
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
double estimatedEndMass = Mass.Val + test.Volume;
if (estimatedEndMass >= scale.Capacity * Constants.TankFullFactor)
@@ -538,7 +538,7 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollection
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
Mass.Val = StartMass.Val;
tMass1 = StateMachine.Time;
@@ -665,7 +665,7 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollection
goto stopTest;
}
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
///
tMass2 = StateMachine.Time;
log.WarnFormat("End mass = {0}kg", EndMass);
diff --git a/TBF/Rig/TestMethods/LeakTest/LeakTestSeq.cs b/TBF/Rig/TestMethods/LeakTest/LeakTestSeq.cs
index 0aa6928c2..3a251bb82 100644
--- a/TBF/Rig/TestMethods/LeakTest/LeakTestSeq.cs
+++ b/TBF/Rig/TestMethods/LeakTest/LeakTestSeq.cs
@@ -272,7 +272,7 @@ namespace TBF.Rig.TestMethods.LeakTest
UpdateAllStatistics(StateMachine.Time);
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
}
///------------------------------------------------
@@ -329,7 +329,7 @@ namespace TBF.Rig.TestMethods.LeakTest
UpdateAllStatistics(StateMachine.Time);
}
- while (!e.Contains(Event.BalanceDone));
+ while (!e.Contains(Event.ScaleDone));
}
///