Bl3125 - Manual Motion - Ex 2 - v1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

FAKULTI TEKNOLOGI KEJURUTERAAN

ELEKTRIK DAN ELEKTRONIK


UNIVERSITI TEKNIKAL MALAYSIA MELAKA

SYSTEM INTEGRATION DESIGNING

BEEL3125 SEMESTER 1 SESI 2022/2023

SCADA SOFTWARE EXERCISE 2: MANUAL CONTROL MOTION

NO. STUDENTS' NAME MATRIC. NO.

1.

2.

3.

PROGRAMME

SECTION /
GROUP

DATE

1.
NAME OF
INSTRUCTOR(S)
2.

EXAMINER’S COMMENT(S) TOTAL MARKS

1
Rev. Date Author(s) Description
No.

1.0 30 OCT 1. Zulhairi Othman 1. New online lab


2020

2.0 30 NOV 2. Zulhairi Othman 1. Change lab procedure for


online lab
2021

2
1. INTRODUCTION

In actual SCADA graphics, process motion is simulated based on feedbacks from real sensors
placed in the actual process. However since our SCADA software is not connected to real
applications, the motion is simulated based on analog slider and X-Y locations in the
software.

2. OBJECTIVE

• To simulate horizontal motion in a process using manual slider


• To simulate bottle filling using manual sliders

3. PROCEDURE

Creating New Window

a) Start your Intouch software.


b) On the Application Manager window, double click on the
same application you’ve have created in Lab 1.

c) In the WindowMaker mode, the ‘Window to Open..’ box


will appear. Click OK.
d) Your switches project in Lab 1 would appear. Select File menu, then select New
Window.
e) Click Yes to the copy script option. Then give your new
window a name – for example Lab 2.
f) A new drawing canvas will replace the previous one. Also
in the Window views on the left panes, you can see your
new window listed. You can click on any of the windows
to switch windows.

Bottle Filling With 2 Sliders

a) Actual SCADA software does not directly control process elements such as motors
and pneumatic cylinders. It communicates with process controllers such as PLC or
RTU to monitor and oversee motions and other parameters.
b) In this simulation however, we are going to simulate motions and bottle filling as if
SCADA controls them directly.
c) Figure 3.1 shows the general layout of the bottle filling project we are going to create
in this section.

3
Figure 3.1: General layout of Bottle Filling using 2 Sliders

d) The idea is to move the bottle to the center underneath the dispenser using Slider 1
and then fill up the bottle using Slider 2. The bottle is then moved to the right with
Slider 1 again. All the motions are done manually.

e) In your blank window, let’s place all the components in


Figure 3.1. First click on Wizard (the wizard hat on the
toolbar) and Symbol Factory.
f) Click on the Symbol Factory icon and press OK (or you
can also double click on the icon). Then place the cursor
anywhere on the blank screen.
g) For reference, you can check out this Bottle filling
project link (at about time 0:50) or this project link.

h) A ‘Symbol Factory by …’ window appears. In the


Categories, select ‘Containers’ and then choose a
bottle for your project.
i) Then click OK (or double click on the bottle that you
want).
j) Place the bottle in your blank window such that the
X location is 50 unit. The X location is shown at the
bottom center of your window screen.

4
k) The X and Y location shows the coordinates of the object you highlighted on the
window. They are useful to estimate the distance of movement.

When this object is


selected, the X, Y shows
the location of the object

l) In this project, the bottle is moved 200 units (X axis) to the right horizontally. Then
the bottle will be moved another 200 units (X axis) to the right horizontally – after
filled up.
m) Right click on the bottle and click Duplicate.
n) Place the duplicated bottle at X equals 250 units. This additional bottle is used as a
reference only.
o) Again right click on any bottle and click Duplicate. Place the duplicated bottle at X
equals 450 units. The 2 additional bottles will be deleted later.

This bottle
is located at
(X, Y) =
(250, 250)
(X, Y) =
(450, 250)

p) To add a conveyor under the bottles, click Wizard and then Symbol Factory. Double
click the Symbol Factory icon and place the cursor anywhere in your drawing.
q) Select ‘Conveyors, Misc.’ Then select any horizontal conveyor you like – for mine, I
choose the first conveyor, place it and reshape it under the bottles. There are also
‘Conveyors, Belt’ and ‘Conveyors, Simple’ to choose from.

5
Reshape the conveyor. Then right click the conveyor to Send to Back

r) To add a dispenser on top of the bottle in the middle, click


Wizard and then Symbol Factory. Double click the
Symbol Factory icon and place the cursor anywhere in
your drawing.
s) Select Food and then select the dispenser you want.
t) Place it on top of the middle bottle. You should adjust the
shape of the dispenser to make it look nice.

u) Click on the Wizard again and select Sliders.


v) Double click on the Vertical Sliders icon and
place it in your drawing.
w) Since we need 2 sliders, click on the slider and
right click it.
x) Select Duplicate, and place the duplicated
slider next to the first slider.

2 Vertical Sliders and one


dispenser added.

y) In their current states, the items from Symbol Factory such as the container or
conveyor can only be used as symbols – these items cannot be moved or changed
during Runtime.

6
z) However, to make changes to these items from
Symbol Factory, right click on them (e.g. right click
on the left bottle).
aa) In the menu that appears, select Cell/Symbol. Then
select Break Cell.
bb) You can delete the two bottles in the middle and on
the right (right click the bottles, select Erase. Or
click on the bottles and go to Edit menu and select Erase)
cc) For details on Symbol Factory, refer to this YouTube video.

dd) In this SCADA software, continuous (analog)


animation is carried out by sliders. Double
click on the left slider and the Slider Wizard
window will pop up. We are using
maximum value of
ee) Change the Tagname to ‘Slider1’. slider = 100
ff) Change the Label to Slider1 too and click
OK.
gg) In the Tagname Undefined, click OK.
hh) Then in the Tagname Dictionary window,
click Save and then Close.

ii) Similarly, change the Tagname and Label of


the second slider to Slider2. Your drawing should be similar to the one below:

jj) To move the bottle a total of 400 units to the right,


double click on the bottle. The window on the right
will appear.
kk) Click on Horizontal under the title Location.
ll) Another window with a heading Object type: Symbol
will appear.

mm) Type in Slider1 in the Expression box.

7
The Value Horizontal
refers to Movement
Slider value. is the X axis
Since the distance to
bottle is move.
moving to the When slider
right, the = 100, bottle
value for ‘At moves 400
Left End’ is units to the
set = 0 as right.
reference.

nn) Change the Value in ‘At Right End’ to 100 – referring to our maximum Slider1 value.
oo) Change the ‘To Right’ to 400 – referring to the maximum horizontal movement in X
axis units of the bottle to the right.
pp) For details on Sliders, refer to this YouTube tutorial video or this tutorial.
qq) You can press Runtime at top right corner to simulate the bottle movement. In the
WindowViewer, move the slide in Slider1 up and down manually. Your bottle should
be moving horizontally to the right and left.

rr) Press ‘Development!’ on the top right corner to get back to WindowMaker mode.
ss) Since the dispenser is placed in the middle – at Slider1 value equals 50 – we will stop
our bottle at this Slider1 value.
tt) To create an indicator of the Slider1 value, click
on ‘T’ on the right side toolbar.
uu) Place the cursor on top of the dispenser and type
anything – for example ‘##’. You can enlarge
this text or change the text to your liking using
the toolbar on top (similar to MSWord toolbar).
vv) Double click on the text ‘##’ to get another
window.
ww) Click on Analog in the Value Display menu.
xx) In the window that appears, type ‘Slider1’ in the Expression. Then click OK and OK
again. Try it by clicking on Runtime.

8
Runtime:
Slider1 value and the
value on top of the
dispenser should be
the same.

yy) Click Development to get back to WindowMaker mode.


zz) Now we need to fill up the bottle using Slider2. This tutorial shows how to fill up a
container.

aaa) A lot of video tutorials use a technique in which the bottle’s background color is
changed to the color of filling liquid such as this one at time 13:30.

We will use the other way to fill up the bottle like this tutorial at time 5:30. First click
on the bottle – so that it is highlighted or boxed in the WindowMaker.
bbb) Then click on the Paint icon on the top toolbar.
ccc) Then choose a color for the liquid you want to fill the
bottle with. For example, I have chosen green color.
ddd) Your bottle should change to that color now.

eee) Now double click on the bottle.


fff) In the window that pops up, select Vertical under the Percent Fill
option.

9
ggg) In the Expression, type Slider2.

The Max %
Fill refers
The Value to bottle –
at Max Fill the max
refers to liquid level
Slider2 you want
value when to fill up
the bottle when
is filled up Slider2 is at
to the the Max Fill
maximum. value

hhh) The value at Max Fill is our Slider2 value when bottle has been filled up – set it to
100. The value at Min Fill is our Slider2 value when the bottle is at minimum fill.
iii) At maximum Slider2 value, we want the bottle to be filled up – so set Max % Fill to
100 percent.
jjj) Similarly at minimum Slider2 value, we set the bottle to Min % Fil equal 0 percent.
kkk) Click OK. Then OK again in the other pop-up.
lll) The bottle filling using 2 sliders now is ready for Runtime.
mmm) However, all movements are manually controlled by the 2 sliders – which means that
you have to manually stop at Slider1 value = 50 and then operate Slider2 to fill up the
bottle.
nnn) The disadvantage of this technique is the bottle can be anywhere on the conveyor but
still can be filled up!
ooo) In your lab report show:
(i) your project in Development mode (before pressing Runtime).
(ii) At Runtime before moving any sliders
(iii) At Runtime when Slider1 = 50 and Slider2 = 50 also
(iv) At Runtime when Slider1 = 100 and Slider2 = 100
Bottle Filling With 1 Slider

a) You can watch this video tutorial after time 4:43 for details.
b) In this software, an object can be moved or filled only once using one slider. For
example moving a bottle to the right 200 unit and then stop it to be filled up can be
done once with Slider1.
c) To move the bottle to the right again after being filled up requires another slider or
adding another bottle.
d) So, in this section we are going to use only one slider but 2 bottles – but with some
visibility magic: the first bottle will disappear and the second bottle will appear after
being filled up by the dispenser.
e) So now we are going to create a new window and copy all the objects in the previous
section to this new window.

10
(or you can follow the same procedure in the previous section again starting from (e)
but this time do not add Slider2)
You can
f) First create a new window (File  New Window) and double
give it a name. click on any
g) After your new window is opened, open the previous of these
section window. You could double click in the windows to
open them
Windows view or File  Open Window  double
click on the previous window.
h) In the previous window, select all objects and copy them. (Edit  Select All, Edit 
Copy).
i) Open the new window you have created and paste on the new window.
j) Delete Slider2 (Click on the slider  right click  Erase).
k) Then duplicate the bottle (Click on the bottle  right click  Duplicate)
l) Position the new bottle at X = 250.

You may need to adjust items


to make it look nice.
For example, this dispenser has
shifted position – so it will be
moved back to position X = 250,
on top of the 2nd bottle.

m) The plan is to divide Slider1 scale (0 ~ 100) to 3 stages:


(i) 1st stage: bottle moves to the right 200 unit
(ii) 2nd stage: bottle is filled up (then bottle 1 disappears and bottle 2 appears)
(iii) 3rd stage: bottle moves to the right 200 unit.

n) In this section, the slider scale is assigned as follows:


Slider1 Scale Object Command Value at..
st Move 200 unit to the
0 ~ 40 1 bottle Location: Left: 0
Horizontal Right: 200 right

40 ~ 60 1st bottle Percent Fill: Max %: 100 Fill up bottle 1 until


Vertical Min %: 0 full

11
≤ 60 1st bottle Miscellaneous: Visible State: Bottle 1 is visible
Visibility On only before and at
Slider1 = 60
> 60 2nd bottle Miscellaneous: Visible State: Bottle 2 is visible
Visibility On only after Slider1 =
60
60 ~ 100 2nd bottle Location: Left: 0 Move 200 unit to the
Horizontal Right: 200 right

Let’s start:
o) Double click on the 1st bottle. Click on Horizontal under Location.
p) The Expression remains Slider1.
But the Value: At Left End = 0
and At Right End = 40.
q) For the Horizontal Movement,
To Left = 0, and To Right = 200.
r) Click OK, then OK again.

s) Again double click on the 1st


bottle.
t) Click on Vertical under Percent Fill.

u) Change the Expression to


Slider1.
v) Then change the Value at Max
Fill: 60
w) The Value at Min Fill: 40
x) The Max % Fill remains at 100.
y) Click OK, then OK again.

z) You can try Runtime to see if it


works.

aa) Double click on 1st bottle again. Click on Visibility under Miscellaneous.
bb) Change the Expression to
‘Slider1<=60’.
cc) The Visible State in On.
dd) Click OK then OK again.

ee) Now we work on the 2nd bottle.

12
ff) Double click on the 2nd bottle underneath the dispenser.
gg) Remove the check mark (✔) next to Vertical under Percent Fill.
hh) Then click on Horizontal under Location.

ii) The Expression is still Slider1.


jj) But change the Value At Left End:
60.
kk) At Right End: 100.
ll) And to Right remains 200.
mm) Click OK then OK again.

nn) Double click on the 2nd bottle


again. Click on Visibility under Miscellaneous.
oo) Change the Expression to
‘Slider1>60’.
pp) The Visible State in On.
qq) Click OK then OK again.

rr) Try it on Runtime.

ss) In your lab report show:


(i) your project in Development mode (before pressing Runtime).
(ii) At Runtime before moving any sliders
(iii) At Runtime when Slider1 = 40
(iv) At Runtime when Slider1 = 60
(v) At Runtime when Slider = 100

CHANGING WINDOW SCRIPTS

1. Normally we would like to have all sliders automatically turned off once you exit the
Runtime mode – so that when you go back to Runtime, everything is off.

13
2. To do that, go to WindowMaker mode (press Development in
Runtime).
3. Right click on the empty space in your drawing. A box will
appear.
4. Select Window Scripts…
5. A Window Script for “…” box will appear.
6. To see a tutorial on this, click this Tutorial 32 video.

7. In the Condition Type: select On Show.


8. Type in your switches names equal 0.
For each line, end it with a semi colon
‘;’.
9. For example:
Slider1=0;
Slider2=0;
10. Then press Validate. If there is error
with the coding, the software will show
a dialog box.
11. If no dialog box appear, the coding is
correct. Press OK.
12. Now test your circuit in the Runtime
mode.

Optional:
13. You can add a knob switch as a master switch and Circular Light as in Lab 1.
14. Do similar coding as in Lab 1 so that when the master switch is off, Slider1 will not
work (or turned off).

14
2. APPENDIX (RUBRICS)

Laboratory Assessment Rubrics

Course BEEL3125 SYSTEM INTEGRATION..

Program
Matrix ID Marks
Lab Title

Students'
Names

CLO 1: Evaluate a pneumatic system for specific problem based application.


Assessment Level Assessment Criteria 0 1 2 3 4 Wei Score
ght
Laboratory C1 Ability to recall related 0.00
Report (Remembering) theories
C2 Ability to explain ideas 0.00
(Understanding) and concept
C3 (Applying) Ability to apply theories 0.00
to the experiment (Data
and analysis including
diagrams, graphs, and
calculations)
C4 (Analysing) Ability to interpret 0.00
results and findings of
the experiment
(Convincing
interpretation includes
an evaluation of the
results)

Total

CLO 2: Apply several design techniques in discrete pneumatic system.


Assessment Level Assessment Criteria 0 1 2 3 4 Wei Score
ght
Laboratory P1 (Awareness) Ability to relate between 0.13
Report theory and practical
P2 (Readiness) Ability to identify and 0.13
select appropriate tools
and methods specific to
the tasks
P3 (Attempt) Ability to follow given 0.13
procedures correctly

15
P4 (Basic Ability to modify the 0.13
Proficiency) procedures according to
task given
P5 (Expert Ability to display 0.00
Proficiency) competence in using
tools, equipment and
materials

Total (max 2.0)

CLO 3: Work individually or in groups effectively to perform assignments/tasks given.


Assessment Level Assessment Criteria 0 1 2 3 4 Wei Score
ght
Laboratory A1 (Receiving) Ability to listen and 0.00
Report show interest to the
topic discussed.
A2 (Responding) Actively participate in 0.00
discussion.
A3 (Valuing) Ability to demostrate 0.00
ideas and justify solution
A4 Sistematically organized 0.00
(Organization) roles and responsibility.
Planned resources
accordingly

Total

16

You might also like