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

AVEVA™ Plant SCADA

TrnGetCursorTime

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the time and date at a trend cursor for a specified pen.

Syntax

TrnGetCursorTime(nAN, Pen)

nAN:

The AN where the trend is located.

Pen:

The trend pen number:

0 - The pen currently in focus

1...8 - Pen1. . .Pen8

Return Value

A time/date variable. If the trend cursor is disabled, 0 (zero) is returned. If nAN or Pen is invalid, 0 (zero) is returned and an error code is set.

TrnGetBufTime

Example

! For the trend at AN20

INT time;

time = TrnGetCursorTime(20,1);

DspText(31,0,TimeToStr(time,2));

! Displays the trend cursor date for Pen1.

DspText(32,0,TimeToStr(time,1));

! Displays the trend cursor time for Pen1.

See Also

Trend Functions

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