Skip to main content

Types of Script in Intouch Scada

 In this article, I will cover the types of the script used in Wonderware’s InTouch SCADA.

The script is used to run automation facilities like programming of the PLC.

In InTouch SCADA there are different types of the script is used based on application.

Mainly in common, we use the application of script type.

There are seven types of the script available in InTouch SCADA. Let’s understand each one with an example.

Types of Script in Intouch Scada

Open InTouch SCADA. Create a new project.

As you can see in the below window on the left-hand side list of the script.

Double click on each to open and work with each one.

Application script
You can have access to all windows using this script means you can write the script of a different window using this script.

Let’s consider the example of the AND gate. For that, we need two switches and a lamp to check status.

Below you can see the script for AND gate in the application script window. You can see the animation using the runtime window.

If I create a second window with other animation on it, I can write the logic of that in the same script.

Window Script
This works the same as the above-shown example, instead, it used for an only particular window.

If you want to write the logic for another window you have to use another script.

To use the window script, do right-click, and select windows script.
Key Script
This script is linked to a specific key. So, you can use the key of your keyboard to run a logic.

For example, I have a lamp and I want to turn it ON by pressing “a” key.

First, add a lamp then click on “key script” which will open up a window as shown below.

In the “key“ you have the option to choose the key you need to turn ON the lamp.

In “condition type” you have the option to choose action like what happens if you press a key or release a key.

I used this script on key down “lamp=1” and I also want a lamp to turn off on releasing key I used “lamp=0”.

Check the logic by clicking on the runtime window by pressing a key. In our case its “a” key (keyboard letter).
Condition Script
In condition script, the scripts are linked to the discrete tag name.

For example, I have taken one switch and a lamp. Give it to a tag name.

Now, Open a condition script.

In Condition write logic to turn on the lamp as shown in the below window.

In the same way, you can create one more script with the condition “s==0” and lamp=0 which will turn off the lamp.
Data Change Script
In data change, the script is linked to a tag name. It is used to define the execution of the script on a defined interval.

Simply you have to write a day, time or month then it will execute the script accordingly.

Quick function Script
This type of script is used to call other scripts to execute some function.

This script is available on license version, I cannot show you how the script looks and what you have to add in it.

ActiveX event
This type of script is used to execute ActiveX command or control in runtime.

ActiveX event the script is associated with an event.

Following is the window of ActiveX the script.
END




Comments

Popular posts from this blog

PLC Program for Mixing Tank

 Create a ladder diagram for controlling a batch mixing process. Implement a PLC program for mixing tank or Mixing Process using PLC Ladder Logic. PLC Program for Mixing Tank Fig : Mixing tank A tank is used to mix two liquids. The required control circuit operates as follows: A. When the START button is pressed, solenoids A and B energize. This permits the two liquids to begin filling the tank. B. When the tank is filled, the float switch trips. This de-energizes solenoids A and B and starts the motor used to mix the liquids together. C. The motor is permitted to run for 1 minute. After 1 minute has elapsed, the motor turns off and solenoid C energizes to drain the tank. D. When the tank is empty, the float switch de- energizes solenoid C. E. A STOP button can be used to stop the process at any point. F. If the motor becomes overloaded, the action of the entire circuit will stop. G. Once the circuit has been energized, it will continue to operate until it is manually stopped. Solution...

Ferrules and Cross Ferruling

 Ferrules are identification labels provided for every wire terminations in an instrument, equipment, or electrical/instrumentation control panels. These tube-shaped sleeves can be inserted easily on each individual wire in a multi-core cable. In earlier days fixed digits/letters are used as ferrules, but now Instrumentation engineers/technicians prints out desired ferrules by using a ferrule printing machine. Typical Ferrule The numbers/ letters on the ferrules will be given as per the approved electrical hook up or loop diagrams. This helps technicians to easily identify a particular loop/wiring from a series of terminal blocks and to troubleshoot the desired terminal connection. Separate numbers on the ferrules distinguish the positive and negative polarities of wires, thus ensure the polarity protection of the instrument. Cross Ferruling  As a wire is connected on its both ends, it is quite useful to use a cross reference method for wire identification. Unlike normal ferru...

What is Relay? How it Works? Types, Applications, Testing

 We use relays for a wide range of applications such as home automation, cars and bikes (automobiles), industrial applications, DIY Projects, test and measurement equipment, and many more. But what is Relay? How a Relay Works? What are the Applications of Relays? Let us explore more about relays in this guide. What is a Relay? A Relay is a simple electromechanical switch. While we use normal switches to close or open a circuit manually, a Relay is also a switch that connects or disconnects two circuits. But instead of a manual operation, a relay uses an electrical signal to control an electromagnet, which in turn connects or disconnects another circuit. Relays can be of different types like electromechanical, solid state. Electromechanical relays are frequently used. Let us see the internal parts of this relay before knowing about it working. Although many different types of relay were present, their working is same. Every electromechanical relay consists of an consists of an Elect...