{"id":64602,"date":"2025-02-18T08:00:00","date_gmt":"2025-02-18T02:30:00","guid":{"rendered":"https:\/\/ye1o34zhk8.onrocket.site\/?p=64602"},"modified":"2025-01-07T15:19:11","modified_gmt":"2025-01-07T09:49:11","slug":"while-do-statement-in-structured-text","status":"publish","type":"post","link":"https:\/\/instrumentationtools.com\/while-do-statement-in-structured-text\/","title":{"rendered":"While Do Statement in Structured Text PLC Program"},"content":{"rendered":"\n<p>St<strong>ructured text is a very powerful language in PLC programming<\/strong>. If you are able to write complex statements in it, then you can execute even a very large system smoothly. One such statement is while-do. The <strong>While-Do statement<\/strong> is used to perform repetitive tasks with minimal <a href=\"https:\/\/instrumentationtools.com\/safety-plc-coding-practices\/\" target=\"_blank\" rel=\"noreferrer noopener\">coding<\/a>. Such powerful tools minimize the size of your program and save a lot of memory. In this post, we will see a case for writing this while-do statement in the PLC program.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-a-while-do-statement-in-structured-text\">What is a while-do statement in structured text?<\/h2>\n\n\n\n<p>A <strong>while-do<\/strong> statement is a construct in structured text language, which is used to perform <strong>repetitive tasks<\/strong>. It checks a condition and as long as the condition is true, the statements written under this construct are executed. These <a href=\"https:\/\/instrumentationtools.com\/structured-text-vs-instruction-list\/\" target=\"_blank\" rel=\"noreferrer noopener\">statements<\/a> are useful when there is a task which needs to be done continuously as long as the condition is true. Once the condition becomes false, the construct stops executing.<\/p>\n\n\n\n<p>The statement looks like this as shown below. As long as the expression is true, the three statements will execute. When the expression becomes false, then they won\u2019t execute.<\/p>\n\n\n\n<figure class=\"wp-block-pullquote\"><blockquote><p><strong>while <\/strong><em>expression <\/em><strong>do<\/strong><br><em>statement-1;<\/em><br><em>statement-2;<\/em><br><em>statement-3;<\/em><br><strong>exit<\/strong>;<br><strong>end_while<\/strong>;<\/p><\/blockquote><\/figure>\n\n\n\n<p><strong>There are some general points to consider when writing while-do statements:<\/strong><\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>As this construct is already working for a <strong>loop<\/strong>, do not create loops under a single loop. The <a href=\"https:\/\/instrumentationtools.com\/dosing-pump-plc-logic\/\" target=\"_blank\" rel=\"noreferrer noopener\">PLC<\/a> CPU will consider it then as an infinite loop which cannot be executed, and will go under fault mode if the watchdog timer elapses.<\/li>\n\n\n\n<li>Whenever writing this statement, a way must be found to come out of the loop every once. For this, a syntax called <strong>exit <\/strong>is used. Or, the statement must be written in such a way that it comes out of the construct and executes the loop once again. If the processing is caught inside only, then the PLC will go into fault mode.<\/li>\n\n\n\n<li>PLC consumes some larger <a href=\"https:\/\/instrumentationtools.com\/programmable-logic-controller-scan-time\/\" target=\"_blank\" rel=\"noreferrer noopener\">scan time<\/a> when executing these instructions, so avoid using it in many instances. It will then be possible that some important logic may be skipped by the CPU to execute. So, take care in writing these statements effectively and in a limited way.<\/li>\n\n\n\n<li>Exit is not compulsory to use. But if not using, then there must be some other way written in your statement to jump out of the loop. But practically, exit is preferred to write because it simplifies your problem.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-plc-program-using-while-do-statement\">PLC Program using while-do statement<\/h2>\n\n\n\n<p>Let us understand the case first. We are decrementing a number by 1 every 1 second, starting from 10. When that number reaches 0, it will again start decrementing from 10. The loop goes on in this fashion.<\/p>\n\n\n\n<p>Refer to the below image for the program written.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2025\/02\/While-Do-Statement-in-Structured-Text-PLC-Program.png\" alt=\"While Do Statement in Structured Text PLC Program\" class=\"wp-image-64605\"\/><\/figure>\n\n\n\n<p>We will have a detailed study exploring it more in the below image. In the first line, as long as the <strong>secs <\/strong>value is more than zero, the loop will start to execute. In the second line, we start the loop by first defining a timer &#8211; <strong>sec_trigger<\/strong>.<\/p>\n\n\n\n<p>In the third line, we enable the <a href=\"https:\/\/instrumentationtools.com\/plc-cooking-timer-example\/\" target=\"_blank\" rel=\"noreferrer noopener\">timer<\/a> by inserting the <strong>NOT <\/strong>function of it\u2019s own done bit. Due to this, the timer will run continuously every one second. In the fourth line, we move the timer setpoint as 1 second. In the fifth line, if the timer is done, then we self-decrement the value by 1.<\/p>\n\n\n\n<p>In the sixth line, the loop is exited. In the seventh line, the while loop is ended. But internally, it will jump again to the <strong>while statement<\/strong>. In the eighth line, if the value is less than or equal to zero, then we move 10 again in the variable.<\/p>\n\n\n\n<p>So practically, the loop executes from 10 to 0 by decrementing itself, and once zero is reached, 10 is moved and the decrement starts again. If the last line was written inside the loop, then it would not have come out of the loop, and the PLC would have gone into <a href=\"https:\/\/instrumentationtools.com\/software-troubleshooting-errors-and-faults-in-siemens-plc\/\" target=\"_blank\" rel=\"noreferrer noopener\">fault<\/a> mode.<\/p>\n\n\n\n<p>This means, the basic rule is simple &#8211; <strong>execute the loop once, come out of it and execute again if the condition is ok<\/strong>. Or if you do not wish to continue after your work has been done, then there is no need to write the last line. The decrement will then happen only till 0 and the loop will <a href=\"https:\/\/instrumentationtools.com\/plc-emergency-stop-example-program\/\" target=\"_blank\" rel=\"noreferrer noopener\">stop<\/a> executing after it. So, it all depends on your requirements.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2025\/02\/PLC-Program-using-while-do-statement.png\" alt=\"PLC Program using while-do statement\" class=\"wp-image-64606\"\/><\/figure>\n\n\n\n<p>In this way, we saw how to write a while-do statement in the PLC program.<\/p>\n\n\n\n<p><strong>Read Next:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/instrumentationtools.com\/simple-conveyor-control-plc-program\/\" target=\"_blank\" rel=\"noreferrer noopener\">Simple Conveyor Control PLC Program Example<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/instrumentationtools.com\/anti-static-wrist-straps\/\" target=\"_blank\" rel=\"noreferrer noopener\">Anti-static Wrist Straps in Industrial Automation<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/instrumentationtools.com\/plc-program-for-traffic-light-sequence\/\" target=\"_blank\" rel=\"noreferrer noopener\">PLC Traffic Light Sequence using Functional Blocks<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/instrumentationtools.com\/structured-text-plc-code\/\" target=\"_blank\" rel=\"noreferrer noopener\">Structured Text PLC Sequential Process Data Storage<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/instrumentationtools.com\/increment-decrement-instructions\/\" target=\"_blank\" rel=\"noreferrer noopener\">Increment and Decrement Instructions in OMRON<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to use the powerful while-do statement in structured text language for PLC programming to execute repetitive tasks.<\/p>\n","protected":false},"author":101029,"featured_media":64605,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mo_disable_npp":"","footnotes":""},"categories":[6],"tags":[41863,109970,109961,110077],"class_list":{"0":"post-64602","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-plc","8":"tag-structured-text","9":"tag-structured-text-plc","10":"tag-structured-text-plc-programming","11":"tag-structured-text-programming"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>While Do Statement in Structured Text PLC Program<\/title>\n<meta name=\"description\" content=\"Learn how to use the powerful while-do statement in structured text language for PLC programming to execute repetitive tasks.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/instrumentationtools.com\/while-do-statement-in-structured-text\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"While Do Statement in Structured Text PLC Program\" \/>\n<meta property=\"og:description\" content=\"Learn how to use the powerful while-do statement in structured text language for PLC programming to execute repetitive tasks.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/instrumentationtools.com\/while-do-statement-in-structured-text\/\" \/>\n<meta property=\"og:site_name\" content=\"Inst Tools\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/instrumentationtoolss\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-18T02:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2025\/02\/While-Do-Statement-in-Structured-Text-PLC-Program-scaled.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1618\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Viral Nagda\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"While Do Statement in Structured Text PLC Program\" \/>\n<meta name=\"twitter:description\" content=\"Learn how to use the powerful while-do statement in structured text language for PLC programming to execute repetitive tasks.\" \/>\n<meta name=\"twitter:creator\" content=\"@insttools\" \/>\n<meta name=\"twitter:site\" content=\"@insttools\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Viral Nagda\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/while-do-statement-in-structured-text\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/while-do-statement-in-structured-text\\\/\"},\"author\":{\"name\":\"Viral Nagda\",\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/#\\\/schema\\\/person\\\/37a7ca9af8b0c120c1cda12ecdcfe6f7\"},\"headline\":\"While Do Statement in Structured Text PLC Program\",\"datePublished\":\"2025-02-18T02:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/while-do-statement-in-structured-text\\\/\"},\"wordCount\":774,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/while-do-statement-in-structured-text\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/instrumentationtools.com\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/While-Do-Statement-in-Structured-Text-PLC-Program-scaled.png\",\"keywords\":[\"Structured Text\",\"structured text plc\",\"structured text plc programming\",\"structured text programming\"],\"articleSection\":[\"PLC Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/instrumentationtools.com\\\/while-do-statement-in-structured-text\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/while-do-statement-in-structured-text\\\/\",\"url\":\"https:\\\/\\\/instrumentationtools.com\\\/while-do-statement-in-structured-text\\\/\",\"name\":\"While Do Statement in Structured Text PLC Program\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/while-do-statement-in-structured-text\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/while-do-statement-in-structured-text\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/instrumentationtools.com\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/While-Do-Statement-in-Structured-Text-PLC-Program-scaled.png\",\"datePublished\":\"2025-02-18T02:30:00+00:00\",\"description\":\"Learn how to use the powerful while-do statement in structured text language for PLC programming to execute repetitive tasks.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/while-do-statement-in-structured-text\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/instrumentationtools.com\\\/while-do-statement-in-structured-text\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/while-do-statement-in-structured-text\\\/#primaryimage\",\"url\":\"https:\\\/\\\/instrumentationtools.com\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/While-Do-Statement-in-Structured-Text-PLC-Program-scaled.png\",\"contentUrl\":\"https:\\\/\\\/instrumentationtools.com\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/While-Do-Statement-in-Structured-Text-PLC-Program-scaled.png\",\"width\":2560,\"height\":1618,\"caption\":\"While Do Statement in Structured Text PLC Program\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/while-do-statement-in-structured-text\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/instrumentationtools.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"While Do Statement in Structured Text PLC Program\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/#website\",\"url\":\"https:\\\/\\\/instrumentationtools.com\\\/\",\"name\":\"Instrumentation Tools\",\"description\":\"Instrumentation, Electrical, PLC, Tutorials\",\"publisher\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/#organization\"},\"alternateName\":\"Inst Tools\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/instrumentationtools.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/#organization\",\"name\":\"Instrumentation Tools\",\"alternateName\":\"Inst Tools\",\"url\":\"https:\\\/\\\/instrumentationtools.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/instrumentationtools.com\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/Instrumentation-Tools-Logo.png\",\"contentUrl\":\"https:\\\/\\\/instrumentationtools.com\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/Instrumentation-Tools-Logo.png\",\"width\":1024,\"height\":1024,\"caption\":\"Instrumentation Tools\"},\"image\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/instrumentationtoolss\\\/\",\"https:\\\/\\\/x.com\\\/insttools\",\"https:\\\/\\\/mastodon.social\\\/@InstrumentationTools\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/instrumentationtools\\\/\",\"https:\\\/\\\/whatsapp.com\\\/channel\\\/0029VaAbUecLNSa4rDPOV31o\",\"https:\\\/\\\/t.me\\\/+u3qORX5FKec1NjA1\",\"https:\\\/\\\/www.instagram.com\\\/instrumentationtools\\\/\",\"https:\\\/\\\/youtube.com\\\/instrumentationtools\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/#\\\/schema\\\/person\\\/37a7ca9af8b0c120c1cda12ecdcfe6f7\",\"name\":\"Viral Nagda\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/472c4f2bb73ace2a7e1a8111cf0faa2c9d107a50072eedcbb9ba39613df9e3d9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/472c4f2bb73ace2a7e1a8111cf0faa2c9d107a50072eedcbb9ba39613df9e3d9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/472c4f2bb73ace2a7e1a8111cf0faa2c9d107a50072eedcbb9ba39613df9e3d9?s=96&d=mm&r=g\",\"caption\":\"Viral Nagda\"},\"description\":\"Electronics Engineer with 12+ years of experience in industrial automation. Blogging is my hobby and I write articles and blogs on industrial automation.\",\"url\":\"https:\\\/\\\/instrumentationtools.com\\\/author\\\/viral-nagda\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"While Do Statement in Structured Text PLC Program","description":"Learn how to use the powerful while-do statement in structured text language for PLC programming to execute repetitive tasks.","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:\/\/instrumentationtools.com\/while-do-statement-in-structured-text\/","og_locale":"en_US","og_type":"article","og_title":"While Do Statement in Structured Text PLC Program","og_description":"Learn how to use the powerful while-do statement in structured text language for PLC programming to execute repetitive tasks.","og_url":"https:\/\/instrumentationtools.com\/while-do-statement-in-structured-text\/","og_site_name":"Inst Tools","article_publisher":"https:\/\/www.facebook.com\/instrumentationtoolss\/","article_published_time":"2025-02-18T02:30:00+00:00","og_image":[{"width":2560,"height":1618,"url":"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2025\/02\/While-Do-Statement-in-Structured-Text-PLC-Program-scaled.png","type":"image\/png"}],"author":"Viral Nagda","twitter_card":"summary_large_image","twitter_title":"While Do Statement in Structured Text PLC Program","twitter_description":"Learn how to use the powerful while-do statement in structured text language for PLC programming to execute repetitive tasks.","twitter_creator":"@insttools","twitter_site":"@insttools","twitter_misc":{"Written by":"Viral Nagda","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/instrumentationtools.com\/while-do-statement-in-structured-text\/#article","isPartOf":{"@id":"https:\/\/instrumentationtools.com\/while-do-statement-in-structured-text\/"},"author":{"name":"Viral Nagda","@id":"https:\/\/instrumentationtools.com\/#\/schema\/person\/37a7ca9af8b0c120c1cda12ecdcfe6f7"},"headline":"While Do Statement in Structured Text PLC Program","datePublished":"2025-02-18T02:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/instrumentationtools.com\/while-do-statement-in-structured-text\/"},"wordCount":774,"commentCount":0,"publisher":{"@id":"https:\/\/instrumentationtools.com\/#organization"},"image":{"@id":"https:\/\/instrumentationtools.com\/while-do-statement-in-structured-text\/#primaryimage"},"thumbnailUrl":"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2025\/02\/While-Do-Statement-in-Structured-Text-PLC-Program-scaled.png","keywords":["Structured Text","structured text plc","structured text plc programming","structured text programming"],"articleSection":["PLC Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/instrumentationtools.com\/while-do-statement-in-structured-text\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/instrumentationtools.com\/while-do-statement-in-structured-text\/","url":"https:\/\/instrumentationtools.com\/while-do-statement-in-structured-text\/","name":"While Do Statement in Structured Text PLC Program","isPartOf":{"@id":"https:\/\/instrumentationtools.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/instrumentationtools.com\/while-do-statement-in-structured-text\/#primaryimage"},"image":{"@id":"https:\/\/instrumentationtools.com\/while-do-statement-in-structured-text\/#primaryimage"},"thumbnailUrl":"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2025\/02\/While-Do-Statement-in-Structured-Text-PLC-Program-scaled.png","datePublished":"2025-02-18T02:30:00+00:00","description":"Learn how to use the powerful while-do statement in structured text language for PLC programming to execute repetitive tasks.","breadcrumb":{"@id":"https:\/\/instrumentationtools.com\/while-do-statement-in-structured-text\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/instrumentationtools.com\/while-do-statement-in-structured-text\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/instrumentationtools.com\/while-do-statement-in-structured-text\/#primaryimage","url":"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2025\/02\/While-Do-Statement-in-Structured-Text-PLC-Program-scaled.png","contentUrl":"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2025\/02\/While-Do-Statement-in-Structured-Text-PLC-Program-scaled.png","width":2560,"height":1618,"caption":"While Do Statement in Structured Text PLC Program"},{"@type":"BreadcrumbList","@id":"https:\/\/instrumentationtools.com\/while-do-statement-in-structured-text\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/instrumentationtools.com\/"},{"@type":"ListItem","position":2,"name":"While Do Statement in Structured Text PLC Program"}]},{"@type":"WebSite","@id":"https:\/\/instrumentationtools.com\/#website","url":"https:\/\/instrumentationtools.com\/","name":"Instrumentation Tools","description":"Instrumentation, Electrical, PLC, Tutorials","publisher":{"@id":"https:\/\/instrumentationtools.com\/#organization"},"alternateName":"Inst Tools","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/instrumentationtools.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/instrumentationtools.com\/#organization","name":"Instrumentation Tools","alternateName":"Inst Tools","url":"https:\/\/instrumentationtools.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/instrumentationtools.com\/#\/schema\/logo\/image\/","url":"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2018\/10\/Instrumentation-Tools-Logo.png","contentUrl":"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2018\/10\/Instrumentation-Tools-Logo.png","width":1024,"height":1024,"caption":"Instrumentation Tools"},"image":{"@id":"https:\/\/instrumentationtools.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/instrumentationtoolss\/","https:\/\/x.com\/insttools","https:\/\/mastodon.social\/@InstrumentationTools","https:\/\/www.linkedin.com\/company\/instrumentationtools\/","https:\/\/whatsapp.com\/channel\/0029VaAbUecLNSa4rDPOV31o","https:\/\/t.me\/+u3qORX5FKec1NjA1","https:\/\/www.instagram.com\/instrumentationtools\/","https:\/\/youtube.com\/instrumentationtools"]},{"@type":"Person","@id":"https:\/\/instrumentationtools.com\/#\/schema\/person\/37a7ca9af8b0c120c1cda12ecdcfe6f7","name":"Viral Nagda","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/472c4f2bb73ace2a7e1a8111cf0faa2c9d107a50072eedcbb9ba39613df9e3d9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/472c4f2bb73ace2a7e1a8111cf0faa2c9d107a50072eedcbb9ba39613df9e3d9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/472c4f2bb73ace2a7e1a8111cf0faa2c9d107a50072eedcbb9ba39613df9e3d9?s=96&d=mm&r=g","caption":"Viral Nagda"},"description":"Electronics Engineer with 12+ years of experience in industrial automation. Blogging is my hobby and I write articles and blogs on industrial automation.","url":"https:\/\/instrumentationtools.com\/author\/viral-nagda\/"}]}},"_links":{"self":[{"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/posts\/64602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/users\/101029"}],"replies":[{"embeddable":true,"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/comments?post=64602"}],"version-history":[{"count":0,"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/posts\/64602\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/media\/64605"}],"wp:attachment":[{"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/media?parent=64602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/categories?post=64602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/tags?post=64602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}