TagCommand Function

Help Contents

Introduction

Executes a tag command prompting the user for any data values if the tag command requires parameters.

Informal Syntax:

TagCommand( TagName, CommandName )

Formal Syntax:

TagCommand( TagName:=TagName, CommandName:=CommandName )

Parameters

ParameterTypeDescription
TagNameANY_STRINGThe full name of the tag.
CommandName ANY_STRING The name of the command to execute.
See Tag Commands, in the driver documentation, for the list of possible values for the CommandName parameter.

If the tag command requires one or more parameters, the TagCommand function prompts the user for values using a dialog.

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

Return Value

None.

Examples

Executes the WriteValue tag command, prompting the user for a new value using a dialog.

TagCommand( "Storage.TankLevel", "WriteValue" );

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.