FB_BA_SunBldWndPrtc
The function block FB_BA_SunBldWndPrtc deals with the direction-dependent wind protection.
The weather protection has the highest priority in the blind controller (see overview) and is intended to ensure that the blind is not damaged by ice or wind.
If the measured wind speed lies above the value fWndSpdStrmOn for the time nDlyStrmOn [s], then it is assumed that a storm is directly impending. Only if the wind speed falls below the value fWndSpdStrmOff for the time nDlyStrmOff [s] is the storm considered to have abated and the driving of the blind considered to be safe. For safety reasons the storm event is also persistently saved. Thus, if the controller fails during a storm, the sequence timer is started again from the beginning when the controller is restarted.
In wind hazard cases, the blind is moved to the protection position specified by fPosProt (height position [%]) and fAnglProt (slat angle [°]).
Inputs
VAR_INPUT
bEn : BOOL;
fWndSpd : REAL;
fWndSpdStrmOn : REAL;
fWndSpdStrmOff : REAL;
nDlyStrmOn : UDINT;
nDlyStrmOff : UDINT;
fPosProt : REAL;
fAnglProt : REAL;
END_VAR
Name | Type | Description |
---|---|---|
bEn | BOOL | The function block has no function if this input is FALSE. 0 is output for the position and the angle in the positioning telegram ST_BA_Sunbld - bManMod and bActv are set to FALSE. For a connection with priority controller this means that another functionality takes over control of the blind. |
fWndSpd | REAL | Wind speed. The unit of the entry is arbitrary, but it is important that no value is smaller than 0 and that the values become larger with increasing speed. |
fWndSpdStrmOn | REAL | Wind speed limit value for the activation of the storm alarm. This value may not be smaller than 0 and must lie above the value for the deactivation. Otherwise an error is output. The unit of the entry must be the same as that of the input fWndSpd. A value greater than this limit value triggers the alarm after the entered time nDlyStrmOn. |
fWndSpdStrmOff | REAL | Wind speed limit value for the deactivation of the storm alarm. This value may be not smaller than 0 and must lie below the value for the activation. Otherwise an error is output. The unit of the entry must be the same as that of the input fWndSpd. A value smaller than or equal to this limit value resets the alarm after the entered time nDlyStrmOff. |
nDlyStrmOn | UDINT | Time delay until the storm alarm is triggered [s]. |
nDlyStrmOff | UDINT | Time delay until the storm alarm is reset [s]. |
fPosProt | REAL | Height position of the blind [%] in the case of protection. |
fAnglProt | REAL | Slat angle of the blind [°] in the case of protection |
Inputs CONSTANT PERSISTENT
VAR_INPUT CONSTANT PERSISTENT
ePrio : E_BA_SunBldPrio := E_BA_SunBldPrio.eStorm;
END_VAR
Name | Type | Description |
---|---|---|
ePrio | E_BA_SunBldPrio | Priority of the active telegram. |
Outputs
VAR_OUTPUT
stSunBld : ST_BA_SunBld;
bActv : BOOL;
bStrmAlm : BOOL;
nRemTiStrmDetc : UDINT;
nRemTiStrmAlm : UDINT;
END_VAR
Name | Type | Description |
---|---|---|
stSunBld | Output telegram, for the position and angle of the lamella. | |
bActv | BOOL | Corresponds to the boolean value bActv in the blind telegram ST_BA_SunBld and is solely used to indicate whether the function block sends an active telegram. |
bStrmAlm | BOOL | Indicates the storm alarm |
nRemTiStrmDetc | UDINT | In an uncritical case this second counter constantly indicates the alarm delay time nDlyStrmOn. If the measured wind speed fWndSpd is above the activation limit value fWndSpdStrmOn, the seconds to the alarm are counted down. This output is 0 as long as no countdown of the time is taking place. |
nRemTiStrmAlm | UDINT | As soon as the storm alarm is initiated, this second counter initially constantly indicates the deactivation time delay of the storm alarm nDlyStrmOff. If the measured wind speed fWndSpd falls below the deactivation limit value fWndSpdStrmOff, the seconds to the all-clear signal (bStrmAlm=FALSE) are counted down. This output is 0 as long as no countdown of the time is taking place |
If an error occurs, this automatic control is disabled and the position and angle are set to 0. This means that if a priority controller is in use, another function with a lower priority (see Overview) automatically takes over control of the blind. In the case of a direct connection, conversely, the blind will drive to position/angle 0. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.22 | Tc3_BA2 from v5.2.5.0 |