Prolonged test support in Action, OutputMessage, etc., ver. 3.1.1634
This commit is contained in:
@@ -43,6 +43,7 @@ namespace TBF.Rig.ControlBoard.Uni
|
||||
public bool IsSyncMethod { get; set; } /// StartTest argument
|
||||
public bool IsDivUsed { get; set; } /// StartTest argument
|
||||
public bool IsStartStop { get; set; } /// StartTest argument
|
||||
public bool IsProlonged { get; set; } /// StartTest argument
|
||||
public bool ToTank { get; set; } /// SwitchDiverter argument
|
||||
public int TotalPulsesCount { get; set; } /// StartTest argument
|
||||
public int MassPulsesCount { get; set; } /// StartTest argument
|
||||
@@ -70,6 +71,7 @@ namespace TBF.Rig.ControlBoard.Uni
|
||||
IsSyncMethod = false;
|
||||
IsDivUsed = false;
|
||||
IsStartStop = false;
|
||||
IsProlonged = false;
|
||||
MassPulsesCount = 0;
|
||||
RVMovePar1 = 0;
|
||||
RVMovePar2 = 0;
|
||||
@@ -126,9 +128,10 @@ namespace TBF.Rig.ControlBoard.Uni
|
||||
IsFromUI = isFromUI,
|
||||
///
|
||||
FlowMId = flowMeterId,
|
||||
IsSyncMethod = true,
|
||||
IsSyncMethod = false,
|
||||
IsDivUsed = false,
|
||||
IsStartStop = false,
|
||||
IsProlonged = false,
|
||||
TotalPulsesCount = 0x7FFFFF,
|
||||
MassPulsesCount = 0x7FFFFF,
|
||||
StartStop = Command.Start,
|
||||
@@ -137,9 +140,10 @@ namespace TBF.Rig.ControlBoard.Uni
|
||||
void SetMeasureFlowArgs(Action action)
|
||||
{
|
||||
FlowMId = action.FlowMId;
|
||||
IsSyncMethod = true;
|
||||
IsSyncMethod = false;
|
||||
IsDivUsed = false;
|
||||
IsStartStop = false;
|
||||
IsProlonged = false;
|
||||
TotalPulsesCount = action.TotalPulsesCount;
|
||||
MassPulsesCount = action.MassPulsesCount;
|
||||
StartStop = Command.Start;
|
||||
@@ -192,8 +196,9 @@ namespace TBF.Rig.ControlBoard.Uni
|
||||
}
|
||||
|
||||
///----------------------------------------------------------------------------------------------
|
||||
public static Action StartTest(bool isFromUI, int flowMId, int divId, int divThreshold, bool isSyncMethod,
|
||||
bool isDivUsed, bool isStartStop, int totalPulsesCount, int massPulsesCount = 0)
|
||||
public static Action StartTest(bool isFromUI, int flowMId, int divId, int divThreshold,
|
||||
bool isSyncMethod, bool isDivUsed, bool isStartStop, bool isProlonged,
|
||||
int totalPulsesCount, int massPulsesCount = 0)
|
||||
{
|
||||
return new Action
|
||||
{
|
||||
@@ -206,6 +211,7 @@ namespace TBF.Rig.ControlBoard.Uni
|
||||
IsSyncMethod = isSyncMethod,
|
||||
IsDivUsed = isDivUsed,
|
||||
IsStartStop = isStartStop,
|
||||
IsProlonged = isProlonged,
|
||||
TotalPulsesCount = totalPulsesCount,
|
||||
MassPulsesCount = (massPulsesCount <= 0) ? totalPulsesCount : massPulsesCount,
|
||||
StartStop = Command.Start,
|
||||
@@ -219,6 +225,7 @@ namespace TBF.Rig.ControlBoard.Uni
|
||||
IsSyncMethod = action.IsSyncMethod;
|
||||
IsDivUsed = action.IsDivUsed;
|
||||
IsStartStop = action.IsStartStop;
|
||||
IsProlonged = IsProlonged;
|
||||
TotalPulsesCount = action.TotalPulsesCount;
|
||||
MassPulsesCount = action.MassPulsesCount;
|
||||
StartStop = Command.Start;
|
||||
@@ -445,7 +452,7 @@ namespace TBF.Rig.ControlBoard.Uni
|
||||
}
|
||||
}
|
||||
|
||||
log.InfoFormat("Combined action: {0} Rt={1} Et={2} RV={3} Div#={4} Cmd={5} Sync={6} wDiv={7} S/S={8} ToTank={9} Puls={10} MPls={11} RVMode={12} P1={13} P2={14}",
|
||||
log.InfoFormat("Combined action: {0} Rt={1} Et={2} RV={3} Div#={4} Cmd={5} Sync={6} wDiv={7} S/S={8} Prolng={9} ToTank={10} Puls={11} MPls={12} RVMode={13} P1={14} P2={15}",
|
||||
((int)combinedAction.ActionId).ToString("X3"),
|
||||
combinedAction.Route.ToString("X12"),
|
||||
combinedAction.FlowMId,
|
||||
@@ -455,6 +462,7 @@ namespace TBF.Rig.ControlBoard.Uni
|
||||
combinedAction.IsSyncMethod,
|
||||
combinedAction.IsDivUsed,
|
||||
combinedAction.IsStartStop,
|
||||
combinedAction.IsProlonged,
|
||||
combinedAction.ToTank,
|
||||
combinedAction.TotalPulsesCount,
|
||||
combinedAction.MassPulsesCount,
|
||||
@@ -484,7 +492,7 @@ namespace TBF.Rig.ControlBoard.Uni
|
||||
args = string.Format("RV={0} P1={1} P2={2}", RegVId, RVMovePar1, RVMovePar2);
|
||||
break;
|
||||
case ActionID.StartTest:
|
||||
args = string.Format("Et={0} Puls={1} MPls={2} Sync={3} Div={4} SS={5}", FlowMId, TotalPulsesCount, MassPulsesCount, IsSyncMethod, IsDivUsed, IsStartStop);
|
||||
args = string.Format("Et={0} Puls={1} MPls={2} Sync={3} Div={4} S/S={5} Prolonged={6}", FlowMId, TotalPulsesCount, MassPulsesCount, IsSyncMethod, IsDivUsed, IsStartStop, IsProlonged);
|
||||
break;
|
||||
case ActionID.RegVlvIncrMove:
|
||||
args = string.Format("RV={0} Time={1}ms", RegVId, (RegVMode & RegValveMode.NegPulseWidth) != 0 ? -50 * RVMovePar1 : 50 * RVMovePar1);
|
||||
|
||||
Reference in New Issue
Block a user