FB_BA_Scale_04_Y2_3

FB_BA_Scale_04_Y2_3 1:

The template is a setpoint program for an extract air/supply air cascade with only one room temperature setpoint, including summer and winter compensation.

Setpoint program for supply air temperature control with a supply air temperature setpoint, including summer/winter compensation via a characteristic curve.

The supply air temperature setpoint is determined by the function block Scale depending on the outside temperature.

FB_BA_Scale_04_Y2_3 2:
FB_BA_Scale_04_Y2_3 3:

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

Block diagram

FB_BA_Scale_04_Y2_3 4:

Syntax

FUNCTION_BLOCK FB_BA_Scale_04 EXTENDS FB_BA_View
VAR_INPUT
  fTWth    : REAL;
END_VAR
VAR_OUTPUT
  fY       : REAL;
END_VAR
VAR_INPUT CONSTANT
  X1       : FB_BA_AV_Op;
  X2       : FB_BA_AV_Op;
  X3       : FB_BA_AV_Op;
  X4       : FB_BA_AV_Op;
  Y1       : FB_BA_AV_Op;
  Y2_3     : FB_BA_AV_Op;
  Y4       : FB_BA_AV_Op;
  Y        : FB_BA_AV_Op;
END_VAR
VAR
  Scale    : FB_BA_Chrct04;
END_VAR

FB_BA_Scale_04_Y2_3 5: Inputs

Name

Type

Description

fTWth

REAL

Current value of the outside temperature.

FB_BA_Scale_04_Y2_3 6: Outputs

Name

Type

Description

fY

REAL

Calculated setpoint for the room temperature.

FB_BA_Scale_04_Y2_3 7: Inputs CONSTANT

Name

Type

Description

X1

FB_BA_AV_Op

The AV object is used to specify the value for interpolation point X1.

X2

FB_BA_AV_Op

The AV object is used to specify the value for interpolation point X2.

X3

FB_BA_AV_Op

The AV object is used to specify the value for interpolation point X3.

X4

FB_BA_AV_Op

The AV object is used to specify the value for interpolation point X4.

Y1

FB_BA_AV_Op

The AV object is used to specify the value for interpolation point Y1.

Y2_3

FB_BA_AV_Op

The AV object is used to specify the value for the interpolation points Y2/Y3.

Y4

FB_BA_AV_Op

The AV object is used to specify the value for interpolation point Y4.

Y

FB_BA_AV_Op

Output of the calculated, simple room temperature setpoint. It is output at output fY.

Variables

Name

Type

Description

Scale

FB_BA_Chrct04

The function block represents a linear interpolation with four interpolation points and can be used to generate a characteristic curve. The function block calculates the setpoint curve for the current room temperature, depending on the outside temperature.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.2.1.0