FB_BA_InRngElv
This function block FB_BA_InRngElv checks whether the current elevation angle (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 protection 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°.
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):
The values change for a group below the projection:
The lower observation limit, fLoLmt, may thereby not be greater than or equal to the upper limit, fHiLmt. Such entries result in an error on the output bErr – the test output bOut is then additionally set to FALSE.
Inputs
VAR_INPUT
fElv : REAL;
fLoLmt : REAL;
fHiLmt : REAL;
END_VAR
Name | Type | Description |
---|---|---|
fElv | REAL | Current elevation angle |
fLoLmt | REAL | Lower limit value [°] |
fHiLmt | REAL | Upper limit value [°] |
Outputs
VAR_OUTPUT
bOut : BOOL;
bErr : BOOL;
sErrDescr : T_MAXSTRING;
END_VAR
Name | Type | Description |
---|---|---|
bOut | BOOL | The facade element is in the sun if the output is TRUE. |
bErr | BOOL | In case of a fault, e.g. if warning stages are active, this output is set to TRUE. |
sErrDescr | T_MAXSTRING | Contains the error description. |
Error description |
---|
01: Error: fHiLmt less than or equal to fLoLmt. |
02: Error: fLoLmt is less than 0° or fHiLmt is greater than 90°. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.22 | Tc3_BA2 from v5.2.5.0 |