FB_BAFScenesStandard

FB_BAFScenesStandard 1:
TcBAPlc_FB_BAFSceneStandard

Function block for controlling a standard scene directly from the PLC program.

VAR_INPUT

uiId                          : UINT;
bStartExecution               : BOOL;
bStopExecution                : BOOL;
bInvoke                       : BOOL;
bSwitchOff                    : BOOL;
bStoreCurrentScenery          : BOOL;
bPushButtonLightingFadeUpDown : BOOL;

uiId: object ID of the instance (see also).

bStartExecution: starts the instance of the scene.

bStopExecution: stops the instance of the scene.

bInvoke: the scene is called.

bSwitchOff: all elements contained in this scene receive the command Off or Stop. If an element does not support either of the two commands, it is ignored.

bStoreCurrentScenery: The command affects functional units of the type of illumination, sunblind and window only if these are addressed within the scene by the command Set control value directly or Set position directly. If the bStoreCurrentScenery command is executed, then the current state will be used by the respective functional units as the new parameter for the command Set control value directly or Set position directly.

bPushButtonLightingFadeUpDown: This command affects only functional units of the type illumination. The scene is called by a short pulse (push of a button). If the signal is applied continuously, then the lamps of the functional unit are dimmed up and down.

VAR_OUTPUT

uiErrorId            : UINT;
iErrorParameter      : INT;
eExecutionState      : E_BAF_ExecutionState;

uiErrorId: contains the error code of the last-executed command (see error codes).

iErrorParameter: contains the specific parameters of the error code (see error codes).

eExecutionState: contain the current execution status of the instance of the scene.