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 function block DeMuxManMod sets the output bQ01. Since this output is not connected to the PrioSwi , the manual mode on the PrioSwi is disabled and the schedule Sched 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. |
Illustration
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. |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.35 | TF8040 | TwinCAT Building Automation from V5.0.0.0 |