FB_BA_H_HtgCir01
Template is used to program a static heating circuit.
The main components of the template are:
- Flow temperature control.
- Heating curve dependent on outside temperature with night setback.
- Operation mode selection.
- Control of the heating circuit pump.
- Control of an analog control valve.
The initialization of the template takes place within the method FB_Init. |
Syntax
FUNCTION_BLOCK FB_BA_H_HtgCir01 EXTENDS FB_BA_View
VAR_OUTPUT
eOpMod : E_BA_EnergyLvl;
bRls : BOOL;
fSp : REAL;
bPu : BOOL;
fVlv : REAL;
END_VAR
VAR_INPUT CONSTANT
TFl : FB_BA_SensorAnalog_Raw;
TRt : FB_BA_SensorAnalog_Raw;
Vlv : FB_BA_Vlv;
Pu : FB_BA_Pu1st;
Sp : FB_BA_H_HtgCir_Sp;
OpMod : FB_BA_H_OpMod;
HtgLmt : FB_BA_HtgLmt;
TFlCtrl : FB_BA_PID;
PlantLock : FB_BA_PlantLock;
END_VAR
Outputs
Name | Type | Description |
---|---|---|
eOpMod | E_BA_EnergyLvl | Operation mode of the heating circuit. |
bRls | BOOL | The variable indicates that the heating circuit is in operation. |
fSp | REAL | Calculated setpoint of the heating characteristic curve. |
bPu | BOOL | Enable the heating circuit pump. |
fVlv | REAL | Calculated control value for the valve. |
Inputs CONSTANT
Name | Type | Description |
---|---|---|
TFl | The function block represents the flow temperature. | |
TRt | The function block represents the return temperature. | |
Vlv | Control valve | |
Pu | Heating circuit pump | |
Sp | FB_BA_H_HtgCir_Sp | The function block calculates the setpoint of the flow temperature depending on the outside temperature. |
OpMod | FB_BA_H_OpMod | Operation mode selection of the heating circuit (day, night, protection mode). |
HtgLmt | FB_BA_HtgLmt | The function block enables heating operation below a heating limit temperature. |
TFlCtrl | Return temperature sensor | |
PlantLock | When the function block is called, the relevant faults of the event-enabled objects are collected and output at this and lower levels of the heating circuit. These relevant faults trigger the operation mode "Fault". This switches the heating circuit to "Protection" mode. |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.35 | TF8040 | TwinCAT Building Automation from V5.0.0.0 |