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

AVEVA™ Plant SCADA

TrnClientInfo

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets information about the trend that is being displayed at the AN point.

Syntax

TrnClientInfo(nAN, Pen, Type, Data, Error)

nAN:

The AN point number at which the trend is displayed.

Pen:

The trend pen number:

0 - The pen currently in focus

1...8 - Pen1. . .Pen8

nType:

The type of information you would like returned.

1 - The number of samples configured for the trend. If you select Type 1, the Data argument is ignored.

Data:

For future enhancements; is currently ignored.

Error:

Output Parameter: If the function is successful, the error is set to 0 (zero). If unsuccessful, an error value is set, and a hardware alarm is triggered. Must be a Long type variable.

Return Value

The requested information (as a string) if successful, otherwise a hardware alarm is generated.

TrnInfo

Example

INT nError;

INT nSamples;

INT nTime;

!Gets the number of samples configured for the current pen of the

trend displayed at AN 30.

nSamples = TrnClientInfo(30, 0, 1, "", nError);

IF nError = 0 THEN

nTime = nSamples * 50;

ELSE

nTime = 0;

END

See Also

Trend Functions

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