Fault Detection In Overhead Transmission Lines – Wonderware Intouch SCADA Project Help

Posted by

Hello, Wonderware InTouch users, i have a very interesting project for all of you. And herein, i will discuss the step by step process to develop this SCADA project which finds fault in the Overhead Transmission Lines. Not only this, it locates position of the fault and the time of occurrence of fault.

In case you want to know more about the Wonderware InTouch environment, please visit this page. To know more about SCADA click here.

Let us have an overview of the project that we will be developing in our further text. What will this project exactly do?

Goal of the Project –

The project title goes like – Fault Detection In Overhead Transmission Lines. And this is what it will exactly do. So, what’s new in it? This might be one of your question right now. Well,the answer is Wonderware InTouch environment. This project would find the fault, its location and the time when fault occurred. No sooner the fault occurs over the line, this application will give you an alarm indicating the probable steps you need to make so as to remove the fault.

Moreover, it will indicate the type of fault, its priority (that operator would set) and  fault analysis. Analysis of the fault and its removal through this application is one feature that makes it indispensable for industries. Also, this application can use as many interfaces as required that is unique interface for each unit of power station. For example, Generation unit, Transmission unit or Distribution unit.

Wonderware InTouch -Fault detection in overhead transmission line
Healthy Condition – Wonderware InTouch SCADA
Wonderware InTouch -Fault detection in overhead transmission line
Fault Condition – Wonderware InTouch SCADA

Now as we are well familiar with the objective of the application, we see how to develop it .

Note – The post is prepared with an assumption that reader is good at using Symbol factory, Wonderware InTouch wizard and has basic knowledge of SCADA programming.

Know more about SCADA programming.

Step-by-Step Guide To Develop the Application –

InTouch WindowMaker is the place inside Wonderware InTouch application which is used to make interfaces. It is called WindowMaker as it provides separate window for each unit in order to control it through various buttons and other tools on the window.

Step 1 – Start Wonderware InTouch -> Create New Application -> Choose path -> Choose File Name

Wonderware InTouch Fault detection in transmission lines


After you have created new file, double click on the file. A new shown window below will open.

Wonderware InTouch Fault detection in transmission lines

Step 2 – File -> New Window -> Window Properties -> OK

After you click new window, a pop window asking you to set properties for your window will appear. You first name the window. You can also set the color, length, breath or other properties as per your wish.

Wonderware InTouch Fault detection in transmission lines

Stretch the window to make it of size that entices you. For this application, i recommend a size that fits your monitor screen (1300 x 550 in my case).

Wonderware InTouch Fault detection in transmission lines

Step 3 – Placing components required

This is one very important step that needs careful planning. Choosing and placing the components – needed for the window – and naming them is a crucial step. This step ought to be pre-planned. The reason being SCADA programming. Every component should have a unique name as each component possesses a unique function. We discuss it later on the post.

Different components that we will use in ‘main‘ window are – Generating unit, step up transformer, various MCCBs, breaker switches, main switch and many more. Each of these components will have a unique name. For example – Generating unit could be named g1, transformer t1, main switch m1 and so on.

Wonderware InTouch Fault detection in transmission lines


In the above picture, i have 5 components viz. generating station, 2 transmission lines, step up transformer and a bus bar. I have used a rectangle to show generating station and a step up transformer from symbol factory is used.

Components required in the main window are shown in the picture below. As i have already developed the application you can simply have a look at the components used in the main window.

Wonderware InTouch -Fault detection in overhead transmission line


The list of components used is (as evident from the picture above) :

  • Generating station – Dark blue rectangular block nos 1
  • Transmission lines – RYB Lines nos 10,
  • Bus Bar – Black Line nos 2
  • MCCB – Green square box nos 7
  • CB – Toggle Switch (from Symbol Factory) nos 4
  • Indicators with CB – Small green square box attached with CB nos 4
  • Control Switch – Toggle switch (from Symbol Factory) nos 1
  • Step Up Transformer – Transformer (from Symbol Factory) nos 1
  • Alarm display – From Wonderware InTouch wizards nos 1
  • Elliptical shapes as indicators with MCCBs – nos 7
  • Rectangular buttons – nos 5 (for Ground fault, RY fault, YB fault, RB fault and reset)
  • Wire arrangements

Step 4 – Naming components

Naming each component, before programming it, is prerequisite. However, only components which change state in certain conditions, are named. For example, wires, MCCBs etc should be named and generating station block or bus bar need not to be named. The former change their state when fault occurs and latter doesn’t. Therefore, we name them first as follows :

  • Transmission lines  named w1-w10 (w1 to w10)
  • MCCB 1-4 named b1-b4, other 3 MCCB a10-a12
  • Main CB named mainswitch1 and other 3 named subswitch1-subswitch3
  • Control switch named a2

Step 4 – Deciding change of state for different components

After naming components, one should know what change of state a particular component will go when a fault occurs. For example, fault in the main switch should change color of MCCB1 to red from green (you can choose any color) at the same time distributing transmission lines should be disconnected (disappear).

See picture below.

Wonderware InTouch -Fault detection in overhead transmission line
Fault Condition

Likewise, you can decide other change of states as per fault conditions.

Wonderware InTouch Fault detection in transmission lines
Fault in MCCB2
Fault in MCCB3

Step 5 – Programming Scripts In Wonderware InTouch

Implementing the change of state of a particular component upon occurrence of some predefined condition requires programming. And for this purpose window scripts feature of Wonderware InTouch software is deployed.

Right click on a particular window and select window scripts. A window pops up.

This window has 3 tabs viz. On Show, While Showing and On Hide. In the On Show window we write the ideal conditions that each component should possess. That is conditions for ideal or normal behavior.

In the While Showing window we write code or conditions for change and subsequent behavior that a particular component should show.

In On Hide window we write scripts for hidden window. That is when window disappears. It is not as important as above two windows although has its significance on other applications. For now, we would focus on previous two windows mentioned.

To know more about SCADA programming visit this page.

Wonderware InTouch Fault detection in transmission lines
On show code for main window

Similarly, we will write code in While Showing window.

Wonderware InTouch Fault detection in transmission lines
While showing window code

To download whole window script click here.

Step 6 – Linking elements with alarm display

The purpose of this application is not only to detect the fault or change of state of the components but also to tell the location and time of occurrence. And for this it is mandatory to link each component with alarm display. Alarm display is an inbuilt feature of Wonderware InTouch application that allow us to analyse different operations on the window.

And luckily, linking components with alarm display is not a laborious task. It is as simple as switching a button on or off.

Wonderware InTouch Fault detection in transmission lines
Linking Main CB with alarm display

To link any component to alarm display click on the component. Double click on tagname then check Log Events box followed by typing a message in On message tab.

You can also set the initial value of the tag in alarm display.

Till now we have discussed all about main window. Similarly, other windows are prepared. In this project/application, i have prepared two windows viz. main  and generator. In generator window, components used in the generation station are included. For example a rotor and stator arrangement, frequency controller, a real time trend and a button to jump to main window.

Wonderware InTouch Fault detection in transmission lines
Generator window
Wonderware InTouch Fault detection in transmission lines
Real Time Power Generation

You can see from above picture that real time trend graph is showing sinusoidal generation of three phase power in the power station at frequency 50Hz (India). If frequency is lowered due to some reasons power generation will stop and a fault will be shown in the alarm display.

Wonderware InTouch Fault detection in transmission lines
Frequency Disturbance – Here i shown frequency Increase

This fault is also recorded in the alarm display.

Wonderware InTouch Fault detection in transmission lines
Alarm display showing frequency fault and its location

Step 7 – Producing Sinusoidal waves in Real Time Trend

Although, Real Time Trend is a powerful feature of Wonderware InTouch at the same time it is a little tricky too. Well, for me this was the hardest part in the development of this project. Although, i scored good in mathematics at my college but i struggled a little in setting the formula to produce these waves. However, it is not very difficult. You only need to set parameters right i.e. frequency, time and phase difference.

Hint : t= 50 sin wt+phase diff. Here is the expression of one pen (out of 3) used in real time trend.

In case, you want to skip programming on your own and develop this project right away you can download whole script of this project from this link. However, this is not encouraged, as writing code on your own will help you more.

In order to have better grasp on this project you can watch this video.

Download this post as PDF

If you liked this post please like and follow us @Facebook.


  1. Great project. I am doing something similiar and am wondering do you have more detail on how you built this system. I am a beginner to scads wonderware.

    1. Thank You Craig.
      We are always here to help you. Although, the post is written in great details but still if you have queries you can directly contact us here. We would be more than happy to help you. Moreover, you can download the PDF attached with the post to grasp the code used in making the project. I hope that script helps you in your project.
      Also, you can share your project with us so that we could provide better assistance to you. All the best.

  2. my college project substation automation and monitoring by using arduino and scada
    how to interface arduino with wonderware intouch ??????
    i tried to interfacing but not complet we required DA server and FS gateway server .

    so plz give suggestion

    1. Farid thank you for writing here. Yes, in order to connect wonderware intouch with Arduino we need to have Arduio OPC Server and Wonderware´s FSGateway DAServer.

      You can try these steps
      1) Open a Yun file from the OPC library in the Arduino IDE and upload it to your Arduino

      2) You need to install FSGateway from the Wonderware DAServer disc. After installation of FSGateway go to System Management Console.

      3) Click configuration on Archestra System Management Console.Then add a new opc object

      4) Then select this newly created opc object and select server name and find the Arduino server. In case Arduino is installed on a different machine you need to select that machine in the “Server Node” box.

      5) Now you need to select opc object ( which would be last in the tree of Archestra System Management Console. From there you can select different items which you want to see on intouch.

      6)Click the save button and activate the FSGateway DAServer by right clicking on it and selecting “Activate Server”

      7)Then you can perform the desired task in wonderware Intouch.

      I hope this helps with the issue you have. I will also be writing a separate post on this in complete details with pictorial steps.Stay tuned 🙂

    1. Hi Akshay,
      Although I will not be able to explain u that in detail due to some reasons I was able to take screenshots of the code that I used in it. Yes, you can try understanding it yourself which I think is easy enough. I have attached two screenshots – one defining the pens and tags and second the scripts for those tag. Try implementing it.

      I will try my best to write a detailed post about this particular thing.


      Ps : you can share ur project with us when that completes. May be it can help others.

      Pic -1 Wonderware Intouch Programming

      Pic 2- Wonderware Intouch Programming

Leave a Reply

Your email address will not be published. Required fields are marked *