FB_BAFWindowDriveGroupStandard

FB_BAFWindowDriveGroupStandard 1:

Function-block for controlling a Standard Window Drive Group directly out of the PLC-program.

VAR_INPUT

uiId                  : UINT;
bStartExecution       : BOOL;
bStopExecution        : BOOL;
bSafetyPositionSet    : BOOL;
bSafetyPositionReset  : BOOL;
bClose                : BOOL;
bOpen                 : BOOL;
bStop                 : BOOL;
bSetPositionDirect    : BOOL;
lrSetPositionDirect   : LREAL;

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

bStartExecution: Starts the instance of the window drive group.

bStopExecution: Stops the instance of the window drive group.

bSafetyPositionSet: Executes the bSafetyPositionSet-command for all window drives in this group.

bSafetyPositionReset: Executes the bSafetyPositionReset-command for all window drives in this group.

bClose: Executes the bClose-command for all window drives in this group.

bOpen: Executes the bOpen-command for all window drives in this group.

bStop: Executes the bStop-command for all window drives in this group.

bSetPositionDirect: All window drives in this group will be moved to the position entered under lrSetPositionDirect.

lrSetPositionDirect: See bSetPositionDirect. 0% means completely closed, 100% completely opened.

VAR_OUTPUT

uiErrorId                       : UINT;
iErrorParameter                 : INT;
eExecutionState                 : E_BAF_ExecutionState;
udiAmountOfWindowDrives         : UDINT;
udiAmountOfFaultyWindowDrives   : UDINT;
udiAmountOfDriveClose           : UDINT;
udiAmountOfDriveOpen            : UDINT;
udiAmountOfActiveSafetyPosition : UDINT;
lrAveragePosition               : LREAL;
iValue                          : INT;

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 window drive group.

udiAmountOfWindowDrives: The amount of window drives in this group.

udiAmountOfFaultyWindowDrives: The amount of faulty window drives in this group (uiErrorId > 0).

udiAmountOfDriveClose: The amount of window drives in this group, which are actually closing (uiErrorId has to be 0).

udiAmountOfDriveOpen: The amount of window drives in this group, which are opening (uiErrorId has to be 0).

udiAmountOfActiveSafetyPosition: The amount of window drives in this group standing in safety-position (uiErrorId has to be 0).

lrAveragePosition: The average position (0% - 100%) of all active window drives in this group.

iValue: Value of the window drive group.