FB_BA_BuildingSpRmT
In this template the basic setpoints Protection Cooling ... Comfort Cooling and Protection Heating ... Comfort Heating are applied with correction values and made available as building-wide setpoints in a globally declared structure variable stBuildingSpRmT (see global variable list Site).
The correction affects the Precomfort and Comfort values respectively, see FB_BA_SpRmT. These are:
- central setpoint value shift
These two values, ShiftHtg and ShiftCol, are each added to the corresponding values for Precomfort and Comfort. - weather-compensated setpoint value shift (summer or winter compensation)
Using the outside temperature from the weather station data stWeatherStation (see global variable list Site), correction values are calculated here once again, which are added to the values for Precomfort and Comfort.
The calculation is performed using the interpolation function blocks FB_BA_Scale_02, which can be parameterized in the FB_init method.
The initialization of the template takes place within the method FB_Init. |
Illustration
FUNCTION_BLOCK FB_BA_BuildingSpRmT EXTENDS FB_BA_View
VAR_INPUT CONSTANT
SumCpsn : FB_BA_Scale_02;
WinCpsn : FB_BA_Scale_02;
PrtcHtg : FB_BA_AV_Op;
EcoHtg : FB_BA_AV_Op;
PreCmfHtg : FB_BA_AV_Op;
CmfHtg : FB_BA_AV_Op;
PrtcCol : FB_BA_AV_Op;
EcoCol : FB_BA_AV_Op;
PreCmfCol : FB_BA_AV_Op;
CmfCol : FB_BA_AV_Op;
ShiftHtg : FB_BA_AV_Op;
ShiftCol : FB_BA_AV_Op;
END_VAR
VAR
SpRmT : FB_BA_SpRmT;
END_VAR
Inputs CONSTANT
Name | Type | Description |
---|---|---|
SumCpsn | Value Summer compensation [K] | |
WinCpsn | Value Winter compensation [K] | |
PrtcHtg | Basic setpoint Protection Heating [°C] | |
EcoHtg | Basic setpoint Economy Heating [°C] | |
PreCmfHtg | Basic setpoint Precomfort Heating [°C] | |
CmfHtg | Basic setpoint Comfort Heating [°C] | |
PrtcCol | Basic setpoint Protection Cooling [°C] | |
EcoCol | Basic setpoint Economy Cooling [°C] | |
PreCmfCol | Basic setpoint Precomfort Cooling [°C] | |
CmfCol | Basic setpoint Comfort Cooling [°C] | |
ShiftHtg | Setpoint value shift Heating [K] | |
ShitfCol | Setpoint value shift Cooling [K] |
Variables
Name | Type | Description |
---|---|---|
SpRmT | Function block for calculating the applied temperature setpoints. |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.35 | TF8040 | TwinCAT Building Automation from V5.0.0.0 |