Uni.XyzStartStopTest[WithDiv]Op, etc., AdjustmentSeq and all FlyingStartXyzSeq completed, ver. 3.1.1630
This commit is contained in:
@@ -19,7 +19,7 @@ namespace TBF.Rig.ControlBoard.Papouch
|
||||
public class PapouchCB : ComponentBase, IControlBoard, IOperation
|
||||
{
|
||||
private static readonly ILog log = LogManager.GetLogger(typeof(PapouchCB));
|
||||
public override string ToString() { return string.Format("{0}({1})", ClassName, Cfg.ToString(1)); }
|
||||
public override string ToString() { return string.Format("{0}({1})", ClassName, Cfg.ToString(-1)); }
|
||||
|
||||
readonly PapouchCBCfg cbCfg;
|
||||
readonly GenericDevices.IModbus modbus;
|
||||
@@ -370,16 +370,31 @@ namespace TBF.Rig.ControlBoard.Papouch
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Start a test, Events: MeasurementStarted
|
||||
/// Start a standing start-stop test
|
||||
/// </summary>
|
||||
/// <param name="iParam">Int32 parameter 1</param>
|
||||
/// <param name="dParam1">Double parameter 1 (alternative lower flow limit)</param>
|
||||
/// <param name="dParam2">Double parameter 2 (alternative upper flow limit)</param>
|
||||
/// <returns>Operation</returns>
|
||||
public IOperation StartTestOp(Test test, int iParam = 0, double dParam1 = 0, double dParam2 = 0)
|
||||
public IOperation StandingStartStopTestOp(Test test, double qFrom, double qTo, int pulsesCount)
|
||||
{
|
||||
currentTest = test;
|
||||
return new Operations.ReturnGivenEventOp(Event.MeasurementStarted);
|
||||
return new Operations.ReturnGivenEventOp(Event.TestInProgress);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Start a flying start-stop test ... not supported by Papouch control board
|
||||
/// </summary>
|
||||
/// <returns>null</returns>
|
||||
public IOperation FlyingStartStopTestOp(Test test, double qFrom, double qTo, int pulsesCount)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Start a flying start-stop test with diverter ... not supported by Papouch control board
|
||||
/// </summary>
|
||||
/// <returns>null</returns>
|
||||
public IOperation FlyingStartStopTestWithDivOp(Test test, double qFrom, double qTo, int pulsesCount, int massPulsesCount = 0, bool readDivTransition = true)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public IOperation QueryMeasurementEndOp()
|
||||
@@ -454,14 +469,14 @@ namespace TBF.Rig.ControlBoard.Papouch
|
||||
}
|
||||
else if (runningOp == SelectedOp.QueryMeasurementEnd)
|
||||
{
|
||||
if (opCompleted) return Event.MeasurementCompleted;
|
||||
if (opCompleted) return Event.TestCompleted;
|
||||
|
||||
double currentMass = TBF.Rig.Sequences.ProcessData.Mass.Val;
|
||||
|
||||
if (currentMass - TBF.Rig.Sequences.ProcessData.StartMass.Val >= currentTest.Volume)
|
||||
{
|
||||
opCompleted = true;
|
||||
return Event.MeasurementCompleted;
|
||||
return Event.TestCompleted;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user