AlarmLimits
public readonly record struct AlarmLimits : IEquatable<AlarmLimits>
The limits one alarm band is evaluated against.
In the unit of the quantity the rule's input carries. For a temperature input AlarmLimits.Low and AlarmLimits.High are temperatures in the SDK's temperature unit (Celsius unless Sdk.TemperatureUnit chose Fahrenheit), and AlarmLimits.Hysteresis, AlarmLimits.Delta and AlarmLimits.Epsilon are differences in degrees of that unit (kelvin-sized in Celsius, Fahrenheit-sized in Fahrenheit). For a rule with an AlarmRule.Reference the input is an offset, so all five are differences. A coverage, an area, a count or a process-interface voltage is not converted. The SDK keeps a limit in Celsius, so one set before a unit switch keeps its meaning and reads back in the new unit.
AlarmLimits: properties
public float Delta { get; init; }
For AlarmCompare.Changed: the smallest change that counts as one.
public float Epsilon { get; init; }
For AlarmCompare.Equal: the tolerance around AlarmLimits.High.
public float High { get; init; }
The upper limit, in the signal's own unit.
public float Hysteresis { get; init; }
The release deadband. The value has to come back this far past the limit before the band drops.
This is what stops an alarm chattering on a value sitting exactly on its threshold. A few tenths of a degree is usually enough; zero means the alarm follows every crossing. On a temperature, a difference in degrees of the SDK's temperature unit.
public float Low { get; init; }
The lower limit, in the signal's own unit.