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

AVEVA™ Plant SCADA

TrnGetCursorMSTime

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the time (in milliseconds from the previous midnight) at a trend cursor for a specified pen.

Syntax

TrnGetCursorMSTime(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

The number of milliseconds since the previous midnight. 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.

TrnGetCursorTime

Example

! For the trend at AN20

STRING timeStr;

STRING msecStr;

timeStr = TimeToString(TrnGetCursorTime(20,1),2) + " ";

msecStr = TimeToString(TrnGetCursorMSTime(20,1),6);

DspText(31,0,timeStr + msecStr);

! Returns "23/02/01 10:53:22.717"

See Also

Trend Functions

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