Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

AIR UNIVERSITY

DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

EXPERIMENT NO 7

Lab Title: COMPARATOR


Student Name: Shahzaib Shams Reg. No:
210749
Objective:

LAB ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes (5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows
the lab safety rules

Total Marks: Obtained Marks:

LAB REPORT ASSESSMENT:

Excellent Good Average Satisfactory Unsatisfactory


Attributes
(5) (4) (3) (2) (1)

Data presentation

Experimental results

Conclusion

Total Marks: Obtained Marks:

Date: Mark Signature:


Laboratory # 07

Comparator

LAB TASKS:
Exercise 1:
Consider a system in which we have a switch to turn on light and fan. Light goes on when switch is pressed 5 times
and fan when pressed 10 times. Also Reset switch.

Exercise 2:
a) From the Simulations Menu at the top of the screen, Select the Traffic Light Simulation.
Using your knowledge of timers and comparison instruction, develop a ladder logic
program which will sequence a set of green, amber and red lights in the following manner.
Sequence of Operation:
1. Light O:2/00 (Red) = 12 seconds ON
2. Light O:2/02 (Green) = 8 seconds ON
3. Light O:2/01 (Amber) = 4 seconds ON
4. The sequence now repeats with Red = ON.
b) Modify the part a) so that the 3 lights which represent the other traffic direction are also
controlled.
c) Modify again so that there is a 1 second period when both directions will have their RED
lights illuminated. Note that there are actually 2 such overlaps that need to be accounted
for. The timing diagram below shows the six discrete timing intervals required to
accomplish the desired sequence of operation.
Conclusion:

You might also like