FB_BA_Facade_TwilightAutomatic

Sub-template facade-wide twilight automatic.
This function is designed to be active only when no one is present to prevent unnecessary light from escaping the building.
Three conditions must be met for the facade automatic to become active:
- the building must be unoccupied, this is determined on the basis of the currently valid energy level.
- the brightness-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.bGlobalTwiLgtAuto_Release).
- the facade-wide twilight automatic is selected via the FcdTwiLgtAutoEn object.
If it is enabled and selected via the FcdTwiLgtAutoEn object, the blinds will be lowered completely in the event of twilight.
![]() | The initialization of the template takes place within the method FB_Init. |
Block diagram

Syntax
FUNCTION_BLOCK FB_BA_Facade_TwilightAutomatic EXTENDS FB_BA_View
VAR_INPUT
END_VAR
VAR_OUTPUT
stSunBld : ST_BA_SunBld;
bTwiLgtAutoEvent : BOOL;
END_VAR
VAR_INPUT CONSTANT
FcdTwiLgtAutoEn : FB_BA_BV_Op;
FcdTwiLgtAutoEvent : FB_BA_SunBldEvt :=(ePrio:=E_BA_SunBldPrio.eFacadeTwilightAutomatic);
END_VAR
Outputs
Name | Type | Description |
---|---|---|
stSunBld | Twilight automatic telegram. | |
bTwiLgtAutoEvent | BOOL | Control output "facade-wide twilight automatic active". |
Inputs CONSTANT
Name | Type | Description |
---|---|---|
FcdTwiLgtAutoEn | Function block for activating the twilight automatic telegram. | |
FcdTwiLgtAutoEvent | Function block for telegram generation. |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.56 | TF8040 | TwinCAT Building Automation from V5.8.0.0 |