FB_BAFLightingStairwellDimmer

FB_BAFLightingStairwellDimmer 1:

Function-block for controlling a Stairwell-Dimmer directly out of the PLC-program.

VAR_INPUT

uiId                             : UINT;
bStartExecution                  : BOOL;
bStopExecution                   : BOOL;
bStart                           : BOOL;
bOff                             : BOOL;
bChangeProlongDuration           : BOOL;
tChangeProlongDuration           : TIME;
bChangePresenceExtensionDuration : BOOL;
tChangePresenceExtensionDuration : TIME;

uiId: Object id of the instance (see object id).

bStartExecution: Starts the instance of the lighting.

bStopExecution: Stops the instance of the lighting.

bStart: The stairwell sequence will be started for the assigned lamp group.

bOff: The stairwell sequence will be terminated and the assigned lamp group will be turned off.

bChangeProlongDuration: The prolong duration of the lighting will be set to tChangeProlongDuration.

tChangeProlongDuration: See bChangeProlongDuration.

bChangePresenceExtensionDuration: The presence extension duration of the lighting will be set to tChangePresenceExtensionDuration.

tChangePresenceExtensionDuration: See bChangePresenceExtensionDuration.

VAR_OUTPUT

uiErrorId             : UINT;
iErrorParameter       : INT;
eExecutionState       : E_BAF_ExecutionState;
lrAverageControlValue : LREAL;
tRemainingTime        : TIME;

uiErrorId: Contains the error code of the last executed command (see Error codes).

iErrorParameter: Contains the specific parameter of the error code (see Error codes).

eExecutionState: Contains the actual execution state of the instance of the lighting.

lrAverageControlValue: The average control value (0% - 100%) of the assigned lamp group.

tRemainingTime: Time remaining until the lighting turns off.