Displays a file associated with a tag.
Informal Syntax:
OpenTagFile( TagName, FileType )
Formal Syntax:
OpenTagFile( TagName:=Expression, FileType:=Expression )
Parameter | Type | Description |
---|---|---|
TagName | ANY_STRING | The name of the tag to open the file for. The name can be the full name of the tag or a relative tag name. |
FileType | ANY_STRING |
The type of file to open. The FileType parameter can be one of the following values:
|
The OpenTagFile function displays a Tag File. The exact behavior varies according to the context:
If the OpenTagFile call is made from a Graphic Page Tag you can use a relative tag name for the TagName parameter. A relative tag name is a name relative to the host document. For more information on how relative names are resolved see Tag References.
A program or script will not execute any statements after the OpenTagFile call.
None.
Displays the trend plot 'Storage.TankLevel':
OpenTagFile( "Storage.TankLevel", "Trend" );
To learn where you can use this function.
To learn about calling a function from IEC 61131-3 structured text.
To learn about the different types of expression to use as function parameters.
For the meaning of terms used in Fernhill SCADA.