FB_BA_SunBldPosDly

FB_BA_SunBldPosDly 1:

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

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 advisable to start the blind drives slightly staggered, in order to avoid excessive overall 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 fPos has changed in automatic mode (bManMode = FALSE in telegram stIn)
  2. the lamella angle fAngl 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. In these three cases, however, the output telegram stOut is fixed for the time of nDly [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:

FB_BA_SunBldPosDly 3: Inputs

VAR_INPUT
  stIn       : ST_BA_Sunblind;
  nDly       : UDINT;
END_VAR

Name

Type

Description

stIn

ST_BA_SunBld

Input positioning telegram.

nDly

UDINT

Delay time of the active bit in the positioning telegram [ms].

FB_BA_SunBldPosDly 4: Outputs

VAR_OUTPUT
  stOut           : ST_BA_Sunblind;
  nRemTiDly       : UDINT;
END_VAR

Name

Type

Description

stOut

ST_BA_SunBld

Output positioning telegram.

nRemTiDly

UDINT

Display output for elapsed delay time [s].

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.22

Tc3_BA2 from v5.2.5.0