For the complete documentation index, see llms.txt. This page is also available as Markdown.

HeatCurve4P_DN

HeatCurve4P_DN (FB)

FUNCTION_BLOCK HeatCurve4P_DN

Short description

Heating curve with four outdoor temperature points and two curves (night, day).

Representation

Interfaces

Inputs

Name
Data type
Value range
Initial value
Function

rOutTemp

REAL

-50.0 … +50.0 °C

0

Outdoor temperature for calculating the curves

xDay

BOOL

Operating mode (FALSE = night mode / TRUE = day mode)

Outputs

Name
Data type
Value range
Initial value
Function

rSupplyTemp

REAL

0.0 °C

Supply setpoint temperature of the active curve

Setpoints / Parameters

Name
Data type
Value range
Initial value
Function

eManModeN

eManNum

eManNum.Auto

Operating mode for the supply setpoint temperature rSupplyTemp

rManValue

REAL

0.0 °C

Manual value for mode eManNum.Man

rSupplyTempMin

REAL

20.0 °C

Absolute minimum supply setpoint temperature

rSupplyTempMax

REAL

70.0 °C

Absolute maximum supply setpoint temperature

rTo1

REAL

-15.0 °C

Outdoor temperature for point 1

rW1Day

REAL

70.0 °C

Supply setpoint temperature for outdoor temperature point 1 - day curve

rW1Night

REAL

65.0 °C

Supply setpoint temperature for outdoor temperature point 1 - night curve

rTo2

REAL

-5.0 °C

Outdoor temperature for point 2

rW2Day

REAL

60.0 °C

Supply setpoint temperature for outdoor temperature point 2 - day curve

rW2Night

REAL

55.0 °C

Supply setpoint temperature for outdoor temperature point 2 - night curve

rTo3

REAL

5.0 °C

Outdoor temperature for point 3

rW3Day

REAL

50.0 °C

Supply setpoint temperature for outdoor temperature point 3 - day curve

rW3Night

REAL

45.0 °C

Supply setpoint temperature for outdoor temperature point 3 - night curve

rTo4

REAL

15.0 °C

Outdoor temperature for point 4

rW4Day

REAL

40.0 °C

Supply setpoint temperature for outdoor temperature point 4 - day curve

rW4Night

REAL

35.0 °C

Supply setpoint temperature for outdoor temperature point 4 - night curve

rButtonJump

REAL

1.0 °C

Function not yet implemented.

rSupplyTempMaxScale

REAL

90.0 °C

Maximum temperature for scaling the Y-axis (VISU) Slider displayed only at 90°C!

rBorderDistance

REAL

3.0 °C

Edge distance from the right/left edge in degrees Celsius for the X-axis (VISU)

Functional description

The supply setpoint temperature rSupplyTemp is determined depending on the current outdoor temperature rOutTemp and the selected curve (night curve: xDay = FALSE // day curve: xDay = TRUE) is calculated. The supply setpoint temperature *rSupplyTemp* is limited by adjustable absolute minimum (rSupplyTempMin) and maximum values (rSupplyTempMax) are limited. The curves are defined and adjustable by four outdoor temperature points each (separately for the night and day curve). Each point is defined by an outdoor temperature and an assigned supply setpoint temperature. The four outdoor temperature points of a curve are connected by straight lines.

The parameter eManModeN allows switching of the supply setpoint temperature rSupplyTemp from automatic to manual mode and vice versa. In manual mode, the supply setpoint temperature *rSupplyTemp* takes the value of the parameter rManValue.

Visualization

Suitable visualization element from the HVACV Visu Library: HeatCurve4P_DN

Representation

Interfaces visualization element

Name
Data type
Type
Initial value
Function

FB_HeatCurve4P_DN

HeatCurve4P_DN

VAR_IN_OUT

Enter FB instance HVAC.HeatCurve4P_DN here, e.g. PRG.HeatCurve4P_DN

Note: VAR_IN_OUT interfaces must be assigned; VAR_INPUT is optional.

CODESYS

InOut:

Scope
Name
Type
Initial

Input

rOutTemp

REAL

0

Input

xDay

BOOL

Input Const

rBorderDistance

REAL

3

Input Const

rSupplyTempMaxScale

REAL

90

Input Const

rButtonJump

REAL

1

Input Const

rW4Night

REAL

35

Input Const

rW4Day

REAL

40

Input Const

rTo4

REAL

15

Input Const

rW3Night

REAL

45

Input Const

rW3Day

REAL

50

Input Const

rTo3

REAL

5

Input Const

rW2Night

REAL

55

Input Const

rW2Day

REAL

60

Input Const

rTo2

REAL

-5

Input Const

rW1Night

REAL

65

Input Const

rW1Day

REAL

70

Input Const

rTo1

REAL

-15

Input Const

rSupplyTempMax

REAL

70

Input Const

rSupplyTempMin

REAL

20

Input Const

rManValue

REAL

0

Input Const

eManModeN

eManNum

eManNum.Auto

Output

rSupplyTemp

REAL

0

Last updated