FB_BA_AC_SpTRm_02

FB_BA_AC_SpTRm_02 1:

The template is a setpoint program for an air conditioning system.

It serves as a setpoint program for an extract air/supply air cascade with a separate room temperature setpoint for heating and cooling mode, including summer and winter compensation.

There are two basic room temperature setpoints (SpHtgY1, SpColY1), with an energy-neutral zone between the lower setpoint (heating mode) and the upper setpoint (cooling mode). An outside temperature-dependent offset of the basic room temperature setpoints is realized via two curve functions (summer/winter compensation).

FB_BA_AC_SpTRm_02 2:
FB_BA_AC_SpTRm_02 3:

The initialization of the template takes place within the method FB_Init.

Block diagram

FB_BA_AC_SpTRm_02 4:

Principle diagram01

FB_BA_AC_SpTRm_02 5:

Principle diagram02

FB_BA_AC_SpTRm_02 6:

Syntax

FUNCTION_BLOCK FB_BA_AC_SpTRm_02 EXTENDS FB_BA_View
VAR_INPUT
  fTWth         : REAL;
END_VAR
VAR_OUTPUT
  fSpHtg        : REAL;
  fSpCol        : REAL;
END_VAR
VAR_INPUT CONSTANT
  SpColX1       : FB_BA_AV_Op;
  SpColX2       : FB_BA_AV_Op;
  SpColY1       : FB_BA_AV_Op;
  SpColY2       : FB_BA_AV_Op;

  SpHtgX1       : FB_BA_AV_Op;
  SpHtgX2       : FB_BA_AV_Op;
  SpHtgY1       : FB_BA_AV_Op;
  SpHtgY2       : FB_BA_AV_Op;

  SpHtg         : FB_BA_AV_Op;
  SpCol         : FB_BA_AV_Op;
END_VAR
VAR
  SpColScale    : FB_BA_Chrct02;
  SpHtgScale    : FB_BA_Chrct02;
END_VAR

FB_BA_AC_SpTRm_02 7: Inputs CONSTANT

Name

Type

Description

fTWth

REAL

Current value of the outside temperature.

FB_BA_AC_SpTRm_02 8: Outputs

Name

Type

Description

fSpHtg

REAL

Calculated setpoint of the supply air temperature for the heater.

fSpCol

REAL

Calculated setpoint of the supply air temperature for the cooler.

FB_BA_AC_SpTRm_02 9: Inputs CONSTANT

Name

Type

Description

SpColX1

FB_BA_AV_Op

Input of the value for interpolation point X1 of the summer compensation for the cooling setpoint.

SpColX2

FB_BA_AV_Op

Input of the value for interpolation point X2 of the summer compensation for the cooling setpoint.

SpColY1

FB_BA_AV_Op

Input of the value for interpolation point Y1 of the summer compensation for the cooling setpoint.

SpColY1 is the base cooling setpoint.

SpColY2

FB_BA_AV_Op

Input of the value for interpolation point Y2 of the summer compensation for the cooling setpoint.

SpHtgX1

FB_BA_AV_Op

Input of the value for interpolation point X1 of the winter compensation for the heating setpoint.

SpHtgX2

FB_BA_AV_Op

Input of the value for interpolation point X2 of the winter compensation for the heating setpoint.

SpHtgY1

FB_BA_AV_Op

Input of the value for interpolation point Y1 of the winter compensation for the heating setpoint.

SpHtgY1 is the base heating setpoint.

SpHtgY2

FB_BA_AV_Op

Input of the value for interpolation point Y2 of the winter compensation for the heating setpoint.

SpHtg

FB_BA_AV_Op

Analog value object for displaying the calculated room temperature setpoint heating.

SpCol

FB_BA_AV_Op

Analog value object for displaying the calculated room temperature setpoint cooling.

Variables

Name

Type

Description

SpColScale

FB_BA_Chrct02

The function block calculates the characteristic cooling setpoint curve (summer compensation) for the current room temperature as a function of the outside temperature.

FB_BA_AC_SpTRm_02 10:

SpHtgScale

FB_BA_Chrct02

The function block calculates the characteristic heating setpoint curve (winter compensation) for the current room temperature as a function of the outside temperature.

FB_BA_AC_SpTRm_02 11:

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.56

TF8040 | TwinCAT Building Automation from V5.8.0.0