FB_BA_AC_EnPrio

FB_BA_AC_EnPrio 1:

The template represents the system enable and the enable of the priorities Safty, Critcial and Program of an air conditioning system.

The multiplexers PrioSwiPlt, PrioSwiSfty, PrioSwiCrit and PrioSwiPgm use the plant operation mode eOpMode to define the system enable for activating the step sequence control of a system and enabling the priorities "Safety", "Critcial" and "Program", see command structure stPriorityEn.

eOpmode

Value

Operation mode

System status

stPriorityEn.bpLT

stPriorityEn.bEnSfty

stPriorityEn.bEnCrit

stPriorityEn.bPgm

E_BA_AC_OpMod01.eOff

1

Off

Plant shutdown

FALSE

FALSE

FALSE

TRUE

E_BA_AC_OpMod01.eOn

2

On

Plant startup

TRUE

FALSE

FALSE

TRUE

E_BA_AC_OpMod01.eEmergency

3

Emergency

Plant shutdown

FALSE

FALSE

TRUE

FALSE

E_BA_AC_OpMod01.eFrost

4

Frost

Plant shutdown

FALSE

FALSE

TRUE

FALSE

E_BA_AC_OpMod01.eSmokeExtractionProgram

5

Smoke extraction program

Plant startup

TRUE

TRUE

FALSE

FALSE

E_BA_AC_OpMod01.eSmokeExtractionSupplyAir

6

Smoke extraction supply air

Plant startup

TRUE

TRUE

FALSE

FALSE

E_BA_AC_OpMod01.eSmokeExtractionExhaustAir

7

Smoke extraction exhaust air

Plant startup

TRUE

TRUE

FALSE

FALSE

E_BA_AC_OpMod01.eFire

8

Fire

Plant shutdown

FALSE

TRUE

FALSE

FALSE

E_BA_AC_OpMod01.eNightCooling

9

Night cooling

Plant startup

TRUE

FALSE

FALSE

TRUE

E_BA_AC_OpMod01.eCoolDownProtection

10

Support operation, cooling protection

Plant startup

TRUE

FALSE

FALSE

TRUE

E_BA_AC_OpMod01.eOverHeatingProtection

11

Overheating protection

Plant startup

TRUE

FALSE

FALSE

TRUE

E_BA_AC_OpMod01.eAlarm

12

Fault

Plant shutdown

FALSE

FALSE

TRUE

FALSE

E_BA_AC_OpMod01.eForcedVentilation

13

Forced ventilation

Plant startup

TRUE

FALSE

TRUE

FALSE

E_BA_AC_OpMod01.eCentralSwitchOff

14

Central shutdown

Plant shutdown

FALSE

FALSE

TRUE

FALSE

FB_BA_AC_EnPrio 2:

The initialization of the template takes place within the method FB_Init.

Block diagram

FB_BA_AC_EnPrio 3:

Principle diagram

The diagram shows the integration of the template within a plant.

FB_BA_AC_EnPrio 4:

Syntax

FUNCTION_BLOCK FB_BA_AC_EnPrio
VAR_INPUT
  eOpMode          : E_BA_AC_OpMod01;
END_VAR
VAR_OUTPUT
  stPriorityEn     : ST_BA_PriorityEn;
END_VAR
VAR
  PrioSwiPlt       : FB_BA_MMUX_B24;
  PrioSwiSfty      : FB_BA_MMUX_B08;
  PrioSwiCrit      : FB_BA_MMUX_B08;
  PrioSwiPgm       : FB_BA_MMUX_B08;
END_VAR

FB_BA_AC_EnPrio 5: Inputs

Name

Type

Description

eOpMode

E_BA_AC_OpMod01

Input of the current operation mode eOpMode.

FB_BA_AC_EnPrio 6: Outputs

Name

Type

Description

stPriorityEn

ST_BA_PriorityEn

Output of the current command structure stPriorityEn. This includes the system enable for the step sequence control of an air conditioning system and the associated enables for the priorities "Safety", "Critical" and "Program".

Variables

Name

Type

Description

PrioSwiPlt

FB_BA_MMUX_B24

The multiplexer uses the plant operation mode eOpMode to define the system enable for controlling the aggregates of a plant.

PrioSwiSfty

FB_BA_MMUX_B08

The multiplexer uses the plant operation mode eOpMode to define the enable of the priority "Safety" for controlling the aggregates of a plant.

PrioSwiCrit

FB_BA_MMUX_B08

The multiplexer uses the plant operation mode eOpMode to define the enable of the priority "Critical" for controlling the aggregates of a plant.

PrioSwiPgm

FB_BA_MMUX_B08

The multiplexer uses the plant operation mode eOpMode to define the enable of the priority "Program" for controlling the aggregates of a plant.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0