FB_BAFBlindDriveStandard

FB_BAFBlindDriveStandard 1:

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

VAR_INPUT

uiId                 : UINT;
bStartExecution      : BOOL;
bStopExecution       : BOOL;
bSafetyPositionSet   : BOOL;
bSafetyPositionReset : BOOL;
bUp                  : BOOL;
bDown                : BOOL;
bStop                : BOOL;
bStepUp              : BOOL;
bStepDown            : BOOL;
bSetPositionDirect   : BOOL;
lrSetPositionDirect  : LREAL;

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

bStartExecution: Starts the instance of the blind drive.

bStopExecution: Stops the instance of the blind drive.

bSafetyPositionSet: Driving to safety-position is activated. For this purpose the blind drive will be moved up for tDriveTime + 10%. No other commands except bSafetyPositionReset are accepted then.

bSafetyPositionReset: Releases the safety-position.

bUp: The blind will be driven upwards.

bDown: The blind will be driven downwards.

bStop: Stops the blind.

bStepUp: The blind will be driven upwards for tStepTime.

bStepDown: The blind will be driven downwards for tStepTime.

bSetPositionDirect: The blind drive will be moved to the position given by lrSetPositionDirect.

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

VAR_OUTPUT

uiErrorId            : UINT;
iErrorParameter      : INT;
eExecutionState      : E_BAF_ExecutionState;
bSafetyPosition      : BOOL;
bDriveUp             : BOOL;
bDriveDown           : BOOL;
lrActualPosition     : 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 blind drive.

bSafetyPosition : The safety-position-driving has been activated.

bDriveUp: The blind is moving upwards.

bDriveDown: The blind is moving downwards.

lrActualPosition: The position (0% - 100%) of this blind drive.