FB_BA_InRngAzm

FB_BA_InRngAzm 1:

This function block FB_BA_InRngAzm 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 protection of a window group should be activated. Therefore the observations in the remainder of the text always apply to one window group.

The sun incidence azimuth angle on a smooth facade will always be facade orientation-90°... facade orientation+90°.

FB_BA_InRngAzm 2:

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):

FB_BA_InRngAzm 3:

The values change for a group at the edge:

FB_BA_InRngAzm 4:

The beginning of the range fSttRng may thereby be larger than the end fEndRng; it is then regarded beyond 0°:

Example

fAzm

10.0°

fSttRng

280.0°

fEndRng

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.

FB_BA_InRngAzm 5: Inputs

VAR_INPUT
  fAzm     : REAL;
  fSttRng  : REAL;
  fEndRng  : REAL;
END_VAR

Name

Type

Description

fAzm

REAL

Current azimuth angle

fSttRng

REAL

Start of range [°]

fEndRng

REAL

End of range [°].

FB_BA_InRngAzm 6: 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: fSttRng or fEndRng less than 0° or greater than 360°.

02: Error: The difference between fSttRng and fEndRng 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.22

Tc3_BA2 from v5.2.5.0