FB_BA_SunBldPosDly

This function block delays changes in position based on automatic commands.

FB_BA_SunBldPosDly 1:

Functional description

If an event, e.g. weather protection, results in too many blind drives being started at the same time, fuses may be triggered by motor starting current peaks. It is therefore desirable to start the blind drives slightly staggered, in order to the avoid excessive total current values.

This function block relays automatic commands from the input telegram stIn to the output telegram stOut with a delay. A distinction is made between three cases:

  1. the blind position lrPos has changed in automatic mode (bManMode = FALSE in telegram stIn).
  2. the slat angle lrAngl has changed in automatic mode (bManMode = FALSE in telegram stIn).
  3. manual mode has just been exited, i.e. automatic mode has just become active (falling edge bManMode in telegram stIn).

The output telegram stOut is always a direct copy of the input telegram stIn. However, in these three cases the following values are set in the output telegram stOut for the time of uiDly [ms]:

This ensures that the blind controlled via the function block FB_BA_SunBldActr is kept at its position during the delay period. Each further change based on the criteria mentioned above within the delay time restarts the timer.

However, a change to manual in the input telegram (bManMode = TRUE) cancels the delay timer immediately. The (manual) telegram is passed on without delay. In this way, only automatic telegrams are delayed.

Application

Preferably directly before the blind actuator function block:

FB_BA_SunBldPosDly 2:

Inputs/outputs

VAR_INPUT

stIn      : ST_BA_Sunblind;
uiDly     : UINT;

stIn: input positioning telegram, see ST_BA_SunBld

uiDly: delay time of the active bit in the positioning telegram [ms]

VAR_OUTPUT

stOut     : ST_BA_Sunblind;

stOut: output positioning telegram, see ST_BA_SunBld

udiRemTiDly: display output for elapsed delay time [s]

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