FB_BAFWindowStandard

FB_BAFWindowStandard 1:

Function-block for controlling a Standard Window 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 unit.

bStopExecution: Stops the instance of the window unit.

bSafetyPositionSet: All window drives in the assigned window drive group will move to their safety-positions.

bSafetyPositionReset: All window drives in the assigned window drive group are released do move from their safety-positions.

bClose: All window-drives in the assigned window drive group will close.

bOpen: All window-drives in the assigned window drive group will open.

bStop: All window-drives in the assigned window drive group will stop moving.

bSetPositionDirect: All window drives in the assigned group will be driven to the position entered in lrSetPositionDirect.

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

VAR_OUTPUT

uiErrorId               : UINT;
iErrorParameter         : INT;
eExecutionState         : E_BAF_ExecutionState;
lrAveragePosition       : 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 window unit.

lrAveragePosition: The average position (0% - 100%) of the assigned window drive group.