FB_BAFSunblindStandard

FB_BAFSunblindStandard 1:

Function-block for controlling a Standard Sunblind 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 sunblind.

bStopExecution: Stops the instance of the sunblind.

bSafetyPositionSet: All blind drives in the assigned blind drive group (see parameter uiBlindDriveGroupId) will move to their safety-positions.

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

bUp: All blind drives in the assigned blind drive group will move up.

bDown: All blind drives in the assigned blind drive group will move down.

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

bStepUp: The bStepUp-command for the assigned blind drive group will be sent.

bStepDown: The bStepDown-command for the assigned blind drive group will be sent.

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

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

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 sunblind unit.

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