FB_BAFBlindDriveGroupStandard
Function-block for controlling a Standard Blind Drive Group 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;
bSetPositionAngleDirect : BOOL;
lrSetPositionDirect : LREAL;
lrSetAngleDirect : LREAL;
bDriveToFavoritePosition : BOOL;
uiId: Object id of the instance (see object id).
bStartExecution: Starts the instance of the blind drive group.
bStopExecution: Stops the instance of the blind drive group.
bSafetyPositionSet: Executes the bSafetyPositionSet-command for all blind drives in this group.
bSafetyPositionReset : Executes the bSafetyPositionReset-command for all blind drives in this group.
bUp : Executes the bUp-command for all blind drives in this group.
bDown: Executes the bDown-command for all blind drives in this group.
bStop : Executes the bStop-command for all blind drives in this group.
bStepUp : Executes the bStepUp-command for all blind drives in this group.
bStepDown: Executes the bStepDown-command for all blind drives in this group.
bSetPositionAngleDirect: The blind drives will be moved to the position [0%..100%] entered under lrSetPositionDirect. As the BA-Framework-element Standard Blind Drive does not support angle-driving functionality - unlike Blind Drive connected with KL2532 - this command will only have an effect on the position.
lrSetPositionDirect: Specific position where the blinds will be driven to.
lrSetAngleDirect: Specific angle where the blinds will be driven to.
bDriveToFavoritePosition: The blind drives will be moved to the favourite position.
VAR_OUTPUT
uiErrorId : UINT;
iErrorParameter : INT;
eExecutionState : E_BAF_ExecutionState;
udiAmountOfBlindDrives : UDINT;
udiAmountOfFaultyBlindDrives : UDINT;
udiAmountOfDriveUp : UDINT;
udiAmountOfDriveDown : UDINT;
udiAmountOfActiveSafetyPosition : UDINT;
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 blind drive group.
udiAmountOfBlindDrives: The number of blind drives in this group.
udiAmountOfFaultyBlindDrives: The amount of faulty blind drives in this group (uiErrorId > 0).
udiAmountOfDriveUp: The number of blind drives in this group, which are actually opening (uiErrorId has to be 0).
udiAmountOfDriveDown: The number of blind drives in this group, which are actually closing (uiErrorId has to be 0).
udiAmountOfActiveSafetyPosition: The number of blind drives in this group standing in safety-position (uiErrorId has to be 0).
lrAveragePosition: The average position (0% - 100%) of all active blind drives in this group.