TagForceValue Function

Help Contents


Forces the value of the tag to a fixed constant value using the ForceValue Tag Command.

Informal Syntax:

TagForceValue( TagName, Value )

Formal Syntax:

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


TagNameANY_STRINGThe full name of the tag.
ValueANY_ELEMENTARYThe new forced value of the tag.

The TagForceValue function sends the ForceValue Tag Command to the database tag.

The user must have the Force privilege for the database tag.

Return Value



Forces the value of tag "Storage.StartPump" to FALSE using the ForceValue Tag Command.

TagForceValue( "Storage.StartPump", FALSE );

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.