Sie sind auf Seite 1von 10

2/10/2017 Logical Gates in Ladder Logic for PLC ­ The Engineering Projects

Login
825, Alhafeez Shopping Mall, Gulberg, Lahore. +92-332-6062060
 HOME  CONTACT US  BLOG  SHOP Your cart 0

theenggprojects help@theengineeringprojects.com
Search

 PROJECTS  TEAM  F.A.Q.  PCB PRICE


 HOME  CONTACT US  BLOG  SHOP  PROJECTS

Search

 TEAM  F.A.Q.  PCB PRICE

Logical Gates in Ladder Logic for PLC


A complete tutorial on Logical Gates in Ladder Logic for PLC.
Home / PLC Projects / Logical Gates in Ladder Logic…

FX2N-128MT-ESS/U
UNABLE TO FIND !!!
MultiTerminal dari FBS
PLC Simulation Software
Start Download - View PDF
Convert From Doc to PDF, PDF to Doc Simply With The Free On-line App! Go to fromdoctopdf.com

Top Diesel Generator Set


Wood Pellet Lines
JOIN US !!!
Concrete Batching Plant
AirAsia Diskon 20%
 21871 LIKES

 453 FOLLOWERS

 497 CONNECTIONS

In  the  previous  post  Getting  Started  with  Ladder  Logic,  we  had  an
overview  of  what  is  Ladder  Logic  programming  and  we  have  also
 497 FOLLOWERS
implemented three basic Logical gates in Ladder Logic form. Today,
we are gonna have a look at some complex Logical Gates in Ladder
Logic for PLC. So, I hope till now you guys have basic knowledge of
Ladder  Logic  and  can  implement  complex  logical  gates  in  it.  If  you
haven’t read the previous post then must read because without that
JOIN OUR FACEBOOK GROUP

http://www.theengineeringprojects.com/2015/02/logical­gates­ladder­logic­plc.html 1/10
2/10/2017 Logical Gates in Ladder Logic for PLC ­ The Engineering Projects

knowledge you
 HOME  CONTACT US
won’t  BLOG  SHOP
 2862 ARDUINO
understand Search
this post.
 PROJECTS  TEAM  F.A.Q.  PCB PRICE
In today’s post
we  are  gonna
implement  few
complex
logical  gates.  Learn Free
Its  not  gonna   RSS   G+
be  much
difficult  if  you Receive Quality Tutorial
have the basic Inbox by submitting you
concepts. I am
enter your email here...
just  pointing  out  few  important  points  here.  While  implementing  any
gate in ladder logic, always consider rung as an electrical line having
HIGH  voltage  at  one  end  and  LOW  voltage  at  the  other,  while  the
inputs are simple switches. Voltage will be supplied to the output only
CATEGORIES
when  switch  is  closed  i.e.  input  is  HIGH,  otherwise  the  output  will
remain OFF.
Arduino Projects
You  have  seen  in  previous  post,  while  implementing  OR  gate  we
have used a second switch in parallel which ends at the first rung so Proteus Projects
overall  its  a  single  rung  having  two  inputs  in  parallel  so  input  can
come either from first switch or from second one. So, now let’s start PIC Projects

implementing  some  complex  logical  gates  in  Ladder  Logic  for  PLC.
Visual Studio Projects
Today, we are gonna implement these logic gates:

NAND Logical gate in Ladder Logic for PLC 8051 Projects

NOR Logical gate in Ladder Logic for PLC 555 Timer Projects

XOR Logical gate in Ladder Logic for PLC MATLAB Projects

XNOR Logical gate in Ladder Logic for PLC
LabView Projects

NAND LOGICAL GATE IN LADDER LOGIC FOR PLC PLC Projects

NAND  gate  is  another  type  of  logical  gate,  which  is  normally
Electronics Projects
used. NAND gate is nothing but a simple NOT of AND gate. In
simple words, if we add a NOT gate in front of AND gate, we
C# Tutorials
get NAND gate. The truth tablel of NAND gate is shown in the
below figure:
Embedded System Proje

http://www.theengineeringprojects.com/2015/02/logical­gates­ladder­logic­plc.html 2/10
2/10/2017 Logical Gates in Ladder Logic for PLC ­ The Engineering Projects

 HOME  CONTACT US  BLOG  SHOP

SUPPORT US !!!
Search

 PROJECTS  TEAM  F.A.Q.  PCB PRICE

It  is  quite  obvious  from  the  truth  table  of  NAND  gate  that  the
output  will  be  OFF  only  when  both  the  inputs  will  be  ON
otherwise  output  will  remain  ON.  So,  now  lets  implement  this
gate in ladder logic programming.

The  below  image  shows  the  implementation  of  NAND  logical


gate in Ladder Logic form:

Now, if you understand the above figure, then its quite obvious.
We  have  used  both  inputs  in  normally  closed  form  so  when
both  inputs  are  OFF  the  output  will  be  ON.  If  we  get  X0  ON
then in still we will get the HIGH voltage from X1. If we make
X1 ON then we get HIGH voltage from X0, but if we get both
X0 and X1 ON then our Y0 will get OFF. Again we are using
inputs in normally closed form so when our actual input is OFF
then our X0 is closed. 

NOR LOGICAL GATE IN LADDER LOGIC FOR PLC

In NOR gate, we simple place a NOT gate in front of OR gate.
Its truth table is shown in below figure:

http://www.theengineeringprojects.com/2015/02/logical­gates­ladder­logic­plc.html 3/10
2/10/2017 Logical Gates in Ladder Logic for PLC ­ The Engineering Projects

From  the  truth  taable  of  NOR  gate,  its  quite  obvious  that  its
 HOME
output  will  be  ON  when  its  CONTACT
both  of  input  goes US  BLOG
OFF  otherwise  SHOP
the  output  will  remain  ON.  Lets  implement  this  NOR  logical
Search
gate in Ladder Logic diagram.
 PROJECTS  TEAM  F.A.Q.  PCB PRICE
The  below  figure  shows  the  NOR  logical  gate  in  ladder  logic
diagram:

If  you  got  the  ladder  logic  form  of  NAND  gate,  then  its  not
gonna  be  much  problem.  Simple  two  normally  closed  inputs
are placed in series, so now when any of them gets ON, then
output will get OFF.

Note:

If  you  have  noticed,  whenever  NOT  gate  is


involved  somewhere,  we  use  normally  closed
inputs.

drive.web over Ethernet


Internet accessible distributed control for drives, systems & PLCs Go to
driveweb.com

XOR LOGICAL GATE IN LADDER LOGIC FOR PLC

The truth table of XOR gate is shown in below figure:

From the truth table, we can get this thing that, output will ON
only when the inputs are in opposite states and output will be
OFF when inputs are in same state.

http://www.theengineeringprojects.com/2015/02/logical­gates­ladder­logic­plc.html 4/10
2/10/2017 Logical Gates in Ladder Logic for PLC ­ The Engineering Projects

The ladder logic implementation of XOR gate is shown in below
figure:  HOME  CONTACT US  BLOG  SHOP

Search

 PROJECTS  TEAM  F.A.Q.  PCB PRICE

Now it has gone a little complex but lets understand how’s its
working.  We  have  placed  X0  and  X1  in  series  and  also  in
parallel,  but  in  first  string  X0  is  normally  open  and  X1  is
normally  closed  while  in  second  string  X0  is  normally  closed
and X1 is normally open.

Now, what we need to do is if both inputs are in same state we
need to turn OFF the output. That’s what we are doing in above
logic  diagram.  Let’s  say  X0  and  X1  both  are  OFF  then  the
normally  open  switches  will  be  OFF  and  they  wont  let  the
HIGH voltage pass and hence our Y0 will remain OFF. And if
both  are  ON  then  the  normally  closed  will  be  OFF  and  again
Y0 will remain OFF.

Now  if  X0  is  ON  and  X1  is  OFF,  then  the  first  string  will
connect and our output will ON, and if X0 is OFF while X1 is
ON  then  our  second  string  will  connect  and  will  make  our
output ON. Quite simple and easy.

XNOR LOGICAL GATE IN LADDER LOGIC FOR PLC

Last but not the least XNOR gate, if we add NOT gate in front
of XOR gate we get XNOR gate, let’s have a look at its truth
table below:

So, in XNOR gate, we get our output ON when both inputs are
in  same  state  otherwise  its  OFF.  Let’s  implement  it  in  ladder
logic form below:

http://www.theengineeringprojects.com/2015/02/logical­gates­ladder­logic­plc.html 5/10
2/10/2017 Logical Gates in Ladder Logic for PLC ­ The Engineering Projects

 HOME  CONTACT US  BLOG  SHOP

Search
Now in this ladder logic diagram, we are getting introduced with
 PROJECTS  TEAM  F.A.Q.
a new symbol, till now we have used normally open output but  PCB PRICE
here for the first time, we are using normally closed output Y0.

It’s exactly the same logic as we used for XOR gate, but the
only difference is ere we are using normally closed output. So,
simple when the output is gets ON, its actually OFF and when
it gets OFF its actually ON 

That’s  all  for  today,  hope  I  have  conveyed  some  knowledge.  If  you
are new to PLC programming then you won’t get it in the first attempt
so  my  suggestion  is  give  it  some  time,  read  it  again  and  again  and
you will feel better   I am not gonna post more about Ladder Logic
designing, instead in the next post we are gonna have n overview of
PLC  simulation  software  in  which  we  design  this  ladder  logic
diagrams. Till then take care and have fun   

 
We highly recommends EasyEDA for
circuit design & order PCB
Free Powerful Circuit Simulator & PCB
Designer ­ EasyEDA 
Use it free. No Need to download. Lots of
resource and step by step tutorials

http://www.theengineeringprojects.com/2015/02/logical­gates­ladder­logic­plc.html 6/10
2/10/2017 Logical Gates in Ladder Logic for PLC ­ The Engineering Projects

Category: PLC Projects By Syed Zain Nasir February 6, 2015 2 Comments

 HOME  CONTACT US  BLOG  SHOP

Search

 PROJECTS
Author: Syed TEAM
 Zain Nasir F.A.Q.  PCB PRICE

I  am  Syed  Zain  Nasir,  the  founder  of  The


Engineering  Projects  (TEP).  I  am  a
programmer  since  2009  before  that  I  just
search  things,  make  small  projects  and  now  I
am  sharing  my  knowledge  through  this
platform.I  also  work  as  a  freelancer  and  did
many  projects  related  to  programming  and
electrical circuitry. My Google Profile+

PREVIOUS NEXT

ULTRASONIC GETTING STARTED


 SENSOR LIBRARY WITH LADDER 
FOR PROTEUS LOGIC FOR PLC

Related posts

PLC Getting
Projects Started
May  10, with
2016 Ladder
Logic  for
PLC  
February  5,

2015

Getting
Started
with PLC
January  31,

2015

http://www.theengineeringprojects.com/2015/02/logical­gates­ladder­logic­plc.html 7/10
2/10/2017 Logical Gates in Ladder Logic for PLC ­ The Engineering Projects

 HOME  CONTACT US  BLOG  SHOP

2 Comments Search

 PROJECTS  TEAM  F.A.Q.  PCB PRICE

Deepak
 February 7, 2015 at 7:09 am

Thank You!! Can i ask which Stimulation
software would you recommend.?

 Reply

Syed Zain Nasir


February 9, 2015 at 3:41 am

Hi,

Rite now I’m more concerned
about the basic concepts, so I
won’t recommend any simulation
software instead I’ll more focus
on developing logics which I’m
gonna cover in future articles,
will also post about simulation
software for plc.

Thanks.

 Reply

Leave a Reply

Connect with:

http://www.theengineeringprojects.com/2015/02/logical­gates­ladder­logic­plc.html 8/10
2/10/2017 Logical Gates in Ladder Logic for PLC ­ The Engineering Projects

Powered by OneAll Social Login  HOME  CONTACT US  BLOG  SHOP

Your email address will not be published. Required fields are marked * Search

 PROJECTS  TEAM  F.A.Q.  PCB PRICE


Comment

Name* Email* Website

clear form 
Post comment

http://www.theengineeringprojects.com/2015/02/logical­gates­ladder­logic­plc.html 9/10
2/10/2017 Logical Gates in Ladder Logic for PLC ­ The Engineering Projects

RECENT POSTS
 RECENT
HOME GET IN TOUCH !!!
 CONTACT US  BLOG  SHOPCONTACT INFO !!!
COMMENTS
How to write Search
Name * Address: 
Arduino code ? Abhishek on Send
 PROJECTS  TEAM  F.A.Q.  PCB PRICE
825, Al­Hafeez
February 4, 2017 SMS with PIC
E­mail * Shopping Mall,
Microcontroller &
Main­Boulevard,
A Simple Arduino SIM900
Gulberg.
LED Example in Message
Proteus Chiya on Speech
Phone Number: 
January 31, 2017 Recognition in
+92­332­6062060
MATLAB using
Flex Sensor Correlation
E­mail: 
Library for Proteus
info@theengineeringprojects.com
January 30, 2017 Jay on USB
support@theengineeringprojects
Communication
help@theengineeringprojects.com
How to do Arduino between Android
Serial and Arduino
Communication ? Submit clear 
January 25, 2017 Tymek on DS1307
Arduino based
How to use Digital Clock in
Arduino Software Proteus
Serial ?
January 23, 2017 Macie on Vibration
Sensor Library for
Proteus

The Engineering Projects ­ Tutorials & Projects for Engineers.

http://www.theengineeringprojects.com/2015/02/logical­gates­ladder­logic­plc.html 10/10

Das könnte Ihnen auch gefallen