Executes a tag command prompting the user for any data values if the tag command requires parameters.
Informal Syntax:
TagCommand( TagName, CommandName )
Formal Syntax:
TagCommand( TagName:=TagName, CommandName:=CommandName )
Parameter | Type | Description |
---|---|---|
TagName | ANY_STRING | The full name of the tag. |
CommandName | ANY_STRING |
The name of the command to execute. See Tag Commands, in the driver documentation, for the list of possible values for the CommandName parameter. |
If the tag command requires one or more parameters, the TagCommand function prompts the user for values using a dialog.
A program or script will not execute any statements after the TagCommand call.
None.
Executes the WriteValue Tag Command, prompting the user for a new value using a dialog.
TagCommand( "Storage.TankLevel", "WriteValue" );
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.