FB_BA_SunBldEvt
The function block FB_BA_SunBldEvt is used for position and angle specification at any event. It can be used, for example, in order to drive to a parking position or to drive the blind upward for maintenance.
The function is enabled via the input bEn. If this is the case, the active flag bActv is set in the positioning telegram stSunBld at the output and the values fPos entered at the In-Out variables for the blind height [%] and fAngl for the lamella angle [°] are forwarded 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". The priority function block (e.g. FB_BA_SunBldPrioSwi4) enables a function with lower priority to take over the control by resetting.
Inputs
VAR_INPUT
bEn : BOOL;
fPos : REAL;
fAngl : REAL;
END_VAR
Name | Type | Description |
---|---|---|
bEn | BOOL | 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. |
fPos | REAL | Height position of the blind [%] in case of activation. |
fAngl | REAL | Lamella angle of the blind [°] in case of activation. |
Inputs CONSTANT PERSISTENT
VAR_INPUT CONSTANT PERSISTENT
ePrio : E_BA_SunBldPrio := E_BA_SunBldPrio.eScene1;
END_VAR
Name | Type | Description |
---|---|---|
ePrio | E_BA_SunBldPrio | Priority of the active telegram. |
Outputs
VAR_OUTPUT
stSunBld : ST_BA_SunBld;
bActv : BOOL;
END_VAR
Name | Type | Description |
---|---|---|
stSunBld | Output structure of the blind positions. | |
bActv | BOOL | 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. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.22 | Tc3_BA2 from v5.2.5.0 |