OpenTrendForTag Function

Help Contents


Opens a temporary trend for a tag.

Informal Syntax:

OpenTrendForTag( TagName, PenName )

Formal Syntax:

OpenTrendForTag( TagName:=Expression, PenName:=Expression )


TagName ANY_STRING The full name of the Data Point Tag to open a trend for.
PenName ANY_STRING The name of the trend pen.

The OpenTrendForTag function displays a temporary trend for the specified data tag. The exact behaviour varies according to the context:

A program or script will not execute any statements after the OpenTrendForTag call.

Return value



Displays the trend for the tag 'Storage.TankLevel':

OpenTrendForTag( "Storage.TankLevel", "Tank Level" );

Further Information

Operator Actions

To learn where you can use this function.

Structured Text Function Call

To learn about calling a function from IEC 61131-3 structured text.

IEC 61131-3 Expressions

To learn about the different types of expression to use as function parameters.


For the meaning of terms used in Fernhill SCADA.