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

AVEVA™ Plant SCADA

TrnGetFormat

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the format of a trend tag being plotted by a specified pen.

Syntax

TrnGetFormat(nAN, Pen, Width, DecPlaces)

nAN:

The AN of the chosen trend.

Pen:

The trend pen number:

0 - The pen currently in focus

1...8 - Pen1. . .Pen8

Width:

Variable denoting the width of the format.

DecPlaces:

Variable denoting the number of decimal places in the format.

Return Value

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

TrnGetScale, TrnGetUnits

Example

/* If the trend tag being plotted by Pen1 of the trend at AN20 has
a format of "###.#" */

TrnGetFormat(20,1,Width,DecPlaces);

! Sets Width to 5 and DecPlaces to 1.

See Also

Trend Functions

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