Function Block Description - CompSpFlow
The CompSpFlow function block helps to maintain a constant pressure even at the highest and/or most distant points of the system. To achieve this, the pressure setpoint (i_rSP) is adapted according to the flow value provided by the flow meter to reduce friction loss.
The table describes the input/output variables of the function block:
Input/Output |
Data Type |
Description |
---|---|---|
iq_stAlrmCtrl |
stAlrmCtrl |
Structure used for alarm handling. Refer to the structure data type description. |
iq_stOpMode |
stOpMode |
Determines the operating modes. If the element xAuto of the structure data type stOpMode is set to TRUE, the function block executes its tasks automatically. With another status of this element, the outputs of this function block are set to their defined fallback (default) states. Refer to the structure data type description. |
iq_stCompFlowInit |
stCompFlowInit |
Structure used for initialization data for the CompSpFlow function block. Refer to the structure data type description. |
The table describes the input variables to the function block:
Input |
Data Type |
Description |
---|---|---|
i_xRele |
BOOL |
Activates (TRUE) or stops (FALSE) the execution of the function block. |
i_rSp |
REAL |
Contains the user-defined pressure setpoint. This constant setpoint is considered during startup (pipe fill function) of the pumping process. It is adjusted by this compensation function and by other functions of this library. Range: 0.0...n |
i_stAna_Flow |
stAna |
Structure for analog values, contains the flow input value and the state of this value. Refer to the structure data type description. |
The table describes the output variables from the function block:
Output |
Data Type |
Description |
---|---|---|
q_stRef_Sp |
stRef |
Contains the adapted pressure setpoint and the state of this value. Refer to the structure data type description. |
q_stCompFlowErr |
stCompFlowErr |
Structure that indicates the alarm and alert states detected by the CompSpFlow function block. Refer to the structure data type description of alarms. |