OPCMakeQuality

<< Click to Display Table of Contents >>

 

OPCMakeQuality

OPCMakeQuality(QualityFlag, [SubStatus], [Limit], [Vendor])

Returns a new OPC Quality value, built using the values passed in the QualityFlag, SubStatus, Limit, and Vendor parameters. This method is available in Links, as well as in scripts. Possible values for each one of the parameters are the following:

QualityFlag: Specifies the quality of the value

0: Bad

1: Uncertain

3: Good

SubStatus: Specifies the substatus of the value (between 0 and 15, check the OPCGetSubStatus method for possible values). If this parameter is omitted, assumes the value 0 (zero)

Limit: Specifies the limit of the value. If this parameter is omitted, assumes the value 0 (zero)

0: Free

1: Low

2: High

3: Constant

Vendor: Specific value of the vendor (between 0 and 255). If this parameter is omitted, assumes the value 0 (zero)

Was this page useful?