FB_BA_AC_SpTRm_02
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).
The initialization of the template takes place within the method FB_Init. |
Block diagram
Principle diagram01
Principle diagram02
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
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. |
Inputs CONSTANT
Name | Type | Description |
---|---|---|
SpColX1 | Input of the value for interpolation point X1 of the summer compensation for the cooling setpoint. | |
SpColX2 | Input of the value for interpolation point X2 of the summer compensation for the cooling setpoint. | |
SpColY1 | Input of the value for interpolation point Y1 of the summer compensation for the cooling setpoint. SpColY1 is the base cooling setpoint. | |
SpColY2 | Input of the value for interpolation point Y2 of the summer compensation for the cooling setpoint. | |
SpHtgX1 | Input of the value for interpolation point X1 of the winter compensation for the heating setpoint. | |
SpHtgX2 | Input of the value for interpolation point X2 of the winter compensation for the heating setpoint. | |
SpHtgY1 | Input of the value for interpolation point Y1 of the winter compensation for the heating setpoint. SpHtgY1 is the base heating setpoint. | |
SpHtgY2 | Input of the value for interpolation point Y2 of the winter compensation for the heating setpoint. | |
SpHtg | Analog value object for displaying the calculated room temperature setpoint heating. | |
SpCol | Analog value object for displaying the calculated room temperature setpoint cooling. |
Variables
Name | Type | Description |
---|---|---|
SpColScale | The function block calculates the characteristic cooling setpoint curve (summer compensation) for the current room temperature as a function of the outside temperature. | |
SpHtgScale | The function block calculates the characteristic heating setpoint curve (winter compensation) for the current room temperature as a function of the outside temperature. |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.56 | TF8040 | TwinCAT Building Automation from V5.8.0.0 |