General Discussions
Reference a Tag in a script

Good Day,

This is very basic but I cannot find any information on it.

How do I pass a Tag Value to a script parameter?

Or

Can someone provide the best way to learn VTSCADA script?

Good Day, This is very basic but I cannot find any information on it. How do I pass a Tag Value to a script parameter? Or Can someone provide the best way to learn VTSCADA script?
edited Feb 24 at 2:13 pm

The link below has a wealth of information... though what are you trying to achive?
https://www.vtscada.com/help/Content/Scripting/API/S_Welcome.htm?tocpath=Scripting%7C_____0

You could reference a tag in script using scope or localscope - there are a few useful links below:
https://www.vtscada.com/help/Content/Scripting/Expressions/UseTagValues.htm
https://www.vtscada.com/help/Content/Pro_Functions/Scope.htm
https://www.vtscada.com/help/Content/Pro_Functions/LocalScope.htm

something like this... just make sure your variables are set to the correct type.

Variable1 = Scope(\VTSDB, "TagName")\Value;
The link below has a wealth of information... though what are you trying to achive? https://www.vtscada.com/help/Content/Scripting/API/S_Welcome.htm?tocpath=Scripting%7C_____0 You could reference a tag in script using scope or localscope - there are a few useful links below: https://www.vtscada.com/help/Content/Scripting/Expressions/UseTagValues.htm https://www.vtscada.com/help/Content/Pro_Functions/Scope.htm https://www.vtscada.com/help/Content/Pro_Functions/LocalScope.htm something like this... just make sure your variables are set to the correct type. ```` Variable1 = Scope(\VTSDB, "TagName")\Value; ````
edited Feb 24 at 3:46 pm
34
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft