L37_Theory Material SCADA Programming Part I.
L37_Theory Material 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
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.
2 Siemens WinCC
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.
6. Click OK:
o After entering the necessary details and setting your preferences,
click OK to create the new project.
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:
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.
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.
• 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
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
A A’
0 1
A A’
1 0
Expression for other gates
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
Step – 2
Select a #
Select Analog Type , then provide
Expression Name with SL TAG
Slider TAG
Step – 3
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
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
References: