FB_BA_InRngElv

FB_BA_InRngElv 1:

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.

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, rLoLmt, may thereby not be greater than or equal to the upper limit, rHiLmt. Such entries result in an error on the output bErr – the test output bOut is then additionally set to FALSE.

VAR_INPUT

rElv   : REAL;
rLoLmt : REAL;
rHiLmt : REAL;

rElv: Current elevation angle [°].

rLoLmt: Lower limit value [°].

rHiLmt: Upper limit value [°].

VAR_OUTPUT

bOut      : BOOL;
bErr      : BOOL;
sErrDescr : T_MAXSTRING;

bOut: The facade element is in the sun

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

sErrDescr: Contains the error description.

Error description

01: Error: rHiLmt less than or equal to rLoLmt.

02: Error: rLoLmt is less than 0° or rHiLmt is greater than 90°.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.7

Tc3_BA from v1.1.6.0