0% found this document useful (0 votes)
9 views25 pages

L37_Theory Material SCADA Programming Part I.

The lecture on SCADA Programming part I focuses on basic programming techniques for switches, lamps, logic gates, and movement programs. It introduces various SCADA platforms like Wonderware InTouch, Siemens WinCC, and Ignition, detailing their features and project creation steps. Students will learn to customize project windows, configure tags, and implement logic gates and movement functionalities using SCADA tools.

Uploaded by

Naveen Shankar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views25 pages

L37_Theory Material SCADA Programming Part I.

The lecture on SCADA Programming part I focuses on basic programming techniques for switches, lamps, logic gates, and movement programs. It introduces various SCADA platforms like Wonderware InTouch, Siemens WinCC, and Ignition, detailing their features and project creation steps. Students will learn to customize project windows, configure tags, and implement logic gates and movement functionalities using SCADA tools.

Uploaded by

Naveen Shankar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

Course Name: Industrial Automation and Drives

Week No.: 12 Lecture No: 37


Topic Name: SCADA Programming part I

Objectives:
 Students will learn basic SCADA programming for switch and lamp.
 Students will learn basic SCADA programming for logic gates.
 Students will learn basic SCADA programming for vertical and
horizontal movement program.

Lecture Content:

SCADA Programming

SCADA Programming Environment and Tools

Several SCADA platforms provide programming environments and tools to


create control systems. Each has its own set of features for building HMIs,
creating control logic, and managing data acquisition.

1 Wonderware InTouch

One of the most widely used SCADA platforms, Wonderware offers powerful
development tools for creating rich HMIs and integrating with various
automation systems.

 HMI Development: Easy drag-and-drop interface to create intuitive


dashboards and process control screens.
 Scripting: Uses VBScript for automation and control functions.

2 Siemens WinCC

A part of the Siemens Totally Integrated Automation (TIA) Portal, WinCC is


known for its robust integration with Siemens PLCs.

 Graphics Designer: Allows users to create dynamic graphical interfaces.


 Tag Management: Organizes process data and variables, allowing easy
access to real-time and historical information.

3 Ignition by Inductive Automation

Ignition is a newer, web-based SCADA platform known for its flexibility and
scalability.
 Unlimited Tags and Clients: Allows for larger-scale SCADA systems
without per-tag or per-client licensing fees.
 Python Scripting: Provides advanced functionality and easy integration
with IT systems.

Wonderware InTouch SCADA


For learning SCADA programming, we are using Wonderware InTouch SCADA,
here‟s how to get started with your project after installation:

Steps to Create a New Project in Wonderware InTouch SCADA:

1. Open Wonderware InTouch:


o Launch the InTouch WindowMaker application. This is the
development environment where you can design your SCADA
project.

2. Create a New Project:


o Once the application opens, you‟ll be prompted to either open an
existing project or create a new one.
o Choose the option to Create a New Application.

3. Name Your Project:


o A dialog box will appear asking you to enter details about the new
project.
o In the field provided, enter the desired name for your project (as
shown in the figure you referenced).
o You can also define the location where the project will be stored on
your system.

4. Select Project Type:


o Choose the type of project. For basic SCADA programming, select
the default option, which is WindowViewer (used for runtime
operations) and WindowMaker (used for development).

5. Set Resolution and Application Style:


o Next, you can choose the screen resolution and other layout details
for your project windows (either fullscreen or windowed).

6. Click OK:
o After entering the necessary details and setting your preferences,
click OK to create the new project.

Starting the Design:

 Once your project is created, the WindowMaker development environment


will open, where you can start designing windows, configuring tags,
alarms, and setting up data acquisition from PLCs.
Example to understand the software –

New window name = example 1


Comment – Industrial automation and drive

In Wonderware InTouch SCADA, while creating your project window, you can
customize various aspects like window color, comments, window type, frame
type, and dimensions. Here‟s how you can do it after setting up the project:
Customizing the Window in Wonderware InTouch:

1. Create or Open a New Window:

o After creating your project and opening the WindowMaker


environment, you can either select File → New Window or click on
the New Window icon in the toolbar.

2. Set the Window Color:


o In the window properties, you‟ll find a section labeled Background
Color.
o Click on the color selection box to choose your desired background
color for the window. This helps to differentiate windows or give a
more appealing visual style.

3. Add Comments:
o You can add comments to the window for documentation purposes,
making it easier to track changes or provide additional information
for other users.
o To add comments, locate the Comments field in the window
properties. Write any notes or descriptions about the window‟s
function, design, or purpose. Comments are useful for maintenance
and future development.

4. Choose the Window Type:


o Wonderware allows you to define the type of window you want to
create. Common types include:
 Main: Used as the primary screen for your SCADA
application.
 Popup: A smaller, secondary window that appears on top of
the main window.
 Overlay: A floating window that can display information while
still showing parts of the main window underneath.
o You can choose the window type by selecting it in the Window Type
dropdown menu.
5. Select the Frame Type:
o You can choose the Frame Type, which affects the borders and look
of your window.
 Frameless: Removes the window borders for a cleaner look.
 With Title Bar: Displays the window‟s title and provides
standard frame controls like minimize/maximize.
o These settings are available in the window properties under the
Frame Type option.

6. Define Window Dimensions:


o You can set the dimensions (width and height) of the window
manually by entering the values in the window properties.
o In the Size section of the window properties, input the width and
height in pixels according to the desired layout for your screen.
o Alternatively, you can adjust the window size by dragging the
borders of the window in the design area.

7. Save the Window:


o After configuring these settings, click OK or Apply to save your
changes.
After that we got development window or development environment

Open wizards by clicking this icon

Wizards section consist all types of symbols as seen in the figure


Select 'Switch,' and you'll see different types of switch options.

Choose the first one, 'Fixture Switch.'

This switch will then appear in your development window.


Select „Lights' and you'll see different types of lights options. Choose the circular
light.'
This switch and light will then appear in your development window.

In SCADA, instead of physical wiring, we connect our devices using tags.

To provide tag click on switch we got this type of window then after providing
tag name (SW) Tagname dictionary will open
As you can see the tag name sw show, now the very important step selects Type
of TAG just clicking the type option in Tagname dictionary window all the type
of Tag option will appear like this
14 types TAG option will come they are –
1. Memory Discrete
2. I/O Discrete
3. Indirect Discrete
4. Memory Integer
5. I/O Integer
6. Memory Real
7. I/O Real
8. Indirect Analog
9. Memory Message
10. I/O Message
11. Indirect Message
12. Group Var
13. Hist Trend
14. Tag ID

• Types of tags are mainly Discrete, Integer, Real and Message type,
separated by memory and I/O.

Discrete - only two state ON or OFF , 0 OR 1 , True or False type .


Integer – Where we have range
Real – for fraction value like 12.252
Message – when char + value both are there like Mess123

• To program in software, we use memory discrete otherwise for operation


with I/Os then we use I/O discrete.

• After completing this taging process for switch, select the light and light
Wizard will open
In the expression, assign the switch tag name as SW. This will allow us to
observe the operation of the switch in the form of a light indicator.

At the same time select the color like you see for 0,false,off RED and 1 ,True
,ON Green .

After completing all the settings, click on 'Text' and label the components as
'Switch' and 'Light„

To monitor the status of both the switch and light, add a '#' for both then
clicking the # properties windows will open as you see in figure
To display the value, select value select and under this Discrete then type of
window will appear, in this window we will provide the same name and massage
for ON and OFF condition

After all setting click Runtime


We will see the output window

Case 1 –

Case 2 –
SCADA program for Logic gates

1. AND gate - Repeat the same procedure for switch and light output , only
difference in light Wizard expression section provide

Expression = A AND B

A B A.B
0 0 0

A B A.B
0 1 0

A B A.B
1 0 0

A B A.B
1 1 1
2. OR gate - Repeat the same procedure for switch and light output, only
difference in light Wizard expression section provide

OR gate - Expression = A OR B

A B A.B
0 0 0

A B A.B
0 1 1

A B A.B
1 0 1

A B A.B
1 1 1

3. NOT gate - Expression = NOT A

A A’
0 1

A A’
1 0
Expression for other gates

NAND gate - Expression = NOT (A AND B)


NOR gate - Expression = NOT (A OR B)

XOR gate – A. B‟ + A‟. B

Expression = A AND NOT B OR NOT A AND B

XNOR gate – A. B + A‟. B‟

Expression = A AND B OR NOT A AND NOT B


OR
Expression = NOT(A AND NOT B OR NOT A AND B)

Example 2: To Move any Object in horizontal OR X direction

Suppose we have one red ball and with the slider value changes 0 to 100 my
ball will move from left to right A to B.

Step – 1

Select a slider – Slider Wizerd window will open

Step – 2

Select a #
Select Analog Type , then provide
Expression Name with SL TAG
Slider TAG
Step – 3

Select Ball at position A value of X = 300 Y =150

Select Ball at position B value of X = 520 Y= 150


Step – 4

Select Ball again this type of window will open then select location then
horizontal option

After selecting horizontal option this type of window will open where we provide
Expression
Expression = SL
Represent slider value and in Values left end 0, right end = 100

Horizontal Movement
To left = 0 To Right = 220, since red ball moves 300 to 520 in X direction so 520
– 300= 220, as shown in figure

Step – 5

Change mode from development to run time and move the slider, # shows
analog slider value and same time my ball also move from A to B

To Move any Object in vertical OR Y direction


Repeat the same procedure the only difference is Select the ball then selects
vertical position then provide desired value as show in figure

At Top = 100 Up = 160


At Bottom = 0 Down = 0
160 is difference between previous y position to desired Y position

To Move any Object in horizontal as well as vertical direction - as show in figure


A to B To C

Repeat the same procedure the only difference is vertical position value and
horizontal position value
Horizontal position

Vertical position
SL = 0 to 50
Ball Move A to B

SL = 50
Ball Reached to B

SL = 50 to 100
Ball Move B to C

SL = 100
Ball Reached to C
Summary

In our 37th lecture on “SCADA Programming part I” we covered:


 Basic SCADA programming for switch and lamp.
 Basic SCADA programming for logic gates.
 Basic SCADA programming for vertical and horizontal movement
program.

References:

• "Automation and Control Systems Basics: Industrial Control, Instrumentation and


Automation Techniques" by Jon Stenerson, 2nd Edition, Prentice Hall, 2004

• " Fundamentals of Industrial Control: Practical Guides for Programmable Logic


Controllers (PLC), SCADA, DCS, & Process Automation" by Genick Bar-Meir,
independently published, 2018.

• " Industrial Automation with SCADA: Concepts, Programming and Applications" by K


S Manoj, New Age International Publishers, 2020.

You might also like