FB_BA_RollerblindZone

FB_BA_RollerblindZone 1:

In a blind zone, one or more blinds are combined for simultaneous control, depending on the local conditions. The template 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_SunblindPosition (internal function block). The use of the following variables is visible in this template:

FB_BA_RollerblindZone 2:

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

Block diagram

FB_BA_RollerblindZone 3:

Syntax

FUNCTION_BLOCK FB_BA_RollerblindZone EXTENDS FB_BA_Ext_SunblindPosition
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;
  bSunPrtcSlcn           : BOOL;
  bTwiLgtAutoSlcn        : BOOL;
  fTwiLgtAutoPos         : 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_RollerblindZone 4: Inputs

Name

Type

Description

fRoomTempSen

REAL

Room temperature sensor [°C].

bPrcDetc

BOOL

Presence detection.

bSwiUp

BOOL

Key function Blind "up".

bSwiDwn

BOOL

Key function Blind "down".

bRstManFnct

BOOL

Deletion input for the blind manual flag.

stBuildingSpRmT

ST_BA_SpRmT

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

stFacade

ST_BA_Facade

Structure of the facade data (facade telegrams, releases for twilight and thermal automatic, etc.)

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_RollerblindZone 5: Outputs

Name

Type

Description

stSunBldOut

ST_BA_Sunbld

Resulting zone telegram.

FB_BA_RollerblindZone 6: Inputs CONSTANT PERSISTENT

Name

Type

Description

bThAutoSlcn

BOOL

Thermal automatic enable.

fThAutoColPos

REAL

Thermal automatic cooling position [%].

bSunPrtcSlcn

BOOL

Shading automatic enable.

bTwiLgtAutoSlcn

BOOL

Twilight automatic enable.

fTwiLgtAutoPos

REAL

Twilight automatic cooling position [%].

nSwiOverTi

UDINT

Push button function of the zone: Switchover time [ms] from jogging to latching mode.

FB_BA_RollerblindZone 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.

Variables

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

Enable/reset switching.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0