CALC_AGL: Slat angle calculation from the position of the sun
Block CALC_AGL (FB806) determines the slat angle for shading from the engineered solar angle of entry. The result is outputted as a slat angle and the blind position number.
Application: Centralized shading (with tracking of the position of the sun)
Functioning
The block uses only 4 different solar positions [SolAglSet] to calculate the required slat angle. As a result, the changing the slat angle is limited to a maximum of 8 actions per day.
A slat angle [SlatsAglSet] is parameterized for each of the solar positions.
The block determines, based on the projected solar angle of entry [PrjAgl] one of the 4 solar positions [SolAglSet] using the corresponding parameterized slat angle [SlatsAglSet] and the associated blinds position number [BlsPosNr].
Solar positions | [SlatsAgl] | [BlsPosNr] |
-180° < PrjAgl < SolAglSet1 | AglPosNr1 | 1 |
SolAglSet1 < PrjAgl < SolAglSet2 | AglPosNr1 | 1 |
SolAglSet2 < PrjAgl < SolAglSet3 | AglPosNr2 | 2 |
SolAglSet3 < PrjAgl < SolAglSet4 | AglPosNr3 | 3 |
SolAglSet4 < PrjAgl < 180° | AglPosNr4 | 4 |
The block supplies the required slat angle [SlatsAgl] in % and as predefined blinds position number [BlsPosNr] (corresponding to the blinds motor used).
The calculation is immediate and without hysteresis.
Input values
Pin | Description | Data type | Standard value | Engineering unit or text group | Min. | Max. |
PrjAgl | Project solar angle of entry. | REAL | 0.0 | degAngl | 0.0 | 100.0 |
SlatsPosOpn | Slat position value for open | REAL | 20.0 | % | 0.0 | 100.0 |
SlatsPosClsd | Slat position value for closed | REAL | 100.0 | % | 0.0 | 100.0 |
SolAglSet | Settings for solar angle | STRUCT |
|
|
|
|
| AglPosNr1 | REAL | 0.0 | % | 0.0 | 100.0 |
| AglPosNr2 | REAL | 10.0 | % | 0.0 | 100.0 |
| AglPosNr3 | REAL | 25.0 | % | 0.0 | 100.0 |
| AglPosNr4 | REAL | 40.0 | % | 0.0 | 100.0 |
SlatsAglSet | Settings for slat angle | STRUCT |
|
|
|
|
| AglPosNr1 | REAL | 60.0 | % | 0.0 | 100.0 |
| AglPosNr2 | REAL | 45.0 | % | 0.0 | 100.0 |
| AglPosNr3 | REAL | 25.0 | % | 0.0 | 100.0 |
| AglPosNr4 | REAL | 0.0 | % | 0.0 | 100.0 |
Output values
Pin | Description | Data type | Standard value | Engineering unit or text group | Min. | Max. |
SlatsAgl | Angle of louvers or slats | REAL | 0.0 | % | 0.0 | 100.0 |
BlsPosNr | Blinds position number | INT | 0 | BA Predefined blinds position | 0 | 4 |
Process response
Standard (see General rules and information).
Troubleshooting
Standard (see General rules and information).