Specifications

Chapter 1 - AsconACLib
37
1-3-28 MASS_FLOW
FB Prototype
MASS_FLOW
Input parameters
Output parameters
Description
This function block can perform the compensation of the valid Fluid Flow input
value by temperature or pressure or both. Fluid Flow valid input value means it
has to be inside the range defined by Q_LOW_LIM... Q_HIGH_LIM parameters,
otherwise it will be not computed.
Note: All the pressure values (P_IN, P_REF and P_ABS) MUST BE SPECIFIED as Bar
engineering units so the value must be converted in advance (e.g. in case of kPa [kilo
Pascal] 1 kPa = 0.01 Bar or in case of psi 1 psi = 0.068947573 Bar). The function
block evaluate the temperature values accordingly to the SEL_C_F selection.
Default Values Table
Label Type Description Range
ENABLE BOOL
Command to ENABLE/DISABLE the
FB execution
SEL_C_F BOOL
Temperature engineering unit [°C or °F]
Q_IN REAL Actual Flow input value [e.u.]
-3.4E
-38
... 3.4E
+38
T_IN REAL Actual Temperature value [°C or °F]
-3.4E
-38
... 3.4E
+38
P_IN REAL Actual Pressure value [Bar]
-3.4E
-38
... 3.4E
+38
COMP_TYPE USINT Type of Compensation [num] 0... 3
T_REF REAL
Reference Temperature value
[°C or °F]
-3.4E
-38
... 3.4E
+38
P_REF REAL Reference Pressure value [Bar]
-3.4E
-38
... 3.4E
+38
P_ABS REAL Absolute Pressure value [Bar]
-3.4E
-38
... 3.4E
+38
Q_HIGH_LIM REAL Actual Flow High limit value [Bar]
-3.4E
-38
... 3.4E
+38
Q_LOW_LIM REAL Actual Flow Low limit value [Bar]
-3.4E
-38
... 3.4E
+38
Output Type Description Range
ERROR BOOL Error status
ERR_CODE DWORD Error code [bit mask]
16#00 00 00 00…
16#FF FFFF FF)
Q_COMP REAL Compensate Flow value [e.u.]
-3.4E
-38
... 3.4E
+38
ENABLE
SEL_C_F
Q_IN
T_IN
P_IN
COMP_TYPE
T_REF
P_REF
P_ABS
BOOL
BOOL
REAL
REAL
REAL
USINT
REAL
REAL
REAL
¡
¡
¡
¡
¡
¡
¡
¡
¡
BOOL
DWORD
REAL
ERROR
ERR_CODE
Q_COMP
¡
¡
¡
Input Default Value
ENABLE FALSE
SEL_C_F FALSE = Celsius degrees
Q_IN 10.0
T_IN 100.0