Sunteți pe pagina 1din 5

Philadelphia University Student Name:

Faculty of Engineering Student Number:

Second Exam, First Semester: 2008/2009


Computer Engineering Department
Course Title: PLCs Date: 24/11/2008
Course No: 640475/640573 Time: 1 hour
Lecturer: Dr. Mohammed Bani Younis No. of pages: 2

Question 1: (8 marks)

Given a Drilling Machine with its Conveyor in the Figure shown below.

Expected behavior of the Machine:


At the beginning no working Piece (WP) is available on the machine; the
drilling machine is in the upper position. If a WP which has to be processed
in on the Conveyor (Sensor E2.4) the band runs on (A 4.0) and the WP is
moved until reaches the working position of the drilling machine (E2.1).
After that the driller of the drilling machine goes on (A 4.5) and it
concurrently goes down toward the WP (A 4.3) till it reaches the lower limit
(E 0.5). It stays there drilling on the WP till 2 Sec and then it goes again up
to the upper limit (E 0.4) while also the driller is still running. Finally the
conveyor goes on and gives the WP to the neighboring working machine.
After the taking over of the neighboring machine (E 2.2) the plant goes
again in the initial position.
Philadelphia University Student Name:
Faculty of Engineering Student Number:
List of inputs and outputs

Signal Meaning Signal Meaning


E 0.4 Drilling machine is idle A 4.0 Conveyor is on
E 0.5 Drill is in lower limit A 4.3 Drill is going down
E 2.1 WP in working position A 4.4 Drill is going up
E 2.4 WP is on the beginning position A 4.5 Driller is on
E 2.2 Overtaken from other station

After observing the Figure and the specifications above please answer the
following:

Question: Generate the Control algorithm in SIPN of the plant according to the
informal specifications provided.
Hint: think of the concurrent places in the SIPN.

Answer:

(each place or transition ½ point: 7 places, 6 TransitionsConcurrent place


1,5. This gives a sum of 6,5+1,5= 8 Marks )
Philadelphia University Student Name:
Faculty of Engineering Student Number:

P1 Ready
ω(P1)=(0,0,0,0)

WP at the beginning
SB (T1) = E 2.4

Conveyor on
P2
ω(P2)=(1,0,0,0)

WP on working position
SB (T2) = E 2.1

Motor on Drill go Down


P3 P4
ω(P3)=(0,−,−,1) ω(P4)=(−,1,0,−)

Drill on lower limit


SB (T3) = E 0.5

Wait
P5
ω(P5)=(−,0,0,−)

2s
Time is out
SB (T4) = 1

Drill go up
P6 ω(P6)=(−,0,1,−)

Drill is on upper limit


SB (T5) = E 0.4

P7 Conveyor on
ω(P2)=(1,0,0,0)

WP overtaken from other station


SB (T6) = E 2.2
Philadelphia University Student Name:
Faculty of Engineering Student Number:
Question 2: (12 marks)

After observing the Figure and the specifications above please answer the
following:

a: draw the reachablity graph of the SIPN shown above.


b: Calculate the output ΩN(SIPN) of the SIPN
c: analyze the SIPN for deadlocks, livelocks, if reversible, conflicts, if the SIPN is
live, justify your answer why?

Answer

a:
(each marking ½ , each transition ½ point. This gives 3,5. Outputs inside
the marking ½ point. This gives a sum of 1,5  this gives a sum of 5 marks)
Philadelphia University Student Name:
Faculty of Engineering Student Number:

b:
(Correct answer one point, each marking one point  3 markings. This
gives 4 marks)
ΩN(SIPN) = Ω(m1) + Ω(m2) + Ω(m3)
= (-, 0,1) + (1, 0, 1)+ (c, 0, 1)
= ((- + 1 + c), (0 + 0 + 0), (1 + 1 + 1))
= (c,0,1)

c:
(see below  sum of 3 marks)
Deadlock free since no deadlock (0.5 Mark)
Livelock free only the whole SIPN is live (0.5 Mark)
Live since all transitions are fireable (0.5 Mark)
No conflicts (0.5 Mark)
Reversible since initial marking reachable again (1 mark)

S-ar putea să vă placă și