FB_BA_InRngElv

This function block checks whether the current angle of elevation (vertical position of the sun) lies within the limits entered. As can be seen in the overview, the function block provides an additionally evaluation as to whether the sun shading of a window group should be activated. Therefore the observations in the remainder of the text always apply to one window group.

FB_BA_InRngElv 1:

Functional description

A normal vertical facade is irradiated by the sun at an angle of elevation of 0° to maximally 90°.

FB_BA_InRngElv 2:

If the facade has projections, however, this range is limited. This limitation can be checked with the help of this function block. However, the position of the window group on the facade also plays a role. If it lies in the lower range, this gives rise to the following situation (the values are only examples):

FB_BA_InRngElv 3:

The values change for a group below the projection:

FB_BA_InRngElv 4:

The lower observation limit, lrLoLmt, may thereby not be greater than or equal to the upper limit, lrHiLmt. Such entries result in an error on the output bErr – the test output bOut is then additionally set to FALSE.

Inputs/outputs

VAR_INPUT

lrElv   : LREAL;
lrLoLmt : LREAL;
lrHiLmt : LREAL;

lrElv: current elevation angle [°]

lrLoLmt: lower limit.[°]

lrHiLmt: upper limit [°]

VAR_OUTPUT

bOut      : BOOL;
bErr      : BOOL;
udiErrId  : UDINT;
udiErrArg : UDINT;

bOut: facade element is in the sun.

bErr: this output is switched to TRUE if the parameters entered are erroneous.

udiErrId / udiErrArg: contains the error number and the error argument. See error codes.

Requirements

Development environment

Target system

required library

required supplement

TwinCAT 2.11 R3/x64

PC/CX

TcBA library from V1.0.0

TS8040 | TwinCAT Building Automation from V1.0.0