FB_BA_Facade

FB_BA_Facade 1:

This template compiles the sun protection telegrams that are valid for an entire facade.

The telegrams are largely formed in sub-templates in the main part, then passed to a telegram selector FB_BA_SunBldTgmSel8 and supplemented by the resulting alarm telegram from the building data (fire, burglary or icing).

The passed telegram from the selector is placed on the output structure stFacade together with the enables from the thermal and twilight automatic and the current sun protection data - the priority of the telegram is displayed in the sub-template FacadeInformation.

Telegrams

The following telegrams are available at the telegram selector SunBldTgmResult, sorted by input:

Sun protection calculation

Sun protection is calculated separately for each facade. This is done in the sub-template SunProtection. The calculated values are placed on the output structure stFacade together with the enables from the thermal and twilight automatic.

FB_BA_Facade 2:

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

Syntax

FUNCTION_BLOCK FB_BA_Facade EXTENDS FB_BA_View
VAR_INPUT
  fRefRmT                  : REAL;
  fRefRmTCol               : REAL;
  fRefRmTHtg               : REAL;
END_VAR
VAR_OUTPUT
  stFacade                 : ST_BA_Facade;
END_VAR
VAR_INPUT CONSTANT PERSISTENT
  fFcdOrtn                 : REAL;
  fFcdAngl                 : REAL;
  fLamWdth                 : REAL;
  fLamDstc                 : REAL;
  fAzmSttRng               : REAL;
  fAzmEndRng               : REAL;
  fElvLoLmt                : REAL;
  fElvHiLmt                : REAL;
END_VAR
VAR_INPUT CONSTANT
  CommError                : FB_BA_SunBldEvt :=(ePrio:=E_BA_SunBldPrio.eCommError);
  WindProtection           : FB_BA_Facade_WindProtection;
  Maintenance              : FB_BA_Facade_Maintenance;
  ThermoAutomatic          : FB_BA_Facade_ThermoAutomatic;
  TwilightAutomatic        : FB_BA_Facade_TwilightAutomatic;
  ParkPosition             : FB_BA_Facade_ParkPosition;
 SunProtection             : FB_BA_Facade_SunProtection;
 FacadeInformation         : FB_BA_Facade_Information;
END_VAR
VAR
  InRngAzm                 : FB_BA_InRngAzm;
  InRngElv                 : FB_BA_InRngElv;
  bFcdInSun                : BOOL;
  SunBldTgmResult          : FB_BA_SunBldTgmSel8;
END_VAR

FB_BA_Facade 3: Inputs

Name

Type

Description

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.

fRefRmTHtg

REAL

Room temperature setpoint heating of the reference room for the facade-wide thermal automatic.

FB_BA_Facade 4: Outputs

Name

Type

Description

stFacade

ST_BA_Facade

Output structure of the collected facade data.

FB_BA_Facade 5: Inputs CONSTANT PERSISTENT

Name

Type

Description

fFcdOrtn

REAL

Facade orientation northern hemisphere: north=0°, east=90°, south=180°, west=270°, in the southern hemisphere applies: south=0°, east=90°, north=180°, west=270°.

fFcdAngl

REAL

Inclination of the facade [°]. Inclined downwards, the angle is smaller, upwards it is greater than zero.

fLamWdth

REAL

Lamella width [mm].

fLamDstc

REAL

Lamella spacing [mm].

fAzmSttRng / fAzmEndRng

REAL

The facade is considered to be illuminated by the sun when the position of the sun is +/-90° of the facade orientation. With fAzmSttRng / fAzmEndRng the range can be restricted.

fElvLoLmt / fElvHiLmt

REAL

The facade is considered to be illuminated by the sun when the sun elevation is between 0 and 90°. With fElvLoLmt / fElvHiLmt the range can be restricted.

FB_BA_Facade 6: Inputs CONSTANT

Name

Type

Description

CommError

FB_BA_SunBldEvt

Telegram block for the communication error

WindProtection

FB_BA_Facade_WindProtection

Sub-template storm protection

Maintenance

FB_BA_Facade_Maintenance

Sub-template maintenance

ThermoAutomatic

FB_BA_Facade_ThermoAutomatic

Sub-template thermal automatic

TwilightAutomatic

FB_BA_Facade_TwilightAutomatic

Sub-template twilight automatic

ParkPosition

FB_BA_Facade_ParkPosition

Sub-template park position

SunProtection

FB_BA_Facade_SunProtection

Sub-template sun protection

FacadeInformation

FB_BA_Facade_Information

Sub-template facade information

Variables

Name

Type

Description

InRngAzm

FB_BA_InRngAzm

Sun direction within the defined limits

InRngElv

FB_BA_InRngElv

Sun elevation within the defined limits

bFcdInSun

BOOL

Facade in the position of the sun

SunBldTgmResult

FB_BA_SunBldTgmSel8

Telegram selection block for the resulting blind telegram of the facade

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0