{"id":10122,"date":"2022-02-04T11:11:46","date_gmt":"2022-02-04T11:11:46","guid":{"rendered":"https:\/\/bryceautomation.com\/?p=10122"},"modified":"2022-02-04T11:11:48","modified_gmt":"2022-02-04T11:11:48","slug":"controllogix-while-do-statement","status":"publish","type":"post","link":"https:\/\/bryceautomation.com\/index.php\/2022\/02\/04\/controllogix-while-do-statement\/","title":{"rendered":"ControlLogix While \/ Do Statement"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\" id=\"introduction-to-the-controllogix-while-do-statement\">Introduction to the ControlLogix While \/ Do Statement<\/h3>\n\n\n\n<p>The ControlLogix While \/ Do Statement allows you to execute a block of code while a specific condition is true.    This statement is available in Structured text.  You can use this statement to perform large calculations on arrays.   Some vendors might use structured text for complex algorithms.   Another reason they use structured text is for developers to write code without the need of RSLogix or Studio 5000.  Because of licensing, vendors might not be able to purchase a license for each developer.  The developer can simply write the code in a simple text editor.  After that,  the person assembling all of the logic can paste the code into a structured text routine.  Always remember that when you are writing code, someone else will need to troubleshoot a system.  Always write your code in a way that is easy to read.<\/p><div id=\"bryce-2597198950\" 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> I would encourage you, however, to use the For \/ Do structure instead when possible.  It&#8217;s important to realize the danger associated with this instruction.  You can easily get the logic stuck in an infinite loop.  You must take precautions against this.  Additionally, someone else could modify your code at a later date.  Their modifications could inadvertently cause an infinite loop.   This would likely fault the processor.<\/p>\n\n\n\n<p>The watchdog timer looks over your code.  By default, if a task takes longer than 500ms to execute the processor will fault.  You can configure the watchdog timer in the properties of a task.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-the-structured-text-routine\">Create the Structured Text Routine<\/h3>\n\n\n\n<p>In this case, I&#8217;ll simply add a structured text routine named &#8220;DoWhile&#8221; to the MainProgram.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image.png\" alt=\"\" class=\"wp-image-10123 lazyload\" width=\"309\" height=\"194\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image.png 484w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-300x188.png 300w\" data-sizes=\"(max-width: 309px) 100vw, 309px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 309px; --smush-placeholder-aspect-ratio: 309\/194;\" \/><\/figure>\n\n\n\n<p>Keep in mind that this is a subroutine.  We must add a JSR Instruction to the MainRoutine so this subroutine will execute.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"641\" height=\"178\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-1.png\" alt=\"\" class=\"wp-image-10124 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-1.png 641w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-1-300x83.png 300w\" data-sizes=\"(max-width: 641px) 100vw, 641px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 641px; --smush-placeholder-aspect-ratio: 641\/178;\" \/><\/figure>\n\n\n\n<p>At this point, we are ready to write the code.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-your-tags\">Create Your Tags<\/h3>\n\n\n\n<p>To demonstrate, I&#8217;ll simply create a task that counts to 11.  In Controller tags, I&#8217;ll create a tag called TotalCounts.  The Data Type of this tag is DINT.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"483\" height=\"104\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-2.png\" alt=\"\" class=\"wp-image-10125 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-2.png 483w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-2-300x65.png 300w\" data-sizes=\"(max-width: 483px) 100vw, 483px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 483px; --smush-placeholder-aspect-ratio: 483\/104;\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"write-your-logic\">Write your Logic<\/h3>\n\n\n\n<p>The logic for this loop will be very simple.   The purpose of this logic is to show the structure of the Do \/ While loop.  Keep in mind, the only purpose here is to count to 10.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"355\" height=\"101\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-3.png\" alt=\"\" class=\"wp-image-10126 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-3.png 355w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-3-300x85.png 300w\" data-sizes=\"(max-width: 355px) 100vw, 355px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 355px; --smush-placeholder-aspect-ratio: 355\/101;\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"test-your-code\">Test your Code<\/h3>\n\n\n\n<p>At last, we&#8217;re ready to test your code.  Let&#8217;s finalize all edits.<\/p>\n\n\n\n<p>Let&#8217;s check our Controller Tag.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"484\" height=\"102\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-4.png\" alt=\"\" class=\"wp-image-10128 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-4.png 484w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-4-300x63.png 300w\" data-sizes=\"(max-width: 484px) 100vw, 484px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 484px; --smush-placeholder-aspect-ratio: 484\/102;\" \/><\/figure>\n\n\n\n<p>As you can see, our counts went to 11.   Remember that our statement told the controller to execute the logic while the total counts are less than 11.   Each time the loop executes, the TotalCounts increment.   This loop does happens during the same processor scan.   This is why it&#8217;s important to ensure we do not get the processor in an infinite loop.   If you fail to break out of the loop, undoubtedly, the processor will fault.<\/p>\n\n\n\n<p>Optionally, you can break out of the loop at anytime using the EXIT; statement.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"clearing-a-processor-fault\">Clearing a Processor Fault<\/h3>\n\n\n\n<p>As I have said before, if you fail to break out of the loop our system will shut down.  Let&#8217;s consider the following code:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"328\" height=\"96\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-5.png\" alt=\"\" class=\"wp-image-10129 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-5.png 328w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-5-300x88.png 300w\" data-sizes=\"(max-width: 328px) 100vw, 328px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 328px; --smush-placeholder-aspect-ratio: 328\/96;\" \/><\/figure>\n\n\n\n<p>In this case, we will loop too many times, and the processor will fault.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"165\" height=\"102\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-6.png\" alt=\"\" class=\"wp-image-10130 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 165px; --smush-placeholder-aspect-ratio: 165\/102;\" \/><\/figure>\n\n\n\n<p>Hit your pull down tab in the Online Toolbar where it displays the faulted status.  Go to faults.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"578\" height=\"274\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-7.png\" alt=\"\" class=\"wp-image-10131 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-7.png 578w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-7-300x142.png 300w\" data-sizes=\"(max-width: 578px) 100vw, 578px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 578px; --smush-placeholder-aspect-ratio: 578\/274;\" \/><\/figure>\n\n\n\n<p>The Recent Faults message will give us an idea where the watchdog fault might have occurred.<\/p>\n\n\n\n<p>Let&#8217;s look at our total counts tag:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"476\" height=\"99\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-8.png\" alt=\"\" class=\"wp-image-10132 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-8.png 476w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image-8-300x62.png 300w\" data-sizes=\"(max-width: 476px) 100vw, 476px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 476px; --smush-placeholder-aspect-ratio: 476\/99;\" \/><\/figure>\n\n\n\n<p>As you can see, we didn&#8217;t even get near the value we would expect.<\/p>\n\n\n\n<p>When this happens, clear the fault, fix your code, and go back to run mode.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"summary\">Summary<\/h3>\n\n\n\n<p>To Summarize, the Do \/ While statement will execute a certain block of code while a condition is true.  You must use extreme care when using this instruction.  As I said before, it&#8217;s much better to use the For \/ Do block instead when possible.<\/p>\n\n\n\n<p>For more information on ControlLogix, visit the <a href=\"https:\/\/bryceautomation.com\/index.php\/category\/controllogix\/\">category page!<\/a><\/p>\n\n\n\n<p>&#8212; Ricky Bryce<\/p>\n<div id=\"bryce-994078351\" 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 the ControlLogix While \/ Do Statement The ControlLogix While \/ Do Statement allows you to execute a block of code while a specific condition is true. This statement is available in Structured text. You can use this statement to perform large calculations on arrays. Some vendors might use structured text for complex algorithms. <a class=\"moretag btn btn-primary\" href=\"https:\/\/bryceautomation.com\/index.php\/2022\/02\/04\/controllogix-while-do-statement\/\">Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":10123,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":{"0":"post-10122","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-controllogix","8":"czr-hentry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ControlLogix While \/ Do Statement - Bryce Automation<\/title>\n<meta name=\"description\" content=\"How to use the ControlLogix While \/ Do Statement, and take precautions to prevent a controller watchdog fault.\" \/>\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\/02\/04\/controllogix-while-do-statement\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ControlLogix While \/ Do Statement - Bryce Automation\" \/>\n<meta property=\"og:description\" content=\"How to use the ControlLogix While \/ Do Statement, and take precautions to prevent a controller watchdog fault.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bryceautomation.com\/index.php\/2022\/02\/04\/controllogix-while-do-statement\/\" \/>\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-02-04T11:11:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-04T11:11:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"484\" \/>\n\t<meta property=\"og:image:height\" content=\"304\" \/>\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\\\/02\\\/04\\\/controllogix-while-do-statement\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/02\\\/04\\\/controllogix-while-do-statement\\\/\"},\"author\":{\"name\":\"Ricky\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#\\\/schema\\\/person\\\/5d5b0f6f6ad768f1ee52968338e63af7\"},\"headline\":\"ControlLogix While \\\/ Do Statement\",\"datePublished\":\"2022-02-04T11:11:46+00:00\",\"dateModified\":\"2022-02-04T11:11:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/02\\\/04\\\/controllogix-while-do-statement\\\/\"},\"wordCount\":657,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/02\\\/04\\\/controllogix-while-do-statement\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/image.png\",\"articleSection\":[\"ControlLogix\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/02\\\/04\\\/controllogix-while-do-statement\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/02\\\/04\\\/controllogix-while-do-statement\\\/\",\"url\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/02\\\/04\\\/controllogix-while-do-statement\\\/\",\"name\":\"ControlLogix While \\\/ Do Statement - Bryce Automation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/02\\\/04\\\/controllogix-while-do-statement\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/02\\\/04\\\/controllogix-while-do-statement\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/image.png\",\"datePublished\":\"2022-02-04T11:11:46+00:00\",\"dateModified\":\"2022-02-04T11:11:48+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#\\\/schema\\\/person\\\/5d5b0f6f6ad768f1ee52968338e63af7\"},\"description\":\"How to use the ControlLogix While \\\/ Do Statement, and take precautions to prevent a controller watchdog fault.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/02\\\/04\\\/controllogix-while-do-statement\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/02\\\/04\\\/controllogix-while-do-statement\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/02\\\/04\\\/controllogix-while-do-statement\\\/#primaryimage\",\"url\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/image.png\",\"contentUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/image.png\",\"width\":484,\"height\":304,\"caption\":\"Create STX\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/02\\\/04\\\/controllogix-while-do-statement\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/bryceautomation.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ControlLogix While \\\/ Do Statement\"}]},{\"@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 While \/ Do Statement - Bryce Automation","description":"How to use the ControlLogix While \/ Do Statement, and take precautions to prevent a controller watchdog fault.","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\/02\/04\/controllogix-while-do-statement\/","og_locale":"en_US","og_type":"article","og_title":"ControlLogix While \/ Do Statement - Bryce Automation","og_description":"How to use the ControlLogix While \/ Do Statement, and take precautions to prevent a controller watchdog fault.","og_url":"https:\/\/bryceautomation.com\/index.php\/2022\/02\/04\/controllogix-while-do-statement\/","og_site_name":"Bryce Automation","article_author":"https:\/\/www.facebook.com\/ricky.bryce.7","article_published_time":"2022-02-04T11:11:46+00:00","article_modified_time":"2022-02-04T11:11:48+00:00","og_image":[{"width":484,"height":304,"url":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image.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\/02\/04\/controllogix-while-do-statement\/#article","isPartOf":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/02\/04\/controllogix-while-do-statement\/"},"author":{"name":"Ricky","@id":"https:\/\/bryceautomation.com\/#\/schema\/person\/5d5b0f6f6ad768f1ee52968338e63af7"},"headline":"ControlLogix While \/ Do Statement","datePublished":"2022-02-04T11:11:46+00:00","dateModified":"2022-02-04T11:11:48+00:00","mainEntityOfPage":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/02\/04\/controllogix-while-do-statement\/"},"wordCount":657,"commentCount":0,"image":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/02\/04\/controllogix-while-do-statement\/#primaryimage"},"thumbnailUrl":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image.png","articleSection":["ControlLogix"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/bryceautomation.com\/index.php\/2022\/02\/04\/controllogix-while-do-statement\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/bryceautomation.com\/index.php\/2022\/02\/04\/controllogix-while-do-statement\/","url":"https:\/\/bryceautomation.com\/index.php\/2022\/02\/04\/controllogix-while-do-statement\/","name":"ControlLogix While \/ Do Statement - Bryce Automation","isPartOf":{"@id":"https:\/\/bryceautomation.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/02\/04\/controllogix-while-do-statement\/#primaryimage"},"image":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/02\/04\/controllogix-while-do-statement\/#primaryimage"},"thumbnailUrl":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image.png","datePublished":"2022-02-04T11:11:46+00:00","dateModified":"2022-02-04T11:11:48+00:00","author":{"@id":"https:\/\/bryceautomation.com\/#\/schema\/person\/5d5b0f6f6ad768f1ee52968338e63af7"},"description":"How to use the ControlLogix While \/ Do Statement, and take precautions to prevent a controller watchdog fault.","breadcrumb":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/02\/04\/controllogix-while-do-statement\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/bryceautomation.com\/index.php\/2022\/02\/04\/controllogix-while-do-statement\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bryceautomation.com\/index.php\/2022\/02\/04\/controllogix-while-do-statement\/#primaryimage","url":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image.png","contentUrl":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/02\/image.png","width":484,"height":304,"caption":"Create STX"},{"@type":"BreadcrumbList","@id":"https:\/\/bryceautomation.com\/index.php\/2022\/02\/04\/controllogix-while-do-statement\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bryceautomation.com\/"},{"@type":"ListItem","position":2,"name":"ControlLogix While \/ Do Statement"}]},{"@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\/10122","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=10122"}],"version-history":[{"count":0,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/posts\/10122\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/media\/10123"}],"wp:attachment":[{"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/media?parent=10122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/categories?post=10122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/tags?post=10122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}