Promotic
WikipediaLinkedInYoutubeTwitterFacebook

QualitySubstValue - property of the ExtWriteAction object

Description:
Replacement value if the quality is bad.
Syntax:
Variant QualitySubstValue
Note:
Property access for read and write. The preset value of this property is defined in the "Use replacement value" configurator of this object.

If the QualityTestEnabled is enabled then while writing the value into the variable, it is tested for quality (see PmVar.Quality). If the quality is bad then the replacement quality QualitySubstValue is written into the variable. When writing the replacement value, the variable data type is preserved - the replacement value is transformed to such data type.

See also:
Example1:
Examples of obtaining this property in the script.
JavaScriptVBScriptSelect and copy to clipboard

vVal = pMe.Pm("/data/#vars/Temperature/#ext/wact").QualitySubstValue;

//or
vVal = pMe.Pm("/data/#vars/Temperature").Extension("wact").QualitySubstValue;

//or
vVal = pMe.Pm("/data").Item("Temperature").Extension("wact").QualitySubstValue;
Example2:
The example of obtaining this property by Macro expression from another data extension via pVar variable.

History:
Pm9.00.13: Created
PROMOTIC 9.0.13 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice