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?
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|_____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;