FB_BA_SpRmT

Formation of room temperature setpoints

FB_BA_SpRmT 1:

Functional description

The function block FB_BA_SpRmT assigns setpoints for cooling and heating operation to each of the energy levels Protection, Economy, PreComfort and Comfort.
The following graphics illustrates the behaviour of the function block; the entered values should be regarded as examples:

FB_BA_SpRmT 2:

The value lrShiftHeating is applied to the Comfort and Precomfort values for the heating mode as central setpoint shift. In addition, winter compensation lrWinCpsn is applied.
Similarly, the following applies for the cooling mode: The value lrShiftCooling is applied to the Comfort and Precomfort values. In addition, the summer compensation value lrSumCpsn is applied.

Auto-correction

The setpoint shift is intended for small corrections of the values. Although it is possible to enter any input values, a heating system will only work in a meaningful manner if the setpoints have ascending values in the following order:

The auto-correction is based on the principle that, starting from the value for Economy Heating, the system checks whether this value is smaller than the next lower parameter, in this case Protection Heating. If this is the case, the value for Economy Heating is adjusted to match the value for Protection Heating. The system then checks whether the value for Precomfort Heating is less than Economy Heating and so on, until the value for Protection Cooling is compared with the value for Economy Cooling. If one or several values were corrected, this is indicated with a TRUE signal at output bValCorr.

Inputs/outputs

VAR_INPUT

lrPrtcHtg   : LREAL;
lrEcoHtg    : LREAL;
lrPreCmfHtg : LREAL;
lrCmfHtg    : LREAL;
lrCmfCol    : LREAL;
lrPreCmfCol : LREAL;
lrEcoCol    : LREAL;
lrPrtcCol   : LREAL;
lrShiftHtg  : LREAL;
lrShiftCol  : LREAL;
lrSumCpsn   : LREAL;
lrWrWinCpsn : LREAL;


bValCorr:
autocorrection: at least one of the resulting setpoints was adjusted such that the values continue to monotonically increase.

lrPrtcHtg : basic Protection Heating setpoint

lrEcoHtg: basic Economy Heating setpoint

lrPreCmfHtg: basic PreComfort Heating setpoint

lrCmfHtg: basic Comfort Heating setpoint

lrCmfCol: basic Comfort Cooling setpoint

lrPreCmfCol: basic PreComfort Cooling setpoint

lrEcoCol: basic Economy Cooling setpoint

lrPrtcCol : basic Protection Cooling setpoint

lrShiftHtg : setpoint value shift heating

lrShiftCol: setpoint value shift cooling

lrSumCpsn: value summer compensation

lrWinCpsn: value winter compensation

VAR_OUTPUT

lrPrPrtcHtg    : LREAL;
lrPrEcoHtg     : LREAL;
lrPrPreCmfHtg  : LREAL;
lrPrCmfHtg     : LREAL;
lrPrPrtcCol    : LREAL;
lrPrEcoCol     : LREAL;
lrPrPreCmfCol  : LREAL;
lrPrCmfCol     : LREAL;
stPrSp         : ST_BA_SpRmT;

lrPrPrtcHtg : resulting Protection Heating setpoint

lrPrEcoHtg: resulting Economy Heating setpoint

lrPrPreCmfHtg: resulting PreComfort Heating setpoint

lrPrCmfHtg: resulting Comfort Heating setpoint

lrPrCmfCol: resulting Comfort Cooling setpoint

lrPrPreCmfCol: resulting PreComfort Cooling setpoint

lrPrEcoCol: resulting Economy Cooling setpoint

lrPrPrtcCol : resulting Protection Cooling setpoint

stPrSp: consolidated output of the resulting values in a structure.

Requirements

Development environment

Target system

required library

required supplement

TwinCAT 2.11 R3/x64

PC/CX

TcBA library from V1.0.0

TS8040 | TwinCAT Building Automation from V1.0.0