WMPulses[], WMRefPulses[], WMTimes[] removed from SequenceBase, operations, etc., clean-up.
This commit is contained in:
@@ -28,8 +28,6 @@ namespace TBF.BenchControl.Elde.FixedStartRegisterReader
|
||||
|
||||
int wmPulses;
|
||||
int wmRefPulses;
|
||||
IntBox pulsesBox;
|
||||
IntBox refPulsesBox;
|
||||
|
||||
readonly ControlBoardDev controlBoard;
|
||||
|
||||
@@ -67,35 +65,16 @@ namespace TBF.BenchControl.Elde.FixedStartRegisterReader
|
||||
/// <summary>
|
||||
/// Events: Event.ReadRegisterDone, Event.Error
|
||||
/// </summary>
|
||||
/// <param name="pulsesBox">Reference to a variable for the water meter pulses</param>
|
||||
/// <returns>ReadWaterMeter instance reference casted to IOperaton</returns>
|
||||
public IOperation ReadRegisterOp(ref IntBox pulsesBox)
|
||||
public IOperation ReadRegisterOp()
|
||||
{
|
||||
this.pulsesBox = pulsesBox;
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Events: Event.ReadRegisterDone, Event.Error
|
||||
/// </summary>
|
||||
/// <param name="pulsesBox">Reference to a variable for the water meter pulses</param>
|
||||
/// <param name="refPulsesBox">Reference to a variable for the related reference flowmeter pulses</param>
|
||||
/// <returns>Reference to operation object instance</returns>
|
||||
public IOperation ReadRegisterOp(ref IntBox pulsesBox, ref IntBox refPulsesBox)
|
||||
{
|
||||
this.pulsesBox = pulsesBox;
|
||||
this.refPulsesBox = refPulsesBox;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
private void ReadPulses()
|
||||
{
|
||||
wmPulses = (int)(EndWMState - BeginWMState); /// TODO: replace 0
|
||||
wmRefPulses = (int)controlBoard.EtPulses(0);
|
||||
|
||||
pulsesBox.Val = wmPulses;
|
||||
if (refPulsesBox != null) refPulsesBox.Val = wmRefPulses;
|
||||
}
|
||||
|
||||
/// <summary>Start this operation</summary>
|
||||
|
||||
@@ -27,8 +27,6 @@ namespace TBF.BenchControl.Elde.RegisterReader
|
||||
|
||||
int wmPulses;
|
||||
int wmRefPulses;
|
||||
IntBox pulsesBox;
|
||||
IntBox refPulsesBox;
|
||||
|
||||
/// <summary> This is to cope with counter overflow </summary>
|
||||
int lastPulses;
|
||||
@@ -71,28 +69,12 @@ namespace TBF.BenchControl.Elde.RegisterReader
|
||||
/// <summary>
|
||||
/// Events: Event.ReadRegisterDone, Event.Error
|
||||
/// </summary>
|
||||
/// <param name="pulsesBox">Reference to a variable for the water meter pulses</param>
|
||||
/// <returns>ReadWaterMeter instance reference casted to IOperaton</returns>
|
||||
public IOperation ReadRegisterOp(ref IntBox pulsesBox)
|
||||
public IOperation ReadRegisterOp()
|
||||
{
|
||||
this.pulsesBox = pulsesBox;
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Events: Event.ReadRegisterDone, Event.Error
|
||||
/// </summary>
|
||||
/// <param name="pulsesBox">Reference to a variable for the water meter pulses</param>
|
||||
/// <param name="refPulsesBox">Reference to a variable for the related reference flowmeter pulses</param>
|
||||
/// <returns>Reference to operation object instance</returns>
|
||||
public IOperation ReadRegisterOp(ref IntBox pulsesBox, ref IntBox refPulsesBox)
|
||||
{
|
||||
this.pulsesBox = pulsesBox;
|
||||
this.refPulsesBox = refPulsesBox;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
private void ReadPulses()
|
||||
{
|
||||
if (!lastPulsesValid)
|
||||
@@ -120,9 +102,6 @@ namespace TBF.BenchControl.Elde.RegisterReader
|
||||
|
||||
wmPulses = lastPulses;
|
||||
wmRefPulses = (int)controlBoard.EtPulses(Position);
|
||||
|
||||
pulsesBox.Val = wmPulses;
|
||||
if (refPulsesBox != null) refPulsesBox.Val = wmRefPulses;
|
||||
}
|
||||
|
||||
/// <summary>Start this operation</summary>
|
||||
|
||||
Reference in New Issue
Block a user