Professional Documents
Culture Documents
Bl3125 - Manual Motion - Ex 2 - v1
Bl3125 - Manual Motion - Ex 2 - v1
Bl3125 - Manual Motion - Ex 2 - v1
1.
2.
3.
PROGRAMME
SECTION /
GROUP
DATE
1.
NAME OF
INSTRUCTOR(S)
2.
1
Rev. Date Author(s) Description
No.
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
3. PROCEDURE
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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
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)
Program
Matrix ID Marks
Lab Title
Students'
Names
Total
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
16