FB_BA_Facade_ThermoAutomatic

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:
- the building must be unoccupied, this is determined on the basis of the currently valid energy level.
- the global radiation-dependent release from the template FB_BA_BuildingSunprotection must be given. This criterion is routed to the local variable list Site and is read from there (Site.stBuildingSunBlind.bGlobalThAuto_Release).
- the facade must be exposed to the sun (bFcdInSun).
- the facade-wide thermal automatic is selected via the FcdThAutoEn object.
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.
![]() | The initialization of the template takes place within the method FB_Init. |
Block diagram

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
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. |
Outputs
Name | Type | Description |
---|---|---|
stSunBld | Thermal automatic telegram. | |
bThAutoEvent | BOOL | Control output "facade-wide thermal automatic active". |
Inputs CONSTANT
Name | Type | Description |
---|---|---|
FcdThAutoEn | Facade thermal automatic enable. | |
FcdThAutoColPos | Facade thermal automatic cooling position Position [%]. | |
FcdThAutoColAngl | Facade thermal automatic cooling position Angle [°]. | |
FcdThAutoEvent | 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 |