FB_BA_IceProtection

FB_BA_IceProtection 1:

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.

FB_BA_IceProtection 2:

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

Block diagram

FB_BA_IceProtection 3:

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

FB_BA_IceProtection 4: Outputs

Name

Type

Description

stSunBld

ST_BA_SunBld

Ice protection telegram.

bIcePrtcActv

BOOL

Control output "Ice protection active".

FB_BA_IceProtection 5: Inputs CONSTANT

Name

Type

Description

SpIce

FB_BA_AV_Op

Input limit value for icing [°C].

DeiceTi

FB_BA_AV_Op

Enter de-icing time [s].

IceAlert

FB_BA_BV

Display object Status ice protection.

SunBldIcePrtc

FB_BA_SunBldIcePrtc

Ice protection for the lamellas.

Variables

Name

Type

Description

tonInitialWait

TON

Initial function block enable delay.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0