FB_BA_BuildingEnergyLevel

FB_BA_BuildingEnergyLevel 1:

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 function block DeMuxEnergLvl 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

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.

FB_BA_BuildingEnergyLevel 2:

The initialization of the template takes place within the method FB_Init.

Illustration

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

FB_BA_BuildingEnergyLevel 3: Inputs CONSTANT

Name

Type

Description

EnergLvlMan

FB_BA_MV_Op

Input object Hand for the "BuildingEnergyLevel".

EnergLvlPr

FB_BA_MV_Op

Resulting mode.

Sched

FB_BA_SchedM

Schedule object (automatic) for the "BuildingEnergyLevel".

Variables

Name

Type

Description

DeMuxEnergLvl

FB_BA_DMUX_B08

Conversion of the multistate value of the manual mode to a binary output.

DeMuxSched

FB_BA_DMUX_B04

Conversion of the multistate value of the schedule to a binary output.

PrioSwi

FB_BA_PrioSwi_UDI08

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