FB_BA_RmTAdj

FB_BA_RmTAdj 1:

The function block FB_BA_RmTAdj is used for user adjustment of the room temperature setpoint. It shifts the setpoints at the input of a function block depending on an offset rRmTAdj, as shown in the following diagram. At the input fRmTAdj, the value of a resistance potentiometer or a bus-compatible field device, for example, can be used for the setpoint correction.

FB_BA_RmTAdj 2:

If the set value fRmTAdj is greater than zero, room temperature heating is desired: The Comfort Heating value is raised by the value fRmTAdj. At the same time, the values for Comfort Cooling and PreComfort Cooling are increased. If the value rRmTAdj is less than zero, a lower room temperature is requested. Analogous to the heating case, the values for Comfort Cooling, Comfort Heating and PreComfort Heating are now reduced by the value rRmTAdj.

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_RmTAdj 3: Inputs

VAR_INPUT
  fRmTAdj   : REAL;
  stSp      : ST_BA_SpRmT;
END_VAR

Name

Type

Description

fRmTAdj

REAL

Room temperature offset value.

stSp

ST_BA_SpRmT

Input structure for the setpoints.

FB_BA_RmTAdj 4: Outputs

VAR_OUTPUT
  bValCorr      : BOOL;
  fPrPrtcHtg    : REAL;
  fPrEcoHtg     : REAL;
  fPrPreCmfHtg  : REAL;
  fPrCmfHtg     : REAL;
  fPrPrtcCol    : REAL;
  fPrEcoCol     : REAL;
  fPrPreCmfCol  : REAL;
  fPrCmfCol     : 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