diff --git a/TestBenchFramework/BenchControl/TestMethods/FixedStartMassCollection/FixedStartMassCollectionSeq.cs b/TestBenchFramework/BenchControl/TestMethods/FixedStartMassCollection/FixedStartMassCollectionSeq.cs index 1b93168ee..ca620b679 100644 --- a/TestBenchFramework/BenchControl/TestMethods/FixedStartMassCollection/FixedStartMassCollectionSeq.cs +++ b/TestBenchFramework/BenchControl/TestMethods/FixedStartMassCollection/FixedStartMassCollectionSeq.cs @@ -75,6 +75,14 @@ namespace TBF.BenchControl.TestMethods.FixedStartMassCollection int flowSetTime0 = StateMachine.Time; + if (test.Volume >= outPath.Balance.Capacity * Constants.TankFullFactor) + { + Bridge.OnError(this, Strings.Test_volume_exceeds_the_scale_capacity); + retVal = Event.Error; + goto stopTest; + } + + /// /// Optionally display prompt to emerge temperature meters to appropriate baths for heat meters test /// diff --git a/TestBenchFramework/BenchControl/TestMethods/FlyingStartMassCollection/FlyingStartMassCollectionSeq.cs b/TestBenchFramework/BenchControl/TestMethods/FlyingStartMassCollection/FlyingStartMassCollectionSeq.cs index 006d4a93b..3b4be17df 100644 --- a/TestBenchFramework/BenchControl/TestMethods/FlyingStartMassCollection/FlyingStartMassCollectionSeq.cs +++ b/TestBenchFramework/BenchControl/TestMethods/FlyingStartMassCollection/FlyingStartMassCollectionSeq.cs @@ -124,6 +124,13 @@ namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection //------------------------------------------------ Bridge.OnActivity(this, Strings.Checking_tank_capacity); //------------------------------------------------ + if (test.Volume >= outPath.Balance.Capacity * Constants.TankFullFactor) + { + Bridge.OnError(this, Strings.Test_volume_exceeds_the_scale_capacity); + retVal = Event.Error; + goto stopTest; + } + bool emptyTheTank = test.Emptying; if (!emptyTheTank) /// If condition met => skip measuring and force emptying diff --git a/TestBenchFramework/Resources/Strings.Designer.cs b/TestBenchFramework/Resources/Strings.Designer.cs index 8a52cd5ab..638ff9694 100644 --- a/TestBenchFramework/Resources/Strings.Designer.cs +++ b/TestBenchFramework/Resources/Strings.Designer.cs @@ -4245,6 +4245,15 @@ namespace TBF.Resources { } } + /// + /// Looks up a localized string similar to Test volume exceeds the scale capacity. + /// + internal static string Test_volume_exceeds_the_scale_capacity { + get { + return ResourceManager.GetString("Test_volume_exceeds_the_scale_capacity", resourceCulture); + } + } + /// /// Looks up a localized string similar to Tester. /// diff --git a/TestBenchFramework/Resources/Strings.de.resx b/TestBenchFramework/Resources/Strings.de.resx index 2b56973e4..57e4364d4 100644 --- a/TestBenchFramework/Resources/Strings.de.resx +++ b/TestBenchFramework/Resources/Strings.de.resx @@ -1404,4 +1404,7 @@ Solltemperatur [°C] + + Prüfpunktvolumen uberschritt Behalter + \ No newline at end of file diff --git a/TestBenchFramework/Resources/Strings.resx b/TestBenchFramework/Resources/Strings.resx index ae78b70fe..b476318df 100644 --- a/TestBenchFramework/Resources/Strings.resx +++ b/TestBenchFramework/Resources/Strings.resx @@ -1681,4 +1681,7 @@ Set warm water heating temperature + + Test volume exceeds the scale capacity + \ No newline at end of file