FB_BA_SunBldEvt
This function block serves to preset the position and angle for any desired event. It can be used, for example, to drive to a parking position or to drive the blind upward for maintenance.
Functional description
The function is activated via the input bEn. If this is the case, the active flag in the positioning telegram (bActv in stSunBld) at output stSunBld is set, and the values entered for the In/Out variables lrPos for the blind height [%] and lrAngl the louvre angle [°] are passed on in this telegram. If the function is no longer active due to the resetting of bEn, then the active flag in the positioning telegram stSunBld is reset and the positions for height and angle are set to "0". If the priority function block is used, then a function with a lower priority can take over the control.
Inputs/outputs
VAR_INPUT
bEn : BOOL;
lrPos : LREAL;
lrAngl : LREAL;
bEn: a TRUE signal on this input activates the function block and transfers the entered setpoints together with the active flag in the positioning telegram ST_BA_SunBld. A FALSE signal resets the active flag again and sets position and angle to zero.
lrPos: height position of the blind [%] in case of activation
lrAngl: slat angle of the blind [°] in case of activation
VAR_OUTPUT
stSunBld : ST_BA_SunBld;
bActv : BOOL;
bActv: corresponds to the boolean value bActv in the blind telegram ST_BA_SunBld and is solely used to indicate whether the function block sends an active telegram.
stSunBld: output structure of the blind positions, see ST_BA_SunBld
Requirements
Development environment | Target system | required library | required supplement |
---|---|---|---|
TwinCAT 2.11 R3/x64 | PC/CX | TcBA library from V1.0.0 | TS8040 | TwinCAT Building Automation from V1.0.0 |