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

AIR UNIVERSITY

DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

EXPERIMENT NO 2

Lab Title: Latch/Unlatch

Student Name: Izza Jamal Reg. No: 191850


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: Signature:
AIR UNIVERSITY, ISLAMABAD
DEPARTMENT OF ELECTRICAL & COMPUTER ENGINEERING
Electrical Measurements & Instruments Lab

Lab Instructor: Wasim Iqbal

Latch/Unlatch Lab#02

Submitted by
Izza Jamal (191850)

Fall-21

BEEP V-B
DATE:06/10/21
EXPERIMENT.NO.02
Latch/UnLatch
Objective:
 To get familiar with the output latch and output unlatch.
 Get to know about the implementation of the latch system on the software.

Apparatus:
 PLC Allen Bradley.
 LogixPro software.

Introduction:
Breif Theory of Latching and Un-latching:
Latch and un-latch is an operation done to control the output state . Its basically done in a way
that ,when input is turned on the output gets the desired value ( say high ) ,so now if the button
(input) is off the output remain the same and does not change its value .This process is called
latching and when the output state is change by using another switch ,it is called unlatching.
For instance; calculator . Only on button is pressed to turn on the calculator and it remains on
(latch) unless and until we don’t turn it off (unlatch) by ourselves.

Methods of Latch/Un-Latch:
There are two methods :
 Self-Latching:

Figure 1.1:Program with Self-latching

In the above Circuit; we use three inputs two XIC and one XIO.One of the XIC is given
the same address as that of the output.This will help us do the latching while the input B
will simply un-latch our system.
 Using Outputs:
The two output switches
 OTL(Output Latch):

 OTU(Output Unlatch):

The upper mentioned both switches are used to latch and un-latch respectively in a way
as show below;

Figure 1.2:Program with out-put latch/unlatch

Procedure:
 First of all,we open the software according to out requirement whether we need
real time software or a simulator.
 In order to perfrom the experiment we see how the experiment should be done i.e
self-latch or output switches latching.
 Once the method is chosen ,we start making the ladder logic program.
 Set the Inputs ( XIC switch ) for both the ouputs as shown in figure1.2 or another
method could be the logic ladder shown in figure 1.1.

LAB TASKS:
Lab Task #01:
Implement the given logic equation using latch and unlatch.
Y = AB + DC′ + B′C

A B C D Y
0 0 0 0 0
0 0 0 1 1
0 0 1 0 1
0 0 1 1 1
0 1 0 0 0
0 1 0 1 1
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1

This is the Truth table for the equation to verify it the ouputs are shown below;
Now to see the latch and unlatch system ; we can see the following figure below;

Here All the input LED’s are one and still the output LED is on.This is called latch system.
Now if I turn on the input going to the un-latch output the LED’s will turn off.Means the latch system will
unlatch. Figure is shown below;

Lab Task #02:


We need to start/stop the motor. When the start button is pushed we want to start the motor,
and when the stop button is pushed we want to stop the motor.
 Implement without using latch/unlatch(Hint Use Feedback approach).
 Implement using latch/unlatch.

Without Latch/unlatch System:

This circuit is also known as self-latching circuit.This is operated by using three inputs
one XIO and two XIC.One of the XIC is addressed as the same address given to output switch.
When we give High to I:1/1 Input the output turns on ,now even if we turn off the input the
output will still stay on and when we give high to the XIO switch the output turns off.

With Latch/unlatch System:


This is a very simple circuit.We give high to the input going to Latch output and it turn
on,and by giving high to the input goint to unlatch output.One main thing is that we given same
addresses to Latch and Un-Latch output.

Lab Task #03:


Design a ladder logic for bi-directional motor (Forward/ Reverse). Each direction has its own
button and only one button to stop the motor. We also need to stop the motor before we
change its direction.
 Implement using latch/unlatch
 Implement without using latch/unlatch(Hint Use Feedback approach).

With Latch/unlatch System:

This is a system for Bi-directional Motor .Each direction has his its own input.The .The
outputs are show below;
Without Latch/unlatch System:

Results are shown below;

Lab Task #04:


Design a ladder logic program for simple level detector both are active low logic. Motor is active
high logic.

Working Principle:
When the low sensor would turn on,the motor will automatically start while turning on the
high sensor will make the motor stop.

This shows that low sensor is on and the motor is also


on.

This shows that High sensor stops the motor.

Conclusions:
This Lab was about latching and un-latching.Latching helps us to control the input in a certain
way i.e we would not need to turn on the system again and again once its latched while un-
latching as the name suggests un-latch i.e turns off the latched system.We studied two methods
of latch/un-latch. Moreover,we performed certain tasks regarding this lab for better
understanding of the concept being taken.

*-----------------------------*

You might also like