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

AVEVA™ Plant SCADA

TrnGetDefScale

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the default engineering zero and full scales of a trend tag.

This function is a blocking function. It will block the calling Cicode task until the operation is complete.

Syntax

TrnGetDefScale(Tag, LoScale, HiScale [, sClusterName] )

Tag:

The trend tag enclosed in quotation marks "" (can be prefixed by the name of the cluster that is "ClusterName.Tag").

LoScale:

The engineering zero scale. Must be a Real type variable.

HiScale:

The engineering full scale. Must be a Real type variable.

sClusterName:

The name of the cluster in which the trend tag resides. This is optional if you have one cluster or are resolving the trend via the current cluster context. The argument is enclosed in quotation marks "".

Return Value

0 (zero) if successful, otherwise an error code is returned.

TrnGetScale, TrnInfo

Example

REAL LoScale;

REAL HiScale;

TrnGetDefScale("PV1",LoScale,HiScale,"ClusterXYZ");

/* Returns engineering zero and full scales of the trend tag
"PV1". */

See Also

Trend Functions

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