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 rRmTAdj input, the value of a resistance potentiometer or a bus-capable field device can be used for the setpoint correction.

FB_BA_RmTAdj 2:

If the set value rRmTAdj is greater than zero, room heating is requested: The Comfort Heating value is increased by rRmTAdj. 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. Analog 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.

VAR_INPUT

rRmTAdj  : REAL;
stSp     : ST_BA_SpRmT;

rRmTAdj: Room temperature offset value.

stSp: Input structure for the setpoints (see ST_BA_SpRmT).

VAR_OUTPUT

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

bValCorr: Autocorrection for the values was performed, see above.

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).

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.7

Tc3_BA from v1.1.6.0