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

AVEVA™ Plant SCADA

TrnSetEvent

  • Last UpdatedJul 18, 2023
  • 1 minute read

Sets the start event of a trend pen. This function only operates on an event-based trend.

Syntax

TrnSetEvent(nAN, Pen, Event)

AN:

The AN of the chosen trend.

Pen:

The trend pen number:

0 - The pen currently in focus

1...8 - Pen1. . .Pen8

Event:

The number of the start event.

Return Value

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

TrnGetEvent, TrnGetCluster, TrnGetCursorEvent

Example

! Sets pen1 to event number 123456

TrnSetEvent(20,1,123456);

! Scrolls pen1 back by 100 events

TrnSetEvent(20,1,TrnGetBufEvent(20,1,0)-100);

See Also

Trend Functions

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