Structure Data Type Definitions - AnaIput
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.
NOTE: Select the limits carefully. Any improper values configured here are not detected automatically. They may lead to an interruption of the water flow.
NOTE: Thoroughly test all functions during verification and commissioning.
The stAnaInit structure data type contains the initialization data for the AnaIput function block.
Element of stAnaInit |
Data Type |
Description |
---|---|---|
wRawValLow |
WORD |
Contains the minimum raw value. |
wRawDigHigh |
WORD |
Contains the maximum raw value. |
rPhyValLow |
REAL |
Defines the minimum level that is allowed for the scaled value (floating point number). Range: rPhyValLow ≥ 0.0 |
rPhyValHigh |
REAL |
Defines the maximum level that is allowed for the scaled value (floating point number). Range: rPhyValHigh > rPhyValLow |
The stAnaCtrl structure data type is used to define the limit and control values.
Element of stAnaCtrl |
Data Type |
Description |
---|---|---|
rHiHi |
REAL |
Defines the highest limit for the scaled value. If this limit is reached, the function block indicates a detected alarm. The function block is disabled and the outputs are set to the default value (0 and FALSE). |
rHi |
REAL |
Defines a high limit for the scaled value. If this limit is reached, the library indicates a detected alert. If you do not want to use this alert function, enter a value that is bigger than the value for rHiHi. |
rLo |
REAL |
Defines a low limit for the scaled value. If this limit is reached, the library indicates a detected alert. If you do not want to use this alert function, enter a value that is bigger than the value for rLoLo. |
rLoLo |
REAL |
Defines the lowest limit for the scaled value. If this limit is reached, the function block indicates a detected alarm. The function block is disabled and the outputs are set to the default value (0 and FALSE). |
xLimAct |
BOOL |
When TRUE, the scaled value is limited to the maximum value defined for the parameter rHiHi and to the minimum value defined for the parameter rLoLo. |
tDelAlrm |
TIME |
Defines the time to elapse (in ms) before an alarm is issued indicating that the scaled value is above or below the configured limits. |
The stAnaLim structure data type is used to indicate whether the actual scaled value has exceeded a defined limit.
Element of stAnaLim |
Data Type |
Description |
---|---|---|
xLimAlrmHigh |
BOOL |
When TRUE, indicates that a high alarm has been detected. This means that the scaled value is higher than the value defined for the parameter rHiHi. |
xLimAlrtHigh |
BOOL |
When TRUE, indicates that a high alert has been detected. This means that the scaled value is higher than the value defined for the parameter rHi. |
xLimAlrmLow |
BOOL |
When TRUE, indicates that a low alarm has been detected. This means that the scaled value is lower than the value defined for the parameter rLoLo. |
xLimAlrtLow |
BOOL |
When TRUE, indicates that a low alert has been detected. This means that the scaled value is lower than the value defined for the parameter rLo. |
The stAnaAlrm structure data type is used to indicate which type of alarms has been detected.
Element of stAnaAlrm |
Data Type |
Description |
---|---|---|
xParaErr |
BOOL |
When TRUE, indicates that an error in the configuration has been detected. This means that a parameter for a high limit is assigned a lower value than a parameter for a low limit or vice versa. Or the maximum raw value (wRawDigHigh) is assigned a higher value than 32767. After the detected error has been corrected, a cold start is required. |
xWireBrake |
BOOL |
When TRUE, indicates that a wire break has been detected. This means that the actual raw value is 10% below the value configured for the minimum raw value (wRawValLow). |
xLimAlrm |
BOOL |
When TRUE, indicates that the scaled value is higher or lower than the values defined for stAnaCtrl.rHiHi and stAnaCtrl.rLoLo. |