Writes a value and quality to a tag using the WriteValueQuality Tag Command.
The TagWriteValueQuality 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 write a value and quality from a Program Tag, running on the SCADA Server, use the TagWriteValueQualityFB Function Block.
Informal Syntax:
TagWriteValueQuality( TagName, Value, Quality )
Formal Syntax:
TagWriteValueQuality( TagName:=Expression, Value:=Expression, Quality:=Expression )
Parameter | Type | Description |
---|---|---|
TagName | ANY_STRING | The full name of the tag. |
Value | ANY | The value to write to the tag. |
Quality | INT | The quality to write to the tag. |
The TagWriteValueQuality Function sends the WriteValueQuality Tag Command to the database tag.
None.
To learn about the WriteValueQuality Tag Command.
TagWriteValueQualityFB Function Block
To learn how to write value and quality to a tag 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.