...
Configuration dialog box of processes consists of several parts (tabs) containing the similar parameters.
General properties
Groups
Archive
Statement
Time parameters
Conditions
Statistics
Filter
Kotva | ||||
---|---|---|---|---|
|
...
Limit | Object state according to relation Value - Limit | ||
Above VHL (object value > VHL) | |||
VHL | |||
Above HL (HL < object value < VHL) | |||
HL | |||
Normal (LL < object value < HL) | |||
LL | |||
Bellow LL (VLL < object value < LL) | |||
VLL | |||
Bellow VLL (object value < VLL) |
...
There are the following options:
- Archive object values - allows to archive values of D2000 system objects. Archiving can be either periodical or on value change.
- Ignore identical - optimization for processing of old values.
- Calculate archived values by statistical function - allows to calculate values of defined object of Historical value by a statistical function.
- Calculate archived values by defined statement - calculates defined object of Historical value type that are defined in the tab Statement. Calculation gives values, that are to be archived.
- Fill archive from script (Value storage) - values can be filled either from an ESL script or manually from the process D2000 HI.
...
Note: To ensure the correct functionality of the feature Publish values for an one-column historical value (structured historical value) the number of rows (columns) of the structured variable defined in the parameter Target object must be the same as the number of rows (columns) of the object defined by the parameter Object to archive.
Target object
The input field is enabled if the option Publish values is checked. It allows you to define an object, that will contains values of the historical value. When archiving a simple historical value, target object must not be defined, but must be defined for one-column historical value and structured historical value - the size of target object must be the same as the size of the object defined by the parameter Object to archive.
Kotvaprepocet_stat_funkciou prepocet_stat_funkciou
CALCULATE ARCHIVED VALUES BY STATISTICAL FUNCTION
prepocet_stat_funkciou | |
prepocet_stat_funkciou |
...
- For a simple HV - the object of Historical value type you are configuring gets the last value (if the parameter Historical value is not defined).
- When archiving an one-column HV - last archived values of individual items are filled into the relevant items of the column of a Structured variable type object defined by the parameter Target object.
- When archiving a structured HV - last archived values of individual items are filled into the relevant items of a Structured variable type object defined by the parameter Target object.
Note: To ensure the correct functionality of the feature Publish values for an one-column HV (structured HV) the number of rows (columns) of the structured variable defined in the parameter Target object must be the same as the number of rows (columns) of the object defined by the parameter Historical value.
Target object
The input field is enabled if the option Publish values is checked. It allows you to define an object, that will contains values of the historical value. When archiving a simple HV, target object may not be defined, but must be defined for one-column HV and structured HV (see the parameter Historical value) - the size of target object must be the same as the size of the object defined by the parameter Historical value.
Kotvaprepocet_zad_vyrazom prepocet_zad_vyrazom
CALCULATE ARCHIVED VALUES BY DEFINED STATEMENT
prepocet_zad_vyrazom | |
prepocet_zad_vyrazom |
The option allows to define a mathematic expression among objects of Historical value type (the tab Statement). The expression can not contain the references to any current values of D2000 system objects. Calculation of the expression provides values to be archived.
For example:
We have got two measurement points - two I/O tags which are archived as the historical values H.Flow1 and H.Flow2. You need to archive the sum of both the flows. You can use two methods:
...
Definition of archive size - see the parameter Publish values. The parameter will appear, if the parameter Publish values is not checked.
...
Definition of an object, that will contain values of the historical value - see the parameter Publish values. The parameter will appear, if the option Publish values is checked.
...
If the option is checked, you must define a period and offset (the tab Time parameters).
Kotva | ||||
---|---|---|---|---|
|
...
Function | Meaning | |
---|---|---|
None | No function. | |
Average * | Arithmetical average of all archive object values. | |
W-Average * | Weighted arithmetical average of all archive object values. | |
Integral | Time integral of historical values. | |
Sum | Sum of archive object values. | |
Maximum | Maximum of archive object values. | |
Minimum | Minimum of archive object values. | |
Count | Number of archive object values. | |
Filter | Applying a filter for value storing into the statistical archive. | |
Increment | Increment between values. Parameter (Compare value) – weight of impulse. The result will be the impulse multiplied by its weight. Weight of 1 will ensure standard behaviour. | |
Delta | Delta between values. Parameter (Compare value) – weight of impulse. The result will be the impulse multiplied by its weight. Weight of 1 will ensure standard behaviour. | |
EcoAvg | Average of the object values within the elapsed time period (Period parameter in Time parameters tab) according the methodology based on flags of individual values entering the statistic. The same purpose is fulfilled by the function %EcoAveR, that is implemented for eval tags. | |
GT Time (>) | The function calculates the time, during which the value of the historical value was greater than the entered constant (Compare value). | |
GE Time (>=) | The function calculates the time, during which the value of the historical value was greater or equal to the entered constant (Compare value). | |
LT Time (<) | The function calculates the time, during which the value of the historical value was lower then the entered constant (Compare value). | |
LE Time (<=) | The function calculates the time, during which the value of the historical value was lower or equal to the entered constant (Compare value). | |
Maximum in time interval | Obsolete - do not use! | |
Minimum in time interval | Obsolete - do not use! | |
Number of local maximums | ||
Number of local minimums | ||
Sum of positive values | Sum of positive values of the historical value. | |
Sum of negative values | Sum of negative values of the historical value. | |
Average of positive values | Arithmetical average of positive values of the historical value. | |
Average of negative values | Arithmetical average of negative values of the historical value. | |
Sum of increments | Sum of increments for given time interval. Parameter (Compare value) – weight of impulse. The result will be the impulse multiplied by its weight. Weight of 1 will ensure standard behaviour. | |
Time slice** | Object value in given time moments. | |
Sample standard deviation | The function calculates the sample standard deviation of all values of the archive object. |
...