Program example FB_BARSunblindSwitch

This example is intended to show how a possible activation (input bEnable) of the manual blind controller might look. The input and output variables (bordered) have the following meaning:

tAutoResetTime : Time after which the activation is to be automatically reset.

bSwitchUp : Blind up button.

bSwitchDown : Blind down button.

bPauseClock : Pause signal from the property, e.g. lunch break: 12:00 - 13:00. bPauseClock = TRUE: Pause.

bPresenceDetection : Occupied signal from the room in which the blinds are controlled. bPresenceDetection= TRUE: Room is occupied.

uiSwitchOverTime : Time in milliseconds until the corresponding manual command latches with a continuous command input.

stSunblind : Positioning telegram, see ST_BARSunblind. For further linking to a priority selection, see FB_BARSunblindPrioritySwitch.

SwitchWithResetEnable:

Program example FB_BARSunblindSwitch 1:

Functioning

If one of the blind pushbuttons bSwitchUp or bSwitchDown is actuated, the output of the flip-flop will initially be set to TRUE, but only if there is currently no pause signal applied (bPauseClock) or if the room is currently occupied (bPresenceDetection). The bEnable input of the function block fbBARSunblindSwitch is thus TRUE, which activates it. The respective switch signal that has led to the activation can be passed on directly by the function block in the command telegram stSunblind.
At the same time a TRUE signal is applied to the input of the switch-off delay tofAutoResetTimer and its output Q is set directly to TRUE. On releasing the blind button the switch-off delay is started, and after the expiry of tAutoResetTime the output Q is reset to FALSE. This falling edge is in turn recognized by ftAutoResetTimer and a trigger pulse is sent that resets the flip-flop. The activation input bEnable is thus FALSE once again and the function block fbBARSunblindSwitch is passive.

If this function block is linked via the command telegram to a priority selection FB_BARSunblindPrioritySwitch, then the telegram will be passed through there to the next priority:

Program example FB_BARSunblindSwitch 2:

Requirements

Development environment

required library

required function

TwinCAT 3.1 build 4022.16 or higher

Tc2_HVAC V3.3.1.0

TF8000 | TC3 HVAC V1.0.0.0