[MIN_PRD] Minimum of a period
Function block MIN_PRD determines the minimum for an analog value within a specific time period.
MIN_PRD determines the minimum for an analog value within a specific time period.
Enable and disable the function
The minimum value of the analog input signal [In] is determined within a time period if the function is enabled (EnFnct and EnEvl = 1) and the analog input signal is reliable (Vldty = 1).
Calculation
The minimum value for the present time period is displayed on [PrVal]. After the time period has expired, the minimum value is saved as the minimum value of the recent time period via a pulse at [RctVal]. The pending input value is set as new minimum value.
The time period, generated outside of MIN_PRD, is determined via a rising slope on the input [Imp]. If the input signal is invalid (Vldty = 0), the calculation stops. The last valid values from the outputs are frozen until the signal is valid again.
Subperiods within time periods
Input [EnEvl] can be used to evaluate subperiods within the entire time period.
When EnEvl = 0, the evaluation is disabled and the last valid values are displayed at the outputs.
At a pulse, the present minimum value is saved as a minimum value from the last time period.
Reset
Via a rising slope at input [Reset] and a valid input signal (Vldty = 1), the present value [PrVal] takes the valid input value and the recent minimum value [RctVal] is set to zero.
With a [Reset] and an invalid input signal (Vldty = 0) and/or EnEvl = 0, the [PrVal] is set to + infinity and [RctVal] to zero.
Input | Description | Data type | Default value |
|---|---|---|---|
EnFnct | Enable function Enables the function. | Boolean | 1 |
0 - The function is disabled. | |||
EnEvl | Enable evaluation | Boolean | 1 |
0 - Evaluation is disabled and the valid values at the outputs are frozen. | |||
In | Input Input signal | Real | 0.0 |
Imp | Impulse Pulse input for which the evaluation time period is determined. The rising edge indicates start of new period. | Boolean | 0 |
0 - No | |||
Vldty | Validity The present minimum value and minimum value from recent time periods can only be calculated with a valid input signal. | Boolean | 1 |
0 - Input signal is not valid. | |||
Reset | Reset | Boolean | 0 |
0 - No | |||
Pers | Persistent | Boolean | 0 |
0 - No | |||
|
BaObjRef | BA-Object reference | Structure | --- |
BaObjRef | Device identifier | Double Word | 16#3FFFFF |
BaObjRef | Object identifier | Double Word | 16#3FFFFF |
BaObjRef | Item identifier | Integer | -1 |
Output | Description | Data type | Default value |
|---|---|---|---|
PrVal | Present value | Real | 0.0 |
RctVal | Recent value | Real | 0.0 |
Dstb | Disturbed [Dstb] indicates whether the referenced BACnet object was accessed. | Boolean | 0 |
ErrCode | Error code indication | Integer | 0: No error |
= 0 - No error | |||
MIN_PRD is used to calculate the minimum value for a time period. By displaying present and recent minimum values from a particular time period, errors, such as wrong control parameters, setpoint violations, or manual intervention can be identified earlier and faster.
The following example is based on an evaluation period = 1 day:
