FB_BA_Facade_ThermoAutomatic

FB_BA_Facade_ThermoAutomatic 1:

Sub-template facade-wide thermal automatic.

A facade-wide thermal automatic needs the temperature of a reference room as well as its heating and cooling setpoint. This data is specified via the input variables fRefRmT, fRefRmTCol and fRefRmTHtg.

Four conditions must be met for the facade thermal automatic to become active:

If these conditions are met, the blind moves alternately to cooling position (objects FcdThAutoColPos and FcdThAutoColAngl) if the reference temperature exceeds the cooling value or to position 0 if the heating value is fallen below.

The thermal automatic can be selected and deselected via the FcdThAutoEn object.

FB_BA_Facade_ThermoAutomatic 2:

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

Block diagram

FB_BA_Facade_ThermoAutomatic 3:

Syntax

FUNCTION_BLOCK FB_BA_Facade_ThermoAutomatic EXTENDS FB_BA_View
VAR_INPUT
  bFcdInSun              : BOOL;
  fRefRmT                : REAL;
  fRefRmTCol             : REAL;
  ReffRmTHtg             : REAL;
END_VAR
VAR_OUTPUT
  stSunBld               : ST_BA_SunBld;
  bThAutoEvent           : BOOL;
END_VAR
VAR_INPUT CONSTANT
  FcdThAutoEn            : FB_BA_BV_Op;
  FcdThAutoColPos        : FB_BA_AV_Op;
  FcdThAutoColAngl       : FB_BA_AV_Op;
  FcdThAutoEvent         : FB_BA_SunBldEvt :=(ePrio:=E_BA_SunBldPrio.eFacadeThermoAutomatic);
END_VAR
VAR
  FcdThAutoHtgCol        : FB_BA_Swi2P;
  bFcdThAuto_Enable      : BOOL;
  fFcdThAuto_Position    : REAL;
  fFcdThAuto_Angle       : REAL;
END_VAR

FB_BA_Facade_ThermoAutomatic 4: Inputs

Name

Type

Description

bFcdInSun

BOOL

The facade is located in the sun area in relation to the current sun elevation and sun direction. This criterion is generated in the higher-level FB_BA_Facade.

fRefRmT

REAL

Room temperature of the reference room for the facade-wide thermal automatic.

fRefRmTCol

REAL

Room temperature setpoint cooling of the reference room for the facade-wide thermal automatic.

RefRmTHtg

REAL

Room temperature setpoint heating of the reference room for the facade-wide thermal automatic.

FB_BA_Facade_ThermoAutomatic 5: Outputs

Name

Type

Description

stSunBld

ST_BA_SunBld

Thermal automatic telegram.

bThAutoEvent

BOOL

Control output "facade-wide thermal automatic active".

FB_BA_Facade_ThermoAutomatic 6: Inputs CONSTANT

Name

Type

Description

FcdThAutoEn

FB_BA_BV_Op

Facade thermal automatic enable.

FcdThAutoColPos

FB_BA_AV_Op

Facade thermal automatic cooling position Position [%].

FcdThAutoColAngl

FB_BA_AV_Op

Facade thermal automatic cooling position Angle [°].

FcdThAutoEvent

FB_BA_SunBldEvt

Telegram block for facade thermal automatic.

Variables

Name

Type

Description

FcdThAutoHtgCol

FB_BA_Swi2P

Hysteresis block for heating/cooling changeover for facade thermal automatic.

bFcdThAuto_Enable

BOOL

Enable thermal automatic.

fFcdThAuto_Position

REAL

Thermal automatic Position [%].

fFcdThAuto_Angle

REAL

Thermal automatic Angle [°].

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.56

TF8040 | TwinCAT Building Automation from V5.8.0.0