TagRun Function

Help Contents

Introduction

Requests an immediate calculation or execution of a tag using the Run Tag Command.

Functions and Function Blocks

The TagRun Function is intended for use in an Operator Action. Operator Actions run in response to user input gestures in the Operator Interface. In an Operator Action, code execution is suspended until the function completes.

To run a tag from a Program Tag, running on the SCADA Server, use the TagRunFB Function Block.

Syntax

Informal Syntax:

TagRun( TagName )

Formal Syntax:

TagRun( TagName:=Expression )

Parameters

ParameterTypeDescription
TagNameANY_STRINGThe full name of the tag.

Return Value

None.

Remarks

The TagRun Function sends the Run Tag Command to the database tag.

Examples

  1. Send the Run Tag Command to the Reports.Custom Report tag:
    TagRun( %"Reports.Custom Report.FullName" );

Further Information

Run Tag Command

To learn about the Run Tag Command.

TagRunFB Function Block

To learn how to trigger the execution of a program tag from a Program Tag.

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.