FB_BAFBlindDriveKL2532
Function-block for controlling a Blind Drive connected with KL2532 directly out of the PLC-program.
VAR_INPUT
uiId : UINT;
bStartExecution : BOOL;
bStopExecution : BOOL;
bSafetyPositionSet : BOOL;
bSafetyPositionReset : BOOL;
bUp : BOOL;
bDown : BOOL;
bUpSlow : BOOL;
bDownSlow : BOOL;
bStop : BOOL;
bStepUp : BOOL;
bStepDown : BOOL;
bSetPositionAngleDirect : BOOL;
lrSetPositionDirect : LREAL;
lrSetAngleDirect : 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.
bUpSlow: The blind will be slowly driven upwards.
bDownSlow: The blind will be slowly driven downwards.
bStop: Stops the blind.
bStepUp: The blind will be driven upwards for tStepTime.
bStepDown: The blind will be driven downwards for tStepTime.
bSetPositionAngleDirect: The blind drive will be moved to the angle entered under lrSetAngleDirect. 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: 0% means completely opened, 100% completely closed.
lrSetAngleDirect: See bSetPositionAngleDirect.
VAR_OUTPUT
uiErrorId : UINT;
iErrorParameter : INT;
eExecutionState : E_BAF_ExecutionState;
bSafetyPosition : BOOL;
bDriveUp : BOOL;
bDriveDown : BOOL;
lrActualPosition : LREAL;
lrActualPositionMM : LREAL;
uiCounterReversing : UINT;
lrVelocity : LREAL;
byVelocity : BYTE;
uiAmountOfCalibrations : UINT;
bCalibratingReady : BOOL;
eOperatingMode : E_BAF_SuntrackingOperatingMode;
lrLastDrivenAngle : 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 actual position in percentage.
lrActualPositionMM: The actual position in millimetres.
uiCounterReversing: The counter in reversing-mode.
lrVelocity: Actual speed in [mm/s].
byVelocity: Actual speed in [%].
uiAmountOfCalibrations: Number of calibrations.
bCalibratingReady: Axis is calibrated.
eOperatingMode: Actual operating-mode.
lrLastDrivenAngle: The last driven angle.