FB_BA_V_dP_kFactor

FB_BA_V_dP_kFactor 1:

The template is used to determine the volume flow by means of differential pressure and k-factor.

FB_BA_V_dP_kFactor 2:

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

Syntax

FUNCTION_BLOCK FB_BA_V_dP_kFactor
VAR_INPUT
  {attribute 'parameterUnit':='Pa'}
  f_dP                   : REAL;
END_VAR
VAR_OUTPUT
  {attribute 'parameterUnit':='m³/h'}
    fV                   : REAL;
END_VAR
VAR_INPUT CONSTANT PERSISTENT
  {attribute 'parameterCategory':='Unit'}
  eConversion_kFactor    : E_BA_Conversion_kFactor := E_BA_Conversion_kFactor.e_Pa; 
  {attribute 'parameterCategory':='Config'}
  fK                     : REAL := 381;
END_VAR
VAR
    fConversionF         : REAL;
END_VAR
VAR CONSTANT
    f_Pa                 : REAL := 1;
    f_hPa                : REAL := 0.1;
    f_mbar               : REAL := 0.1;
    f_mm_HG              : REAL := 0.086613;
    f_in_HG              : REAL := 0.017185;
    f_mm_WS              : REAL := 0.31933;
    f_psi                : REAL := 0.012043;
    f_inches_H2O         : REAL := 0.063361;
END_VAR

FB_BA_V_dP_kFactor 3: Inputs

Name

Type

Description

f_dP

REAL

Detection of the differential pressure [Pa].

FB_BA_V_dP_kFactor 4: Outputs

Name

Type

Description

fV

REAL

Output of the calculated volume flow [m³/h].

FB_BA_V_dP_kFactor 5: Inputs CONSTANT PERSISTENT

Name

Type

Description

eConversion_kFactor

E_BA_Conversion_kFactor

Conversion factor for the unit of the k-factor.

fK

REAL

k-factor of the fan nozzle vendor (Venturi principle).

Variables

Name

Type

Description

fConversionF

REAL

Indicates which conversion factor has been selected by the enumeration variable eConversion_kFactor and is used to calculate the volume flow rate.

Variables

Name

Type

Description

f_Pa

REAL

Conversion factor for pressure [Pa].

f_hPa

REAL

Conversion factor for pressure [hPa].

f_mbar

REAL

Conversion factor for pressure [mbar].

f_mm_HG

REAL

Conversion factor for the unit millimeter mercury column [mmHG, Torr].

f_in_HG

REAL

Conversion factor for the unit inch of mercury [inHG].

f_mm_WS

REAL

Conversion factor for the unit millimeter water column [mmWS, mmH2O].

f_psi

REAL

Conversion factor for pressure [psi].

f_inchesn_H2O

REAL

Conversion factor for the unit inch water column [inH2O].

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0