FB_BA_IceProtection

Sub-template ice protection.
The function block FB_BA_IceProtection implements the icing protection. If the temperature falls below the freezing point entered on the SPIce object and the weather station transmits precipitation via the variable list Site (Site.stWeatherStation.bRain), the icing condition is given and the blinds are raised completely.
The alarm is only canceled when the outside temperature exceeds the icing temperature again for a deicing time (in seconds) set on the DeiceTi object.
The telegram is then no longer active.
To ensure that current temperature values are available at the start of the program, the activation of the icing alarm function block is initially delayed by 10 s.
![]() | The initialization of the template takes place within the method FB_Init. |
Block diagram

Syntax
FUNCTION_BLOCK FB_BA_IceProtection EXTENDS FB_BA_View
VAR_OUTPUT
stSunBld : ST_BA_SunBld;
bIcePrtcActv : BOOL;
END_VAR
VAR_INPUT CONSTANT
SpIce : FB_BA_AV_Op;
DeiceTi : FB_BA_AV_Op;
IceAlert : FB_BA_BV;
SunBldIcePrtc : FB_BA_SunBldIcePrtc;
END_VAR
VAR
tonInitialWait : TON;
END_VAR
Outputs
Name | Type | Description |
---|---|---|
stSunBld | Ice protection telegram. | |
bIcePrtcActv | BOOL | Control output "Ice protection active". |
Inputs CONSTANT
Name | Type | Description |
---|---|---|
SpIce | Input limit value for icing [°C]. | |
DeiceTi | Enter de-icing time [s]. | |
IceAlert | Display object Status ice protection. | |
SunBldIcePrtc | Ice protection for the lamellas. |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.35 | TF8040 | TwinCAT Building Automation from V5.0.0.0 |