Forces the value of the tag to a fixed constant value using the ForceValue Tag Command.
The TagForceValue 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.
If you want to force the value of a tag from a Program Tag, running on the SCADA Server, use the TagForceValueFB Function Block.
Informal Syntax:
TagForceValue( TagName, Value )
Formal Syntax:
TagForceValue( TagName:=Expression, Value:=Expression )
Parameter | Type | Description |
---|---|---|
TagName | ANY_STRING | The full name of the tag. |
Value | ANY_ELEMENTARY | The 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.
None.
Forces the value of tag "Storage.StartPump" to FALSE using the ForceValue Tag Command.
TagForceValue( "Storage.StartPump", FALSE );
To learn about the ForceValue Tag Command.
TagForceValueFB Function Block
To learn how to force a tag value from a Program Tag.
To learn where you can use this function.
To learn about calling a function from IEC 61131-3 structured text.
To learn about the different types of expression to use as function parameters.
For the meaning of terms used in Fernhill SCADA.