FB_BA_SunBldSwi

FB_BA_SunBldSwi 1:

With the help of the function block FB_BA_SunBldSwi the blind actuator FB_BA_SunBldActr or the roller blind actuator FB_BA_RolBldActr can be controlled in manual operation mode. The connection takes place via the positioning telegram ST_BA_Sunbld either directly or with an additional priority control.

Operation

In manual mode, the function block controls the blind function block FB_BA_SunBldActr or the roller shutter function block FB_BA_RolBldActr via the command inputs bUp and bDwn; bUp has priority. The commands are passed on to the respective commands bManUp and bManDwn of the positioning telegram. If a command input is activated that is longer than the entered time nSwiOvrTi [ms], then the corresponding control command latches. Activating a command input again releases this latch.
If the function block is activated by input bEn = TRUE, bit bActv is set immediately in the positioning telegram. The function block uses this to indicate its priority over low priorities at the priority switch (see ....). At the same time, the bit bManMod is set in the positioning telegram to notify the connected actuator function blocks that they should respond to manual commands.

If the function block is deactivated by bEn = FALSE, both bits, bActv and bManMod, are set to FALSE again.

Linking to the blind function block

The manual mode function block can be connected either via an upstream priority control FB_BA_... or directly at the blind function block. The connection is established via the positioning telegram ST_BA_Sunbld.

Use of a priority controller:

FB_BA_SunBldSwi 2:

Direct connection:

FB_BA_SunBldSwi 3:

FB_BA_SunBldSwi 4: Inputs

VAR_INPUT
  bEn             : BOOL;
  bUp             : BOOL;
  bDwn            : BOOL;
  nSwiOvrTi       : UDINT;
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. Conversely, a direct connection allows the blind to drive directly to the 0 position, i.e. fully up, since the actuator function block does not evaluate the bit bActv itself.

bUp

BOOL

Command input for blind up.

bDwn

BOOL

Command input for blind down.

nSwiOvrTi

UDINT

Time [ms] until the corresponding manual command in the positioning telegram ST_BA_Sunbld switches to latching mode, if the command input is activated permanently. Internally limited to a minimum value of 0.

FB_BA_SunBldSwi 5: Inputs CONSTANT PERSISTENT

VAR_INPUT CONSTANT PERSISTENT
  ePrio    : E_BA_SunBldPrio := E_BA_SunBldPrio.eManualActuator;
END_VAR

Name

Type

Description

ePrio

E_BA_SunBldPrio

Priority of the active telegram.

FB_BA_SunBldSwi 6: Outputs

VAR_OUTPUT
  stSunBld  : ST_BA_SunBld;
  bActv     : BOOL;
END_VAR

Name

Type

Description

stSunBld

ST_BA_SunBld

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.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.22

Tc3_BA2 from v5.2.5.0