74 lines
2.2 KiB
C#
74 lines
2.2 KiB
C#
///
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
|
///
|
|
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>
|
|
/// Returns true if tank s empty, the last measured mass is less then some threshold
|
|
/// </summary>
|
|
bool IsEmpty();
|
|
|
|
/// <summary>
|
|
/// Format string to be used as ToString() argument (e.g. "F3" to obtain resolution 1g)
|
|
/// </summary>
|
|
string Format { get; }
|
|
|
|
/// <summary>
|
|
/// Time in seconds to empty the tank completely when it is full
|
|
/// </summary>
|
|
int EmptyTimeSec { get; }
|
|
|
|
|
|
/// <summary>
|
|
/// Measurement correction table
|
|
/// </summary>
|
|
IList<Config.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);
|
|
}
|
|
}
|