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.
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.
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
After you have created new file, double click on the file. A new shown window below will open.
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.
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).
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.
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.
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.
Likewise, you can decide other change of states as per fault conditions.
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.
Similarly, we will write code in While Showing window.
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.
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.
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.
This fault is also recorded in the alarm display.
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 t 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.
If you liked this post please like and follow us @Facebook.