FB_BA_SunBldPosHMI
The function block FB_BA_SunBldPosHMI is used for position and angle specification via a user interface. With each rising edge at bStart an active positioning telegram with the target position fPos and the slat angle fAngl is output at stSunBld.
The input bRstManFnct is used to reset the output telegram. The telegram is described as follows:
stSunBld.bActv := FALSE;
stSunBld.fPos := 0.0;
stSunBld.fAngl := 0.0;
The input bRstManFnct has a static effect: as long as it is TRUE, the output telegram is set to the values mentioned above.
In addition, the function block output bActv is set to FALSE. This is to indicate whether an active telegram is output.
Inputs
VAR_INPUT
fPos : REAL;
fAngl : REAL;
bStart : BOOL;
bRstManFnct : BOOL;
END_VAR
Name | Type | Description |
---|---|---|
fPos | REAL | Input of the target position |
fAngl | REAL | Input of the slat angle |
bStart | BOOL | A rising edge at this input outputs an active telegram with the entered target position fPos and the slat angle fAngl. |
bRstManFnct | BOOL | A TRUE at this input deletes the telegram at the output (stSunBld.bActv = FALSE, bActv = FALSE, stSunBld.fPos = 0, stSunBld.fAngl = 0) and no new values are passed through. The output bActv then also goes to FALSE. |
Inputs CONSTANT PERSISTENT
VAR_INPUT CONSTANT PERSISTENT
ePrio : E_BA_SunBldPrio := E_BA_SunBldPrio.eManualActuator;
END_VAR
Name | Type | Description |
---|---|---|
ePrio | E_BA_SunBldPrio | Priority of the output telegram. |
Outputs
VAR_OUTPUT
stSunBld : ST_BA_SunBld;
bActv : BOOL;
END_VAR
Name | Type | Description |
---|---|---|
stSunBld | Output telegram, for the position and angle of the lamella. | |
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 |