{"id":11919,"date":"2022-06-29T00:19:43","date_gmt":"2022-06-29T00:19:43","guid":{"rendered":"https:\/\/bryceautomation.com\/?p=11919"},"modified":"2022-06-29T00:24:44","modified_gmt":"2022-06-29T00:24:44","slug":"controllogix-or-vs-xor","status":"publish","type":"post","link":"https:\/\/bryceautomation.com\/index.php\/2022\/06\/29\/controllogix-or-vs-xor\/","title":{"rendered":"ControlLogix OR vs. XOR"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Introduction to ControlLogix OR vs. XOR<\/h3>\n\n\n\n<p>In this section, we&#8217;ll discuss ControlLogix OR vs. XOR.  Basically, with the OR statement, only one of two bits need to be true.   On the other hand, with the XOR, only one of two bits can be true.  XOR means &#8220;Exclusive OR&#8221;  In ladder logic, we will use these as word level instructions.  However, we&#8217;ll break individual bits down.  That way, you can see what is happening at the bit level.<\/p><div id=\"bryce-3724418482\" 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>Word level logic can save a lot of time, memory and processor speed.  For example, let&#8217;s say we have two input cards.  Bit by bit, these input cards will perform the exact same action.  It&#8217;s just that one input card is for a local station.  Likewise, the second output card is for a remote station.  If one or the other bit is true on an input card, then we might energize the corresponding output on another module.  To better explain this detail, consider a motor.  If bit 0 on slot 1 (Local)  OR bit 0 on slot 2 (Remote) goes true, then we might energize bit 0 on an output card in slot 3.  This would be the terminal our motor connects to.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Create the Tags<\/h3>\n\n\n\n<p>Before we begin, I&#8217;ll create some tags that we&#8217;ll need for this demonstration.  As you can see, some of the tags are BOOL, and some tags are DINT.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"461\" height=\"232\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-26.png\" alt=\"\" class=\"wp-image-11924 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-26.png 461w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-26-300x151.png 300w\" data-sizes=\"(max-width: 461px) 100vw, 461px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 461px; --smush-placeholder-aspect-ratio: 461\/232;\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">ControlLogix OR vs. XOR using Ladder Logic<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">OR Statement (Bit Level)<\/h4>\n\n\n\n<p>At this point we&#8217;ll discuss the difference between the OR vs. XOR.  We&#8217;ll use ladder logic to demonstrate this at the bit level.  First, let&#8217;s look at a simple OR rung of logic at the bit level.  If A OR B goes true, then we&#8217;ll energize our output bit.  Additionally, we&#8217;ll energize the output bit if BOTH inputs are true in this case.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"302\" height=\"89\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-27.png\" alt=\"\" class=\"wp-image-11934 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-27.png 302w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-27-300x88.png 300w\" data-sizes=\"(max-width: 302px) 100vw, 302px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 302px; --smush-placeholder-aspect-ratio: 302\/89;\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">XOR Statement (Bit level)<\/h4>\n\n\n\n<p>The XOR statement works a bit differently.  If A or B goes true, then we&#8217;ll energize the output bit.  However, if BOTH A and B are true, the output bit will not energize.  Let&#8217;s take a look at the logic.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"304\" height=\"150\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-28.png\" alt=\"\" class=\"wp-image-11935 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-28.png 304w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-28-300x148.png 300w\" data-sizes=\"(max-width: 304px) 100vw, 304px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 304px; --smush-placeholder-aspect-ratio: 304\/150;\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">ControlLogix OR vs. XOR at the Word Level<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Word level OR<\/h4>\n\n\n\n<p>At this time, let&#8217;s look at how the OR statement works at the word level.  We&#8217;ll just look at a few bits within a word to simplify things.<\/p>\n\n\n\n<p>Bit by bit, the word is ORed together.   In other words, if one of the bits (of the same bit number) are true, then the same bit in the destination will be on.<\/p>\n\n\n\n<p>First, let&#8217;s look at the OR statement in logic.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"306\" height=\"152\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-29.png\" alt=\"\" class=\"wp-image-11938 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-29.png 306w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-29-300x149.png 300w\" data-sizes=\"(max-width: 306px) 100vw, 306px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 306px; --smush-placeholder-aspect-ratio: 306\/152;\" \/><\/figure>\n\n\n\n<p>At this time, I&#8217;ll go to the tags, and we&#8217;ll manipulate bits in the A_Word, and B_Word.  We&#8217;ll see the result in the destination word.<\/p>\n\n\n\n<p>By looking at the Lower 8 bits, you will see the result.  If any bit is true in the A_Word or B_Word, the corresponding bit in the Destination word is also true.  Before opening the quick watch windows, I&#8217;ll go to &#8220;Edit Tags&#8221;.  I&#8217;ll change the Styles to BINARY.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"553\" height=\"93\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-30.png\" alt=\"\" class=\"wp-image-11939 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-30.png 553w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-30-300x50.png 300w\" data-sizes=\"(max-width: 553px) 100vw, 553px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 553px; --smush-placeholder-aspect-ratio: 553\/93;\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Word Level XOR<\/h4>\n\n\n\n<p>Now, let&#8217;s use the same data.  We&#8217;ll switch our instruction to an XOR.<\/p>\n\n\n\n<p>Notice that I have changed the style to binary.  The instruction itself shows the values in binary now as well.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"369\" height=\"147\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-31.png\" alt=\"\" class=\"wp-image-11940 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-31.png 369w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-31-300x120.png 300w\" data-sizes=\"(max-width: 369px) 100vw, 369px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 369px; --smush-placeholder-aspect-ratio: 369\/147;\" \/><\/figure>\n\n\n\n<p>At this point, let&#8217;s go to the quick watch window.  Let&#8217;s see if we get a different result.  We&#8217;ll use the same values as we did with the OR.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"540\" height=\"106\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-32.png\" alt=\"\" class=\"wp-image-11941 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-32.png 540w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-32-300x59.png 300w\" data-sizes=\"(max-width: 540px) 100vw, 540px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 540px; --smush-placeholder-aspect-ratio: 540\/106;\" \/><\/figure>\n\n\n\n<p>You can see the difference in Bit 7.  Since Bit 7 is true in the A_Word and B_Word, the result is 0.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Summary<\/h3>\n\n\n\n<p>In short, Both the OR and XOR have good uses at the word level.  With the OR statement we can compare two words.  This allows us to &#8220;Merge&#8221; two words into one image.  The behavior of the XOR is different, however.  It has a different purpose.  It effectively allows us to &#8220;reverse&#8221; a bit of an input image.  Imagine an input module instead of our A_word.  Consider the B_word to be a &#8220;mask&#8221;.  In this case, when I set a bit in the B_word, the corresponding bit of the A_word reverses in the destination.  <\/p>\n\n\n\n<p>This is useful if we want to use standard logic for every device.  One switch may be normally closed instead of normally open.  By using the XOR, we can set bits in the &#8220;mask&#8221;.  This effectively reverses the operation of the field device before other logic sees it.<\/p>\n\n\n\n<p>For more information, visit the <a href=\"https:\/\/bryceautomation.com\/index.php\/category\/controllogix\/\">ControlLogix Category Page!<\/a><\/p>\n\n\n\n<p>&#8212; Ricky Bryce<\/p>\n<div id=\"bryce-3157886146\" 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 ControlLogix OR vs. XOR In this section, we&#8217;ll discuss ControlLogix OR vs. XOR. Basically, with the OR statement, only one of two bits need to be true. On the other hand, with the XOR, only one of two bits can be true. XOR means &#8220;Exclusive OR&#8221; In ladder logic, we will use these <a class=\"moretag btn btn-primary\" href=\"https:\/\/bryceautomation.com\/index.php\/2022\/06\/29\/controllogix-or-vs-xor\/\">Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":11955,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[722,326,330],"class_list":{"0":"post-11919","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-controllogix","8":"tag-mask","9":"tag-or","10":"tag-xor","11":"czr-hentry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ControlLogix OR vs. XOR - Bryce Automation<\/title>\n<meta name=\"description\" content=\"The differences between ControlLogix OR vs. XOR. With the OR statement, one of two bits must be true. With XOR, only one can be true.\" \/>\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\/06\/29\/controllogix-or-vs-xor\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ControlLogix OR vs. XOR - Bryce Automation\" \/>\n<meta property=\"og:description\" content=\"The differences between ControlLogix OR vs. XOR. With the OR statement, one of two bits must be true. With XOR, only one can be true.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bryceautomation.com\/index.php\/2022\/06\/29\/controllogix-or-vs-xor\/\" \/>\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-06-29T00:19:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-29T00:24:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-33.png\" \/>\n\t<meta property=\"og:image:width\" content=\"531\" \/>\n\t<meta property=\"og:image:height\" content=\"384\" \/>\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\\\/06\\\/29\\\/controllogix-or-vs-xor\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/06\\\/29\\\/controllogix-or-vs-xor\\\/\"},\"author\":{\"name\":\"Ricky\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#\\\/schema\\\/person\\\/5d5b0f6f6ad768f1ee52968338e63af7\"},\"headline\":\"ControlLogix OR vs. XOR\",\"datePublished\":\"2022-06-29T00:19:43+00:00\",\"dateModified\":\"2022-06-29T00:24:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/06\\\/29\\\/controllogix-or-vs-xor\\\/\"},\"wordCount\":775,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/06\\\/29\\\/controllogix-or-vs-xor\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/image-33.png\",\"keywords\":[\"MASK\",\"OR\",\"XOR\"],\"articleSection\":[\"ControlLogix\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/06\\\/29\\\/controllogix-or-vs-xor\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/06\\\/29\\\/controllogix-or-vs-xor\\\/\",\"url\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/06\\\/29\\\/controllogix-or-vs-xor\\\/\",\"name\":\"ControlLogix OR vs. XOR - Bryce Automation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/06\\\/29\\\/controllogix-or-vs-xor\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/06\\\/29\\\/controllogix-or-vs-xor\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/image-33.png\",\"datePublished\":\"2022-06-29T00:19:43+00:00\",\"dateModified\":\"2022-06-29T00:24:44+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#\\\/schema\\\/person\\\/5d5b0f6f6ad768f1ee52968338e63af7\"},\"description\":\"The differences between ControlLogix OR vs. XOR. With the OR statement, one of two bits must be true. With XOR, only one can be true.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/06\\\/29\\\/controllogix-or-vs-xor\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/06\\\/29\\\/controllogix-or-vs-xor\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/06\\\/29\\\/controllogix-or-vs-xor\\\/#primaryimage\",\"url\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/image-33.png\",\"contentUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/image-33.png\",\"width\":531,\"height\":384,\"caption\":\"xor\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/06\\\/29\\\/controllogix-or-vs-xor\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/bryceautomation.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ControlLogix OR vs. XOR\"}]},{\"@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":"ControlLogix OR vs. XOR - Bryce Automation","description":"The differences between ControlLogix OR vs. XOR. With the OR statement, one of two bits must be true. With XOR, only one can be true.","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\/06\/29\/controllogix-or-vs-xor\/","og_locale":"en_US","og_type":"article","og_title":"ControlLogix OR vs. XOR - Bryce Automation","og_description":"The differences between ControlLogix OR vs. XOR. With the OR statement, one of two bits must be true. With XOR, only one can be true.","og_url":"https:\/\/bryceautomation.com\/index.php\/2022\/06\/29\/controllogix-or-vs-xor\/","og_site_name":"Bryce Automation","article_author":"https:\/\/www.facebook.com\/ricky.bryce.7","article_published_time":"2022-06-29T00:19:43+00:00","article_modified_time":"2022-06-29T00:24:44+00:00","og_image":[{"width":531,"height":384,"url":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-33.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\/06\/29\/controllogix-or-vs-xor\/#article","isPartOf":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/06\/29\/controllogix-or-vs-xor\/"},"author":{"name":"Ricky","@id":"https:\/\/bryceautomation.com\/#\/schema\/person\/5d5b0f6f6ad768f1ee52968338e63af7"},"headline":"ControlLogix OR vs. XOR","datePublished":"2022-06-29T00:19:43+00:00","dateModified":"2022-06-29T00:24:44+00:00","mainEntityOfPage":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/06\/29\/controllogix-or-vs-xor\/"},"wordCount":775,"commentCount":0,"image":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/06\/29\/controllogix-or-vs-xor\/#primaryimage"},"thumbnailUrl":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-33.png","keywords":["MASK","OR","XOR"],"articleSection":["ControlLogix"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/bryceautomation.com\/index.php\/2022\/06\/29\/controllogix-or-vs-xor\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/bryceautomation.com\/index.php\/2022\/06\/29\/controllogix-or-vs-xor\/","url":"https:\/\/bryceautomation.com\/index.php\/2022\/06\/29\/controllogix-or-vs-xor\/","name":"ControlLogix OR vs. XOR - Bryce Automation","isPartOf":{"@id":"https:\/\/bryceautomation.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/06\/29\/controllogix-or-vs-xor\/#primaryimage"},"image":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/06\/29\/controllogix-or-vs-xor\/#primaryimage"},"thumbnailUrl":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-33.png","datePublished":"2022-06-29T00:19:43+00:00","dateModified":"2022-06-29T00:24:44+00:00","author":{"@id":"https:\/\/bryceautomation.com\/#\/schema\/person\/5d5b0f6f6ad768f1ee52968338e63af7"},"description":"The differences between ControlLogix OR vs. XOR. With the OR statement, one of two bits must be true. With XOR, only one can be true.","breadcrumb":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/06\/29\/controllogix-or-vs-xor\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/bryceautomation.com\/index.php\/2022\/06\/29\/controllogix-or-vs-xor\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bryceautomation.com\/index.php\/2022\/06\/29\/controllogix-or-vs-xor\/#primaryimage","url":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-33.png","contentUrl":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/06\/image-33.png","width":531,"height":384,"caption":"xor"},{"@type":"BreadcrumbList","@id":"https:\/\/bryceautomation.com\/index.php\/2022\/06\/29\/controllogix-or-vs-xor\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bryceautomation.com\/"},{"@type":"ListItem","position":2,"name":"ControlLogix OR vs. XOR"}]},{"@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\/11919","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=11919"}],"version-history":[{"count":0,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/posts\/11919\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/media\/11955"}],"wp:attachment":[{"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/media?parent=11919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/categories?post=11919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/tags?post=11919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}