FB_BA_H_HtgCir01

FB_BA_H_HtgCir01 1:

Template is used to program a static heating circuit.

The main components of the template are:

FB_BA_H_HtgCir01 2:

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

FB_BA_H_HtgCir01 3: 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.

FB_BA_H_HtgCir01 4: Inputs CONSTANT

Name

Type

Description

TFl

FB_BA_SensorAnalog

The function block represents the flow temperature.

TRt

FB_BA_SensorAnalog

The function block represents the return temperature.

Vlv

FB_BA_Vlv

Control valve

Pu

FB_BA_Pu1st

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

FB_BA_PID

Return temperature sensor

PlantLock

FB_BA_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