- added events Event.TimerBusy, Event.ValvesBusy, etc. - fixed bug in SetValvesOp - preparing a virtual bench drawing on the Process screen - partly done
61 lines
1.9 KiB
C#
61 lines
1.9 KiB
C#
using System.Collections.Generic;
|
|
using TBF.BenchControl.Generic;
|
|
using TBF.Boxes;
|
|
|
|
namespace TBF.BenchControl.GenericDevices
|
|
{
|
|
/// <summary>
|
|
/// Basic balance functions
|
|
/// </summary>
|
|
public interface IBalance : IDevice, IComponent
|
|
{
|
|
/// <summary>
|
|
/// Balance number: 0-based index required for communication with the Elde component
|
|
/// </summary>
|
|
int BalanceNr { get; }
|
|
|
|
/// <summary>
|
|
/// Balance water tank capacity in kg or ltr
|
|
/// </summary>
|
|
float Capacity { get; }
|
|
|
|
/// <summary>
|
|
/// Returns true if tank s empty, mass is less then some threshold
|
|
/// </summary>
|
|
bool IsEmpty(float mass);
|
|
|
|
/// <summary>
|
|
/// Time in seconds to empty the tank completely when it is full
|
|
/// </summary>
|
|
int EmptyTimeSec { get; }
|
|
|
|
|
|
/// <summary>
|
|
/// Measurement correction table
|
|
/// </summary>
|
|
IList<Entities.MeasurementCorrection> Corrections { get; }
|
|
|
|
/// <summary>
|
|
/// Events: BalanceDone, Error
|
|
/// </summary>
|
|
/// <param name="result">Reference to a variable for 'tara' in kg</param>
|
|
/// <returns>TaringOp instance reference casted to IOperaton</returns>
|
|
IOperation TaringOp(ref FloatBox tara);
|
|
|
|
/// <summary>
|
|
/// Events: BalanceDone, Error
|
|
/// </summary>
|
|
/// <param name="result">Reference to a variable for the measured mass in kg</param>
|
|
/// <returns>ReadMassOp instance reference casted to IOperaton</returns>
|
|
IOperation ReadMassOp(ref FloatBox mass);
|
|
|
|
/// <summary>
|
|
/// Events: BalanceDone, Error
|
|
/// </summary>
|
|
/// <param name="result">Reference to a variable for the measured mass in kg</param>
|
|
/// <param name="readingsCount">Required mass readings count (>= 3)</param>
|
|
/// <returns>ReadMassAverageOp instance reference casted to IOperaton</returns>
|
|
IOperation ReadStableMassOp(ref FloatBox mass, int readingsCount);
|
|
}
|
|
}
|