TagWriteValue Function

Help Contents


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

Informal Syntax:

TagWriteValue( TagName, Value )

Formal Syntax:

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


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

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

Return Value



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.


For the meaning of terms used in Fernhill SCADA.