TagWriteValue Function

Help Contents

Introduction

Writes a value to a tag using the WriteValue Tag Command.

Informal Syntax:

TagWriteValue( TagName, Value )

Formal Syntax:

TagWriteValue( TagName:=Expression, Value:=Expression )

Parameters

ParameterTypeDescription
TagNameANY_STRINGThe full name of the tag.
ValueANYThe value to write to the tag.

The TagWriteValue function sends the WriteValue Tag Command to the specified tag.

Return value

None.

Examples

Sends the WriteValue Tag Command to the tag "Storage.StartPump" with the value TRUE.

TagWriteValue( "Storage.StartPump", TRUE );

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.