FB_BA_Facade_TwilightAutomatic

FB_BA_Facade_TwilightAutomatic 1:

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:

If it is enabled and selected via the FcdTwiLgtAutoEn object, the blinds will be lowered completely in the event of twilight.

FB_BA_Facade_TwilightAutomatic 2:

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

Block diagram

FB_BA_Facade_TwilightAutomatic 3:

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

FB_BA_Facade_TwilightAutomatic 4: Outputs

Name

Type

Description

stSunBld

ST_BA_SunBld

Twilight automatic telegram.

bTwiLgtAutoEvent

BOOL

Control output "facade-wide twilight automatic active".

FB_BA_Facade_TwilightAutomatic 5: Inputs CONSTANT

Name

Type

Description

FcdTwiLgtAutoEn

FB_BA_BV_Op

Function block for activating the twilight automatic telegram.

FcdTwiLgtAutoEvent

FB_BA_SunBldEvt

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