FB_BA_InRngAzm
This function block checks whether the current azimuth angle (horizontal 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 smooth facade is always irradiated by the sun at an azimuth angle of Facade orientation-90° to Facade orientation+90°.
If the facade has lateral 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 centrally, this gives rise to the following situation (the values are only examples):
The values change for a group at the edge:
The start of the range rSttRng may be greater than the end rEndRng, in which case values beyond 0° are considered:
Sample
rAzm | 10.0° |
rSttRng | 280.0° |
rEndRng | 20.0° |
bOut | TRUE |
However, the range regarded may not be greater than 180° or equal to 0° – this would be unrealistic. Such entries result in an error on the output bErr – the test output bOut is then additionally set to FALSE.
VAR_INPUT
rAzm : REAL;
rSttRng : REAL;
rEndRng : REAL;
rAzm: Current azimuth angle.
rSttRng: Start of range [°].
rEndRng: End of range [°].
VAR_OUTPUT
bOut : BOOL;
bErr : BOOL;
sErrDescr : T_MAXSTRING;
bOut: The facade element is in the sun if the output is TRUE.
bErr: This output is switched to TRUE if the parameters entered are erroneous.
sErrDescr: Contains the error description.
Error description |
---|
01: Error: rSttRng or rEndRng less than 0° or greater than 360°. |
02: Error: The difference between rSttRng and rEndRng is greater than 180°. This range is too large for analyzing the insolation on a facade. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.7 | Tc3_BA from v1.1.6.0 |