BAC_HW_LglPrev_01

Application

The template provides a protective function for preventing the formation of legionella in the hot water.
The protective function is enabled for a specific timeframe through the switching schedule Sched. In the template the minimum tank temperature rTMin is compared with the set value SpLglPrev, and a charging command bLglPrev and set value rSpLglPrev are issued.
The aim is for the tank temperature to be maintained for a certain time TiLglPrev within the timeframe Sched. If this condition was not met, an alarm is generated AlmLglPrev.

Interface

BAC_HW_LglPrev_01 1:

System diagram

BAC_HW_LglPrev_01 2:

Block diagram

BAC_HW_LglPrev_01 3:

VAR_INPUT

rTMin    : REAL;

rTMin: Input minimum tank temperature

VAR_OUTPUT

bLglPrev     : BOOL;
rSpLglPrev   : REAL;  

bLglPrev: Output request legionella protection

rSpLglPrev: Output set value legionella protection

VAR CONSTANT

PLT_NUM    : BYTE := 1;

PLT_NUM: all alarms and events of all plant components within a controller are included in a global alarm and event list. The assignment of events and alarms to a plant is defined by the assignment of a PLT_NUM plant number.
The recording and processing of an alarm from an aggregate or a device takes place within the templates by means of the alarm function block FB_BA_Alarm.
The evaluation of the alarms of a plant, e.g. for the generation of a collective message or for plant shutdown in case of relevant faults, takes place within the template BAC_PltAlm_01 by means of the function block FB_BA_AlarmPlt.
The evaluation of different plant events within the templates of a plant, takes place within the template BAC_PltComnMsg_01 by means of the function block FB_BA_ComnMsg.

Important! The assignment and evaluation of the alarms and events of a plant can only be done correctly if all templates of a plant have the same plant number!

The plant number can be assigned in the Project Builder in the parameter menu for the templates or via a column in the Excel import.

Program description

Instance

Type

Task

Sched

FB_BACnetSchedB1201

Input switching schedule enable legionella prevention

TMin

FB_BACnetAVDisplay

Display of minimum temperature rTMin of hot water tank.

SpLglPrev

FB_BACnetAVSetpoint

AV object for entering the setpoint for legionella prevention.

HysOn

FB_BA_Swi2P

The two-point switch indicates that legionella prevention is active, depending on the minimum hot water tank temperature rTMin and the setpoint for legionella prevention SpLglPrev.

TiLglPrev

FB_BACnetAVSetpoint
MUL

AV object for entering the duration of legionella prevention.
Multiplication of the input duration of legionella prevention in minutes

DlyOn

TON

Timer delay legionella prevention successful.

RS_Active

RS

Signal latch legionella prevention active

RS_Done

RS

Signal latch timeframe legionella prevention completed.

Alm

FB_BA_Alarm

Logging and further processing of the legionella setpoint alarm not reached

AlmLglPrev

FB_BACnetBV1204

Reports legionella setpoint alarm not reached to MCL.

OpModPrio

FB_BA_PrioSwi_UDI04

The priority switch prioritizes the legionella prevention operating modes.

OpModInd

FB_BACnetMVDisplay

The BACnet MV object indicates the currently valid operation mode of the legionella protection function.
LGLPREV_NORMAL Legionella prevention normal, alarm was reset
LGLPREV_ACTIVE Legionella prevention active
LGLPREV_DONE Legionella prevention done
LGLPREV_ALARM Legionella prevention alarm

Version history

Version number

Comments

1.0.0.1

First release