FB_BAFLightingTestsForEmergencyLighting

FB_BAFLightingTestsForEmergencyLighting 1:

Function-block for starting a Functiontest and Durationtest for Emergency Lighting directly out of the PLC-program.

VAR_INPUT

uiId                 : UINT;
bStartExecution      : BOOL;
bStopExecution       : BOOL;
bOn                  : BOOL;
bOff                 : BOOL;
bStartFunctionTest   : BOOL;
bStartDurationTest   : BOOL;

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

bStartExecution: Starts the instance of the lighting.

bStopExecution: Stops the instance of the lighting.

bOn: Turns the lighting on.

bOff Turns the lighting off.

bStartFunctionTest: A function test will be started at all DALI-emergency-devices in the assigned lamp group.

bStartDurationTest: A duration test will be started at all DALI-emergency-devices in the assigned lamp group.

VAR_OUTPUT

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

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 of the lighting.