Learn how to create logic using Wonderware InTouch SCADA software using the scripting language.
InTouch Scada Scripting
Here I will create a script to turn ON lamp by using all logic gates. To do that so, open InTouch application.
Create a new project and enter an animation environment as shown in the below window.
Go to the wizard as shown in the below window. And add a switch and lights. As we are using six logic gates we will add twelve switches and six lamps.
Add all the objects as shown in the below window. Give tag name as per text. Do read my article on it.
Right-click on the display as shown in the below window. Select “windows script”.
The following scripting window will open. Select condition type. In “on a show” it will always remain starting condition.
In “while showing” option, we have to write a script to operate switch and lamp. Also, select every and enter some time in it.
Here, I have added an initial condition as shown below. It always remains zero.
In “while showing” I have written condition to turn OFF and ON gate, based on the type of logic gate and lamp will turn ON accordingly.
After writing down condition click on “validate” than “convert” and then hit “ok”.
To test the logic click on “runtime” located on the top right of the below.
When switches are OFF NAND, NOR AND XNOR gates will remain ON.
When S1 is ON then OR, NAND, and XOR gate’s lamp will turn ON.
When S2 is ON then OR, NAND, and XOR gate’s lamp will turn ON.
When both S1 and S2 are ON then the lamp of AND, OR and XNOR will turn ON.
Author: Suhel Patel
- Quiz Questions on Motors
- Modifying PLC Programs
- Field instrument to Control Room
- What is SCADA System?
- Siemens Profinet Configuration