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

Auto-correction

The temperature adjustment 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.

FB_BA_SpRmT 3: Inputs

VAR_INPUT
  fPrtcHtg    : REAL;
  fEcoHtg     : REAL;
  fPreCmfHtg  : REAL;
  fCmfHtg     : REAL;
  fCmfCol     : REAL;
  fPreCmfCol  : REAL;
  fEcoCol     : REAL;
  fPrtcCol    : REAL;
  fShiftHtg   : REAL;
  fShiftCol   : REAL;
  fSumCpsn    : REAL;
  fWrWinCpsn  : REAL;
END_VAR

Name

Type

Description

fPrtcHtg

REAL

Basic setpoint "Protection Heating".

fEcoHtg

REAL

Basic setpoint "Economy Heating".

fPreCmfHtg

REAL

Basic setpoint "PreComfort Heating".

fCmfHtg

REAL

Basic setpoint "Comfort Heating".

fCmfCol

REAL

Basic setpoint "Comfort Cooling".

fPreCmfCol

REAL

Basic setpoint "PreComfort Cooling".

fEcoCo

REAL

Basic setpoint "Economy Cooling".

fPrtcCol

REAL

Basic setpoint "Protection Cooling".

fShiftHtg

REAL

Setpoint value shift "Heating".

fShiftCol

REAL

Setpoint value shift "Cooling".

fSumCpsn

REAL

Value Summer compensation.

fWinCpsn

REAL

Value Winter compensation.

FB_BA_SpRmT 4: Outputs

VAR_OUTPUT
  bValCorr      : BOOL;
  fPrPrtcHtg    : REAL;
  fPrEcoHtg     : REAL;
  fPrPreCmfHtg  : REAL;
  fPrCmfHtg     : REAL;
  fPrCmfCol     : REAL;
  fPrPreCmfCol  : REAL;
  fPrEcoCol     : REAL;
  fPrPrtcCol    : REAL;
  stPrSp        : ST_BA_SpRmT;
END_VAR

Name

Type

Description

bValCorr

BOOL

Autocorrection for the values was performed, see above.

fPrPrtcHtg

REAL

Resulting "Protection Heating" setpoint.

fPrEcoHtg

REAL

Resulting setpoint "Economy Heating".

fPrPreCmfHtg

REAL

Resulting setpoint "PreComfort Heating".

fPrCmfCol

REAL

Resulting setpoint "Comfort Cooling".

fPrPreCmfCol

REAL

Resulting setpoint "PreComfort Cooling".

fPrEcoCol

REAL

Resulting setpoint Economy Cooling.

fPrPrtcCol

REAL

Resulting setpoint "Protection Cooling".

stPrSp

ST_BA_SpRmT

Consolidated output of the resulting values in a structure.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.22

Tc3_BA2 from v5.2.5.0