FB_BA_AC_OpMod1St

FB_BA_AC_OpMod1St 1:

The template represents the operation mode of an air conditioning system.

The priority switch PrioSwiOpMod prioritizes various events or commands such as fire alarms, requests from the time schedule or requests from the plant selector switch and writes a resulting operation mode or system status to the variable eOpMode.

FB_BA_AC_OpMod1St 2:

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

Block diagram

FB_BA_AC_OpMod1St 3:

Principle diagram

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

FB_BA_AC_OpMod1St 4:

Syntax

FUNCTION_BLOCK FB_BA_AC_OpMod1St EXTENDS FB_BA_View
VAR_INPUT
  bSmExtt                   : BOOL;
  bFireDetc                 : BOOL;
  bForcVent                 : BOOL;
  bEmgOff                   : BOOL;
  bFrst                     : BOOL;
  bCentSwiOff               : BOOL;
  bAlmShutOff               : BOOL;
  bNgtCol                   : BOOL;
  bColDwnPrtc               : BOOL;
  bOvrHtgPrtc               : BOOL;
END_VAR
VAR_OUTPUT
  eOpMode                   : E_BA_AC_OpMod01;
END_VAR
VAR_INPUT CONSTANT
  OpModMan                  : FB_BA_MV_Op;
  Sched                     : FB_BA_SchedM;
  OpModPr                   : FB_BA_MV_Op;
END_VAR
VAR
  PrioSwiOpMod              : FB_BA_PrioSwi_UDI24;
END_VAR

FB_BA_AC_OpMod1St 5: Inputs

Name

Type

Description

bSmExtt

BOOL

Smoke extraction of the plant requested

bFireDetc

BOOL

Fire alarm message from fire alarm center

bForceVent

BOOL

Forced ventilation request

bEmgOff

BOOL

Emergency stop

bFrst

BOOL

Frost protection program active

bCentSwiOff

BOOL

Central switch-off

bAlmShutOff

BOOL

Collective error message - shut down plant

bNgtCol

BOOL

Request from the summer night cooling program (see FB_BA_AC_SumNgtCol)

bColDwnPrtc

BOOL

Request program cooling protection

bOvrHtgPrtc

BOOL

Request program overheating protection

FB_BA_AC_OpMod1St 6: Outputs

Name

Type

Description

eOpMode

E_BA_AC_OpMod01

Output of the current operation mode eOpMode

FB_BA_AC_OpMod1St 7: Inputs CONSTANT

Name

Type

Description

OpModMan

FB_BA_MV_Op

The Multistate-Value object represents an operating modes switch with the operating modes Auto, Manual-Off and Manual-On.

Sched

FB_BA_SchedM

Schedule object (automatic) for the "BuildingEnergyLevel".

OpModPr

FB_BA_MV_Op

The Multistate-Value object indicates the state of the currently valid plant operation mode.

Variables

Name

Type

Description

PrioSwiOpMod

FB_BA_PrioSwi_UDI24

The priority switch determines the current operation mode eOpMode from the pending events or commands of the plant.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0