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

AVEVA™ Plant SCADA

TrnGetPenFocus

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the number of the pen currently in focus.

Syntax

TrnGetPenFocus(nAN)

nAN:

The AN of the chosen trend.

Return Value

The pen currently in focus (between 1 and 8). If nAN is invalid, -1 is returned and an error code is set.

TrnSetPenFocus

Example

! For the trend at AN20

DspText(31,0,TrnGetPenFocus(20));

! Displays the pen currently in focus.

See Also

Trend Functions

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