OpenFile Function

Help Contents

Introduction

Displays an external file using the default application for the file.

Syntax

Informal Syntax:

OpenFile( FileName )

Formal Syntax:

OpenFile( FileName:=Expression )

Parameters

ParameterTypeDescription
FileName ANY_STRING The name of the external file to display.

Return Value

None.

Remarks

The OpenFile function opens a file using the default application for the file type.

Examples

  1. Show the PDF file '\\DOCSVR\Files\Diagram.pdf':
    OpenFile( "\\DOCSVR\Files\Diagram.pdf" );

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.

Glossary

For the meaning of terms used in Fernhill SCADA.