Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

VariableQuality

  • Last UpdatedJul 18, 2023
  • 1 minute read

Extracts the quality from a given variable.

Note: This function is designed to be used within Cicode; using it on graphical pages may result in displaying an error message instead of an expected quality message when either its argument has not good quality or an execution error is set.

Syntax

VariableQuality(Variable)

Variable:

The variable from which the quality will be extracted.

Return Value

The QUALITY of the given variable. If Variable is NULL, it returns quality uncertain (0x40).

Timestamps of uninitialized stack variables, uninitialized code variables and constants are equal to 0 - invalid timestamp, while their qualities are GOOD

QualityCreate ,QualityGetPart, QualityIsGood, QualitySetPart, QualityIsOverrride, QualityIsControlInhibit, QualityToStr

Example

INT codeVariable = 1;
INT
FUNCTION
MyFunction(REAL arg1)
STRING str = "My string";
QUALITY q;
q = VariableQuality(codeVariable); //code variable
q = VariableQuality(arg1); //function argument
q = VariableQuality(str); //stack variable
q = VariableQuality(Tag1); //any tag/local variable
 
RETURN 1;
END




See Also

Quality Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in