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

AVEVA™ Plant SCADA

TrnSetScale

  • Last UpdatedJul 18, 2023
  • 1 minute read

Sets a new scale for a trend pen. In the automatic scaling mode, the zero and full scales are automatically generated.

Syntax

TrnSetScale(nAN, Pen, Percent, Scale)

AN:

The AN where the trend is located. Set to -1 for all trends on the current page.

Pen:

The trend pen number:

-1 - All pens

0 - The pen currently in focus

1...8 - Pen1...Pen8

Percent:

The scale mode:

-2 - Set both zero and full scales to the default scales.

-1 - Place the trend into automatic scale mode.

0 - Set the zero scale.

100 - Set the full scale.

Scale:

The new value of the scale. Scale is ignored if Percent is -2.

Return Value

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

TrnGetScale, TrnEcho, TrnSetScale

Example

! For the trend at AN20

TrnSetScale(20,-1,100,5000.0);

! Sets the full scale of all pens to 5000.0

See Also

Trend Functions

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