Caution: This extension is used for extended configuration of the
PmVar object functionality related to writing a new value. This does not cause connection of the
PmVar object with other system components (e.g. alarms, events, trends, communications etc.). Therefore there can be only one such extension in the
PmVar object (the extended functionality is either present or not present).
The order of processing the written value:
- rounding and transforming the written value to desired data type
- testing the written value for quality
- testing the written value for minimum
- testing the written value for maximum
If triggering the
onItemBeforeWrite event is enabled, then the event is triggered for this variable always
closely before writing or before the change of the variable value. Unconsidered enabling for all variables can cause unnecessary utilization of the processor. For example if the object contains 1000 variables and each one has calling enabled then by writing new values into all values of the object can cause calling the
onItemBeforeWrite event 1000 times (each time with another
pEvent.Item parameter value). It is also better (if it is required to react to writing or the change of the variable) to enable the
onItemAfterWrite event instead of
onItemBeforeWrite. Enabling
onItemBeforeWrite is useful only if, for example, you need to test the written value and in a necessity to change it (to filter it). The
pEvent.NewVal property in the
onItemBeforeWrite event is defined for read and write and therefore it is possible in the event to enforce another value than the one that is really written.
If triggering the
onItemAfterWrite event is enabled, then the event is triggered for this variable always
after writing or after change of the variable value. For enabling this event similar remarks are valid for the
onItemBeforeWrite event. Enabling the
onItemAfterWrite is useful for variables that change their value not too ofter and in this case is it suitable to enable calling 'after change'.
Caution: The
onItemBeforeWrite event and the
onItemAfterWrite event
is not triggered if it isn't written into the variable directly, i.e. if the variable is bind to another value.
Format of saving the data extension in the form of a text string:
The content of complete of data extension (all configurators) can be saved in the form of single text string. See
Format of saving the data extension in the form of a text string.
Id={WriteAction; BeforeWrite; AfterWrite; QualityTestEnabled; QualitySubstValue; MinTestEnabled; MinValue; MinSubstValueEnabled; MinSubstValue; MinSubstQualityEnabled; MinSubstQuality; MaxTestEnabled; MaxValue; MaxSubstValueEnabled; MaxSubstValue; MaxSubstQualityEnabled; MaxSubstQuality}
-
MinValue: see the "
Minimum" configurator
-
MaxValue: see the "
Maximum" configurator