FB_BA_FrstPrtc
The function block FB_BA_FrstPrtc is used for frost monitoring of a heating coil in an air conditioning system.
A frost risk is present, if the input bFrst is TRUE. The frost alarm must be linked in the plant program such that the plant is switched off immediately, the heater valve opens, and the heater pump is switched on.
If there is risk of frost, the output bOn is set, and nT1 (seconds) is started. If the frost risk remains (bFrst = TRUE) after nT1 has elapsed, bOn remains set. It can only be reset at input bRst.
If the frost alarm ceases due to activation of the heating coil within the time nT1 (bFrst = FALSE), the plant automatically restarts. For the plant restart bOn becomes FALSE, and at output bHWRst a pulse for acknowledgement of a latching circuit in the control cabinet is issued. With the restart a second monitoring period nT2 (seconds) is initiated. If another frost alarm occurs within this period, the plant is permanently locked. bOn remains set until the frost alarm has been eliminated and bRst has been acknowledged.
In a scenario where frost alarms recur with time offsets that are greater than nT2, theoretically the plant would keep restarting automatically. In order to avoid this, the restarts within the function block are counted. The parameter nAlmCnt can be used to set the number of possible automatic restart between 0 and 4.
An acknowledgement at input bRst resets the alarm memory within the function block to zero.
Example:
t0 = frost alarm at input bFrst, alarm message at output bOn, start of timer T1 (nT1 [s])
t1 = frost alarm off, resetting of bOn, output of hardware pulse, start of timer T2 (nT2 [s]), plant restart
t2 = further frost alarm within T2, alarm message at bOn, start of timer T1, locking of the frost alarm
t3 = frost alarm off.
t4 = acknowledgement of the alarm at bRst, resetting of bOn.
Inputs
VAR_INPUT
bFrst : BOOL;
nT1 : UDINT;
nT2 : UDINT;
nAlmCnt : UDINT;
bRst : BOOL;
END_VAR
Name | Type | Description |
---|---|---|
bFrst | BOOL | Connection for frost events on the air and water side. |
nT1 | UDINT | Timer for restart delays [s]. Internally limited to a minimum value of 0. |
nT2 | UDINT | Timer monitoring time [s]. Internally limited to a minimum value of 0. |
nAlmCnt | UDINT | Maximum number of automatic plant restarts without reset. Internally limited to values between 0 and 4. |
bRst | BOOL | Resetting and acknowledgement of the frost alarm. |
Outputs
VAR_OUTPUT
bOn : BOOL;
bHWRst : BOOL;
nRemTi1 : UDINT;
nRemTi2 : UDINT;
bAlmLck : BOOL;
nStaCnt : UDINT;
END_VAR
Name | Type | Description |
---|---|---|
bOn | BOOL | Frost alarm active |
bHWRst | BOOL | Output of a pulse for acknowledgement of the frost protection hardware |
nRemTi1 | UDINT | Time remaining to plant restart after frost alarm. |
nRemTi2 | UDINT | Remaining monitoring time. |
bAlmLck | BOOL | Alarm lock - stored alarm. |
nStaCnt | UDINT | Status counter – current number of unacknowledged false starts. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.22 | Tc3_BA2 from v5.2.5.0 |