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

AVEVA™ Plant SCADA

QualitySetPart

  • Last UpdatedJul 18, 2023
  • 1 minute read

Sets a Quality part’s value to the QUALITY variable. This function can only be used to manipulate the quality of Cicode variables. The quality item of a variable tag element (for example, 'Tag1.Field.Q') can only be used by QualityGetPart() as it is read only.

Syntax

QualitySetPart(QUALITY quality, INT part, INT value)

quality:

Specifies the quality variable.

part:

The part to extract:

0 – The General Quality value

1 – Quality Substatus value

2 – The Quality Limit value

3 – The Extended Quality Substatus value

4 – The Tag Status Override flag

5 – The Tag Status Control Inhibit flag

6 – The DataSource error code

7 – The OPC Quality (General + Substatus + Limit)

value:

The new value for the given part.

Return Value

The modified Quality value, or the original value if the given part is not applicable.

QualityGetPart, QualityIsBad, QualityIsControlInhibit, QualityIsGood, QualityIsOverrride, QualityIsUncertain, QualityToStr, QualityCreate

Example

QUALITY q;

INT qualityGeneral;

// insert code here

q = QualitySetPart(q, 0, qualityGeneral);

See Also

Quality Functions

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