Initial commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
namespace Xylem.Common.Hardware.WaterMeter.WaterMeterCore.Consts
|
||||
{
|
||||
public enum DisplayCodes
|
||||
{
|
||||
//general
|
||||
None = 0x0000,
|
||||
Error = 0xFFFF,
|
||||
|
||||
|
||||
//Production proccess
|
||||
//assembly line
|
||||
//Picking
|
||||
PickingStarted = 0x7700,
|
||||
PickingTested = 0x7777,
|
||||
PickingFailed = 0xFF77,
|
||||
|
||||
//Pressure
|
||||
PressureTested = 0x1111,
|
||||
PressureTestedFailed = 0xFF11,
|
||||
|
||||
//Marriage
|
||||
Mounted = 0x2222,
|
||||
|
||||
//Testbench
|
||||
ZeroFlow = 0x3333,
|
||||
ZeroFlowFailed = 0xFF33,
|
||||
FlowCalibrated = 0x4444,
|
||||
FlowCalibrationOurOfRange = 0xFF44,
|
||||
FlowTested = 0x5555,
|
||||
FlowTestFailed = 0xFF55,
|
||||
|
||||
//End of line / final test
|
||||
FinalTestFailed = 0xFF66,
|
||||
|
||||
//FWUpdate
|
||||
FwUpdateActive = 0x8888,
|
||||
FwUpdateFailed = 0xFF88,
|
||||
FwUpToDate = 0x9999,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
using System;
|
||||
|
||||
namespace Xylem.Common.Hardware.WaterMeter.WaterMeterCore.Consts
|
||||
{
|
||||
/// <summary>
|
||||
/// Common definition for Meter handling in production and on test benches
|
||||
/// </summary>
|
||||
/// <summary>
|
||||
/// represents any error state a meter can have
|
||||
/// if hash code is 0 everything is running
|
||||
/// is Flags, so watch out to check with hasFlag!
|
||||
/// </summary>
|
||||
[Flags]
|
||||
public enum ErrorState
|
||||
{
|
||||
/// <summary>
|
||||
/// everything is good
|
||||
/// </summary>
|
||||
None = 0x0000,
|
||||
|
||||
/// <summary>
|
||||
/// problems on initialization
|
||||
/// </summary>
|
||||
InitFailed = 0x0001,
|
||||
|
||||
/// <summary>
|
||||
/// problems on Measurement
|
||||
/// </summary>
|
||||
MeasurementFailed = 0x0002,
|
||||
|
||||
/// <summary>
|
||||
/// Problem on communication with meter
|
||||
/// </summary>
|
||||
ComErrorRequestPort = 0x0004,
|
||||
|
||||
/// <summary>
|
||||
/// Problem on optical output on meter
|
||||
/// </summary>
|
||||
ComErrorLed = 0x0008,
|
||||
|
||||
/// <summary>
|
||||
/// if pulse can not readout
|
||||
/// </summary>
|
||||
ComErrorPulse = 0x0010,
|
||||
|
||||
/// <summary>
|
||||
/// no (or no good) reference flow available
|
||||
/// </summary>
|
||||
ErrorQRef = 0x0020,
|
||||
|
||||
/// <summary>
|
||||
/// Calibration went wrong
|
||||
/// </summary>
|
||||
CalibrationFailed = 0x0040,
|
||||
|
||||
/// <summary>
|
||||
/// calibration is out of range. Check documentation from meter to find limitation
|
||||
/// </summary>
|
||||
CalibrationOutOfRange = 0x0080,
|
||||
|
||||
/// <summary>
|
||||
/// blue screen like error
|
||||
/// </summary>
|
||||
FatalError = 0x0100
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user