FB_BA_SunBldWndPrtc

FB_BA_SunBldWndPrtc 1:

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 is above the value rWndSpdStrmOn for the time udiDlyStrmOn_sec [s], it is assumed that high winds are imminent. The storm is regarded as having subsided, so that the blind can be moved safely, once the wind speed falls below the value rWndSpdStrmOff for the time udiDlyStrmOff_sec [s]. 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.

If there is a risk of high wind, the blind is moved to the protection position specified by rPosProt (height position in percent) and rAnglProt (louvre angle [°]).

VAR_INPUT

bEn               : BOOL;
rWndSpd           : REAL;
rWndSpdStrmOn     : REAL;
rWndSpdStrmOff    : REAL;
udiDlyStrmOn_sec  : UDINT;
udiDlyStrmOff_sec : UDINT;
rPosProt          : REAL;
rAnglProt         : REAL;

bEn: The function block has no function if this input is FALSE. In the positioning telegram ST_BA_Sunbld 0 is output for the position and the angle, and bActv is FALSE. This means that another function takes over control of the blind via the priority controller.

rWndSpd: Wind speed. The unit of entry is arbitrary, but it is important that no value is smaller than 0 and that the values become larger with increasing speed.

rWndSpdStrmOn: Wind speed limit value for the activation of the storm alarm. This value may be not smaller than 0 and must lie above the value for the deactivation. Otherwise an error is output. The unit of entry must be the same as that of the input rWndSpd. A value greater than this limit value triggers the alarm after the specified time udiDlyStrmOn_sec.

rWndSpdStrmOff: 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 entry must be the same as that of the input rWndSpd. A value smaller than or equal to this limit value resets the alarm after the specified time udiDlyStrmOff_sec.

udiDlyStrmOn_sec: Time delay until the storm alarm is triggered [s].

udiDlyStrmOff_sec: Time delay until the storm alarm is reset [s].

rPosProt: Height position of the blind [%] in the case of protection.

rAnglProt: Louvre angle of the blind [°] in the case of protection.

VAR_OUTPUT

stSunBld             : ST_BA_SunBld;
bActv                : BOOL;
bStrmAlm             : BOOL;
udiRemTiStrmDetc_sec : UDINT;
udiRemTiStrmAlm_sec  : UDINT;

stSunBld: Output structure of the blind positions, see ST_BA_SunBld.

bActv: 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: Indicates the storm alarm.

udiRemTiStrmDetc_sec: In the non-critical case, this second counter continuously shows the alarm delay time udiDlyStrmOn_sec. If the measured wind speed rWndSpd is above the activation limit value rWndSpdStrmOn, the seconds to the alarm are counted down. This output is 0 as long as no countdown of the time is taking place.

udiRemTiStrmAlm_sec: As soon as the storm alarm is initiated, this second counter initially constantly indicates the deactivation time delay of the storm alarm udiDlyStrmOff_sec. If the measured wind speed rWndSpd falls below the deactivation limit value rWndSpdStrmOff, 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.

FB_BA_SunBldWndPrtc 2:

If an error occurs, this automatic control is deactivated, 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.7

Tc3_BA from v1.1.6.0