{"id":6338,"date":"2021-02-26T14:00:16","date_gmt":"2021-02-26T14:00:16","guid":{"rendered":"http:\/\/bryceautomation.com\/?p=6338"},"modified":"2021-02-26T14:00:17","modified_gmt":"2021-02-26T14:00:17","slug":"common-logic-gates","status":"publish","type":"post","link":"https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/","title":{"rendered":"Common Logic Gates"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Introduction to Common Logic Gates<\/h4>\n\n\n\n<p>We use common logic gates to display the flow of a process.  These gates include AND, OR, NOT, NAND, NOR, XOR, and XNOR.    These logic gates convert a process into plain English in a way that anyone can understand how they work.   By the same token, you can convert plain English into logic.<\/p><div id=\"bryce-371461542\" class=\"bryce-afterfirst bryce-entity-placement\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-8316758073402323\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-8316758073402323\" \ndata-ad-slot=\"7728240895\" \ndata-ad-format=\"auto\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>\n\n\n\n<p>Straightaway, let&#8217;s go through each of these logic gates to show their meaning and functionality.  To demonstrate, in all of these examples, we&#8217;ll have two inputs and one output.<\/p>\n\n\n\n<p>I&#8217;ve used RSLogix \/ Studio 5000 for the ladder logic examples. In addition, I&#8217;m using <a href=\"https:\/\/sourceforge.net\/projects\/gatesim\/\">Logic Gate Simulator<\/a> to display the common logic gates.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Logic AND Gate<\/h4>\n\n\n\n<p>At this point, we&#8217;ll take a look at the AND gate to see how it works.  Basically, ALL of your inputs need to be on.  Keep in mind the following statement:   If Switch.0 AND Switch.1 THEN Light.0<\/p>\n\n\n\n<p>In this case, both Switch.0 AND Switch.1 must be on to energize Light.0  Here is an example in ladder logic of how we would do this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"311\" height=\"51\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-60.png\" alt=\"\" class=\"wp-image-6340 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-60.png 311w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-60-300x49.png 300w\" data-sizes=\"(max-width: 311px) 100vw, 311px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 311px; --smush-placeholder-aspect-ratio: 311\/51;\" \/><\/figure>\n\n\n\n<p>Simply energizing switch.0 will not energize the light.  Likewise, energizing switch.1 ONLY will not energize the light.  Switch.0 AND Switch.1 must be energized.  A typical example might be for a hydraulic valve.  We might say that IF the operator calls for the valve to open, AND the hydraulic pump is running, then open the valve.<\/p>\n\n\n\n<p>Let&#8217;s also look at the formal symbol for the AND statement:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"428\" height=\"153\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-61.png\" alt=\"\" class=\"wp-image-6341 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-61.png 428w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-61-300x107.png 300w\" data-sizes=\"(max-width: 428px) 100vw, 428px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 428px; --smush-placeholder-aspect-ratio: 428\/153;\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Logic OR Gate<\/h4>\n\n\n\n<p>Another gate is the OR gate.  In this case, only one input needs to be on to energize the output.    Keep in mind the following statement:  If Switch.0 OR Switch.1 THEN Light.1<\/p>\n\n\n\n<p>In this case, only ONE input needs to be on for the output to energize.  Below is an example in ladder logic:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"303\" height=\"88\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-62.png\" alt=\"\" class=\"wp-image-6343 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-62.png 303w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-62-300x87.png 300w\" data-sizes=\"(max-width: 303px) 100vw, 303px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 303px; --smush-placeholder-aspect-ratio: 303\/88;\" \/><\/figure>\n\n\n\n<p>Energizing either one of the inputs will energize the output.  For example:  The output might be turned on from the local station, OR from the MMI (Man-Machine Interface).  Let&#8217;s look at the formal symbol for an OR statement.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"434\" height=\"146\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-63.png\" alt=\"\" class=\"wp-image-6344 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-63.png 434w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-63-300x101.png 300w\" data-sizes=\"(max-width: 434px) 100vw, 434px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 434px; --smush-placeholder-aspect-ratio: 434\/146;\" \/><\/figure>\n\n\n\n<p><strong><em>Note:  The OR symbol does NOT have a circle on the right side of it.  That is just a connection point in the software.<\/em><\/strong><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Common Logic Gates &#8212; Logic NOT Gate<\/h4>\n\n\n\n<p>The NOT gate simply inverts the signal.  If it receives a 1, it will send out a 0.  Likewise, if it receives a 0, the output will be a 1.   Consider the following statement:  IF NOT Switch.0 THEN Light.1.<\/p>\n\n\n\n<p>An example of a NOT might be for an alarm.   If an alarm condition goes true, then you do NOT want the output to energize.<\/p>\n\n\n\n<p>Let&#8217;s take a look at ladder logic for a NOT statement.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"301\" height=\"52\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-64.png\" alt=\"\" class=\"wp-image-6345 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 301px; --smush-placeholder-aspect-ratio: 301\/52;\" \/><\/figure>\n\n\n\n<p>In addition, we&#8217;ll look at the formal diagram:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"415\" height=\"73\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-65.png\" alt=\"\" class=\"wp-image-6346 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-65.png 415w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-65-300x53.png 300w\" data-sizes=\"(max-width: 415px) 100vw, 415px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 415px; --smush-placeholder-aspect-ratio: 415\/73;\" \/><\/figure>\n\n\n\n<p>Notice the circle after the NOT statement.   This means the output is inverted.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Logic NAND Gate<\/h4>\n\n\n\n<p>This gate works very similar to the AND gate with one exception.  The output is inverted.  In other words, if both Switch.0 AND Switch.1 are energized, the output will be off.  Otherwise, the output is on.<\/p>\n\n\n\n<p>We might use this gate for fail-safe reasons where the logic needs to be reversed.  First, let&#8217;s look at an example in ladder logic.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"303\" height=\"101\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-66.png\" alt=\"\" class=\"wp-image-6347 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-66.png 303w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-66-300x100.png 300w\" data-sizes=\"(max-width: 303px) 100vw, 303px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 303px; --smush-placeholder-aspect-ratio: 303\/101;\" \/><\/figure>\n\n\n\n<p>Obviously, when we energize Switch.0 AND Switch.1, &#8220;ConditionsTrue&#8221;  becomes a 1.  Once this happens, Light.0 goes to 0..  Otherwise, we send a value of 0 to Light.0<\/p>\n\n\n\n<p>Again, let&#8217;s look at the formal symbol.  Also notice the circle at the end of the AND symbol.   This circle means the value reverses, and is therefore a NAND Statement.<\/p>\n\n\n\n<p>If both inputs are ON, the output is OFF.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"441\" height=\"183\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-67.png\" alt=\"\" class=\"wp-image-6348 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-67.png 441w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-67-300x124.png 300w\" data-sizes=\"(max-width: 441px) 100vw, 441px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 441px; --smush-placeholder-aspect-ratio: 441\/183;\" \/><\/figure>\n\n\n\n<p>Likewise, if one input shuts off (or both), the output energizes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"430\" height=\"166\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-68.png\" alt=\"\" class=\"wp-image-6349 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-68.png 430w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-68-300x116.png 300w\" data-sizes=\"(max-width: 430px) 100vw, 430px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 430px; --smush-placeholder-aspect-ratio: 430\/166;\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Logic NOR Gate<\/h4>\n\n\n\n<p>Again, the only difference between the OR and the NOR is that the output reverses.  This means that if EITHER switch energizes, the output will be false.  A typical example for this would be normally closed switches.<\/p>\n\n\n\n<p>Here is a diagram in ladder logic of how this works.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"301\" height=\"154\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-69.png\" alt=\"\" class=\"wp-image-6350 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 301px; --smush-placeholder-aspect-ratio: 301\/154;\" \/><\/figure>\n\n\n\n<p>As you can see, either one of the switches will energize the &#8220;ConditionsTrue&#8221; bit.  In turn, this shuts off our light.<\/p>\n\n\n\n<p>Once again, let&#8217;s look at the formal diagram for the NOR gate.  Notice the circle attached to the right side of the OR gate.  This indicates the output reverses.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"439\" height=\"173\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-70.png\" alt=\"\" class=\"wp-image-6351 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-70.png 439w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-70-300x118.png 300w\" data-sizes=\"(max-width: 439px) 100vw, 439px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 439px; --smush-placeholder-aspect-ratio: 439\/173;\" \/><\/figure>\n\n\n\n<p>If at least one input is on, the output is off.   Once both switches are off, the output will then erergize.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"436\" height=\"156\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-71.png\" alt=\"\" class=\"wp-image-6352 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-71.png 436w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-71-300x107.png 300w\" data-sizes=\"(max-width: 436px) 100vw, 436px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 436px; --smush-placeholder-aspect-ratio: 436\/156;\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Common Logic Gates &#8212; XOR Gate (Exclusive OR)<\/h4>\n\n\n\n<p>The main difference between the OR and the XOR (Exclusive OR) is that only one condition must be true for the output to energize.  In this case, if both outputs are ON or OFF, the output will not energize.   Exclusive means one or the other, but NOT both.  If we hold one input of the XOR high, the XOR will act as an inverter (or NOT).<\/p>\n\n\n\n<p>Let&#8217;s take a look at ladder logic that will simulate the XOR statement:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"327\" height=\"168\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-73.png\" alt=\"\" class=\"wp-image-6354 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-73.png 327w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-73-300x154.png 300w\" data-sizes=\"(max-width: 327px) 100vw, 327px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 327px; --smush-placeholder-aspect-ratio: 327\/168;\" \/><\/figure>\n\n\n\n<p>Notice that ONE condition OR the other will energize our light.  However, if BOTH conditions are true, the light will not energize.<\/p>\n\n\n\n<p>Once again, let&#8217;s look at the formal symbol for the XOR Statement.<\/p>\n\n\n\n<p>As you can see one condition will energize the output.  Again, there is not a circle at the end of the XOR symbol&#8230;  That is simply a connection point in the software.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"424\" height=\"181\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-74.png\" alt=\"\" class=\"wp-image-6355 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-74.png 424w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-74-300x128.png 300w\" data-sizes=\"(max-width: 424px) 100vw, 424px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 424px; --smush-placeholder-aspect-ratio: 424\/181;\" \/><\/figure>\n\n\n\n<p>If both conditions are true, though, the output does not energize.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"436\" height=\"183\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-75.png\" alt=\"\" class=\"wp-image-6356 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-75.png 436w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-75-300x126.png 300w\" data-sizes=\"(max-width: 436px) 100vw, 436px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 436px; --smush-placeholder-aspect-ratio: 436\/183;\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Logic XNOR Gate (Exclusive NOR)<\/h4>\n\n\n\n<p>Finally, we&#8217;ll talk about the XNOR (Exclusive NOR Statement).  Obviously, this one is a little bit confusing.   However, it works exactly as the XOR statement does with one exception.  It inverts the output.<\/p>\n\n\n\n<p>It&#8217;s the same as feeding the output from the XOR through a NOT.   Let&#8217;s look at an example in ladder logic.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"402\" height=\"217\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-76.png\" alt=\"\" class=\"wp-image-6357 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-76.png 402w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-76-300x162.png 300w\" data-sizes=\"(max-width: 402px) 100vw, 402px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 402px; --smush-placeholder-aspect-ratio: 402\/217;\" \/><\/figure>\n\n\n\n<p>If one input is high, but not both, the output shuts off.  Otherwise, the output turns on.  Let&#8217;s take a closer look at the formal diagram for the XNOR:<\/p>\n\n\n\n<p>If one input goes true, the output is OFF.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"455\" height=\"197\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-77.png\" alt=\"\" class=\"wp-image-6358 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-77.png 455w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-77-300x130.png 300w\" data-sizes=\"(max-width: 455px) 100vw, 455px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 455px; --smush-placeholder-aspect-ratio: 455\/197;\" \/><\/figure>\n\n\n\n<p>If BOTH Inputs go true (or no inputs), the output is ON:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"434\" height=\"167\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-78.png\" alt=\"\" class=\"wp-image-6359 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-78.png 434w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-78-300x115.png 300w\" data-sizes=\"(max-width: 434px) 100vw, 434px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 434px; --smush-placeholder-aspect-ratio: 434\/167;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"439\" height=\"180\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-79.png\" alt=\"\" class=\"wp-image-6360 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-79.png 439w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-79-300x123.png 300w\" data-sizes=\"(max-width: 439px) 100vw, 439px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 439px; --smush-placeholder-aspect-ratio: 439\/180;\" \/><\/figure>\n\n\n\n<p>Summary &#8212; Common Logic Gates<\/p>\n\n\n\n<p>In summary, to get an output &#8212;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>AND &#8212; Both Inputs must be ON<\/li><li>OR &#8212; One or both inputs must be ON<\/li><li>NOT &#8212; Input must be OFF<\/li><li>NAND &#8212; At least one input is OFF<\/li><li>NOR &#8212; Both inputs OFF<\/li><li>XOR &#8212; One input or the other (but not both) must be ON<\/li><li>XNOR &#8212; At least one input must be OFF (but not both)<\/li><\/ul>\n\n\n\n<p>For more information, visit the <a href=\"https:\/\/bryceautomation.com\/index.php\/category\/beginner\/\">Arduino Beginner<\/a>, or <a href=\"https:\/\/bryceautomation.com\/index.php\/category\/controllogix\/\">ControlLogix<\/a> category Pages!<\/p>\n\n\n\n<p>&#8212; Ricky Bryce<\/p>\n<div id=\"bryce-4179422024\" class=\"bryce-after-content bryce-entity-placement\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-8316758073402323\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-8316758073402323\" \ndata-ad-slot=\"4667596182\" \ndata-ad-format=\"auto\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Introduction to Common Logic Gates We use common logic gates to display the flow of a process. These gates include AND, OR, NOT, NAND, NOR, XOR, and XNOR. These logic gates convert a process into plain English in a way that anyone can understand how they work. By the same token, you can convert plain <a class=\"moretag btn btn-primary\" href=\"https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/\">Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":6369,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,8,4],"tags":[325,324,328,329,327,326,331,330],"class_list":{"0":"post-6338","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-arduino-other-microprocessors","8":"category-beginner","9":"category-controllogix","10":"tag-and","11":"tag-logic","12":"tag-nand","13":"tag-nor","14":"tag-not","15":"tag-or","16":"tag-xnor","17":"tag-xor","18":"czr-hentry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Common Logic Gates (and Ladder Equivalent) - Bryce Automation<\/title>\n<meta name=\"description\" content=\"Common Logic Gates used in circuits, and the ladder logic equivalent to each circuit (AND, OR, NOT, NOR, NAND, XOR, and XNOR)\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Common Logic Gates (and Ladder Equivalent) - Bryce Automation\" \/>\n<meta property=\"og:description\" content=\"Common Logic Gates used in circuits, and the ladder logic equivalent to each circuit (AND, OR, NOT, NOR, NAND, XOR, and XNOR)\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/\" \/>\n<meta property=\"og:site_name\" content=\"Bryce Automation\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/ricky.bryce.7\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-26T14:00:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-26T14:00:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-80.png\" \/>\n\t<meta property=\"og:image:width\" content=\"546\" \/>\n\t<meta property=\"og:image:height\" content=\"393\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ricky\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/02\\\/26\\\/common-logic-gates\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/02\\\/26\\\/common-logic-gates\\\/\"},\"author\":{\"name\":\"Ricky\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#\\\/schema\\\/person\\\/5d5b0f6f6ad768f1ee52968338e63af7\"},\"headline\":\"Common Logic Gates\",\"datePublished\":\"2021-02-26T14:00:16+00:00\",\"dateModified\":\"2021-02-26T14:00:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/02\\\/26\\\/common-logic-gates\\\/\"},\"wordCount\":1098,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/02\\\/26\\\/common-logic-gates\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/image-80.png\",\"keywords\":[\"AND\",\"Logic\",\"NAND\",\"NOR\",\"NOT\",\"OR\",\"XNOR\",\"XOR\"],\"articleSection\":[\"Arduino and other microprocessors\",\"Beginner\",\"ControlLogix\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/02\\\/26\\\/common-logic-gates\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/02\\\/26\\\/common-logic-gates\\\/\",\"url\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/02\\\/26\\\/common-logic-gates\\\/\",\"name\":\"Common Logic Gates (and Ladder Equivalent) - Bryce Automation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/02\\\/26\\\/common-logic-gates\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/02\\\/26\\\/common-logic-gates\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/image-80.png\",\"datePublished\":\"2021-02-26T14:00:16+00:00\",\"dateModified\":\"2021-02-26T14:00:17+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#\\\/schema\\\/person\\\/5d5b0f6f6ad768f1ee52968338e63af7\"},\"description\":\"Common Logic Gates used in circuits, and the ladder logic equivalent to each circuit (AND, OR, NOT, NOR, NAND, XOR, and XNOR)\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/02\\\/26\\\/common-logic-gates\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/02\\\/26\\\/common-logic-gates\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/02\\\/26\\\/common-logic-gates\\\/#primaryimage\",\"url\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/image-80.png\",\"contentUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/image-80.png\",\"width\":546,\"height\":393,\"caption\":\"Logic Gates\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/02\\\/26\\\/common-logic-gates\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/bryceautomation.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Common Logic Gates\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#website\",\"url\":\"https:\\\/\\\/bryceautomation.com\\\/\",\"name\":\"Bryce Automation\",\"description\":\"Automating Home and Industry...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/bryceautomation.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#\\\/schema\\\/person\\\/5d5b0f6f6ad768f1ee52968338e63af7\",\"name\":\"Ricky\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/wphb-cache\\\/gravatar\\\/a8f\\\/a8fe6bf79d292b388ffee281ccb12488x96.jpg\",\"url\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/wphb-cache\\\/gravatar\\\/a8f\\\/a8fe6bf79d292b388ffee281ccb12488x96.jpg\",\"contentUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/wphb-cache\\\/gravatar\\\/a8f\\\/a8fe6bf79d292b388ffee281ccb12488x96.jpg\",\"caption\":\"Ricky\"},\"sameAs\":[\"http:\\\/\\\/bryceautomation.com\",\"https:\\\/\\\/www.facebook.com\\\/ricky.bryce.7\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/ricky-bryce-4367a416\\\/\"],\"url\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/author\\\/ricky\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Common Logic Gates (and Ladder Equivalent) - Bryce Automation","description":"Common Logic Gates used in circuits, and the ladder logic equivalent to each circuit (AND, OR, NOT, NOR, NAND, XOR, and XNOR)","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/","og_locale":"en_US","og_type":"article","og_title":"Common Logic Gates (and Ladder Equivalent) - Bryce Automation","og_description":"Common Logic Gates used in circuits, and the ladder logic equivalent to each circuit (AND, OR, NOT, NOR, NAND, XOR, and XNOR)","og_url":"https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/","og_site_name":"Bryce Automation","article_author":"https:\/\/www.facebook.com\/ricky.bryce.7","article_published_time":"2021-02-26T14:00:16+00:00","article_modified_time":"2021-02-26T14:00:17+00:00","og_image":[{"width":546,"height":393,"url":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-80.png","type":"image\/png"}],"author":"Ricky","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/#article","isPartOf":{"@id":"https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/"},"author":{"name":"Ricky","@id":"https:\/\/bryceautomation.com\/#\/schema\/person\/5d5b0f6f6ad768f1ee52968338e63af7"},"headline":"Common Logic Gates","datePublished":"2021-02-26T14:00:16+00:00","dateModified":"2021-02-26T14:00:17+00:00","mainEntityOfPage":{"@id":"https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/"},"wordCount":1098,"commentCount":0,"image":{"@id":"https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/#primaryimage"},"thumbnailUrl":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-80.png","keywords":["AND","Logic","NAND","NOR","NOT","OR","XNOR","XOR"],"articleSection":["Arduino and other microprocessors","Beginner","ControlLogix"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/","url":"https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/","name":"Common Logic Gates (and Ladder Equivalent) - Bryce Automation","isPartOf":{"@id":"https:\/\/bryceautomation.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/#primaryimage"},"image":{"@id":"https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/#primaryimage"},"thumbnailUrl":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-80.png","datePublished":"2021-02-26T14:00:16+00:00","dateModified":"2021-02-26T14:00:17+00:00","author":{"@id":"https:\/\/bryceautomation.com\/#\/schema\/person\/5d5b0f6f6ad768f1ee52968338e63af7"},"description":"Common Logic Gates used in circuits, and the ladder logic equivalent to each circuit (AND, OR, NOT, NOR, NAND, XOR, and XNOR)","breadcrumb":{"@id":"https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/#primaryimage","url":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-80.png","contentUrl":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/02\/image-80.png","width":546,"height":393,"caption":"Logic Gates"},{"@type":"BreadcrumbList","@id":"https:\/\/bryceautomation.com\/index.php\/2021\/02\/26\/common-logic-gates\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bryceautomation.com\/"},{"@type":"ListItem","position":2,"name":"Common Logic Gates"}]},{"@type":"WebSite","@id":"https:\/\/bryceautomation.com\/#website","url":"https:\/\/bryceautomation.com\/","name":"Bryce Automation","description":"Automating Home and Industry...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/bryceautomation.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/bryceautomation.com\/#\/schema\/person\/5d5b0f6f6ad768f1ee52968338e63af7","name":"Ricky","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bryceautomation.com\/wp-content\/wphb-cache\/gravatar\/a8f\/a8fe6bf79d292b388ffee281ccb12488x96.jpg","url":"https:\/\/bryceautomation.com\/wp-content\/wphb-cache\/gravatar\/a8f\/a8fe6bf79d292b388ffee281ccb12488x96.jpg","contentUrl":"https:\/\/bryceautomation.com\/wp-content\/wphb-cache\/gravatar\/a8f\/a8fe6bf79d292b388ffee281ccb12488x96.jpg","caption":"Ricky"},"sameAs":["http:\/\/bryceautomation.com","https:\/\/www.facebook.com\/ricky.bryce.7","https:\/\/www.linkedin.com\/in\/ricky-bryce-4367a416\/"],"url":"https:\/\/bryceautomation.com\/index.php\/author\/ricky\/"}]}},"_links":{"self":[{"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/posts\/6338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/comments?post=6338"}],"version-history":[{"count":0,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/posts\/6338\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/media\/6369"}],"wp:attachment":[{"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/media?parent=6338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/categories?post=6338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/tags?post=6338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}