FB_RoomOperation

FB_RoomOperation 1:

Description

The function block FB_RoomOperation () is conceived for the management of lighting and blinds. Scenes are called and dimmed in a state of rest. Lighting and blinds can be set and saved in the appropriate mode. This function block is intended for use with the function blocks FB_ScenesLighting(), FB_ScenesVenetianBlind(), FB_Dimmer1Switch() and FB_VenetianBlindEx().

Calling saved scenes:

A rising edge at the input bSwitch_A, bSwitch_B or bSwitch_1..14 causes a pulse to be output at the output bInvokeScene_A, bInvokeScene_B or bInvokeScene_1..14 .

Dimming saved scenes:

A scene is called and dimmed up by a signal that is applied to the input bSwitch_A, bSwitch_B or bSwitch_1..14 for a time exceeding tCycleDelayDimmTime.

Setting blind and lighting values:

A signal at the input bSwitchLightingMode or bSwitchBlindingMode switches to the respective mode. The control values are changed by the inputs bSwitch_1..14 via the outputs bSwitchLighting_1..14 or bSwitchBlindUp/bSwitchBlindDown_1..7.

Saving the settings:

By means of setting the input bSwitchLightingMode or bSwitchBlindingMode and a signal at the input bSwitch_A, bSwitch_B or bSwitch_1..14, a pulse is output at the output bSaveScene_A, bSaveScene_B or bSaveScene_1..14. The values are saved in the function block FB_ScenesLighting(), FB_ScenesVenetianBlind().

Note: This functionblock is only available in the PC-based version of the library.

VAR_INPUT

bSwitch_A            : BOOL;
bSwitch_B            : BOOL;
bSwitch_1            : BOOL;
bSwitch_2            : BOOL;
bSwitch_3            : BOOL;
bSwitch_4            : BOOL;
bSwitch_5            : BOOL;
bSwitch_6            : BOOL;
bSwitch_7            : BOOL;
bSwitch_8            : BOOL;
bSwitch_9            : BOOL;
bSwitch_10           : BOOL;
bSwitch_11           : BOOL;
bSwitch_12           : BOOL;
bSwitch_13           : BOOL;
bSwitch_14           : BOOL;
bSwitchLightingMode  : BOOL;
bSwitchBlindingMode  : BOOL;
bFeedbackLighting_1  : BOOL;
bFeedbackLighting_2  : BOOL;
bFeedbackLighting_3  : BOOL;
bFeedbackLighting_4  : BOOL;
bFeedbackLighting_5  : BOOL;
bFeedbackLighting_6  : BOOL;
bFeedbackLighting_7  : BOOL;
bFeedbackLighting_8  : BOOL;
bFeedbackLighting_9  : BOOL;
bFeedbackLighting_10 : BOOL;
bFeedbackLighting_11 : BOOL;
bFeedbackLighting_12 : BOOL;
bFeedbackLighting_13 : BOOL;
bFeedbackLighting_14 : BOOL;
nFeedbackLighting_1  : UINT;
nFeedbackLighting_2  : UINT;
nFeedbackLighting_3  : UINT;
nFeedbackLighting_4  : UINT;
nFeedbackLighting_5  : UINT;
nFeedbackLighting_6  : UINT;
nFeedbackLighting_7  : UINT;
nFeedbackLighting_8  : UINT;
nFeedbackLighting_9  : UINT;
nFeedbackLighting_10 : UINT;
nFeedbackLighting_11 : UINT;
nFeedbackLighting_12 : UINT;
nFeedbackLighting_13 : UINT;
nFeedbackLighting_14 : UINT;
nFeedbackBlind_1     : USINT;
nFeedbackBlind_2     : USINT;
nFeedbackBlind_3     : USINT;
nFeedbackBlind_4     : USINT;
nFeedbackBlind_5     : USINT;
nFeedbackBlind_6     : USINT;
nFeedbackBlind_7     : USINT;
tCycleDelayDimmTime  : TIME := t#500ms;
tOperationTime       : TIME := t#60s;

bSwitch_A, B: calls the saved Scene A or Scene B.

bSwitch_1..14: sets and calls the saved scenes.

bSwitchLightingMode: switches to the lighting mode.

bSwitchBlindingMode: switches to the blinding mode.

bFeedbackLighting_1..14: current status of the respective lamp. Return value from the dimmer function block FB_Dimmer1Switch().

nFeedbackLighting_1..14: current control value of the respective lamp. Return value from the dimmer function block FB_Dimmer1Switch().

nFeedbackBlind_1..7: current control value of the respective blind. Return value from the blind function block FB_VenetianBlindEx().

tCycleDelayDimmTime: switching time between dimming and calling a scene.

tOperationTime: if the blinding or lighting mode is active and no operation takes place, the mode is automatically switched back to scene mode after the expiry of this time.

VAR_OUTPUT

bEnableLightingMode  : BOOL;
bEnableBlindingMode  : BOOL;
bSwitchLighting_1    : BOOL;
bSwitchLighting_2    : BOOL;
bSwitchLighting_3    : BOOL;
bSwitchLighting_4    : BOOL;
bSwitchLighting_5    : BOOL;
bSwitchLighting_6    : BOOL;
bSwitchLighting_7    : BOOL;
bSwitchLighting_8    : BOOL;
bSwitchLighting_9    : BOOL;
bSwitchLighting_10   : BOOL;
bSwitchLighting_11   : BOOL;
bSwitchLighting_12   : BOOL;
bSwitchLighting_13   : BOOL;
bSwitchLighting_14   : BOOL;
bSwitchBlindUp_1     : BOOL;
bSwitchBlindDown_1   : BOOL;
bSwitchBlindUp_2     : BOOL;
bSwitchBlindDown_2   : BOOL;
bSwitchBlindUp_3     : BOOL;
bSwitchBlindDown_3   : BOOL;
bSwitchBlindUp_4     : BOOL;
bSwitchBlindDown_4   : BOOL;
bSwitchBlindUp_5     : BOOL;
bSwitchBlindDown_5   : BOOL;
bSwitchBlindUp_6     : BOOL;
bSwitchBlindDown_6   : BOOL;
bSwitchBlindUp_7     : BOOL;
bSwitchBlindDown_7   : BOOL;
bInvokeScene_A       : BOOL;
bInvokeScene_B       : BOOL;
bInvokeScene_1       : BOOL;
bInvokeScene_2       : BOOL;
bInvokeScene_3       : BOOL;
bInvokeScene_4       : BOOL;
bInvokeScene_5       : BOOL;
bInvokeScene_6       : BOOL;
bInvokeScene_7       : BOOL;
bInvokeScene_8       : BOOL;
bInvokeScene_9       : BOOL;
bInvokeScene_10      : BOOL;
bInvokeScene_11      : BOOL;
bInvokeScene_12      : BOOL;
bInvokeScene_13      : BOOL;
bInvokeScene_14      : BOOL;
bSaveScene_A         : BOOL;
bSaveScene_B         : BOOL;
bSaveScene_1         : BOOL;
bSaveScene_2         : BOOL;
bSaveScene_3         : BOOL;
bSaveScene_4         : BOOL;
bSaveScene_5         : BOOL;
bSaveScene_6         : BOOL;
bSaveScene_7         : BOOL;
bSaveScene_8         : BOOL;
bSaveScene_9         : BOOL;
bSaveScene_10        : BOOL;
bSaveScene_11        : BOOL;
bSaveScene_12        : BOOL;
bSaveScene_13        : BOOL;
bSaveScene_14        : BOOL;
bLEDSwitch_1         : BOOL;
bLEDSwitch_2         : BOOL;
bLEDSwitch_3         : BOOL;
bLEDSwitch_4         : BOOL;
bLEDSwitch_5         : BOOL;
bLEDSwitch_6         : BOOL;
bLEDSwitch_7         : BOOL;
bLEDSwitch_8         : BOOL;
bLEDSwitch_9         : BOOL;
bLEDSwitch_10        : BOOL;
bLEDSwitch_11        : BOOL;
bLEDSwitch_12        : BOOL;
bLEDSwitch_13        : BOOL;
bLEDSwitch_14        : BOOL;
bLEDLightingMode     : BOOL;
bLEDBlindingMode     : BOOL;

bEnableLightingMode: enables the memory function block FB_ScenesLighting().

bEnableBlindingMode: enables the memory function block FB_ScenesVenetianBlind().

bSwitchLighting_1..14: output for operating the dimmer function block FB_Dimmer1Switch() via the input bSwitchDimm..

bSwitchBlindUp_1..7: output for operating the blind function block FB_VenetianBlindEx() via the input bSwitchOverUp.

bSwitchBlindDown_1..7: output for operating the blind function block FB_VenetianBlindEx() via the input bSwitchOverDown.

bInvokeScene_A, B, 1..14: output signal for loading a scene. Is passed on to the function blocks FB_ScenesLighting() und FB_ScenesVenetianBlind().

bSaveScene_A, B, 1..14: output signal for saving a scene. Is passed on to the function blocks FB_ScenesLighting() und FB_ScenesVenetianBlind().

bLEDSwitch_1..14: these outputs indicate the status of the respective lighting (on/off) or shading (0%/100%). These outputs are always FALSE in scene mode.

bLEDLightingMode: this output is TRUE if lighting mode is active.

bLEDBlindingMode: this output is TRUE if blinding mode is active.