This article from InSource shows how to use exponents in Wonderware InTouch scripting.
- Author: Benjamin Davis
- Published: 03/24/2016
- Applies to: Wonderware InTouch
Exponents in InTouch are designated by using ** in a script.
IntTag = 3**4;
3**4 is equivalent to 3 x 3 x 3 x 3 = 81.
RealTag = 9 ** (1/2)
9 ** (1/2) is equivalent to the square root of 9 = 3
You can also use tagnames in your script, such as in the following example.