FB_BAREnergyLevel

FB_BAREnergyLevel 1:

Application

This function block is for the adaptation of the supply of energy for the use of the building. The type of room utilization is set by the BMS. The longer a building or room is not used, the further the energy level can be lowered. The energy level currently selected by the function block is transferred to the room temperature controller.

Protection:

This operation mode is activated in the case of long absence times e.g. during works holidays or also when a window is open. The energy level is very low and serves only to protect the building from damage caused by frost or overheating.

Economy:

The Economy energy level is used for the economy mode. Economy mode is activated, for example, at night by a timer switch schedule.

PreComfort:

The PreComfort energy level is for an unused room which, however, can be occupied again shortly. The standby mode is frequently activated by a timer schedule.

Comfort:
If the room is occupied, it is in Comfort mode. Comfort mode can be activated by a timer switch schedule or by presence recognition.

VAR_INPUT

eDataSecurityType       : E_HVACDataSecurityType;
bSetDefault             : BOOL;
bEnable                 : BOOL;
bWindow                 : BOOL;
bProtection             : BOOL;
bEconomy                : BOOL;  
bPreComfort             : BOOL;
bComfort                : BOOL;

eDataSecurityType:if eDataSecurityType:= eHVACDataSecurityType_Persistent, the persistent VAR_IN_OUT variables of the function block are stored in the flash of the computer if a value changes. For this to work, the function block FB_HVACPersistentDataHandling must be instanced once in the main program, which is called cyclically. Otherwise the instanced FB is not released internally.

A change of value can be initiated by the building management system, a local operating device or via a write access from TwinCAT. When the computer is restarted, the saved data are automatically read back from the flash into the RAM.

If eDataSecurityType:= eHVACDataSecurityType_Idle the persistently declared variables are not saved in a fail-safe manner.

Notice

A cyclically changing variable must never be linked with the IN_OUT variable of a function block, if eDataSecurityType:= eHVACDataSecurityType_Persistent. It would lead to early wear of the flash memory.

bSetDefault: If the variable is TRUE, the default values of the VAR_IN_OUT variables are adopted.

bEnable: The function block is activated by a TRUE at this input.

bWindow: The window contact is connected to this input. TRUE means that the window is OPEN. FALSE means that the window is CLOSED.

bProtection: Protection mode is activated with the input bProtection. Protection mode is active if the input is TRUE.

bEconomy: economy mode is activated with the input bEconomy. Economy mode is active if the input is TRUE.

bPreComfort: The Pre-comfort level is activated with this input. The Pre-comfort level is active if the input is TRUE.

bComfort: The Comfort level is activated with this input if the room is occupied.

VAR_OUTPUT

eEnergyLevel      : E_BAREnergyLevel;
bStateProtection  : BOOL;
bStateEconomy     : BOOL;
bStatePreComfort  : BOOL;
bStateComfort     : BOOL;

eEnergyLevel: this output contains the current energy level.

bStateProtection: the state of the bProtection input is relayed to the outside in the operation modes eBAREnergyLevel_AUTO_I and eBAREnergyLevel_AUTO_II.

bStateEconomy: the state of the bEconomy input is relayed to the outside in the operation modes eBAREnergyLevel_AUTO_I and eBAREnergyLevel_AUTO_II.

bStatePreComfort: The state of the bPreComfort input is relayed to the outside in the operation modes eBAREnergyLevel_AUTO_I and eBAREnergyLevel_AUTO_II.

bStateComfort: the state of the bComfort input is relayed to the outside in the operation modes eBAREnergyLevel_AUTO_I and eBAREnergyLevel_AUTO_II.

VAR_IN_OUT

eCtrlMode     : E_BAREnergyLevel;

eCtrlMode: Using this ENUM the operation mode can be preselected from the building management level. The variable is saved persistently. Preset to automatic.