Active FM pump is switched off in 'default action' after test (not when transition sequences are used), ver.2.3.242.

This commit is contained in:
Milan Hanajik
2016-03-15 19:29:47 +08:00
parent 1fb82dad92
commit b86ca9fac8
3 changed files with 18 additions and 17 deletions
@@ -225,6 +225,8 @@ namespace TBF.BenchControl.Sequences
/// ///
if (context == TransitionContext.AfterTest) if (context == TransitionContext.AfterTest)
{ {
if (inPath.Pump is GenericDevices.IPumpFM) (inPath.Pump as GenericDevices.IPumpFM).TurnOff();
State.Create("SequenceBase : Transition : TestEnd - Default action") State.Create("SequenceBase : Transition : TestEnd - Default action")
.AddOperation(checkUiOp) .AddOperation(checkUiOp)
.AddOperation(new MettlerToledo.KeepReadingMassesOp()) .AddOperation(new MettlerToledo.KeepReadingMassesOp())
@@ -73,21 +73,6 @@ namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection
//------------------------------------------------ //------------------------------------------------
if (inPath.Pump is GenericDevices.IPumpFM) (inPath.Pump as GenericDevices.IPumpFM).TurnOn(test.PumpPower); if (inPath.Pump is GenericDevices.IPumpFM) (inPath.Pump as GenericDevices.IPumpFM).TurnOn(test.PumpPower);
State.Create("FlyingStartMassCollection : Starting the pump")
.AddOperation(checkUiOp)
.AddOperation(new Operations.TimerOp(5))
.EnterState();
do
{
e = StateMachine.WaitRunDevsRunOps();
Bridge.OnProcessData(this, new ProcessDataEventArgs(test, repetitionNr, Config.Entities.Progress.FlowSetting));
Bridge.OnTestProgress(this, new TestProgressEventArgs(test, repetitionNr, Config.Entities.Progress.FlowSetting));
if (e.Contains(Event.UiCmdStop)) { retVal = Event.UiCmdStop; goto stopTest; }
}
while (!e.Contains(Event.TimerExpired));
State.Create("FlyingStartMassCollection : Starting the pump") State.Create("FlyingStartMassCollection : Starting the pump")
.AddOperation(checkUiOp) .AddOperation(checkUiOp)
.AddOperation(cBrd.SetValvesOp(inPath.Pump, null)) .AddOperation(cBrd.SetValvesOp(inPath.Pump, null))
@@ -102,6 +87,20 @@ namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection
} }
while (!e.Contains(Event.ValvesSet)); while (!e.Contains(Event.ValvesSet));
State.Create("FlyingStartMassCollection : Starting the pump")
.AddOperation(checkUiOp)
.AddOperation(new Operations.TimerOp(5))
.EnterState();
do
{
e = StateMachine.WaitRunDevsRunOps();
Bridge.OnProcessData(this, new ProcessDataEventArgs(test, repetitionNr, Config.Entities.Progress.FlowSetting));
Bridge.OnTestProgress(this, new TestProgressEventArgs(test, repetitionNr, Config.Entities.Progress.FlowSetting));
if (e.Contains(Event.UiCmdStop)) { retVal = Event.UiCmdStop; goto stopTest; }
}
while (!e.Contains(Event.TimerExpired));
if (!test.Emptying) /// If condition met => skip measuring and force emptying if (!test.Emptying) /// If condition met => skip measuring and force emptying
{ {
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
// Build Number // Build Number
// Revision // Revision
// //
[assembly: AssemblyVersion("2.3.241.1")] [assembly: AssemblyVersion("2.3.242.1")]
[assembly: AssemblyFileVersion("2.3.241.1")] [assembly: AssemblyFileVersion("2.3.242.1")]