FB_BA_BuildingMode

Selection of building mode based on a schedule (Sched) and manual intervention (OpModMan).
The manual intervention has the following modes (OpModMan):
Value | Meaning |
|---|---|
1 | Automatic mode. |
2 | manual selection Default. |
3 | manual selection Nightwatch. |
4 | manual selection Cleaning. |
If automatic mode is selected, the DeMuxManMod 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 | Default. |
2 | Nightwatch. |
3 | Cleaning. |
The currently selected building mode is then displayed via the function block OpModPr and made available via Publisher.
![]() | The initialization of the template takes place within the method FB_Init. |
Syntax
FUNCTION_BLOCK FB_BA_BuildingMode EXTENDS FB_BA_View
VAR_INPUT CONSTANT
OpModMan : FB_BA_MV_Op;
OpModPr : FB_BA_MV_Op;
Sched : FB_BA_SchedM;
END_VAR
VAR
DeMuxManMod : FB_BA_DMUX_B04;
DeMuxSched : FB_BA_DMUX_B04;
PrioSwi : FB_BA_PrioSwi_UDI08;
END_VAR
Inputs CONSTANT
Name | Type | Description |
|---|---|---|
OpModMan | The Multistate-Value object represents an operating modes switch with the operating modes Auto, Manual-Off and Manual-On. | |
OpModPr | The Multistate-Value object indicates the state of the currently valid plant operation mode. | |
Sched | Schedule object (automatic) for the "BuildingEnergyLevel". |
Variables
Name | Type | Description |
|---|---|---|
DeMuxManMode | Conversion of the multistate value of the manual selection 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. |
