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