FB_BA_BuildingSunprotection
This template collects cross-building criteria for the blind functions, which are then further used in the facade instances of the FB_BA_Facade. These are in detail:
- resulting telegram building alarms
- Protection telegram Fire
The template FB_BA_BuildingAlarms supplies the information "Fire alarm" via a globally declared structure variable stBuildingAlarms (see global variable list Site). If this alarm is active, the blinds are raised completely via a FB_BA_SunBldEvt. - Protection telegram Burglar
The template FB_BA_BuildingAlarms supplies the information "burglar alarm" via a globally declared structure variable stBuildingAlarms (see global variable list Site). If this alarm is active, the blinds are raised completely via a FB_BA_SunBldEvt. This makes the burglar less hidden from view from the outside. - Protection telegram icing
An imminent icing is detected by the fact that during a precipitation detection the measured outside temperature is below the frost limit value - this is specified here by the object SpIce and is pre-set to -2 °C. If the outside temperature exceeds the frost limit value for the time specified at the object DeiceTi, frost protection is canceled again. In the case of the icing alarm, a telegram is output at the function block FB_BA_SunBldIcePrtc, which causes the blinds to be raised completely. - Thermal automatic
As a rule, a weather station does not measure the global heat radiation depending on the direction. Therefore, it makes sense to define a switch-on and a switch-off threshold per building. The objects GlobalThAutoValOn and GlobalThAutoValOff define these threshold values in W/m² and form the building-wide release of the thermal automatic via a hysteresis switch (object GlobalThAutoRlse). - Twilight automatic
The twilight, which defines only a short period during the day, is also defined across buildings: the four direction-dependent brightness values of the weather station are averaged and assigned the threshold values GlobalTwiLgtAutoValOn and GlobalTwiLgtAutoValOff. - Sun protection
The interval for repositioning the lamellas in the sun protection functions is specified here for the entire building. - Reset of the manual functions
A building-wide criterion for the reset of the manual functions is defined here. It is based on the building schedule of energy levels, which give an inference of absence. Alternatively, a binary input object is available.
The above protection telegrams are combined on a priority switch FB_BA_SunBldTgmSel4 to a resulting telegram.
This is made available at the end of the template with the building-specific sun protection data in a globally declared variable structure stBuildingSunBlind (see global variable list Site).
The initialization of the template takes place within the method FB_Init. |
Syntax
FUNCTION_BLOCK FB_BA_BuildingSunprotection EXTENDS FB_BA_View
VAR_INPUT CONSTANT
FireAlert : FB_BA_SunBldEvt := (ePrio:=E_BA_SunBldPrio.eFire);
Burglary : FB_BA_SunBldEvt := (ePrio:=E_BA_SunBldPrio.eBurglary);
IceProtection : FB_BA_IceProtection;
GlobalThAutoRlse : FB_BA_Hys_03;
GlobalTwiLgtAutoRlse : FB_BA_Hys_03;
SunPrtcPosIntval : FB_BA_AV_Op_SP;
GlobalResetManMode : FB_BA_BV_Op_Val;
END_VAR
VAR
BuildingAlarms : FB_BA_SunBldTgmSel4;
GlobalTwiLgtAutoValOnOff : FB_BA_Swi2P;
rtManResetEnergLvl : R_TRIG;
END_VAR
Inputs CONSTANT
Name | Type | Description |
---|---|---|
FireAlert | Telegram block for the fire alarm: lets the blind raise completely. | |
Burglary | Telegram block for burglary: lets the blind raise completely. | |
IceProtection | FB_BA_IceProtection | Sub-template for presentation of the ice protection. |
GlobalThAutoRlse | FB_BA_Hys_03 | Hysteresis template for the presentation of the global automatic thermal release due to global radiation. Contains limit values, delays and a binary object for display. |
GlobalTwiLgtAutoRlse | FB_BA_Hys_03 | Hysteresis template for the presentation of the global automatic twilight release based on the average brightness. Contains limit values, delays and a binary object for display. |
SunPrtcPosIntval | FB_BA_AV_Op_SP | Analog input object: Readjustment interval of the lamella angle [min]. |
GlobalResetManMode | Binary input object: Operating option for resetting manual functions. |
Variables
Name | Type | Description |
---|---|---|
BuildingAlarms | Priority selection block. | |
GlobalTwiLgtAutoValOnOff | Hysteresis block for switching off the twilight automatic (global criterion). | |
rtManResetEnergLvl | R_TRIG | Trigger reset of the manual function for the criterion energy level (continuous signal). |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.35 | TF8040 | TwinCAT Building Automation from V5.0.0.0 |