Structure Data Type Definitions - CompSpFlow
Structure data types serve as the major input and output data carriers between different function blocks, configuration, and parameterization data.
The following section lists the names of structures (data types) that are used in this function block, followed by a table that describes the elements of structure.
NOTE: For the structure data types that are used from this function block and others, refer to the Common Structure Data Type Definitions chapter.
The stCompFlowInit structure data type contains the initialization data for the CompSpFlow function block.
The stSwcAlrm structure is used to indicate the detected alarm states.
Element of stSwcAlrm |
Data Type |
Description |
---|---|---|
rSpMax |
REAL |
Defines the maximum value allowed for the calculated pressure setpoint. |
siNbPnt |
SINT |
Defines the number of measuring points (stPntn) used (pressure setpoint values together with the respective flow values). At least 2 measuring points are required to use this function. Range: 2...6 |
esiCompTyp |
enumeration SINT |
Defines whether the setpoint values are relative or absolute values. Range: orelative (= 1) oabsolute (= 2) |
stPnt1 |
stPnt |
Structure defining the flow and pressure value for the measuring points. Refer to the structure data type stPnt. |
stPnt2 |
stPnt |
|
stPnt3 |
stPnt |
|
stPnt4 |
stPnt |
|
stPnt5 |
stPnt |
|
stPnt6 |
stPnt |
The stPnt structure data type contains a flow and a pressure value. These values define one measuring point.
Element of stPnt |
Data Type |
Description |
---|---|---|
rX_Flow |
REAL |
Defines the flow value for the measuring point (iq_stCompFlowInit.stPnt(n)). |
rY_Pres |
REAL |
Defines the pressure value for the measuring point. Range: oIf relative: 0...100% oIf absolute: i_rSp <=rY_Pres <=rSpMax |
The stCompFlowErr structure data type is used to indicate alarms or alerts.
Element of stCompFlowErr |
Data Type |
Description |
---|---|---|
stCompFlowAlrm |
stCompFlowAlrm |
Structure data type for detected alarms. |
stCompFlowAlrt |
stCompFlowAlrt |
Structure data type for detected alerts. |
The stCompFlowAlrm structure data type is used to indicate a detected alarm:
Element of stCompFlowAlrm |
Data Type |
Description |
---|---|---|
xNuAlrm |
BOOL |
When TRUE, the value of the parameter defining the number of measuring points (stCompFlowInit.siNbPnt) is not within the allowed range (2...6). |
xPntXValAlrm |
BOOL |
When TRUE, the same flow value has been detected more than once. |
xPntXSeqAlrm |
BOOL |
When TRUE, it has been detected that the flow values in stPnt structure are not monotonically increasing. |
xPntYSeqAlrm |
BOOL |
When TRUE, it has been detected that the pressure values in stPnt structure are not monotonically increasing. |
xPntYHighLimAlrm |
BOOL |
When TRUE, it has been detected that the adjusted pressure setpoint has exceeded the maximum value. This parameter is available if relative values are used and if the Y value of the measuring point is greater than 100.0%. rY_Pres > 100.0% |
xPntYLowLimAlrm |
BOOL |
When TRUE, it has been detected that the adjusted pressure setpoint is below the minimum value. This parameter is available if absolute values are used and if the Y value of the measuring point is less than the pressure setpoint. rY_Pres > pressure setpoint (i_rSp) |
The stCompFlowAlrt structure data type is used to indicate a detected alert.
Element of stCompFlowAlrt |
Data Type |
Description |
---|---|---|
xCalSpLimMaxAlrt |
BOOL |
When TRUE, it has been detected that the adjusted setpoint has exceeded the limit. Adjusted setpoint > value defined for stCompFlowInit.rSpMax. |
xCalSpLimMinAlrt |
BOOL |
When TRUE, it has been detected that the adjusted setpoint is below the setpoint value. Adjusted setpoint < pressure setpoint (i_rSP). |