Function Block Description - CompSp
When the stage value changes, the CompSp function block helps to reduce friction loss by adapting the pressure setpoint considering the number of the pump demand. The steepness of the adaptation is limited by using a ramp function.
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_stCompInit |
stCompInit |
Structure used for initialization data for the compensation function. 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 and can be adapted by this function, or the pipe fill, or the cavitation protection function. |
i_stStagVal |
stStagVal |
Structure of the stage value provided by the PumpPidStag function block. It indicates the number of pumps that is needed to generate sufficient power to maintain the pressure level. The CompSp function block will increase the pressure setpoint (i_rSp) by the respective correction values (iq_stCompInit.rCorrPump(n)) for the number of pumps requested by the stage value. Refer to the structure data type description. |
The table describes the output variable 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. |