FB_BA_SunblindZone

FB_BA_SunblindZone 1:

In a blind zone, one or more blinds are combined for simultaneous control. The template FB_BA_SunblindZone bundles the predefined data of the facades and decides on the basis of a zone presence detection and local selection and deselection which functionality is active.

Together with the resulting telegram of high-priority functions from the facade, these functionalities are placed on a telegram selector at the end of the template. This then uses the priority to decide which telegram in the higher-level room template is passed on to the blinds.

Functions

Input stReferenceFeedback

Information about the controlled blind actuator or the reference actuator of a group is fed back into the blind control function via this input.

These are the position details and status of the reference actuator.

Data exchange HMI

The data exchange with the HMI is realized here in the base class FB_BA_Ext_SunblindAngle (internal function block). The use of the following variables is visible in this template:

FB_BA_SunblindZone 2:

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

Block diagram

FB_BA_SunblindZone 3:

Syntax

FUNCTION_BLOCK FB_BA_SunblindZone EXTENDS FB_BA_Ext_SunblindAngle
VAR_INPUT
  fRoomTempSen           : REAL;
  bPrcDetc               : BOOL;
  bSwiUp                 : BOOL;
  bSwiDwn                : BOOL;
  bRstManFnct            : BOOL;
  stBuildingSpRmT        : ST_BA_SpRmT;
  stFacade               : ST_BA_Facade;
  stScene                : ST_BA_Sunbld;
  stReferenceFeedback    : ST_BA_SunblindActuatorFeedback;
END_VAR
VAR_OUTPUT
  stSunBldOut         : ST_BA_SunBld;
END_VAR
VAR_INPUT CONSTANT PERSISTENT
  bThAutoSlcn         : BOOL;
  fThAutoColPos       : REAL;
  fThAutoColAngl      : REAL;
  bSunPrtcSlcn        : BOOL;
  bTwiLgtAutoSlcn     : BOOL;
  fTwiLgtAutoPos      : REAL;
  fTwiLgtAutoAngl     : REAL;
  nSwiOverTi          : UDINT;
END_VAR
VAR_INPUT CONSTANT
  ManSwi              : FB_BA_SunBldSwi := (ePrio:= E_BA_SunBldPrio.eManualGroup);
  ThAuto              : FB_BA_SunBldEvt := (ePrio:= E_BA_SunBldPrio.eGroupThermoAuto);
  SunPrtc             : FB_BA_SunBldEvt := (ePrio:= E_BA_SunBldPrio.eSunProtection);
  TwiLgtAuto          : FB_BA_SunBldEvt := (ePrio:= E_BA_SunBldPrio.eGroupTwiLightAuto);

END_VAR
VAR
  ThAutoSwi           : FB_BA_Swi2P;
  PrioSwi             : FB_BA_SunBldTgmSel8;
  EnSunBldSwi         : SR;
END_VAR

FB_BA_SunblindZone 4: Inputs

Name

Type

Description

fRoomtempSen

REAL

Room temperature sensor [°C].

bPrcDetc

BOOL

Presence detection.

bSwiUp

BOOL

Local push button "up".

bSwiDwn

BOOL

Local push button "down".

bRstManFnct

BOOL

Input for resetting all internal manual functions, both those via the inputs bSwiUp/bSwiDwn, and external control (e.g. HMI).

stBuildingSpRmT

ST_BA_SpRmT

Structure of room setpoints (Protection Cooling..Comfort Cooling and Protection Heating ... Comfort Heating).

stFacade

ST_BA_Facade

Facade-specific blind data and telegrams.

stScene

ST_BA_Sunbld

Reserved telegram input for scene control.

stReferenceFeedback

ST_BA_SunblindActuatorFeedback

Feedback input of the controlled blind actuator or the reference actuator of the controlled group.

FB_BA_SunblindZone 5: Outputs

Name

Type

Description

stSunBldOut

ST_BA_SunBld

resulting zone telegram.

FB_BA_SunblindZone 6: Inputs CONSTANT PERSISTENT

Name

Type

Description

bThAutoSlcn

BOOL

Thermal automatic enable.

fThAutoColPos

REAL

Thermal automatic cooling position [%].

fThAutoColAngl

REAL

Thermal automatic cooling angle [°].

bSunPrtcSlcn

BOOL

Shading automatic enable.

bTwiLgtAutoSlcn

BOOL

Twilight automatic enable.

fTwiLgtAutoPos

REAL

Twilight automatic position [%].

fTwiLgtAutoAngl

REAL

Twilight automatic position [°].

nSwiOverTi

UDINT

Changeover time [ms] of the manual switch SunBldSwi for latching.

FB_BA_SunblindZone 7: Inputs CONSTANT

Name

Type

Description

ManSwi

FB_BA_SunBldSwi

Group (zone) push button block.

ThAuto

FB_BA_SunBldEvt

Telegram block for group (zone) thermal automatic.

SunPrtc

FB_BA_SunBldEvt

Telegram block for group (zone) shading automatic.

TwiLgtAuto

FB_BA_SunBldEvt

Telegram block for group (zone) twilight automatic.

VAR

Name

Type

Description

ThAutoSwi

FB_BA_Swi2P

Hysteresis block for heating/cooling changeover for group (zone) thermal automatic.

PrioSwi

FB_BA_SunBldTgmSel8

Selection of the resulting telegram.

EnSunBldSwi

SR

Activation memory of the above mentioned function block.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0