FB_BA_SunBldPrioSwi8
The function block FB_BA_SunBldPrioSwi8 is used for priority control for up to 8 positioning telegrams (stSunBld_Prio1 ... stSunBld_Prio8) of type ST_BA_SunBld from different control function blocks.
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.
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. fPos = 0, fAngl = 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
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;
END_VAR
Name | Type | Description |
---|---|---|
stSunBld_PrioN | Positioning telegrams available for selection. stSunBld_Prio1 has the highest priority and stSunBld_Prio8 the lowest. |
Outputs
VAR_OUTPUT
stSunBld : ST_BA_SunBld;
nActvPrio : UDINT;
END_VAR
Name | Type | Description |
---|---|---|
stSunBld | Output telegram, for the position and angle of the lamella. | |
nActvPrio | UDINT | Active positioning telegram. If none is active, "0" is output. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.22 | Tc3_BA2 from v5.2.5.0 |