BACnet.Protocol.FaultAlgorithms.FaultStatusFlags (bacstack v0.0.1)
View SourceRepresents the BACnet fault algorithm FaultStatusFlags
.
The FAULT_STATUS_FLAGS fault algorithm detects whether the monitored status flags are indicating a fault condition.
For more specific information about the fault algorithm, consult ASHRAE 135 13.4.6.
Summary
Functions
Calculates the new state for the current state and parameters.
Prior to this function invocation, the state should have been
updated with update/2
, if any of the properties has changed.
Creates a new algorithm state.
Updates the state using the given parameters (monitored_value
, parameters
).
Types
Functions
@spec execute(t()) :: {:event, new_state :: t(), new_reliability :: BACnet.Protocol.Constants.reliability()} | {:no_event, new_state :: t()}
Calculates the new state for the current state and parameters.
Prior to this function invocation, the state should have been
updated with update/2
, if any of the properties has changed.
ASHRAE 135:
The conditions evaluated by this fault algorithm are:
(a) If pCurrentReliability is NO_FAULT_DETECTED, and the FAULT bit in pMonitoredValue is TRUE, then indicate a transition to the MEMBER_FAULT reliability.
(b) If pCurrentReliability is MEMBER_FAULT, and the FAULT bit in pMonitoredValue is FALSE, then indicate a transition to the NO_FAULT_DETECTED reliability.
@spec new( BACnet.Protocol.StatusFlags.t(), BACnet.Protocol.FaultParameters.FaultStatusFlags.t() ) :: t()
Creates a new algorithm state.
Updates the state using the given parameters (monitored_value
, parameters
).