FB_BA_SunBldPrioSwi8

Priority controller for up to 8 positioning telegrams (stSunBld_Prio1 ... stSunBld_Prio8) of the type ST_BA_SunBld.

FB_BA_SunBldPrioSwi8 1:

Functional description

Structure of the blind positioning telegram stSunBld.

TYPE ST_BA_SunBld:
STRUCT
     lrPos        : LREAL;
     lrAngl       : LREAL;
     bManUp       : BOOL;
     bManDwn      : BOOL;
     bManMod      : BOOL;
     bActv        : BOOL;
END_STRUCT
END_TYPE

Up to 8 positioning telegrams from different control function blocks can be applied to this function block. The telegram on stSunBld_Prio1 has the highest priority and that on stSunBld_Prio8 the lowest. The active telegram with the highest priority is output at stSunBld. "Active" means that the variable bActv is set within the structure of the positioning telegram.

FB_BA_SunBldPrioSwi8 2:

This function block is to be programmed in such a way that one of the applied telegrams is always active. If no telegram is active, an empty telegram is output, i.e. lrPos=0, lrAngl=0, bManUp=FALSE, bManDwn=FALSE, bManMod=FALSE, bActv=FALSE. Since the blind function block FB_BA_SunBldActr or the roller blind function block FB_BA_RolBldActr does not take account of the flag bActv, this telegram would be interpreted as movement command to position "0", i.e. fully open. The absence of an active telegram therefore does not represent a safety risk for the blind.

Inputs/outputs

VAR_INPUT

stSunBld_Prio1  : ST_BA_SunBld;
stSunBld_Prio2  : ST_BA_SunBld;
stSunBld_Prio3  : ST_BA_SunBld;
stSunBld_Prio4  : ST_BA_SunBld;
stSunBld_Prio5  : ST_BA_SunBld;
stSunBld_Prio6  : ST_BA_SunBld;
stSunBld_Prio7  : ST_BA_SunBld;
stSunBld_Prio8  : ST_BA_SunBld;

stSunBld_Prio1..stSunBld_Prio8: Positioning telegrams available for selection. stSunBld_Prio1 has the highest priority and stSunBld_Prio8 the lowest.

VAR_OUTPUT

stSunBld    : ST_BA_SunBld;
udiActvPrio : UDINT;

stSunBld: resulting positioning telegram
udiActvPrio:
active positioning telegram. If none is active, "0" is output.

Requirements

Development environment

Target system

required library

required supplement

TwinCAT 2.11 R3/x64

PC/CX

TcBA library from V1.0.0

TS8040 | TwinCAT Building Automation from V1.0.0