FB_BA_SpRmT

FB_BA_SpRmT 1:

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 behavior of the function block; the entered values should be regarded as examples:

FB_BA_SpRmT 2:

The parameter rShiftHtg is applied to the Comfort and Precomfort values for the heating mode as central setpoint shift. In addition, winter compensation rWinCpsn is applied.
Similarly, the following applies for the cooling mode: The parameter rShiftCol is applied to the Comfort and Precomfort values. In addition, the summer compensation value rSumCpsn 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:

Auto-correction works according to the following principle: Starting with the value Economy Heating, the system checks whether this value is smaller than the lower value of 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.

VAR_INPUT

rSumCpsn   : REAL;
rWrWinCpsn : REAL;

rSumCpsn: Summer compensation value

rWinCpsn: Winter compensation value

VAR_OUTPUT

bValCorr      : BOOL;
rPrPrtcHtg    : REAL;
rPrEcoHtg     : REAL;
rPrPreCmfHtg  : REAL;
rPrCmfHtg     : REAL;
rPrCmfCol     : REAL;
rPrPreCmfCol  : REAL;
rPrEcoCol     : REAL;
rPrPrtcCol    : REAL;
stPrSp        : ST_BA_SpRmT;

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

rPrPrtcHtg: Resulting Protection Heating setpoint.

rPrEcoHtg: Resulting Economy Heating setpoint.

rPrPreCmfHtg: Resulting PreComfort Heating setpoint.

rPrCmfHtg: Resulting Comfort Heating setpoint.

rPrCmfCol: Resulting Comfort Cooling setpoint.

rPrPreCmfCol: Resulting PreComfort Cooling setpoint.

rPrEcoCol: Resulting Economy Cooling setpoint.

rPrPrtcCol: Resulting Protection Cooling setpoint.

stPrSp: Consolidated output of the resulting values in a structure (see ST_BA_SpRmT).

VAR_INPUT_CONSTANT_PERSISTENT (Parameter)

rShiftCol  : REAL := 0;
rShiftHtg  : REAL := 0;
rPrtcCol   : REAL := 35;
rEcoCol    : REAL := 28;
rPreCmfCol : REAL := 25;
rCmfCol    : REAL := 23;
rCmfHtg    : REAL := 21;
rPreCmfHtg : REAL := 18;
rEcoHtg    : REAL := 14;
rPrtcHtg   : REAL := 6;

rShiftCol: Cooling setpoint value shift.

rShiftHtg: Heating setpoint value shift.

rPrtcCol: Basic Protection Cooling setpoint.

rEcoCol: Basic Economy Cooling setpoint.

rPreCmfCol: Basic PreComfort Cooling setpoint.

rCmfCol: Basic Comfort Cooling setpoint.

rCmfHtg: Basic Comfort Heating setpoint.

rPreCmfHtg: Basic PreComfort Heating setpoint.

rEcoHtg: Basic Economy Heating setpoint.

rPrtcHtg: Basic Protection Heating setpoint.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.7

Tc3_BA from v1.1.6.0