FB_BA_BuildingEnergyLevel

Selection of the building energy level based on a schedule (Sched) and a manual mode (EnergLvlMan).
The manual mode (EnergLvlMan) has the following values:
Value | Meaning |
|---|---|
1 | Automatic mode. |
2 | manual selection Protection. |
3 | manual selection Economy. |
4 | manual selection Precomfort. |
5 | manual selection Comfort. |
If automatic mode is selected, the DeMuxEnergLvl function block sets output bQ01. As this output is not connected to the PrioSwi , manual operation on the PrioSwi is disabled and the Sched schedule is active. This can assume the following values:
Value | Meaning |
|---|---|
1 | Protection. |
2 | Economy. |
3 | Precomfort. |
4 | Comfort. |
The currently selected energy level is then displayed via the function block EnergLvlPr and made available via Publisher.
![]() | The initialization of the template takes place within the method FB_Init. |
Syntax
FUNCTION_BLOCK FB_BA_BuildingEnergyLevel EXTENDS FB_BA_View
VAR_INPUT CONSTANT
EnergLvlMan : FB_BA_MV_Op;
EnergLvlPr : FB_BA_MV_Op;
Sched : FB_BA_SchedM;
END_VAR
VAR
DeMuxEnergLvl : FB_BA_DMUX_B08;
DeMuxSched : FB_BA_DMUX_B04;
PrioSwi : FB_BA_PrioSwi_UDI08;
END_VAR
Inputs CONSTANT
Name | Type | Description |
|---|---|---|
EnergLvlMan | Input object Hand for the "BuildingEnergyLevel". | |
EnergLvlPr | Resulting mode. | |
Sched | Schedule object (automatic) for the "BuildingEnergyLevel". |
Variables
Name | Type | Description |
|---|---|---|
DeMuxEnergLvl | Conversion of the multistate value of the manual mode to a binary output. | |
DeMuxSched | Conversion of the multistate value of the schedule to a binary output. | |
PrioSwi | Prioritizing reconversion of the states to a resulting multistate or enumeration value for the building energy level. |
