BAC_AC_OpMod_01

Functional description

The template BAC_AC_OpMod_01 prioritizes different events or commands of an air-conditioning plant, such as fire alarm, request of central switching or schedule and writes a resulting operation mode or resulting system status to the variable udiOpMod.
The devices and aggregates respond individually, depending on udiOpMod, so that the whole plant adjusts itself according to the current operation mode.

Sample: 1
The mixed-air system BAC_AC_MixAT_01 switches to a fresh air rate of 100%, if udiOpMod is in summer night cooling mode (udiOpMod = 11).

Sample: 2
The supply air and extract air fan switches on if forced ventilation is enabled. Controlled fans crank up to a speed of 100%.

Interface

BAC_AC_OpMod_01 1:

System diagram

BAC_AC_OpMod_01 2:

Block diagram

BAC_AC_OpMod_01 3:

The following system states or operation modes are described via the variable : udiOpMod

udiOpMod

OPMOD_AC_OFF

1

Off

Plant shutdown

OPMOD_AC_ON

2

On

Plant startup

OPMOD_AC_EMERG

3

Emergency

Plant shutdown

OPMOD_AC_MANOFF

4

Manual off

Plant shutdown

OPMOD_AC_MANON

5

Manual on

Plant startup

OPMOD_AC_FRST

6

Frost

Plant shutdown

OPMOD_AC_SMEXTTPRG

7

Smoke extraction program

Plant startup

OPMOD_AC_SMEXTTSUA

8

Smoke extraction supply

Plant supply air on

OPMOD_AC_SMEXTTEXHA

9

Smoke extraction exhaust

Plant extract air on

OPMOD_AC_FIRE

10

Fire

Plant shutdown

OPMOD_AC_NGTCOL

11

Night cooling

Plant startup

OPMOD_AC_COLDWNPRTC

12

Cool down protection

Plant startup

OPMOD_AC_OVRHTGPRTC

13

Overheating protection

Plant startup

OPMOD_AC_ALM

14

Alarm

Plant shutdown

OPMOD_AC_FORCVENT

15

Forced ventilation

Plant startup

OPMOD_AC_CENTSWIOFF

16

Central switch-off

Plant shutdown

VAR_INPUT

bOn            : BOOL;
bFrst          : BOOL; 
bAlmShutOff    : BOOL; 
bNgtCol        : BOOL; 
bColDwnPrtc    : BOOL; 
bOvrHtgPrtc    : BOOL; 
bFireDetc      : BOOL;
bSmExttSuA     : BOOL;
bSmExttExuA    : BOOL;
bForcVent      : BOOL;
bEmgOff        : BOOL;
bCentSwiOff    : BOOL; 

bOn: Request from timer program

bFrst: Frost protection program active

bAlmShutOff: Collective fault message - shut down plant

bNgtCol: Request from summer night cooling program

bColDwnPrtc: Request from cooling protection program

bOvrHtgPrtc: Request from overheating protection program

bFireDetc: Fire alarm message from fire alarm center

bSmExttSuA: Additional flow requested by supply air section of the plant for smoke extraction.

bSmExttExhA: Smoke extraction with extract air section of the plant requested.

bForcVent: Forced ventilation request

bEmgOff: Emergency Stop

bCentSwiOff: Central shutdown

VAR_OUTPUT

udiOpMod      : UDINT;

udiOpMod: Output of the current plant operation mode.

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

OpMod

FB_BACnetMVSetpoint

The BACnet MV object serves as plant selector switch. The MV object can be used to switch the plant on or off, independent of the automatic programs.

OpModPrio

FB_BA_PrioSwi_UDI24

The function block logs all commands, prioritizes them and outputs the result at output udiVal.

OpModInd

FB_BACnetMVDisplay

The BACnet MV object indicates the current plant operation mode.

Version history

Version number

Comments

1.0.1

First release