{"id":13632,"date":"2022-09-29T07:24:45","date_gmt":"2022-09-29T07:24:45","guid":{"rendered":"https:\/\/bryceautomation.com\/?p=13632"},"modified":"2022-09-29T07:24:48","modified_gmt":"2022-09-29T07:24:48","slug":"logic-using-only-nand-gates","status":"publish","type":"post","link":"https:\/\/bryceautomation.com\/index.php\/2022\/09\/29\/logic-using-only-nand-gates\/","title":{"rendered":"Logic using only NAND Gates"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction to Wiring any Logic using only NAND Gates<\/h2>\n\n\n\n<p>I&#8217;ve heard people say before that you can hard wire any logic using only NAND Gates.  I started researching this a little bit, and purchased some NAND gate IC&#8217;s (74HC00).  In this post, we&#8217;ll see how we would wire AND, OR, and NOT logic using ONLY NAND gates.<\/p><div id=\"bryce-2820712136\" 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>The NAND gate simply inverts the output signal from an AND gate.  In other words, if both inputs are high, the output is low.  Otherwise, the output of the NAND gate is high.<\/p>\n\n\n\n<p>For the images below, I&#8217;ll be using a logic simulator that I downloaded from <a href=\"https:\/\/kolls.net\/gatesim\/\">kolls.net\/gatesim. <\/a> It&#8217;s much easier to see the connections using this simulator than to show them on a breadboard.  This simulator is free under the GPL.<\/p>\n\n\n\n<p>Keep in mind that we can basically set up any discrete logic, as long as we can set up AND, OR, and NOT operations.  Obviously, for timers and counters, we would need some other components as well.  If we can do this, then we can work around any type of chip shortage, right?<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">74HC00 Pinout<\/h2>\n\n\n\n<p>If you set this up on a breadboard, you will need to know the 74HC00 Pinout.  I&#8217;m connecting 5v to VCC, and we also need to connect ground.  Any terminal labeled A and B are particular inputs to each NAND Gate.   The Y terminal for each gate is the output.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"224\" height=\"219\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-132.png\" alt=\"\" class=\"wp-image-13648 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 224px; --smush-placeholder-aspect-ratio: 224\/219;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">NAND Logic<\/h2>\n\n\n\n<p>At this point, look at some examples of how the NAND gate itself works.  Here is a ladder logic equivalent.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"295\" height=\"110\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-133.png\" alt=\"\" class=\"wp-image-13660 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 295px; --smush-placeholder-aspect-ratio: 295\/110;\" \/><\/figure>\n\n\n\n<p>As you can see, if both A and B are true, then we would have an AND_Output.  If we have the AND_Output, then we do not have the NAND_Output.  However, either A or B drops out (or both), we loose the AND_Output.  At this point we have a 1 on the NAND_Output.<\/p>\n\n\n\n<p>At this point, let&#8217;s look at this logic in the simulator.  The color RED represents the ON state.  Both inputs are true.  Therefore the output is off.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"240\" height=\"117\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-134.png\" alt=\"\" class=\"wp-image-13662 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 240px; --smush-placeholder-aspect-ratio: 240\/117;\" \/><\/figure>\n\n\n\n<p>If we loose just one input, the AND part of the gate is false.  Therefore, since NAND reverses the output of the AND gate, the output is ON.  Remember, red is ON.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"240\" height=\"119\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-135.png\" alt=\"\" class=\"wp-image-13663 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 240px; --smush-placeholder-aspect-ratio: 240\/119;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">NOT Logic using only NAND Gates<\/h2>\n\n\n\n<p>The NOT gate is very simple to set up.  We simply tie the inputs together.  That way the inputs come from the same source.   When the input is true, then both inputs are true because we tied them together.  Therefore the output is LOW.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"242\" height=\"59\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-137.png\" alt=\"\" class=\"wp-image-13666 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 242px; --smush-placeholder-aspect-ratio: 242\/59;\" \/><\/figure>\n\n\n\n<p>Likewise, when the input is false, the output is HIGH.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"246\" height=\"58\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-136.png\" alt=\"\" class=\"wp-image-13665 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 246px; --smush-placeholder-aspect-ratio: 246\/58;\" \/><\/figure>\n\n\n\n<p>This is the equivalent of a NOT operation in Ladder Logic:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"293\" height=\"50\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-141.png\" alt=\"\" class=\"wp-image-13671 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 293px; --smush-placeholder-aspect-ratio: 293\/50;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">AND Logic<\/h2>\n\n\n\n<p>To create an AND gate, we simply need to add a NOT to the output of the NAND.  Remember, the NAND reverses the &#8220;AND&#8221; logic.  We simply need to reverse this back, and we&#8217;ll end up with an AND gate.<\/p>\n\n\n\n<p>If both inputs are true, then our output is HIGH.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"338\" height=\"109\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-138.png\" alt=\"\" class=\"wp-image-13667 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-138.png 338w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-138-300x97.png 300w\" data-sizes=\"(max-width: 338px) 100vw, 338px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 338px; --smush-placeholder-aspect-ratio: 338\/109;\" \/><\/figure>\n\n\n\n<p>However, if we loose an input, (or both), then the output goes LOW.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"335\" height=\"115\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-139.png\" alt=\"\" class=\"wp-image-13668 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-139.png 335w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-139-300x103.png 300w\" data-sizes=\"(max-width: 335px) 100vw, 335px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 335px; --smush-placeholder-aspect-ratio: 335\/115;\" \/><\/figure>\n\n\n\n<p>In Ladder Logic, your equivalent of an AND would look similar to this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"293\" height=\"49\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-140.png\" alt=\"\" class=\"wp-image-13670 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 293px; --smush-placeholder-aspect-ratio: 293\/49;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">OR Logic<\/h2>\n\n\n\n<p>Or logic is a bit different.  We&#8217;ll have to use a combination of several gates to accomplish this.  You&#8217;ll have to follow this very closely to understand how the OR logic would work using only NAND gates.   First, let&#8217;s take a look at the circuit.<\/p>\n\n\n\n<p>First, we need to NOT each input.  After that, we feed the result into another NAND gate.  The output results in an OR operation.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"305\" height=\"115\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-142.png\" alt=\"\" class=\"wp-image-13672 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-142.png 305w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-142-300x113.png 300w\" data-sizes=\"(max-width: 305px) 100vw, 305px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 305px; --smush-placeholder-aspect-ratio: 305\/115;\" \/><\/figure>\n\n\n\n<p>As you can see, neither input is on.  Therefore the output of the first NANDs are HIGH.  This means that both inputs to the second NAND is high.  This results in an output that is OFF.<\/p>\n\n\n\n<p>Let&#8217;s take a look at what happens if one of the inputs are high.  As you would expect for an OR circuit, the output is HIGH.  This is because the top NAND gate feeds a 0 into the send NAND gate.  This results in the AND logic for the second gate being false.  However, since this is a NAND circuit, it reverses this result to a logical HIGH.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"310\" height=\"115\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-143.png\" alt=\"\" class=\"wp-image-13673 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-143.png 310w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-143-300x111.png 300w\" data-sizes=\"(max-width: 310px) 100vw, 310px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 310px; --smush-placeholder-aspect-ratio: 310\/115;\" \/><\/figure>\n\n\n\n<p>The result is similar if both inputs are high.  In this case, we send zeros to both the A and B input of the second NAND gate.  Obviously, this results in the AND logic being false.  Again, though, since this is a NAND gate, it reverses what the output would be from the AND, and the output is HIGH.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"311\" height=\"119\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-144.png\" alt=\"\" class=\"wp-image-13674 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-144.png 311w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-144-300x115.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\/119;\" \/><\/figure>\n\n\n\n<p>Here is the ladder logic equivalent of an OR circuit.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"296\" height=\"95\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-146.png\" alt=\"\" class=\"wp-image-13676 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 296px; --smush-placeholder-aspect-ratio: 296\/95;\" \/><\/figure>\n\n\n\n<p>Check out other topics in the <a href=\"https:\/\/bryceautomation.com\/index.php\/category\/beginner\/\">Beginner&#8217;s Category Page!<\/a><\/p>\n\n\n\n<p>&#8212; Ricky Bryce<\/p>\n<div id=\"bryce-248879792\" 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 Wiring any Logic using only NAND Gates I&#8217;ve heard people say before that you can hard wire any logic using only NAND Gates. I started researching this a little bit, and purchased some NAND gate IC&#8217;s (74HC00). In this post, we&#8217;ll see how we would wire AND, OR, and NOT logic using ONLY <a class=\"moretag btn btn-primary\" href=\"https:\/\/bryceautomation.com\/index.php\/2022\/09\/29\/logic-using-only-nand-gates\/\">Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":13674,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,4],"tags":[818],"class_list":{"0":"post-13632","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-beginner","8":"category-controllogix","9":"tag-logic-gates","10":"czr-hentry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Logic using only NAND Gates - Bryce Automation<\/title>\n<meta name=\"description\" content=\"How to build any Logic using only NAND Gates. We&#039;ll discuss how to set up AND, OR, and NOT logic, and the ladder logic equivalents.\" \/>\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\/2022\/09\/29\/logic-using-only-nand-gates\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Logic using only NAND Gates - Bryce Automation\" \/>\n<meta property=\"og:description\" content=\"How to build any Logic using only NAND Gates. We&#039;ll discuss how to set up AND, OR, and NOT logic, and the ladder logic equivalents.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bryceautomation.com\/index.php\/2022\/09\/29\/logic-using-only-nand-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=\"2022-09-29T07:24:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-29T07:24:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-144.png\" \/>\n\t<meta property=\"og:image:width\" content=\"311\" \/>\n\t<meta property=\"og:image:height\" content=\"119\" \/>\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\\\/2022\\\/09\\\/29\\\/logic-using-only-nand-gates\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/09\\\/29\\\/logic-using-only-nand-gates\\\/\"},\"author\":{\"name\":\"Ricky\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#\\\/schema\\\/person\\\/5d5b0f6f6ad768f1ee52968338e63af7\"},\"headline\":\"Logic using only NAND Gates\",\"datePublished\":\"2022-09-29T07:24:45+00:00\",\"dateModified\":\"2022-09-29T07:24:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/09\\\/29\\\/logic-using-only-nand-gates\\\/\"},\"wordCount\":795,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/09\\\/29\\\/logic-using-only-nand-gates\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/image-144.png\",\"keywords\":[\"Logic gates\"],\"articleSection\":[\"Beginner\",\"ControlLogix\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/09\\\/29\\\/logic-using-only-nand-gates\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/09\\\/29\\\/logic-using-only-nand-gates\\\/\",\"url\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/09\\\/29\\\/logic-using-only-nand-gates\\\/\",\"name\":\"Logic using only NAND Gates - Bryce Automation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/09\\\/29\\\/logic-using-only-nand-gates\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/09\\\/29\\\/logic-using-only-nand-gates\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/image-144.png\",\"datePublished\":\"2022-09-29T07:24:45+00:00\",\"dateModified\":\"2022-09-29T07:24:48+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#\\\/schema\\\/person\\\/5d5b0f6f6ad768f1ee52968338e63af7\"},\"description\":\"How to build any Logic using only NAND Gates. We'll discuss how to set up AND, OR, and NOT logic, and the ladder logic equivalents.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/09\\\/29\\\/logic-using-only-nand-gates\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/09\\\/29\\\/logic-using-only-nand-gates\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/09\\\/29\\\/logic-using-only-nand-gates\\\/#primaryimage\",\"url\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/image-144.png\",\"contentUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/image-144.png\",\"width\":311,\"height\":119,\"caption\":\"Logic using only NAND Gates\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/09\\\/29\\\/logic-using-only-nand-gates\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/bryceautomation.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Logic using only NAND 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":"Logic using only NAND Gates - Bryce Automation","description":"How to build any Logic using only NAND Gates. We'll discuss how to set up AND, OR, and NOT logic, and the ladder logic equivalents.","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\/2022\/09\/29\/logic-using-only-nand-gates\/","og_locale":"en_US","og_type":"article","og_title":"Logic using only NAND Gates - Bryce Automation","og_description":"How to build any Logic using only NAND Gates. We'll discuss how to set up AND, OR, and NOT logic, and the ladder logic equivalents.","og_url":"https:\/\/bryceautomation.com\/index.php\/2022\/09\/29\/logic-using-only-nand-gates\/","og_site_name":"Bryce Automation","article_author":"https:\/\/www.facebook.com\/ricky.bryce.7","article_published_time":"2022-09-29T07:24:45+00:00","article_modified_time":"2022-09-29T07:24:48+00:00","og_image":[{"width":311,"height":119,"url":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-144.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\/2022\/09\/29\/logic-using-only-nand-gates\/#article","isPartOf":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/09\/29\/logic-using-only-nand-gates\/"},"author":{"name":"Ricky","@id":"https:\/\/bryceautomation.com\/#\/schema\/person\/5d5b0f6f6ad768f1ee52968338e63af7"},"headline":"Logic using only NAND Gates","datePublished":"2022-09-29T07:24:45+00:00","dateModified":"2022-09-29T07:24:48+00:00","mainEntityOfPage":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/09\/29\/logic-using-only-nand-gates\/"},"wordCount":795,"commentCount":0,"image":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/09\/29\/logic-using-only-nand-gates\/#primaryimage"},"thumbnailUrl":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-144.png","keywords":["Logic gates"],"articleSection":["Beginner","ControlLogix"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/bryceautomation.com\/index.php\/2022\/09\/29\/logic-using-only-nand-gates\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/bryceautomation.com\/index.php\/2022\/09\/29\/logic-using-only-nand-gates\/","url":"https:\/\/bryceautomation.com\/index.php\/2022\/09\/29\/logic-using-only-nand-gates\/","name":"Logic using only NAND Gates - Bryce Automation","isPartOf":{"@id":"https:\/\/bryceautomation.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/09\/29\/logic-using-only-nand-gates\/#primaryimage"},"image":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/09\/29\/logic-using-only-nand-gates\/#primaryimage"},"thumbnailUrl":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-144.png","datePublished":"2022-09-29T07:24:45+00:00","dateModified":"2022-09-29T07:24:48+00:00","author":{"@id":"https:\/\/bryceautomation.com\/#\/schema\/person\/5d5b0f6f6ad768f1ee52968338e63af7"},"description":"How to build any Logic using only NAND Gates. We'll discuss how to set up AND, OR, and NOT logic, and the ladder logic equivalents.","breadcrumb":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/09\/29\/logic-using-only-nand-gates\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/bryceautomation.com\/index.php\/2022\/09\/29\/logic-using-only-nand-gates\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bryceautomation.com\/index.php\/2022\/09\/29\/logic-using-only-nand-gates\/#primaryimage","url":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-144.png","contentUrl":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/09\/image-144.png","width":311,"height":119,"caption":"Logic using only NAND Gates"},{"@type":"BreadcrumbList","@id":"https:\/\/bryceautomation.com\/index.php\/2022\/09\/29\/logic-using-only-nand-gates\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bryceautomation.com\/"},{"@type":"ListItem","position":2,"name":"Logic using only NAND 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\/13632","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=13632"}],"version-history":[{"count":0,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/posts\/13632\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/media\/13674"}],"wp:attachment":[{"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/media?parent=13632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/categories?post=13632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/tags?post=13632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}