{"id":994,"date":"2024-02-10T09:05:51","date_gmt":"2024-02-10T09:05:51","guid":{"rendered":"https:\/\/www.iipdglobal.com\/blog\/?p=994"},"modified":"2024-02-12T12:15:49","modified_gmt":"2024-02-12T12:15:49","slug":"why-plc-goes-in-stop-mode","status":"publish","type":"post","link":"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/","title":{"rendered":"Why PLC goes in stop mode and How to Debug? Troubleshooting"},"content":{"rendered":"\n<p>In the intricate world of industrial automation, a sudden halt in Programmable Logic Controller (PLC) operations can bring production lines to a standstill, causing disruptions and losses. So in this article, we will discuss the reasons why a <a href=\"https:\/\/www.iipdglobal.com\/blog\/what-is-plc\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Programmable Logic Controller<\/strong> <\/a>(PLC) goes into stop mode, and how to debug it, as debugging is essential to identify and rectify the underlying issues.\u00a0<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Reasons_for_PLC_Going_into_Stop_Mode\" >Reasons for PLC Going into Stop Mode:\u00a0<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Hardware_Failures\" >Hardware Failures:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Error_in_Program_Logic\" >Error in Program Logic:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Communication_Issues\" >Communication Issues:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Watchdog_Timer_Timeout\" >Watchdog Timer Timeout:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Downloading_Program\" >Downloading Program:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Memory_Mismatch\" >Memory Mismatch:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Stop_Switch_Digital_input\" >Stop Switch &amp; Digital input:<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Debugging_Steps\" >Debugging Steps:<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Check_Program_Logic\" >Check Program Logic:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Examine_Error_Messages\" >Examine Error Messages:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Review_Communication_Setup\" >Review Communication Setup:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Inspect_Hardware_Components\" >Inspect Hardware Components:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Check_Power_Supply\" >Check Power Supply:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Review_Watchdog_Timer_Settings\" >Review Watchdog Timer Settings:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Use_Online_Monitoring\" >Use Online Monitoring:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Logging_and_Diagnostics\" >Logging and Diagnostics:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Update_FirmwareSoftware\" >Update Firmware\/Software:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Consult_Documentation\" >Consult Documentation:<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/#Conclusion\" >Conclusion:<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Reasons_for_PLC_Going_into_Stop_Mode\"><\/span>Reasons for PLC Going into Stop Mode:\u00a0<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In industrial automation, PLCs play a critical role in controlling machinery and processes. However, there are instances when a PLC unexpectedly enters stop mode, disrupting production. Let\u2019s explore some common reasons behind this behavior:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Hardware_Failures\"><\/span>Hardware Failures:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If any hardware error is detected in the PLC configuration such as malfunctioning input\/output modules, internal wiring short circuits, or power supply issues, or a fault in the processor that can cause the PLC to enter stop mode to prevent further damage. It comes back to run mode when the hardware fault is resolved.&nbsp;&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Error_in_Program_Logic\"><\/span>Error in Program Logic:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If there&#8217;s a software error in the PLC program, such as a syntax error, undefined variable, or incorrect instruction like when you in the program divide something by zero, the PLC might go into stop mode to prevent the execution of faulty code.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Communication_Issues\"><\/span>Communication Issues:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Problems in communication with external devices, such as input\/output modules, sensors, or communication networks, can trigger a stop mode to avoid unreliable data processing.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Watchdog_Timer_Timeout\"><\/span>Watchdog Timer Timeout:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>PLCs often have a watchdog timer to monitor the program&#8217;s execution. If the program doesn&#8217;t progress within a specified time like any infinite instruction in the program that makes scan time longer, the watchdog timer might trigger a stop mode to prevent unpredictable behavior.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Downloading_Program\"><\/span>Downloading Program:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>When you start to download any program to the PLC, it goes to stop mode.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Memory_Mismatch\"><\/span><strong>Memory Mismatch<\/strong>:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>A memory mismatch in a Programmable Logic Controller (PLC) occurs when there is a discrepancy between the expected and actual values stored in the PLC&#8217;s memory. This inconsistency can lead to unpredictable behavior, causing the PLC to go into stop mode.&nbsp;&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Stop_Switch_Digital_input\"><\/span>Stop Switch &amp; Digital input:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Some PLCs are equipped with a hardware switch that allows users to toggle between run and stop modes. This switch serves as a crucial safety measure, particularly in emergencies. When the switch is set to stop mode, the PLC is prevented from transitioning into run mode.&nbsp;<\/p>\n\n\n\n<p>Additionally, in some PLC configurations, a digital input can be designated to function as a run-stop switch. In this scenario, the PLC will only operate in run mode when the assigned input is in a high state, ensuring controlled and intentional activation of the system.\u00a0<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/www.iipdglobal.com\/blog\/wp-content\/uploads\/2024\/02\/WHY-PLC-is-used-in-Automation-1024x768.jpg\" alt=\"WHY PLC is used in Automation?\u00a0\" class=\"wp-image-966\" srcset=\"https:\/\/iipdglobal.com\/blog\/wp-content\/uploads\/2024\/02\/WHY-PLC-is-used-in-Automation-1024x768.jpg 1024w, https:\/\/iipdglobal.com\/blog\/wp-content\/uploads\/2024\/02\/WHY-PLC-is-used-in-Automation-300x225.jpg 300w, https:\/\/iipdglobal.com\/blog\/wp-content\/uploads\/2024\/02\/WHY-PLC-is-used-in-Automation-768x576.jpg 768w, https:\/\/iipdglobal.com\/blog\/wp-content\/uploads\/2024\/02\/WHY-PLC-is-used-in-Automation-1536x1152.jpg 1536w, https:\/\/iipdglobal.com\/blog\/wp-content\/uploads\/2024\/02\/WHY-PLC-is-used-in-Automation.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Debugging_Steps\"><\/span>Debugging Steps:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>We\u2019ll explore various methods and techniques used in debugging, including code inspection, debugging tools, unit testing, integration testing, system testing, monitoring, and logging. So, let\u2019s roll up our sleeves and uncover the secrets of effective debugging!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Check_Program_Logic\"><\/span>Check Program Logic:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Review the PLC program for any syntax errors, undefined variables, or incorrect instructions. Use the programming environment (e.g., CODESYS) to identify and correct programming mistakes.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Examine_Error_Messages\"><\/span>Examine Error Messages:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>PLCs usually provide error messages or diagnostic information. Check the PLC&#8217;s display, diagnostic LEDs, or error logs for any messages that can indicate the cause of the stop mode.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Review_Communication_Setup\"><\/span>Review Communication Setup:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Verify the communication settings with external devices. Check cables, connections, and network configurations to ensure proper communication. Look for any error codes related to communication issues.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Inspect_Hardware_Components\"><\/span>Inspect Hardware Components:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Physically inspect the PLC hardware components, including input\/output modules, power supplies, and the central processing unit (CPU). Look for any signs of damage, loose connections, or malfunctioning components.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Check_Power_Supply\"><\/span>Check Power Supply:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Ensure that the power supply to the PLC is stable and within the specified voltage range. Fluctuations or interruptions in power can lead to erratic behavior and trigger a stop mode.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Review_Watchdog_Timer_Settings\"><\/span>Review Watchdog Timer Settings:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If the PLC has a watchdog timer, review its settings. Ensure that the timer duration aligns with the expected program execution time. Adjust the settings if necessary to prevent false triggering.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Use_Online_Monitoring\"><\/span>Use Online Monitoring:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Utilize the online monitoring features of the programming environment. This allows you to observe the execution of the program in real-time, identify which part of the code is causing the issue, and check variable values.\u00a0<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Logging_and_Diagnostics\"><\/span>Logging and Diagnostics:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Enable PLC logging and diagnostics to capture information about the program&#8217;s execution. Analyze these logs to identify patterns, error codes, or recurring issues that may lead to stop mode.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Update_FirmwareSoftware\"><\/span>Update Firmware\/Software:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Ensure that the PLC firmware and programming software are up to date. Manufacturers often release updates to address bugs or improve system stability.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Consult_Documentation\"><\/span>Consult Documentation:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Refer to the PLC&#8217;s documentation, manuals, and troubleshooting guides provided by the manufacturer. These resources can offer insights into common issues and solutions.&nbsp;<\/p>\n\n\n\n<p>By systematically going through these debugging steps, you can identify the root cause of the PLC entering stop mode and take corrective actions to ensure the system operates as intended.\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In the fast-paced world of industrial automation, the sudden halt of Programmable Logic Controller (PLC) operations can result in significant disruptions and losses for production lines. This article has delved into the various reasons behind a PLC entering stop mode, ranging from hardware failures to programming errors and communication issues. Understanding these triggers is essential for maintaining operational efficiency and minimizing downtime.<\/p>\n\n\n\n<p>Moreover, we&#8217;ve outlined a comprehensive debugging process, encompassing code inspection, error message examination, hardware inspection, and utilization of monitoring tools. These steps, coupled with thorough documentation review and firmware\/software updates, constitute a systematic approach to identifying and rectifying PLC issues.<\/p>\n\n\n\n<p>For individuals seeking to deepen their understanding of PLC operations and troubleshooting techniques, specialized <strong><a href=\"https:\/\/www.iipdglobal.com\/courses\/industrial-automation-courses\/advanced-plc-programming-professional-course\/\" target=\"_blank\" rel=\"noreferrer noopener\">PLC training courses<\/a><\/strong> such as those offered by IIPD Global can provide invaluable insights and skills. With a solid grasp of PLC functionality and debugging methodologies, professionals can effectively ensure the smooth functioning of industrial automation systems, thereby optimizing productivity and minimizing downtime.<\/p>\n\n\n\n<p>In essence, by proactively addressing PLC stoppage issues through diligent debugging practices and continuous learning, industries can maintain their competitive edge and enhance operational reliability in the dynamic landscape of industrial automation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the intricate world of industrial automation, a sudden halt in Programmable Logic Controller (PLC) operations can bring production lines to a standstill, causing disruptions and losses. So in this article, we will discuss the reasons why a Programmable Logic Controller (PLC) goes into stop mode, and how to debug it, as debugging is essential &#8230; <a title=\"Why PLC goes in stop mode and How to Debug? Troubleshooting\" class=\"read-more\" href=\"https:\/\/iipdglobal.com\/blog\/why-plc-goes-in-stop-mode\/\" aria-label=\"More on Why PLC goes in stop mode and How to Debug? Troubleshooting\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":995,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,19],"tags":[],"class_list":["post-994","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-industrial-automation","category-plc"],"_links":{"self":[{"href":"https:\/\/iipdglobal.com\/blog\/wp-json\/wp\/v2\/posts\/994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iipdglobal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iipdglobal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iipdglobal.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/iipdglobal.com\/blog\/wp-json\/wp\/v2\/comments?post=994"}],"version-history":[{"count":2,"href":"https:\/\/iipdglobal.com\/blog\/wp-json\/wp\/v2\/posts\/994\/revisions"}],"predecessor-version":[{"id":1003,"href":"https:\/\/iipdglobal.com\/blog\/wp-json\/wp\/v2\/posts\/994\/revisions\/1003"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iipdglobal.com\/blog\/wp-json\/wp\/v2\/media\/995"}],"wp:attachment":[{"href":"https:\/\/iipdglobal.com\/blog\/wp-json\/wp\/v2\/media?parent=994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iipdglobal.com\/blog\/wp-json\/wp\/v2\/categories?post=994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iipdglobal.com\/blog\/wp-json\/wp\/v2\/tags?post=994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}