{"id":265,"date":"2022-04-14T04:08:24","date_gmt":"2022-04-14T04:08:24","guid":{"rendered":"https:\/\/mitechservices.ca\/MITS\/?page_id=265"},"modified":"2024-01-11T20:43:35","modified_gmt":"2024-01-11T20:43:35","slug":"plc-part-3-basic-ladder-diagram","status":"publish","type":"page","link":"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/","title":{"rendered":"PLC Part 3 Basic Ladder Diagram"},"content":{"rendered":"\n<p>Welcome to the next level in our learning series. The subject is Programming With Basic Ladder Diagram The prerequisite for this material is our previous part in the  learning series, <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-2-programming-codesys\/\" target=\"_blank\" rel=\"noreferrer noopener\">PLC Part 2 Intro To CODESYS<\/a>. Something else that may help, take a look at the setup for a <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/diy-plc-training-station\/\" target=\"_blank\" rel=\"noreferrer noopener\">DIY PLC Training station<\/a>. The exercises for this series are designed to work with the training station described but you can cover a lot of the material using the CODESYS built in simulator if you chose. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"250\" height=\"173\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Chalkboard-PLC-Ladder.png\" alt=\"Basic Ladder Diagram\" class=\"wp-image-812\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Chalkboard-PLC-Ladder.png 250w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Chalkboard-PLC-Ladder-100x69.png 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Chalkboard-PLC-Ladder-150x104.png 150w\" sizes=\"auto, (max-width: 250px) 85vw, 250px\" \/><\/figure>\n<\/div>\n\n\n<p>To get an idea what&#8217;s covered here, take a peek at the table of contents. You&#8217;ll see that the focus is on learning how to program with Ladder Diagram language. At the end of part 3 you will be writing and testing programs made up with common instructions like Contact, Negated Contact, Coil, Set Coil and Reset Coil.<br><br><\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_81 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ef3511aaccf\" class=\"ez-toc-cssicon-toggle-label\"><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><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ef3511aaccf\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Basics_Of_Ladder_Logic\" >Basics Of Ladder Logic<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Ladder_Elements_In_Basic_Ladder_Diagram\" >Ladder Elements In Basic Ladder Diagram<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Instructions_For_Basic_Ladder_Diagram_Contact_Negated_Contact_And_Coil\" >Instructions For Basic Ladder Diagram: Contact, Negated Contact And Coil<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Exercise_4_%E2%80%93_Create_A_Simple_Network_With_Basic_Ladder_Diagram\" >Exercise 4 \u2013 Create A Simple Network With Basic Ladder Diagram<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Placing_Instructions_for_Basic_Ladder_Diagram\" >Placing Instructions for Basic Ladder Diagram<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Assign_Variables_For_Basic_Ladder_Diagram\" >Assign Variables For Basic Ladder Diagram<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Exercise_5_%E2%80%93_Simulation_Of_A_Simple_Network\" >Exercise 5 \u2013 Simulation Of A Simple Network<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Enable_Simulation\" >Enable Simulation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Login\" >Login<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Running_The_Application\" >Running The Application<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Exercise_6_%E2%80%93_Network_With_AND_Relationship\" >Exercise 6 \u2013 Network With AND Relationship<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Exercise_7_%E2%80%93_Network_With_OR_Relationship\" >Exercise 7 \u2013 Network With OR Relationship<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Adding_Branches_To_The_Left\" >Adding Branches To The Left<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Exercise_8_%E2%80%93_Network_With_Negated_Contact\" >Exercise 8 \u2013 Network With Negated Contact<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Drag_And_Drop_To_Relocate_Networks\" >Drag And Drop To Relocate Networks<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Commenting\" >Commenting<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Exercise_9_%E2%80%93_IO_Test\" >Exercise 9 \u2013 I\/O Test<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Login-2\" >Login<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Check_Modbus_Communications\" >Check Modbus Communications<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#IO_Checklist\" >I\/O Checklist<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Forcing\" >Forcing<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Instructions_Set_Coil_And_Reset_Coil\" >Instructions: Set Coil And Reset Coil<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Exercise_10_%E2%80%93_Light_Switch_1\" >Exercise 10 \u2013 Light Switch #1<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Method_1\" >Method #1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Method_2\" >Method #2<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Exercise_11_%E2%80%93_Light_Switch_2\" >Exercise 11 \u2013 Light Switch #2<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-27\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Adding_Branches_To_The_Right\" >Adding Branches To The Right<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-28\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#About_The_Branches\" >About The Branches<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-29\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Declaring_Variables\" >Declaring Variables<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-30\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Back_to_the_situation_in_the_green_room\" >Back to the situation in the green room.<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-31\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#Quick_Change_Commands_SetReset_And_Negation\" >Quick Change Commands, Set\/Reset And Negation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-32\" href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/#References_%E2%80%93_Books_And_Weblinks\" >References &#8211; Books And Weblinks<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Basics_Of_Ladder_Logic\"><\/span>Basics Of Ladder Logic<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Ladder_Elements_In_Basic_Ladder_Diagram\"><\/span>Ladder Elements In Basic Ladder Diagram<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The Ladder Diagram (LD) programming language is made up of ladder diagram elements. These elements are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Networks (sometimes called rungs), visible as horizontal lines in the editor.<\/li>\n\n\n\n<li>Instructions, different instructions appear as different symbols or blocks.<\/li>\n\n\n\n<li>Branches, made up of vertical and horizontal lines branching off of networks.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"414\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/basic-ladder-elements-1024x414.jpg\" alt=\"\" class=\"wp-image-757\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/basic-ladder-elements-1024x414.jpg 1024w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/basic-ladder-elements-300x121.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/basic-ladder-elements-768x311.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/basic-ladder-elements-100x40.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/basic-ladder-elements-150x61.jpg 150w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/basic-ladder-elements.jpg 1100w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Networks are scanned 1 line at a time, from top to bottom. It is like climbing down the rungs of a ladder. Instructions on the horizontal lines are processed in order from left to right, like reading a book.<\/p>\n\n\n\n<p>A network with no instructions will show up as an empty space. Consider removing empty spaces if they appear to keep things cleaned up.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"538\" height=\"569\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Ladder-program-flow.jpg\" alt=\"\" class=\"wp-image-758\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Ladder-program-flow.jpg 538w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Ladder-program-flow-284x300.jpg 284w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Ladder-program-flow-95x100.jpg 95w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Ladder-program-flow-142x150.jpg 142w\" sizes=\"auto, (max-width: 538px) 85vw, 538px\" \/><\/figure>\n\n\n\n<p>There are fundamentally two types of instructions, input and output. Instructions have variable names assigned. Variable names identify a piece of data. Variables do not necessarily have to be specific PLC addresses. Variables can be created (declared) and assigned to instructions when specific PLC addresses are not suitable. Instructions related to inputs monitor the data from the assigned variable and are placed to the left of a network. Instructions related to outputs control the data to the assigned variable and are placed on the right side of a network.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"319\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Placement-of-IO-instructions-1024x319.jpg\" alt=\"\" class=\"wp-image-759\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Placement-of-IO-instructions-1024x319.jpg 1024w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Placement-of-IO-instructions-300x93.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Placement-of-IO-instructions-768x239.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Placement-of-IO-instructions-100x31.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Placement-of-IO-instructions-150x47.jpg 150w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Placement-of-IO-instructions.jpg 1172w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Ladder Diagram (LD) is a popular PLC programming language because it is designed to resemble ladder electrical drawings. Electricians and technicians are familiar with the concept of electrical continuity. That a circuit must have a path for current to complete the circuit in order to operate. A ladder electrical diagram shows switching devices to the left and load devices to the right.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/electrical-drawing-compred-to-LD-1024x551.jpg\" alt=\"\" class=\"wp-image-760\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/electrical-drawing-compred-to-LD-1024x551.jpg 1024w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/electrical-drawing-compred-to-LD-300x161.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/electrical-drawing-compred-to-LD-768x413.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/electrical-drawing-compred-to-LD-100x54.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/electrical-drawing-compred-to-LD-150x81.jpg 150w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/electrical-drawing-compred-to-LD.jpg 1126w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>To interpret the ladder diagram programming language (ladder logic) we need to grasp the concept of logical continuity. Where input instructions to the left of the network provide a path of TRUE conditions to the output instructions at the right.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Instructions_For_Basic_Ladder_Diagram_Contact_Negated_Contact_And_Coil\"><\/span>Instructions For Basic Ladder Diagram: Contact, Negated Contact And Coil<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The <strong>Contact<\/strong> is an input instruction. It is assigned a variable with BOOL (1 bit) data type. As an input type instruction it will monitor the bit of the assigned variable.<\/p>\n\n\n\n<p>The instruction condition will be TRUE if the bit is TRUE ( ON, equals 1).<\/p>\n\n\n\n<p>The instruction condition will be FALSE if the bit is FALSE (OFF, equals 0).<\/p>\n\n\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"374\" height=\"146\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-contact.jpg\" alt=\"\" class=\"wp-image-761\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-contact.jpg 374w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-contact-300x117.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-contact-100x39.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-contact-150x59.jpg 150w\" sizes=\"auto, (max-width: 374px) 85vw, 374px\" \/><figcaption class=\"wp-element-caption\"><br><br><\/figcaption><\/figure>\n<\/div>\n\n\n<p>The <strong>Negated Contact<\/strong> is an input instruction. It is assigned a variable with BOOL (1 bit) data type. As an input type instruction it will monitor the bit of the assigned variable.<\/p>\n\n\n\n<p>The instruction condition will be FALSE if the bit is TRUE ( ON, equals 1).<\/p>\n\n\n\n<p>The instruction condition will be TRUE if the bit is FALSE (OFF, equals 0).<\/p>\n\n\n\n<p>The result of the Negated Contact is the opposite of the Contact. That is why it is called Negated<\/p>\n\n\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"490\" height=\"134\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-negated-contact.jpg\" alt=\"\" class=\"wp-image-764\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-negated-contact.jpg 490w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-negated-contact-300x82.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-negated-contact-100x27.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-negated-contact-150x41.jpg 150w\" sizes=\"auto, (max-width: 490px) 85vw, 490px\" \/><figcaption class=\"wp-element-caption\"><br><br><\/figcaption><\/figure>\n<\/div>\n\n\n<p>The <strong>Coil<\/strong> is an output instruction. It is assigned a variable with BOOL (1 bit) data type. As an output instruction it will control the value of the assigned variable.<\/p>\n\n\n\n<p>The instruction is TRUE if input conditions to the left provide a path of logical continuity. So long as the instruction is TRUE the bit will be TRUE ( ON, equals 1) for the assigned variable.<\/p>\n\n\n\n<p>The instruction is FALSE if input conditions fail to provide a path of logical continuity. So long as the instruction is FALSE the bit will be FALSE (OFF, equals 0) for the assigned variable.<\/p>\n\n\n\n<p><strong>An important rule of thumb for the Coil instruction<\/strong> is that a Coil assigned a particular variable must be scanned only once per PLC scan cycle. If Coils are assigned the same variable in more than one location this increases the risk of multiple scans per cycle, making the behavior of the output erratic.<\/p>\n\n\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"336\" height=\"147\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Symbol-Coil.jpg\" alt=\"\" class=\"wp-image-768\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Symbol-Coil.jpg 336w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Symbol-Coil-300x131.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Symbol-Coil-100x44.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Symbol-Coil-150x66.jpg 150w\" sizes=\"auto, (max-width: 336px) 85vw, 336px\" \/><figcaption class=\"wp-element-caption\"><br><br><\/figcaption><\/figure>\n<\/div>\n\n\n<p>In the next few exercises, we will begin programming in the LD language. Starting with one simple network that we will test in simulation mode. Then we will build from there, step by step, to create a program to run on the training station. It will test our real world I\/O to make sure the slave device is wired correctly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Exercise_4_%E2%80%93_Create_A_Simple_Network_With_Basic_Ladder_Diagram\"><\/span>Exercise 4 \u2013 Create A Simple Network With Basic Ladder Diagram<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this exercise we create a network that operates with one input connected to a pushbutton and one output connected to an LED. While we are doing that we will learn how to insert a new network, how to place Coils and Contacts on a network and how to assign addresses to the instructions.<\/p>\n\n\n\n<p>For this exercise, our program plan is this:<\/p>\n\n\n\n<ul class=\"has-black-color has-cyan-bluish-gray-background-color has-text-color has-background wp-block-list\">\n<li>While PB1 is pressed the red LED will be on<\/li>\n<\/ul>\n\n\n\n<p>The components chosen for the plan are PB1 and the red LED.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"486\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-4-board-1024x486.jpg\" alt=\"\" class=\"wp-image-773\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-4-board-1024x486.jpg 1024w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-4-board-300x142.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-4-board-768x364.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-4-board-100x47.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-4-board-150x71.jpg 150w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-4-board.jpg 1187w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>The plan has all the information we need to create the program except we need to know what the address is for each of the connected I\/O components.<\/p>\n\n\n\n<p>So, here is our plan once again, please check the diagram <em><a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-2-programming-codesys\/#IO-connections\" target=\"_blank\" rel=\"noreferrer noopener\">I\/O Connections<\/a><\/em> from the section <em><a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-2-programming-codesys\/\" target=\"_blank\" rel=\"noreferrer noopener\">PLC Part 2 Intro To CODESYS<\/a><\/em> and find the addresses to complete the plan.<\/p>\n\n\n\n<ul class=\"has-black-color has-cyan-bluish-gray-background-color has-text-color has-background wp-block-list\">\n<li>While PB1 (at address______ ) is pressed the red LED (at address______ ) will be on.<\/li>\n<\/ul>\n\n\n\n<p>To get ready for programming, we will save our project, \u201cTraining_Station_Base\u201d from <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-2-programming-codesys\/#exercise-3\" target=\"_blank\" rel=\"noreferrer noopener\">Exercise 3<\/a> with a new name. So, make sure you have <strong>saved a copy of<\/strong> \u201cTraining_Station_Base\u201d.<\/p>\n\n\n\n<p>With the project \u201cTraining_Station_Base\u201d open, from the File menu select Save Project As.<\/p>\n\n\n\n<p>Save with new name \u201cLadder IO Test\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"545\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/save-as-ladder-io-test-1024x545.jpg\" alt=\"\" class=\"wp-image-780\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/save-as-ladder-io-test-1024x545.jpg 1024w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/save-as-ladder-io-test-300x160.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/save-as-ladder-io-test-768x409.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/save-as-ladder-io-test-100x53.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/save-as-ladder-io-test-150x80.jpg 150w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/save-as-ladder-io-test.jpg 1063w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>To open the editor, right click PLC_PRG from the devices view and select Edit Object. Alternately you can double click PLC_PRG.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"912\" height=\"726\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/open-editor-PLC_PRG-right-click.jpg\" alt=\"\" class=\"wp-image-782\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/open-editor-PLC_PRG-right-click.jpg 912w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/open-editor-PLC_PRG-right-click-300x239.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/open-editor-PLC_PRG-right-click-768x611.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/open-editor-PLC_PRG-right-click-100x80.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/open-editor-PLC_PRG-right-click-150x119.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Placing_Instructions_for_Basic_Ladder_Diagram\"><\/span>Placing Instructions for Basic Ladder Diagram<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>When the ladder editor opens, the workspace will appear at the center of the screen. An empty network, numbered as #1, is in place ready for instructions to be added. If you click the mouse in the network area a yellow region appears with pink in the margin. This is the cursor, indicating the network is selected for editing.<\/p>\n\n\n\n<p>The next step is to place a Contact instruction on the network. There are 4 easy ways to place instructions:<\/p>\n\n\n\n<p>1  . Select instruction from the toolbar, if a network is selected for editing then available instructions will be blue. Greyed out instructions are not available. Click the network area and then click the desired instruction.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"977\" height=\"159\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-from-toolbar.jpg\" alt=\"\" class=\"wp-image-783\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-from-toolbar.jpg 977w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-from-toolbar-300x49.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-from-toolbar-768x125.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-from-toolbar-100x16.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-from-toolbar-150x24.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption class=\"wp-element-caption\">2 . Right click on the network being edited, a menu will appear with a list of instructions.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"492\" height=\"442\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-right-click.jpg\" alt=\"\" class=\"wp-image-784\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-right-click.jpg 492w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-right-click-300x270.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-right-click-100x90.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-right-click-150x135.jpg 150w\" sizes=\"auto, (max-width: 492px) 85vw, 492px\" \/><\/figure>\n\n\n\n<p>3 . Select from the FBD\/LD\/IL dropdown menu.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"616\" height=\"624\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-dropdown.jpg\" alt=\"\" class=\"wp-image-785\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-dropdown.jpg 616w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-dropdown-296x300.jpg 296w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-dropdown-100x100.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-dropdown-148x150.jpg 148w\" sizes=\"auto, (max-width: 616px) 85vw, 616px\" \/><\/figure>\n\n\n\n<p>4 . Or, drag and drop from the toolbox, the toolbox is the window to the right with a list of instructions.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"278\" height=\"558\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-toolbox.jpg\" alt=\"\" class=\"wp-image-786\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-toolbox.jpg 278w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-toolbox-149x300.jpg 149w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-toolbox-50x100.jpg 50w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/select-instruction-toolbox-75x150.jpg 75w\" sizes=\"auto, (max-width: 278px) 85vw, 278px\" \/><\/figure>\n<\/div>\n\n\n<p>For this example, we will use the toolbox. Expand the heading Ladder Elements to show a list of basic instructions. Find the Contact instruction, click and hold to drag to the network area. A grey box will appear with the words \u201cStart Here\u201d. Bring the mouse cursor to the box until it turns green then release to drop the instruction.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"547\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-contact-1024x547.jpg\" alt=\"\" class=\"wp-image-787\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-contact-1024x547.jpg 1024w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-contact-300x160.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-contact-768x410.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-contact-100x53.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-contact-150x80.jpg 150w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-contact.jpg 1322w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>The next step is to place a Coil instruction on the network. In similar fashion, drag and drop the Coil into place.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"511\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-coil-1024x511.jpg\" alt=\"\" class=\"wp-image-790\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-coil-1024x511.jpg 1024w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-coil-300x150.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-coil-768x383.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-coil-100x50.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-coil-150x75.jpg 150w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-coil.jpg 1176w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Assign_Variables_For_Basic_Ladder_Diagram\"><\/span>Assign Variables For Basic Ladder Diagram<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>To assign a variable to the Contact, click where you see the three question marks (???) then type in the address. This Contact is for the input connected to PB1. Think back to when you looked up the addresses for the I\/O components. What is the address for PB1?<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"168\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/click-type-address-1-1024x168.jpg\" alt=\"\" class=\"wp-image-791\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/click-type-address-1-1024x168.jpg 1024w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/click-type-address-1-300x49.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/click-type-address-1-768x126.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/click-type-address-1-100x16.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/click-type-address-1-150x25.jpg 150w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/click-type-address-1.jpg 1180w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>The Coil on this network is for the red LED. What is the address for the red LED? Assign the variable to the Coil.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"174\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/click-type-address-2-1024x174.jpg\" alt=\"\" class=\"wp-image-792\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/click-type-address-2-1024x174.jpg 1024w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/click-type-address-2-300x51.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/click-type-address-2-768x130.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/click-type-address-2-100x17.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/click-type-address-2-150x25.jpg 150w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/click-type-address-2.jpg 1173w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Once the variables have been assigned, the network is complete. This is a good time to save the project.<\/p>\n\n\n\n<p>This concludes Exercise 4<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"exercise-5\"><span class=\"ez-toc-section\" id=\"Exercise_5_%E2%80%93_Simulation_Of_A_Simple_Network\"><\/span>Exercise 5 \u2013 Simulation Of A Simple Network<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this exercise we will transfer our application to the simulation environment and run the program to see how the network works.<\/p>\n\n\n\n<p>An online connection to a PLC is required to transfer files and to monitor the PLC status. In PLC jargon transferring files from the PC to the PLC is called downloading. Transferring files from the PLC to the PC is called uploading.<\/p>\n\n\n\n<p>The steps for online connection and file transfer are mirrored in the simulation mode.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Enable_Simulation\"><\/span>Enable Simulation<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>To start working with the simulation environment, from the Online menu select Simulation<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"881\" height=\"529\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-enable-simulation.jpg\" alt=\"\" class=\"wp-image-794\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-enable-simulation.jpg 881w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-enable-simulation-300x180.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-enable-simulation-768x461.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-enable-simulation-100x60.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-enable-simulation-150x90.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Notice the red box in the status bar, a reminder that the simulation mode is active.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"157\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-simulation-red-box-1024x157.jpg\" alt=\"\" class=\"wp-image-795\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-simulation-red-box-1024x157.jpg 1024w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-simulation-red-box-300x46.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-simulation-red-box-768x118.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-simulation-red-box-100x15.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-simulation-red-box-150x23.jpg 150w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-simulation-red-box.jpg 1134w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Login\"><\/span>Login<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The next step is to connect online with the PLC simulator. The online connection is established with the Login command. The Login and Logout commands are available from the Online menu. &nbsp;Alternately you can select Login or Logout from the toolbar.<\/p>\n\n\n\n<p>Select Login.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"336\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-select-login-1.jpg\" alt=\"\" class=\"wp-image-796\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-select-login-1.jpg 940w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-select-login-1-300x107.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-select-login-1-768x275.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-select-login-1-100x36.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-select-login-1-150x54.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>When logging in, the application on the PC is compared to the simulator\u2019s current application, if any. Based on that comparison you may be prompted by one of the following:<\/p>\n\n\n\n<p>1 . A dialogue box indicating that no application exists. This happens if the simulator has no application currently loaded Connecting and downloading an application is our objective. So, the correct answer is Yes, to confirm the download.<\/p>\n\n\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"743\" height=\"313\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-no-ap.jpg\" alt=\"\" class=\"wp-image-797\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-no-ap.jpg 743w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-no-ap-300x126.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-no-ap-100x42.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-no-ap-150x63.jpg 150w\" sizes=\"auto, (max-width: 743px) 85vw, 743px\" \/><\/figure>\n<\/div>\n\n\n<p>2 . A dialog box indicating an application is currently loaded but no matching compile information. This happens when the application loaded on the simulator is from a different project. Click Yes to confirm the download.<\/p>\n\n\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"807\" height=\"305\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-current-ap-no-match.jpg\" alt=\"\" class=\"wp-image-798\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-current-ap-no-match.jpg 807w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-current-ap-no-match-300x113.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-current-ap-no-match-768x290.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-current-ap-no-match-100x38.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-current-ap-no-match-150x57.jpg 150w\" sizes=\"auto, (max-width: 807px) 85vw, 807px\" \/><\/figure>\n<\/div>\n\n\n<p>3 . A dialog box with 3 login options. This happens when the application on the PC is does not match the simulator\u2019s current application and you must chose how to proceed.<\/p>\n\n\n\n<p>a) Login with online change &#8211; Only loads the changed part of the application and does not require the application to stop to allow the change.<\/p>\n\n\n\n<p>b) Login with download &#8211; Loads the complete application. Any running application would have to be stopped to accept the download. It may automatically restart or a manual restart may be necessary.<\/p>\n\n\n\n<p>c) Login without any change &#8211; No changes will be loaded. The online connection will proceed but the application displayed on the PC will not match what is running on the simulator. This makes the view inaccurate while monitoring from the workspace.<\/p>\n\n\n\n<p>Either of the first two options are acceptable for our purpose. It makes little difference in the simulation environment if we must restart the application. The third option, Login without any change, is not suitable since our objective is to download the application. Once a selection is made then click OK.<\/p>\n\n\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"784\" height=\"366\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-ap-change.jpg\" alt=\"\" class=\"wp-image-801\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-ap-change.jpg 784w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-ap-change-300x140.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-ap-change-768x359.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-ap-change-100x47.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-ap-change-150x70.jpg 150w\" sizes=\"auto, (max-width: 784px) 85vw, 784px\" \/><\/figure>\n<\/div>\n\n\n<p>4 . A dialogue box indicating no online change is possible. This happens when the application on the PC is significantly different than simulator\u2019s current application. Click Yes to confirm the download.<\/p>\n\n\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"791\" height=\"306\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-no-change-possible.jpg\" alt=\"\" class=\"wp-image-802\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-no-change-possible.jpg 791w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-no-change-possible-300x116.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-no-change-possible-768x297.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-no-change-possible-100x39.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-login-dialog-no-change-possible-150x58.jpg 150w\" sizes=\"auto, (max-width: 791px) 85vw, 791px\" \/><figcaption class=\"wp-element-caption\"><br><br><\/figcaption><\/figure>\n<\/div>\n\n\n<p>After logging in, notice the red box in the status bar. It is a reminder that the simulator needs to be started.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"98\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-aplication-red-box.jpg\" alt=\"\" class=\"wp-image-803\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-aplication-red-box.jpg 790w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-aplication-red-box-300x37.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-aplication-red-box-768x95.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-aplication-red-box-100x12.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-aplication-red-box-150x19.jpg 150w\" sizes=\"auto, (max-width: 790px) 85vw, 790px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Running_The_Application\"><\/span>Running The Application<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The Start and Stop commands are available from the Debug menu. Alternately there are Start and Stop buttons on the toolbar.<\/p>\n\n\n\n<p>Select Start to run the simulator.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1013\" height=\"158\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-start-simulator.jpg\" alt=\"\" class=\"wp-image-804\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-start-simulator.jpg 1013w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-start-simulator-300x47.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-start-simulator-768x120.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-start-simulator-100x16.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-start-simulator-150x23.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p><br><\/p>\n\n\n\n<p>Notice the green box in the status bar, an indicator that the simulator is running.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"810\" height=\"76\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-simulation-green-box.jpg\" alt=\"\" class=\"wp-image-805\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-simulation-green-box.jpg 810w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-simulation-green-box-300x28.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-simulation-green-box-768x72.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-simulation-green-box-100x9.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-simulation-green-box-150x14.jpg 150w\" sizes=\"auto, (max-width: 810px) 85vw, 810px\" \/><\/figure>\n\n\n\n<p>When the development system is online our view will change from edit mode to monitor mode. When logging in you may have noticed a change to the display in the workspace. The vertical line, sometimes called the \u201crail\u201d is highlighted blue. The horizontal line to the left of the Contact is highlighted blue as well. The blue line represents the path of logical continuity, the path of TRUE conditions that could enable an output if all conditions are satisfied.<\/p>\n\n\n\n<p>The Contact is an input instruction. It is assigned a Boolean variable, the address %IX0.0. The value of the bit, at %IX0.0, is FALSE so the condition for the Contact instruction is FALSE. This is where the path of logical continuity ends and the Coil remains FALSE.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"155\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-rung1.jpg\" alt=\"\" class=\"wp-image-806\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-rung1.jpg 630w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-rung1-300x74.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-rung1-100x25.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-rung1-150x37.jpg 150w\" sizes=\"auto, (max-width: 630px) 85vw, 630px\" \/><\/figure>\n\n\n\n<p>So how do we test the network in simulation mode, when we have no real input component to switch on or off? We need to set the value of the BOOL, at %IX0.0, to TRUE to complete the test.<\/p>\n\n\n\n<p>This is the method. Double click on the Contact instruction. A blue box with the word <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\"><strong>\u201cTRUE\u201d<\/strong><\/mark> appears. This is a preparation to write a value of TRUE to the simulator memory. Double click again and a black rectangle that says <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\"><strong>\u201cFALSE\u201d<\/strong><\/mark> will appear in preparation to write the value of FALSE to the assigned variable. Each double click toggles the value back and forth. But the value is not actually written to memory until the next step.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"746\" height=\"190\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-click-for-prepeared-value.jpg\" alt=\"\" class=\"wp-image-824\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-click-for-prepeared-value.jpg 746w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-click-for-prepeared-value-300x76.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-click-for-prepeared-value-100x25.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-click-for-prepeared-value-150x38.jpg 150w\" sizes=\"auto, (max-width: 746px) 85vw, 746px\" \/><\/figure>\n\n\n\n<p>To write any values that we wish to change, to memory, do the following. Place the mouse cursor anywhere in the workspace and right click. Then select Write All Values of Device.Application.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"718\" height=\"426\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-write-all-values.jpg\" alt=\"\" class=\"wp-image-825\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-write-all-values.jpg 718w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-write-all-values-300x178.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-write-all-values-100x59.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-write-all-values-150x89.jpg 150w\" sizes=\"auto, (max-width: 718px) 85vw, 718px\" \/><\/figure>\n\n\n\n<p>Use the method, just described to set the value of the Contact at %IX0.0 to TRUE. The Contact will now be highlighted blue, this indicates the condition for the instruction is TRUE. The vertical line to the Coil is blue and so is the Coil instruction. There is a path of logical continuity to the output instruction. The variable assigned to the Coil, %QX0.0 will be TRUE in memory.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"681\" height=\"149\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-rung2.jpg\" alt=\"\" class=\"wp-image-826\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-rung2.jpg 681w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-rung2-300x66.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-rung2-100x22.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-rung2-150x33.jpg 150w\" sizes=\"auto, (max-width: 681px) 85vw, 681px\" \/><\/figure>\n<\/div>\n\n\n<p>Repeat the method to set the value of the Contact at %IX0.0 to FALSE. The network appears as it did before. The Coil at address %QX0.0 is FALSE once again.<\/p>\n\n\n\n<p>We can summarize, So long as the Contact is TRUE the Coil is TRUE. The Contact is for PB1, the Coil is for the red LED. This satisfies our program plan, while PB1 is pressed the red LED will be on. Mission accomplished!<\/p>\n\n\n\n<p>The method to write values is available for other instructions as well. Try double clicking the Coil instruction in preparation to write the value TRUE. Then go ahead, right click and select Write All Values of Device.Application.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"412\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-write-all-values2.jpg\" alt=\"\" class=\"wp-image-827\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-write-all-values2.jpg 586w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-write-all-values2-300x211.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-write-all-values2-100x70.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-write-all-values2-150x105.jpg 150w\" sizes=\"auto, (max-width: 586px) 85vw, 586px\" \/><\/figure>\n<\/div>\n\n\n<p>What was the result? Did the Coil turn blue? If we have written a value of TRUE to the Coil, what could explain the result?<\/p>\n\n\n\n<p>From the toolbar, find the Stop button <img loading=\"lazy\" decoding=\"async\" width=\"62\" height=\"47\" class=\"wp-image-829\" style=\"width: 62px;\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/stop-button.jpg\" alt=\"\">&nbsp;and click to stop the application. Repeat the attempt to write the value TRUE to the Coil. What is the result?<\/p>\n\n\n\n<p>From the toolbar, find the Start (Play) button\u00a0<img loading=\"lazy\" decoding=\"async\" width=\"49\" height=\"39\" class=\"wp-image-830\" style=\"width: 49px;\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/play-button.jpg\" alt=\"\"> and click to start. What now? \u00a0What is the explanation for the behavior of the Coil?<\/p>\n\n\n\n<p>The answer is related to the <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-2-programming-codesys\/#plc-scan\" target=\"_blank\" rel=\"noreferrer noopener\">PLC Scan<\/a>. When the application is running, it is repeatedly scanning the network every few milliseconds. At each scan it will recognize that the Contact instruction is FALSE, breaking the path of logical continuity and set the Coil instruction to FALSE. We may have written the value TRUE to the Coil but it would be set back to FALSE within one scan. If we stop the application, the network is not being scanned. We can write the value TRUE to the Coil and it will remain until the application is restarted.<\/p>\n\n\n\n<p>When we have finished the simulation, stop the application, logout to disconnect and then turn off simulation mode from the Online menu.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"370\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-close-out-sim-mode-1024x370.jpg\" alt=\"\" class=\"wp-image-831\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-close-out-sim-mode-1024x370.jpg 1024w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-close-out-sim-mode-300x108.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-close-out-sim-mode-768x277.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-close-out-sim-mode-100x36.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-close-out-sim-mode-150x54.jpg 150w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex5-close-out-sim-mode.jpg 1036w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>This concludes Exercise 5.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Exercise_6_%E2%80%93_Network_With_AND_Relationship\"><\/span>Exercise 6 \u2013 Network With AND Relationship<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this exercise we will add to the existing program and create a network that operates with two pushbutton inputs and one LED output. While we are doing that, we will learn how to create an AND relationship between input instructions. <\/p>\n\n\n\n<p>Do you remember the <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-1-fundamentals\/#bool-logic\" target=\"_blank\" rel=\"noreferrer noopener\">AND Operator<\/a> from the section on <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-1-fundamentals\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bo<\/a><a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-1-fundamentals\/#bool-logic\" target=\"_blank\" rel=\"noreferrer noopener\">olean L<\/a><a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-1-fundamentals\/\" target=\"_blank\" rel=\"noreferrer noopener\">ogic<\/a>?<\/p>\n\n\n\n<p>For this exercise, our program plan has changed:<\/p>\n\n\n\n<ol style=\"list-style-type:1\" class=\"has-cyan-bluish-gray-background-color has-background wp-block-list\">\n<li>While PB1 is pressed the red LED will be on<\/li>\n\n\n\n<li><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">While PB2 and PB3 are pressed the yellow LED will be on.<\/mark><\/li>\n<\/ol>\n\n\n\n<p>Step 2 is the new part of the plan and the chosen components are PB2, PB3 and the yellow LED.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"870\" height=\"475\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-6-board.jpg\" alt=\"\" class=\"wp-image-832\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-6-board.jpg 870w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-6-board-300x164.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-6-board-768x419.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-6-board-100x55.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-6-board-150x82.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Once again, we need to know what the address is for each of the connected I\/O components. So, this time, please check the diagram <em><a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-2-programming-codesys\/#IO-connections\" target=\"_blank\" rel=\"noreferrer noopener\">I\/O Connections<\/a><\/em> from the section <em><a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-2-programming-codesys\/\" target=\"_blank\" rel=\"noreferrer noopener\">PLC Part 2 Intro To CODESYS<\/a><\/em>.<a> <\/a>Add the addresses for PB2, PB3 and the yellow LED.<\/p>\n\n\n\n<ol style=\"list-style-type:1\" class=\"has-cyan-bluish-gray-background-color has-background wp-block-list\">\n<li>While PB1 (at address <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">%IX0.0<\/mark> ) is pressed the red LED (at address <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">%QX0.0<\/mark> ) will be on.<\/li>\n\n\n\n<li>While PB2 (at address______ ) and PB3 (at address_____) are pressed the yellow LED (at address______ ) will be on.<\/li>\n<\/ol>\n\n\n\n<p>We will add to the existing project. So if the project \u201cLadder IO Test\u201d is open and the ladder editor for PLC_PRG is open, we are ready to proceed.<\/p>\n\n\n\n<p>From the workspace, we will insert a new network below network number 1. To create network number 2, click and hold the Network icon from the toolbox. Drag it to the margin at the left. Grey arrows will appear to suggest placing it above or below the previous network. Move to the arrow pointing down and when it turns green release to create a new network below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1011\" height=\"464\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-drag-drop-network-1.jpg\" alt=\"\" class=\"wp-image-833\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-drag-drop-network-1.jpg 1011w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-drag-drop-network-1-300x138.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-drag-drop-network-1-768x352.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-drag-drop-network-1-100x46.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-drag-drop-network-1-150x69.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Place a Contact instruction on the new network. Then drag and drop a second Contact instruction, landing on the green box.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"971\" height=\"597\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-place-instructions.jpg\" alt=\"\" class=\"wp-image-834\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-place-instructions.jpg 971w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-place-instructions-300x184.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-place-instructions-768x472.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-place-instructions-100x61.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-place-instructions-150x92.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Place a Coil to the right side of the network. The Contact and Coil placement should look like this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"994\" height=\"178\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-contact-coil-placement.jpg\" alt=\"\" class=\"wp-image-835\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-contact-coil-placement.jpg 994w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-contact-coil-placement-300x54.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-contact-coil-placement-768x138.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-contact-coil-placement-100x18.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-contact-coil-placement-150x27.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Assign the address for PB2 to the first Contact. Assign the address for PB3 to the next Contact and assign the address for the yellow LED to the Coil.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"941\" height=\"155\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-adresses-assigned.jpg\" alt=\"\" class=\"wp-image-836\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-adresses-assigned.jpg 941w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-adresses-assigned-300x49.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-adresses-assigned-768x127.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-adresses-assigned-100x16.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-adresses-assigned-150x25.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Once the variables have been assigned, the network is complete. This is a good time to save the project.<\/p>\n\n\n\n<p>To test the network, turn on the simulation mode, login and then start the application. (Remember simulation mode from <a href=\"#exercise-5\">Exercise 5<\/a>)<\/p>\n\n\n\n<p>Prepare both Contacts to write the value TRUE to memory and then \u201cWrite All Values\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"861\" height=\"663\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-write-all-values.jpg\" alt=\"\" class=\"wp-image-837\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-write-all-values.jpg 861w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-write-all-values-300x231.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-write-all-values-768x591.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-write-all-values-100x77.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-write-all-values-150x116.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>The conditions to the left of the Coil instruction are TRUE, providing a path of logical continuity.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"313\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-rung-1.jpg\" alt=\"\" class=\"wp-image-838\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-rung-1.jpg 1024w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-rung-1-300x92.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-rung-1-768x235.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-rung-1-100x31.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-rung-1-150x46.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Now write the value FALSE to one of the Contacts. The path of continuity is broken.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"998\" height=\"326\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-rung-2.jpg\" alt=\"\" class=\"wp-image-840\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-rung-2.jpg 998w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-rung-2-300x98.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-rung-2-768x251.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-rung-2-100x33.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex-6-rung-2-150x49.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>We can summarize, So long as both Contacts are TRUE the Coil is TRUE. The Contacts are for PB2 and PB3. The Coil is for the yellow LED. This satisfies our program plan, while PB2 and PB3 are pressed the yellow LED will be on.<\/p>\n\n\n\n<p>The Contact instructions are side by side on the same line, we can say they are in series.<\/p>\n\n\n\n<p>Two or more input instructions in series have an <strong>AND<\/strong> relationship. They must all have a TRUE condition to provide a path of logical continuity.<\/p>\n\n\n\n<p>Logout and end the simulation.<\/p>\n\n\n\n<p>This concludes Exercise 6. If you did not already save the project this is a good time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Exercise_7_%E2%80%93_Network_With_OR_Relationship\"><\/span>Exercise 7 \u2013 Network With OR Relationship<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this exercise we will add to the existing program and create a network that operates with two pushbutton inputs and one LED output. While we are doing that, we will learn how to add closed branches to the left side (input side) of the network and create an OR relationship between input instructions.<\/p>\n\n\n\n<p>Do you remember the <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-1-fundamentals\/#or-operator\" target=\"_blank\" rel=\"noreferrer noopener\">OR Operator<\/a> from the section on <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-1-fundamentals\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bo<\/a><a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-1-fundamentals\/#bool-logic\" target=\"_blank\" rel=\"noreferrer noopener\">olean L<\/a><a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-1-fundamentals\/\" target=\"_blank\" rel=\"noreferrer noopener\">ogic<\/a>?<\/p>\n\n\n\n<p>For this exercise, our program plan has changed again:<\/p>\n\n\n\n<ol style=\"list-style-type:1\" class=\"has-cyan-bluish-gray-background-color has-background wp-block-list\">\n<li>While PB1 is pressed the red LED will be on<\/li>\n\n\n\n<li>While PB2 and PB3 are pressed the yellow LED will be on.<\/li>\n\n\n\n<li><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">While PB4 or PB5 are pressed the green LED will be on.<\/mark><\/li>\n<\/ol>\n\n\n\n<p>Step 3 is the new part of the plan and the chosen components are PB4, PB5 and the green LED.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"287\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-7-board-1024x287.jpg\" alt=\"\" class=\"wp-image-842\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-7-board-1024x287.jpg 1024w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-7-board-300x84.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-7-board-768x215.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-7-board-100x28.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-7-board-150x42.jpg 150w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-7-board.jpg 1183w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>This time, we need to know the addresses for PB4, PB5 and the green LED. Please check the diagram .<a> <\/a>Add the addresses<\/p>\n\n\n\n<ol style=\"list-style-type:1\" class=\"has-cyan-bluish-gray-background-color has-background wp-block-list\">\n<li>While PB1 (at address <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">%IX0.0<\/mark> ) is pressed the red LED (at address <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">%QX0.0<\/mark> ) will be on.<\/li>\n\n\n\n<li>While PB2 (at address <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">%IX0.1<\/mark> ) and PB3 (at address <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">%IX0.2<\/mark>) are pressed the yellow LED (at address <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">%QX0.1<\/mark> ) will be on.<\/li>\n\n\n\n<li>While PB4 (at address ______ ) or PB5 (at address ______ ) are pressed the green LED (at address ________ ) will be on.<\/li>\n<\/ol>\n\n\n\n<p>We will add to the existing project. So if the project \u201cLadder IO Test\u201d is open and the ladder editor for PLC_PRG is open, we are ready to proceed.<\/p>\n\n\n\n<p>From the workspace, we will insert a new network below to create network number 3. Place a Contact instruction, to the left, on the new network. Then place a Coil to the right side of the network.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Adding_Branches_To_The_Left\"><\/span>Adding Branches To The Left<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The next step will be to add a closed branch and parallel Contact to the network. There are 2 methods to do this.<\/p>\n\n\n\n<ol class=\"wp-block-list\" style=\"list-style-type:1\">\n<li>With the Parallel Contact instruction<\/li>\n\n\n\n<li>With the Branch Start\/End instruction.<\/li>\n<\/ol>\n\n\n\n<p>For method 1, to drag and drop the Parallel Contact instruction. Click on Parallel Contact from the toolbox. Grey arrows will appear on the network suggesting to insert the Contact above or below. Drag to the arrow pointing downward and release, creating the branch and the Contact. The branch will have single vertical lines indicating a normal OR construct.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"958\" height=\"730\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-drag-drop-parallel-contact.jpg\" alt=\"\" class=\"wp-image-844\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-drag-drop-parallel-contact.jpg 958w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-drag-drop-parallel-contact-300x229.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-drag-drop-parallel-contact-768x585.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-drag-drop-parallel-contact-100x76.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-drag-drop-parallel-contact-150x114.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>For method 2, to drag and drop the Branch Start\/End instruction. Click on Branch Start\/End from the toolbox. Grey diamonds will appear on the network suggesting areas to land one end of the branch. Drag to one of the grey diamonds and release.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"992\" height=\"621\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-drag-drop-branch.jpg\" alt=\"\" class=\"wp-image-845\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-drag-drop-branch.jpg 992w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-drag-drop-branch-300x188.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-drag-drop-branch-768x481.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-drag-drop-branch-100x63.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-drag-drop-branch-150x94.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>To complete the second method, notice that now the diamond shapes change to squares. The pink square indicates the start of the branch. Clicking on a grey square will chose where to end the branch. The branch will have doubled vertical lines indicating the branch is capable of something called a Short Circuit Evaluation (SCE). We will discus the SCE in more depth when we learn more about function blocks. &nbsp;It makes little difference if the branch has single or doubled vertical lines for Contacts in parallel.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"815\" height=\"216\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-select-branch-position.jpg\" alt=\"\" class=\"wp-image-846\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-select-branch-position.jpg 815w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-select-branch-position-300x80.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-select-branch-position-768x204.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-select-branch-position-100x27.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-select-branch-position-150x40.jpg 150w\" sizes=\"auto, (max-width: 815px) 85vw, 815px\" \/><\/figure>\n\n\n\n<p>Whichever method you chose, the result should yield a branch with parallel Contact.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"866\" height=\"215\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-rung-1.jpg\" alt=\"\" class=\"wp-image-849\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-rung-1.jpg 866w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-rung-1-300x74.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-rung-1-768x191.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-rung-1-100x25.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-rung-1-150x37.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Assign the address for PB4 to the upper Contact. Assign the address for PB5 to the lower Contact and assign the address for the green LED to the Coil.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"950\" height=\"220\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-rung-2.jpg\" alt=\"\" class=\"wp-image-847\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-rung-2.jpg 950w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-rung-2-300x69.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-rung-2-768x178.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-rung-2-100x23.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-rung-2-150x35.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Once the variables have been assigned, the network is complete. This is a good time to save the project.<\/p>\n\n\n\n<p>To test the network, turn on the simulation mode, login and then start the application.<\/p>\n\n\n\n<p>Write the value TRUE to the upper Contacts and observe the result. Set the upper Contact back to FALSE then write the value TRUE to the lower Contact.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"997\" height=\"194\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-rung-3.jpg\" alt=\"\" class=\"wp-image-850\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-rung-3.jpg 997w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-rung-3-300x58.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-rung-3-768x149.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-rung-3-100x19.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex7-rung-3-150x29.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>If one of the conditions to the left of the Coil instruction are TRUE, there is a path of logical continuity.<\/p>\n\n\n\n<p>We can summarize, So long as either the upper or lower Contact are TRUE, the Coil is TRUE. The Contacts are for PB4 and PB5. The Coil is for the green LED. This satisfies our program plan, while PB4 or PB5 are pressed the green LED will be on.<\/p>\n\n\n\n<p>The Contact instructions are one below the other on parallel branches, we can say they are in parallel.<\/p>\n\n\n\n<p>Two or more input instructions in parallel have an <strong>OR<\/strong> relationship. Any of the instructions with a TRUE condition can provide a path of logical continuity.<\/p>\n\n\n\n<p>Logout and end the simulation.<\/p>\n\n\n\n<p>This concludes Exercise 7. If you did not already save the project this is a good time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Exercise_8_%E2%80%93_Network_With_Negated_Contact\"><\/span>Exercise 8 \u2013 Network With Negated Contact<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this exercise we will add to the existing program and create a network that operates with one pushbutton input and one LED output. While we are doing that, we will learn about the Negated Contact and how to reorganize networks by dragging. We will also learn how to add comments.<\/p>\n\n\n\n<p>Do you remember the <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-1-fundamentals\/#not-operator\" target=\"_blank\" rel=\"noreferrer noopener\">NOT Operator<\/a> from the section on <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-1-fundamentals\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bo<\/a><a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-1-fundamentals\/#bool-logic\" target=\"_blank\" rel=\"noreferrer noopener\">olean L<\/a><a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-1-fundamentals\/\" target=\"_blank\" rel=\"noreferrer noopener\">ogic<\/a>?<\/p>\n\n\n\n<p>For this exercise, our program plan has changed one more time:<\/p>\n\n\n\n<ol style=\"list-style-type:1\" class=\"has-cyan-bluish-gray-background-color has-background wp-block-list\">\n<li>While PB1 is pressed the red LED will be on<\/li>\n\n\n\n<li>While PB2 and PB3 are pressed the yellow LED will be on.<\/li>\n\n\n\n<li>While PB4 or PB5 are pressed the green LED will be on.<\/li>\n\n\n\n<li><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">While PB1 is not pressed the blue LED will be on.<\/mark><\/li>\n<\/ol>\n\n\n\n<p>Step 4 is the new part of the plan and the chosen components are PB1, and the blue LED.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"824\" height=\"374\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-8-board.jpg\" alt=\"\" class=\"wp-image-851\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-8-board.jpg 824w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-8-board-300x136.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-8-board-768x349.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-8-board-100x45.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/exercise-8-board-150x68.jpg 150w\" sizes=\"auto, (max-width: 824px) 85vw, 824px\" \/><\/figure>\n\n\n\n<p>This time, we need to know the addresses for PB1 and the blue LED. Please check the diagram <em><a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-2-programming-codesys\/#IO-connections\" target=\"_blank\" rel=\"noreferrer noopener\">I\/O Connections<\/a><\/em> from the section <em><a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-2-programming-codesys\/\" target=\"_blank\" rel=\"noreferrer noopener\">PLC Part 2 Intro To CODESYS<\/a><\/em>.<a> <\/a>Add the addresses.<\/p>\n\n\n\n<ol style=\"list-style-type:1\" class=\"has-cyan-bluish-gray-background-color has-background wp-block-list\">\n<li>While PB1 (at address <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">%IX0.0<\/mark> ) is pressed the red LED (at address <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">%QX0.0<\/mark> ) will be on.<\/li>\n\n\n\n<li>While PB2 (at address <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">%IX0.1<\/mark> ) and PB3 (at address <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">%IX0.2<\/mark>) are pressed the yellow LED (at address <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">%QX0.1 <\/mark>) will be on.<\/li>\n\n\n\n<li>While PB4 (at address <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">%IX0.3<\/mark>) or PB5 (at address <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">%IX0.4<\/mark>) are pressed the green LED (at address <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">%QX0.2<\/mark>) will be on.<\/li>\n\n\n\n<li>While PB1 (at address <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">%IX0.0<\/mark> ) is not pressed the blue LED (at address ______ ) will be on.<\/li>\n<\/ol>\n\n\n\n<p>We will add to the existing project. So if the project \u201cLadder IO Test\u201d is open and the ladder editor for PLC_PRG is open, we are ready to proceed.<\/p>\n\n\n\n<p>From the workspace, we will insert a new network below to create network number 4. Find the Negated Contact instruction and place it, to the left, on the new network. Then place a Coil to the right side of the network.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"323\" height=\"386\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-negated-contact.jpg\" alt=\"\" class=\"wp-image-852\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-negated-contact.jpg 323w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-negated-contact-251x300.jpg 251w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-negated-contact-84x100.jpg 84w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-negated-contact-126x150.jpg 126w\" sizes=\"auto, (max-width: 323px) 85vw, 323px\" \/><\/figure>\n<\/div>\n\n\n<p>The Contact and Coil placement should look like this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"982\" height=\"112\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-1.jpg\" alt=\"\" class=\"wp-image-853\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-1.jpg 982w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-1-300x34.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-1-768x88.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-1-100x11.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-1-150x17.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Assign the address for PB1 to the Negated Contact. Assign the address for the blue LED to the Coil.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"953\" height=\"112\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-2.jpg\" alt=\"\" class=\"wp-image-854\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-2.jpg 953w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-2-300x35.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-2-768x90.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-2-100x12.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-2-150x18.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Once the variables have been assigned, the network is complete. This is a good time to save the project.<\/p>\n\n\n\n<p>To test the network, turn on the simulation mode, login and then start the application.<\/p>\n\n\n\n<p>Observe the condition of the network. The condition of the Negated Contact instruction is TRUE. When the value of the address %IX0.0 is FALSE. There is a path of logical continuity.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"993\" height=\"144\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-3.jpg\" alt=\"\" class=\"wp-image-855\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-3.jpg 993w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-3-300x44.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-3-768x111.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-3-100x15.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-3-150x22.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Write the value TRUE to the Negated Contact. The condition of the Negated Contact instruction is FALSE. When the value of the address %IX0.0 is TRUE. The path is broken.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"999\" height=\"136\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-4.jpg\" alt=\"\" class=\"wp-image-856\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-4.jpg 999w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-4-300x41.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-4-768x105.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-4-100x14.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-rung-4-150x20.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>We can summarize, When the value of the assigned variable is FALSE the condition of the Negated Contact is TRUE. &nbsp;So long as the Negated Contact condition is TRUE the Coil is TRUE. The Contact is for PB1, the Coil is for the blue LED. This satisfies our program plan, while PB1 is not pressed the blue LED will be on.<\/p>\n\n\n\n<p>The condition of a Negated Contact is opposite to the value of the assigned variable.<\/p>\n\n\n\n<p>Logout and end the simulation. Returning to edit mode.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Drag_And_Drop_To_Relocate_Networks\"><\/span>Drag And Drop To Relocate Networks<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Network 1 and Network 4 are operated by PB1 at the address %IX0.0. Let\u2019s re-organize the program to keep the networks for PB1 together. Click on network 4 to highlight it as the network being edited. Then click and hold the pink area in the margin. Drag it to the arrow pointing down from network 1 then release.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"923\" height=\"728\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-relocate-network.jpg\" alt=\"\" class=\"wp-image-857\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-relocate-network.jpg 923w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-relocate-network-300x237.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-relocate-network-768x606.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-relocate-network-100x79.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-relocate-network-150x118.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>The network will change position to network 2. Many items in the ladder editor workspace can be moved around in drag and drop fashion.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"703\" height=\"400\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-relocate-network2.jpg\" alt=\"\" class=\"wp-image-859\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-relocate-network2.jpg 703w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-relocate-network2-300x171.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-relocate-network2-100x57.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/drag-drop-relocate-network2-150x85.jpg 150w\" sizes=\"auto, (max-width: 703px) 85vw, 703px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"commenting\"><span class=\"ez-toc-section\" id=\"Commenting\"><\/span>Commenting<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>As we keep adding to the program, it becomes more complicated to remember the function of the instructions and networks. Adding comments is a good way to keep organized by documenting how the logic works.<\/p>\n\n\n\n<p>To show comments we must enable the option first. From the Tools menu select Options<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1006\" height=\"484\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/tool-menu-options.jpg\" alt=\"\" class=\"wp-image-860\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/tool-menu-options.jpg 1006w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/tool-menu-options-300x144.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/tool-menu-options-768x369.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/tool-menu-options-100x48.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/tool-menu-options-150x72.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Scroll down to FBD, LD and IL editor to adjust editor options. Check the box for Show Network Comment and Show Operand Comment then click OK.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"529\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Ex8-enable-comments.jpg\" alt=\"\" class=\"wp-image-862\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Ex8-enable-comments.jpg 781w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Ex8-enable-comments-300x203.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Ex8-enable-comments-768x520.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Ex8-enable-comments-100x68.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Ex8-enable-comments-150x102.jpg 150w\" sizes=\"auto, (max-width: 781px) 85vw, 781px\" \/><\/figure>\n\n\n\n<p>In the workspace, move the mouse pointer to the top of the network area. A grey box will appear. Click on it, the box becomes white and you can type in a network comment.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"203\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-network-comments.jpg\" alt=\"\" class=\"wp-image-863\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-network-comments.jpg 799w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-network-comments-300x76.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-network-comments-768x195.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-network-comments-100x25.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-network-comments-150x38.jpg 150w\" sizes=\"auto, (max-width: 799px) 85vw, 799px\" \/><\/figure>\n\n\n\n<p>Type in a comment that describes the purpose of the line of ladder logic.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"196\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-network-comments2.jpg\" alt=\"\" class=\"wp-image-864\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-network-comments2.jpg 790w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-network-comments2-300x74.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-network-comments2-768x191.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-network-comments2-100x25.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-network-comments2-150x37.jpg 150w\" sizes=\"auto, (max-width: 790px) 85vw, 790px\" \/><\/figure>\n\n\n\n<p>In the workspace, move the mouse pointer to the top of the instruction area. A grey box will appear. Click on it, the box becomes white and you can type in a instruction comment to describe its function.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"504\" height=\"177\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-instruction-comments.jpg\" alt=\"\" class=\"wp-image-865\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-instruction-comments.jpg 504w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-instruction-comments-300x105.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-instruction-comments-100x35.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-instruction-comments-150x53.jpg 150w\" sizes=\"auto, (max-width: 504px) 85vw, 504px\" \/><\/figure>\n<\/div>\n\n\n<p>Go ahead and create comments to document the program.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1022\" height=\"666\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-comments.jpg\" alt=\"\" class=\"wp-image-866\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-comments.jpg 1022w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-comments-300x195.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-comments-768x500.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-comments-100x65.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex8-comments-150x98.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>This concludes Exercise 8. Make sure to save changes to the project<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Exercise_9_%E2%80%93_IO_Test\"><\/span>Exercise 9 \u2013 I\/O Test<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>This exercise is intended for the PLC training station, as described in the section <em><a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/diy-plc-training-station\/\" target=\"_blank\" rel=\"noreferrer noopener\">DIY PLC Training station<\/a><\/em>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"598\" height=\"268\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/DIT-Training-Station.jpg\" alt=\"\" class=\"wp-image-446\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/DIT-Training-Station.jpg 598w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/DIT-Training-Station-300x134.jpg 300w\" sizes=\"auto, (max-width: 598px) 85vw, 598px\" \/><\/figure>\n\n\n\n<p>In this exercise, we will connect online with the CODESYS Control Win soft PLC and run the project \u201cLadder IO Test\u201d. We will exercise every pushbutton and monitor the response from the LEDs. The behavior of the I\/O will confirm the correct operation of the training station. We will also learn about forcing I\/O.<\/p>\n\n\n\n<p id=\"go-online\">Here is a list of things to check before we can start:<\/p>\n\n\n\n<ol class=\"wp-block-list\" style=\"list-style-type:1\">\n<li>The correct project must be open. (in this case \u201cLadder IO Test\u201d)<\/li>\n\n\n\n<li>The ladder editor for PLC_PRG should be open.<\/li>\n\n\n\n<li>The slave device must be connected to the PC with a USB cable. Modbus communications must have been configured as in <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-2-programming-codesys\/#exercise-3\">Exercise 3<\/a><\/li>\n\n\n\n<li>Make sure the CODESYS gateway and soft PLC are running. (See the guide <em><a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/help-section\/#Start-stop-codesys\" target=\"_blank\" rel=\"noreferrer noopener\">Start Or Stop CODESYS Control Win Soft PLC And Gateway<\/a><\/em> in the <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/help-section\/\" target=\"_blank\" rel=\"noreferrer noopener\">Help Section<\/a>).<\/li>\n\n\n\n<li>Make sure the Development System is logged off simulation and the simulation mode is off. There should be no red box in the status bar.&nbsp; &nbsp;<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"239\" height=\"130\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/no-simulation-red-box-1.jpg\" alt=\"\" class=\"wp-image-871\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/no-simulation-red-box-1.jpg 239w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/no-simulation-red-box-1-100x54.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/no-simulation-red-box-1-150x82.jpg 150w\" sizes=\"auto, (max-width: 239px) 85vw, 239px\" \/><figcaption class=\"wp-element-caption\"><br><br><\/figcaption><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Login-2\"><\/span>Login<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Login is required to connect online with the PLC.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"804\" height=\"281\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login.jpg\" alt=\"\" class=\"wp-image-877\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login.jpg 804w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-300x105.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-768x268.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-100x35.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-150x52.jpg 150w\" sizes=\"auto, (max-width: 804px) 85vw, 804px\" \/><\/figure>\n\n\n\n<p>When logging in, aside from the usual username and password requirement, the application on the PC is compared to the simulator\u2019s current application, if any. For those reasons you may be prompted by any of the following:<\/p>\n\n\n\n<p>1 . Login credentials. Enter your username and password then proceed. Don\u2019t have a password yet? See the guide <em><a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/help-section\/#Set-PLC-path\" target=\"_blank\" rel=\"noreferrer noopener\">Communication Settings Connection Path To PLC<\/a><\/em> in the <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/help-section\/\" target=\"_blank\" rel=\"noreferrer noopener\">Help Section<\/a>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"532\" height=\"268\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-credentials.jpg\" alt=\"\" class=\"wp-image-878\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-credentials.jpg 532w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-credentials-300x151.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-credentials-100x50.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-credentials-150x76.jpg 150w\" sizes=\"auto, (max-width: 532px) 85vw, 532px\" \/><figcaption class=\"wp-element-caption\"><br><br><\/figcaption><\/figure>\n<\/div>\n\n\n<p>2 . A dialogue box indicating that no application exists. This happens if the PLC has no application currently loaded Connecting and downloading an application is our objective. So, the correct answer is Yes, to confirm the download.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"733\" height=\"312\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-application-exists.jpg\" alt=\"\" class=\"wp-image-888\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-application-exists.jpg 733w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-application-exists-300x128.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-application-exists-100x43.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-application-exists-150x64.jpg 150w\" sizes=\"auto, (max-width: 733px) 85vw, 733px\" \/><figcaption class=\"wp-element-caption\"><br><\/figcaption><\/figure>\n<\/div>\n\n\n<p>3 . A dialog box indicating an application is currently loaded but no matching compile information. This happens when the application loaded on the PLC is from different project. Click Yes to confirm the download.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"309\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-application-no-match.jpg\" alt=\"\" class=\"wp-image-889\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-application-no-match.jpg 786w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-application-no-match-300x118.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-application-no-match-768x302.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-application-no-match-100x39.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-application-no-match-150x59.jpg 150w\" sizes=\"auto, (max-width: 786px) 85vw, 786px\" \/><figcaption class=\"wp-element-caption\"><br><\/figcaption><\/figure>\n<\/div>\n\n\n<p>4 . A dialog box with 3 login options. This happens when the application on the PC is does not match the PLC\u2019s current application and you must chose how to proceed.<\/p>\n\n\n\n<p>a) Login with online change &#8211; Only loads the changed part of the application and does not require the application to stop to allow the change. This has minimum impact on equipment that may have processes running. <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">Here is an important safety reminder<\/mark>. Making online changes on running equipment can have unpredictable outcomes. Make sure you understand the risks before making online changes on real world equipment.<\/p>\n\n\n\n<p>b) Login with download &#8211; Loads the complete application. Any running application would have to be stopped to accept the download. It may automatically restart or a manual restart may be necessary. This has a serious impact on equipment that may have processes running. <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">Here is an important safety reminder<\/mark>. Equipment should be idle and in a Safe Off state if the PLC is being stopped and restarted including for download.<\/p>\n\n\n\n<p>c) Login without any change &#8211; No changes will be loaded. The online connection will proceed but the application displayed on the PC will not match what is running on the PLC. This makes the view inaccurate while monitoring from the workspace. <\/p>\n\n\n\n<p>Either of the first two options are acceptable for our purpose. It makes little difference for the training station if we must restart the application. The third option, Login without any change, is not suitable since our objective is to download the application. Once a selection is made then click OK.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"789\" height=\"365\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-no-change.jpg\" alt=\"\" class=\"wp-image-879\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-no-change.jpg 789w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-no-change-300x139.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-no-change-768x355.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-no-change-100x46.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-no-change-150x69.jpg 150w\" sizes=\"auto, (max-width: 789px) 85vw, 789px\" \/><figcaption class=\"wp-element-caption\"><br><br><\/figcaption><\/figure>\n<\/div>\n\n\n<p>5 . A dialogue box indicating no online change is possible. This happens when the application on the PC is significantly different than simulator\u2019s current application. Click Yes to confirm the download.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"771\" height=\"286\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-no-online-change-possible.jpg\" alt=\"\" class=\"wp-image-880\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-no-online-change-possible.jpg 771w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-no-online-change-possible-300x111.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-no-online-change-possible-768x285.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-no-online-change-possible-100x37.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-login-no-online-change-possible-150x56.jpg 150w\" sizes=\"auto, (max-width: 771px) 85vw, 771px\" \/><figcaption class=\"wp-element-caption\"><br><\/figcaption><\/figure>\n<\/div>\n\n\n<p>6 . No connection warning. Check that the soft PLC and gateway are running. See <em><em><a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/help-section\/#Start-stop-codesys\" target=\"_blank\" rel=\"noreferrer noopener\">Start Or Stop CODESYS Control Win Soft PLC And Gateway<\/a><\/em><\/em> in the <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/help-section\/\" target=\"_blank\" rel=\"noreferrer noopener\">Help Section.<\/a><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"652\" height=\"250\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-connection.jpg\" alt=\"\" class=\"wp-image-881\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-connection.jpg 652w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-connection-300x115.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-connection-100x38.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-connection-150x58.jpg 150w\" sizes=\"auto, (max-width: 652px) 85vw, 652px\" \/><figcaption class=\"wp-element-caption\"><br><br><\/figcaption><\/figure>\n<\/div>\n\n\n<p>7 . No active path defined warning. See the guide <em><em><a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/help-section\/#Set-PLC-path\" target=\"_blank\" rel=\"noreferrer noopener\">Communication Settings Connection Path To PLC<\/a><\/em><\/em> in the <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/help-section\/\" target=\"_blank\" rel=\"noreferrer noopener\">Help Section<\/a>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"571\" height=\"354\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-active-path.jpg\" alt=\"\" class=\"wp-image-882\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-active-path.jpg 571w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-active-path-300x186.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-active-path-100x62.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-active-path-150x93.jpg 150w\" sizes=\"auto, (max-width: 571px) 85vw, 571px\" \/><figcaption class=\"wp-element-caption\"><br><\/figcaption><\/figure>\n<\/div>\n\n\n<p>Once logged in, check the status bar. Is the application running? Click the start button if required. <img loading=\"lazy\" decoding=\"async\" width=\"49\" height=\"39\" class=\"wp-image-830\" style=\"width: 49px;\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/play-button.jpg\" alt=\"\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"slavedevice-com\"><span class=\"ez-toc-section\" id=\"Check_Modbus_Communications\"><\/span>Check Modbus Communications<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Check for the green, circular arrows in the devices view. They are indicators that the slave device communication is working. Blinking yellow TX and RX LEDs on the board, indicate communication is working as well. Often, when the PLC is first started or after a 2 hour timeout and shutdown, a \u201cbus error\u201d occurs and stops Modbus communication. This can be reset easily, from the Online menu select Reset Warm. After the reset the application will need to be restarted. If communication is not working at this point, see the guide <em><a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/help-section\/#slave-device-coms\" target=\"_blank\" rel=\"noreferrer noopener\">Slave Device Communication Troubleshooting<\/a><\/em> in the <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/help-section\/\" target=\"_blank\" rel=\"noreferrer noopener\">Help Section<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"385\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-check-modbus-coms-1024x385.jpg\" alt=\"\" class=\"wp-image-897\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-check-modbus-coms-1024x385.jpg 1024w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-check-modbus-coms-300x113.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-check-modbus-coms-768x289.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-check-modbus-coms-100x38.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-check-modbus-coms-150x56.jpg 150w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-check-modbus-coms.jpg 1042w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"IO_Checklist\"><\/span>I\/O Checklist<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If communication between the slave device and PLC are working you may proceed to the next step. You can monitor the status of the I\/O from the workspace display. Try pressing some of the pushbuttons and watch the blue highlighted regions change in the workspace.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"928\" height=\"607\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-IO-check-rung-display.jpg\" alt=\"\" class=\"wp-image-898\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-IO-check-rung-display.jpg 928w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-IO-check-rung-display-300x196.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-IO-check-rung-display-768x502.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-IO-check-rung-display-100x65.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-IO-check-rung-display-150x98.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Perform the I\/O checklist. Actuate the pushbuttons as described and monitor the response of LEDs.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"239\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-io-checklist.jpg\" alt=\"\" class=\"wp-image-899\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-io-checklist.jpg 722w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-io-checklist-300x99.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-io-checklist-100x33.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-io-checklist-150x50.jpg 150w\" sizes=\"auto, (max-width: 722px) 85vw, 722px\" \/><\/figure>\n<\/div>\n\n\n<p>With any luck it all worked OK, but what if something is not working? What tools do we have to troubleshoot? We can break out most I\/O problems into two categories, software and hardware. The software is the PLC application and the hardware would be the slave device. We have tested our program, in simulation mode, as we built each network along the way so that makes hardware the most likely cause.<\/p>\n\n\n\n<p>Sine we can monitor the status of the I\/O from the workspace, it is easy to check inputs. For example, to test PB3 we can watch the assigned Contact at address %IX0.2 change status when we push the button. This confirms the electrical operation of the pushbutton, the connection to the Arduino and even the communication of inputs to the PLC.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"914\" height=\"181\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-rung1.jpg\" alt=\"\" class=\"wp-image-901\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-rung1.jpg 914w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-rung1-300x59.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-rung1-768x152.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-rung1-100x20.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-rung1-150x30.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Forcing\"><\/span>Forcing<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>But what about Coils? There is an easy way to test them too. There is something called forcing. For example select the Coil in network 4 at address %Q0.2 and double click. The blue box with the word <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u201cTRUE\u201d<\/mark> will appear. Right click anywhere in the workspace and select Force All Values of Device.Application.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1001\" height=\"489\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-Force-all-values.jpg\" alt=\"\" class=\"wp-image-902\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-Force-all-values.jpg 1001w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-Force-all-values-300x147.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-Force-all-values-768x375.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-Force-all-values-100x49.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-Force-all-values-150x73.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>The status of the instruction will change, highlighted blue to indicate the Coil condition is TRUE. This should lite up the green LED. If the LED is working this confirms the electrical operation of the LED, the connection to the Arduino and even the communication of outputs from the PLC.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"453\" height=\"127\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-forced-contact.jpg\" alt=\"\" class=\"wp-image-905\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-forced-contact.jpg 453w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-forced-contact-300x84.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-forced-contact-100x28.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-forced-contact-150x42.jpg 150w\" sizes=\"auto, (max-width: 453px) 85vw, 453px\" \/><\/figure>\n<\/div>\n\n\n<p>To undo the force, right click anywhere in the workspace and select Unforce All Values of Device.Application. The instruction status will return to normal.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"374\" height=\"291\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-unforce.jpg\" alt=\"\" class=\"wp-image-903\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-unforce.jpg 374w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-unforce-300x233.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-unforce-100x78.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-unforce-150x117.jpg 150w\" sizes=\"auto, (max-width: 374px) 85vw, 374px\" \/><\/figure>\n<\/div>\n\n\n<p>A few more words about forcing. Forcing works on input instructions too. Select any Contact from the workspace and give it a try. Forcing is an easy way to test inputs and outputs but they must be used with care. Not much can go wrong with the training station but on a real machine forcing I\/O can have unpredictable results and serious consequences. <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">Here is an important safety reminder<\/mark>. Take care when using forces. Make sure you know what device will be affected and have people stand clear.<\/p>\n\n\n\n<p>Forcing is a great tool but it can cause problems too. Many technicians have wasted time troubleshooting a PLC problem just to find out someone left a force in the program. You can quickly check for active forces by checking the status bar.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"368\" height=\"57\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-force-status-bar.jpg\" alt=\"\" class=\"wp-image-906\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-force-status-bar.jpg 368w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-force-status-bar-300x46.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-force-status-bar-100x15.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-force-status-bar-150x23.jpg 150w\" sizes=\"auto, (max-width: 368px) 85vw, 368px\" \/><\/figure>\n<\/div>\n\n\n<p>Remember, <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-2-programming-codesys\/#codesys-control-win\" target=\"_blank\" rel=\"noreferrer noopener\">the soft PLC runs for 2 hours intervals<\/a>, without a license, and then stops.&nbsp; If you see a dialog box declaring No Connection check that the soft PLC is running. Restart if necessary.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"652\" height=\"250\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-connection.jpg\" alt=\"\" class=\"wp-image-881\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-connection.jpg 652w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-connection-300x115.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-connection-100x38.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex9-no-connection-150x58.jpg 150w\" sizes=\"auto, (max-width: 652px) 85vw, 652px\" \/><\/figure>\n<\/div>\n\n\n<p>During the testing process, if you need to make changes to the application, Logout to edit the logic. Then Login again, confirm the application is running and modbus communication is working. Continue the test.<\/p>\n\n\n\n<p>When you have completed the I\/O test. Logout and stop the soft PLC.<\/p>\n\n\n\n<p>This concludes Exercise 9.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Instructions_Set_Coil_And_Reset_Coil\"><\/span>Instructions: Set Coil And Reset Coil<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>Set Coil<\/strong> is an output instruction. It is assigned a variable with BOOL (1 bit) data type. As an output instruction it will control the value of the assigned variable.<\/p>\n\n\n\n<p>The instruction is TRUE if input conditions to the left provide a path of logical continuity. When the instruction is TRUE the bit is set to TRUE ( ON, equals 1) for the assigned variable. The assigned variable will remain TRUE until some other instruction or command acts on it.<\/p>\n\n\n\n<p>The Set Coil can be considered as retentive since it only acts when conditions for the instruction are TRUE, turning the bit ON otherwise the state of the bit is retained.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"378\" height=\"130\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-set-coil.jpg\" alt=\"\" class=\"wp-image-911\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-set-coil.jpg 378w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-set-coil-300x103.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-set-coil-100x34.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-set-coil-150x52.jpg 150w\" sizes=\"auto, (max-width: 378px) 85vw, 378px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Reset Coil<\/strong> is an output instruction. It is assigned a variable with BOOL (1 bit) data type. As an output instruction it will control the value of the assigned variable.<\/p>\n\n\n\n<p>The instruction is TRUE if input conditions to the left provide a path of logical continuity. When the instruction is TRUE the bit is set to FALSE ( OFF, equals 0) for the assigned variable. The assigned variable will remain FALSE until some other instruction or command acts on it.<\/p>\n\n\n\n<p>The Reset Coil can be considered as retentive since it only acts when conditions for the instruction are TRUE, turning the bit OFF otherwise the state of the bit is retained.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"420\" height=\"143\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-rese-coil.jpg\" alt=\"\" class=\"wp-image-912\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-rese-coil.jpg 420w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-rese-coil-300x102.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-rese-coil-100x34.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-rese-coil-150x51.jpg 150w\" sizes=\"auto, (max-width: 420px) 85vw, 420px\" \/><\/figure>\n<\/div>\n\n\n<p>The Set Coil and Reset Coil instructions are available from the toolbox under the heading Ladder Elements.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"479\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/set-resettoolbox.jpg\" alt=\"\" class=\"wp-image-913\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/set-resettoolbox.jpg 400w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/set-resettoolbox-251x300.jpg 251w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/set-resettoolbox-84x100.jpg 84w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/set-resettoolbox-125x150.jpg 125w\" sizes=\"auto, (max-width: 400px) 85vw, 400px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Exercise_10_%E2%80%93_Light_Switch_1\"><\/span>Exercise 10 \u2013 Light Switch #1<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this exercise we will create a new project and run it with the PLC training station to demonstrate the function of the Set Coil and Reset Coil instructions. We will also explore an old-fashioned seal-in contact arrangement as a comparison.<\/p>\n\n\n\n<p>Our task is this: Given 2 pushbuttons and a light, program ladder logic to turn the light on or off at the entry to the green room. PB1 will be the on button and PB2 will be the off button. The light is the yellow LED, LED2.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"376\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/EX10-greenroom.jpg\" alt=\"\" class=\"wp-image-915\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/EX10-greenroom.jpg 560w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/EX10-greenroom-300x201.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/EX10-greenroom-100x67.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/EX10-greenroom-150x101.jpg 150w\" sizes=\"auto, (max-width: 560px) 85vw, 560px\" \/><\/figure>\n\n\n\n<p>Open a copy of the base project \u201cTraining_Station_Base\u201d and save as a different project name \u201cLightswitch\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"854\" height=\"421\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2023\/12\/Ex10-Save-as-Light-Switch.jpg\" alt=\"\" class=\"wp-image-1313\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2023\/12\/Ex10-Save-as-Light-Switch.jpg 854w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2023\/12\/Ex10-Save-as-Light-Switch-300x148.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2023\/12\/Ex10-Save-as-Light-Switch-768x379.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2023\/12\/Ex10-Save-as-Light-Switch-100x49.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2023\/12\/Ex10-Save-as-Light-Switch-150x74.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_1\"><\/span>Method #1<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Before we learned the new retentive output instructions our approach might have looked like an old school seal-in circuit. You may remember the <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-1-fundamentals\/#seal-in\" target=\"_blank\" rel=\"noreferrer noopener\">seal-in circuit from Part 1<\/a> when we reviewed relay ladder logic.<\/p>\n\n\n\n<p>Open the editor for the program PLC_PRG and place instructions as shown in the diagram titled <em>Seal-In Logic.<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"905\" height=\"294\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-seal-in-logic.jpg\" alt=\"\" class=\"wp-image-920\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-seal-in-logic.jpg 905w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-seal-in-logic-300x97.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-seal-in-logic-768x249.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-seal-in-logic-100x32.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-seal-in-logic-150x49.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Make sure the CODESYS gateway and soft PLC are running. Then Login to connect online with the PLC. Remember <a href=\"#go-online\" target=\"_blank\" rel=\"noreferrer noopener\">how we connected online<\/a> from Exercise 9.<\/p>\n\n\n\n<p>Check the status bar. Is the application running? Click the start button if required.&nbsp; <img loading=\"lazy\" decoding=\"async\" width=\"49\" height=\"39\" class=\"wp-image-830\" style=\"width: 49px;\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/play-button.jpg\" alt=\"\"><\/p>\n\n\n\n<p>Check for communication to the slave device. Remember <a href=\"#slavedevice-com\" target=\"_blank\" rel=\"noreferrer noopener\">how we checked Modbus communications<\/a> from Exercise 9.<\/p>\n\n\n\n<p>Once the application is running. Monitor the status of the I\/O from the workspace display.<\/p>\n\n\n\n<p>Observe, when PB1 is pressed the top line of the network is highlighted blue, the Coil is enabled and the light turns on. The lower branch on the network is highlighted as well. A Contact that monitors the light status and a Negated Contact linked to PB2 provide a second path of continuity.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"990\" height=\"311\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-1.jpg\" alt=\"\" class=\"wp-image-921\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-1.jpg 990w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-1-300x94.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-1-768x241.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-1-100x31.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-1-150x47.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>When PB1 is released, the lower branch keeps the Coil \u201csealed-in\u201d. The light stays on<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"995\" height=\"357\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-2.jpg\" alt=\"\" class=\"wp-image-922\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-2.jpg 995w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-2-300x108.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-2-768x276.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-2-100x36.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-2-150x54.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>When PB2 is pressed, the Negated Contact in the lower branch is no longer TRUE. This breaks continuity to the Coil and the light goes out.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1009\" height=\"343\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-3.jpg\" alt=\"\" class=\"wp-image-923\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-3.jpg 1009w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-3-300x102.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-3-768x261.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-3-100x34.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-3-150x51.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>The ladder logic, from method 1, meets the goal to provide working On and Off buttons for a light.<\/p>\n\n\n\n<p>Logout to end the online connection to the PLC and return to edit mode<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_2\"><\/span>Method #2<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>This method utilizes Set Coil and Reset-Coil to accomplish the same outcome. In some circumstances this may be a simpler way.<\/p>\n\n\n\n<p>Start off by deleting the network with the seal-in logic.<\/p>\n\n\n\n<p>(Hint: Clicking on the network will highlight it. Then right click and select delete)<\/p>\n\n\n\n<p>Then create 2 networks.<\/p>\n\n\n\n<p>For network 1, Place a Contact with the address for PB1 and Set Coil with the address for LED2.<\/p>\n\n\n\n<p>For network 2, Place a Contact with the address for PB2 and Reset Coil with the address for LED2.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"448\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-4.jpg\" alt=\"\" class=\"wp-image-924\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-4.jpg 750w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-4-300x179.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-4-100x60.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-4-150x90.jpg 150w\" sizes=\"auto, (max-width: 750px) 85vw, 750px\" \/><\/figure>\n\n\n\n<p>Make sure the CODESYS gateway and soft PLC are running. Then Login to connect online with the PLC. Remember <a href=\"#go-online\" target=\"_blank\" rel=\"noreferrer noopener\">how we connected online<\/a> from Exercise 9.<\/p>\n\n\n\n<p>Check the status bar. Is the application running? Click the start button if required.&nbsp; <img loading=\"lazy\" decoding=\"async\" width=\"49\" height=\"39\" class=\"wp-image-830\" style=\"width: 49px;\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/play-button.jpg\" alt=\"\"><\/p>\n\n\n\n<p>Check for communication to the slave device. Remember <a href=\"#slavedevice-com\" target=\"_blank\" rel=\"noreferrer noopener\">how we checked Modbus communications<\/a> from Exercise 9.<\/p>\n\n\n\n<p>Once the application is running. Monitor the status of the I\/O from the workspace display.<\/p>\n\n\n\n<p>Note that the Set Coil on network 1 and Reset Coil on network 2 are both the same address. Each network performs a separate action on the output for LED2.<\/p>\n\n\n\n<p>While pressing PB1, observe network 1 highlighted blue. The Set Coil instruction is highlighted blue as well and the light (LED2) is on.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"690\" height=\"322\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-5.jpg\" alt=\"\" class=\"wp-image-925\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-5.jpg 690w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-5-300x140.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-5-100x47.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-5-150x70.jpg 150w\" sizes=\"auto, (max-width: 690px) 85vw, 690px\" \/><\/figure>\n\n\n\n<p>On network 1 when PB1 is released, the network between the Contact and Set Coil is no longer highlighted. But the Set Coil is still highlighted and the LED2 is still on. Note on network 2 the Reset Coil has been highlighted blue ever since PB1 was pressed. It is indicating that the bit for address %QX0.1 is TRUE.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"655\" height=\"284\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-6.jpg\" alt=\"\" class=\"wp-image-927\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-6.jpg 655w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-6-300x130.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-6-100x43.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-6-150x65.jpg 150w\" sizes=\"auto, (max-width: 655px) 85vw, 655px\" \/><\/figure>\n\n\n\n<p>When PB2 is pressed network 2 is highlighted blue up to the Reset Coil. At this point the Reset Coil is no longer highlighted and the light, LED2 is out.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"755\" height=\"359\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-7.jpg\" alt=\"\" class=\"wp-image-928\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-7.jpg 755w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-7-300x143.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-7-100x48.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex10-rung-7-150x71.jpg 150w\" sizes=\"auto, (max-width: 755px) 85vw, 755px\" \/><\/figure>\n\n\n\n<p>On network 2 when PB2 is released, the network between the Contact and Set Coil is no longer highlighted. The Reset Coil remains unhighlighted.<\/p>\n\n\n\n<p>The ladder logic, from method 2, also meets the goal to provide working On and Off buttons for a light.<\/p>\n\n\n\n<p>Remember to save the project. This concludes Exercise 10<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Exercise_11_%E2%80%93_Light_Switch_2\"><\/span>Exercise 11 \u2013 Light Switch #2<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this exercise we will add to the project recently created for Exercise 10, \u201cLightswitch\u201d. The project will be run on the PLC training station. The intention is to demonstrate adding a branch to the right side (output side) of the network and how that splits the signal flow. While we are doing that, we will start learning about declaring variables that are linked to addresses and how that helps keep our logic organized.<\/p>\n\n\n\n<p>Our task is this: Back in the green room, extra lighting has been added to illuminate the stairs. We need to change our logic to control LED1 to operate the same as LED2.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"878\" height=\"400\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-greenroom.jpg\" alt=\"\" class=\"wp-image-929\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-greenroom.jpg 878w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-greenroom-300x137.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-greenroom-768x350.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-greenroom-100x46.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-greenroom-150x68.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Starting at the workspace. The ladder logic from Exercise 10 is visible.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"687\" height=\"331\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-rung-1.jpg\" alt=\"\" class=\"wp-image-931\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-rung-1.jpg 687w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-rung-1-300x145.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-rung-1-100x48.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-rung-1-150x72.jpg 150w\" sizes=\"auto, (max-width: 687px) 85vw, 687px\" \/><\/figure>\n\n\n\n<p>To add control for the second light we will add Set Coil and Reset Coil instructions, with the address for LED1, to the left side of both networks.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Adding_Branches_To_The_Right\"><\/span>Adding Branches To The Right<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>To add the output instructions, a branch must be added to the right side of the network to \u201csplit-off\u201d the signal. There are 2 ways to do this.<\/p>\n\n\n\n<ol class=\"wp-block-list\" style=\"list-style-type:1\">\n<li>Placing an additional output instruction on the network This will parallel with the existing output instruction and leaves no room to add other instructions or function blocks to the branch.<\/li>\n\n\n\n<li>With the Insert Branch instruction. This creates a branch with room to add multiple instructions and function blocks.<\/li>\n<\/ol>\n\n\n\n<p>For network 1 we will practice the first method, to drag and drop the Set Coil instruction. Click on Set Coil from the toolbox. Grey arrows will appear on the network suggesting to insert the instruction above or below. The arrow pointing to the right will insert below the existing Set Coil and the arrow pointing up will insert above the existing Set Coil. Drag to the arrow pointing to the right and release, creating the branch and the Set Coil below. This is the simplest method for adding parallel output instructions.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1007\" height=\"734\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-drag-drop-set-coil.jpg\" alt=\"\" class=\"wp-image-932\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-drag-drop-set-coil.jpg 1007w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-drag-drop-set-coil-300x219.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-drag-drop-set-coil-768x560.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-drag-drop-set-coil-100x73.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-drag-drop-set-coil-150x109.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>For network 2 we will practice the other method. To drag and drop the Branch Insert instruction, click on Branch from the toolbox. Grey diamonds will appear on the network suggesting areas to land one end of the branch. Drag to one of the grey diamonds and release. This creates the new branch. The Reset Coil instruction still must be added.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"886\" height=\"614\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-drag-drop-branch.jpg\" alt=\"\" class=\"wp-image-933\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-drag-drop-branch.jpg 886w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-drag-drop-branch-300x208.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-drag-drop-branch-768x532.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-drag-drop-branch-100x69.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-drag-drop-branch-150x104.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>To complete the second method, place the Reset Coil instruction on the new branch. Its not as simple as the first method but there is room on the branch for more instructions if we were creating more complex logic.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1016\" height=\"572\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-drag-drop-reset-coil.jpg\" alt=\"\" class=\"wp-image-934\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-drag-drop-reset-coil.jpg 1016w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-drag-drop-reset-coil-300x169.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-drag-drop-reset-coil-768x432.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-drag-drop-reset-coil-100x56.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-drag-drop-reset-coil-150x84.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Add the address for LED1 to the new Set Coil and Reset Coil.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"518\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-rung-2.jpg\" alt=\"\" class=\"wp-image-935\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-rung-2.jpg 696w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-rung-2-300x223.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-rung-2-100x74.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-rung-2-150x112.jpg 150w\" sizes=\"auto, (max-width: 696px) 85vw, 696px\" \/><\/figure>\n\n\n\n<p><a href=\"#go-online\" target=\"_blank\" rel=\"noreferrer noopener\">Take the usual steps to get logged in to the soft<\/a> PLC, with the application and <a href=\"#slavedevice-com\" target=\"_blank\" rel=\"noreferrer noopener\">slave device running<\/a>. Once the application is running. Monitor the status of the I\/O from the workspace display.<\/p>\n\n\n\n<p>Test the logic. When PB1 is pressed both lights, LED1 and LED2, should turn on. When PB2 is pressed both lights, LED1 and LED2, should turn off. &nbsp;<\/p>\n\n\n\n<p>Once tested, the logic meets the goal to add control for the second light.<\/p>\n\n\n\n<p>Remember to save the project.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"About_The_Branches\"><\/span>About The Branches<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The length of the branches is noticeably different. To drive the point home, this is the difference between them:<\/p>\n\n\n\n<p>On network 1 there is room for the Set Coil instruction only. For example if you were to try and place a Contact on the lower branch of network one, there would be no highlighted area or grey diamond suggesting it could land there.<\/p>\n\n\n\n<p>This is not the case for the lower branch on network 2. This type of branch is designed to accept multiple instructions and function blocks to build more complex logic if need be.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"863\" height=\"467\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-room-on-branch.jpg\" alt=\"\" class=\"wp-image-936\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-room-on-branch.jpg 863w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-room-on-branch-300x162.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-room-on-branch-768x416.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-room-on-branch-100x54.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-room-on-branch-150x81.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Declaring_Variables\"><\/span>Declaring Variables<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>In a previous exercise, we began using <a href=\"#commenting\">commenting<\/a> to document the program. Since then we have started fresh with project \u201cLightswitch\u201d there are few if any comments and no documentation. This is a good time to try something different that can help identify I\/O.<\/p>\n\n\n\n<p>Variable names identify a piece of data. A Declared Variable is a variable created by the programmer by giving a name and a data type. We can use variable names to identify I\/O. Warning: When declaring variables keep in mind that <strong>variable names cannot have spaces<\/strong>. If you are using a multiword name, use an underscore instead of a space.<\/p>\n\n\n\n<p>Logout to end the online connection to the PLC and return to edit mode. In the workspace at network 1, click on the address %IX0.0 and type in \u201cPB1\u201d then press enter.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"754\" height=\"533\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-varible-PB1.jpg\" alt=\"\" class=\"wp-image-939\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-varible-PB1.jpg 754w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-varible-PB1-300x212.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-varible-PB1-100x71.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-varible-PB1-150x106.jpg 150w\" sizes=\"auto, (max-width: 754px) 85vw, 754px\" \/><\/figure>\n\n\n\n<p id=\"auto-declare-box\">A dialog box titled Auto Declare will appear. The field for Scope is VAR, which is a normal variable. The Object Field will show PLC_PRG[Application] indicating that the variable is valid within the POU named PLC_PRG for the current application.<\/p>\n\n\n\n<p>The variable name and type are already present. You need to type in the address for PB1, %IX0.0. &nbsp;This will link the address to the variable. Then click OK.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"810\" height=\"398\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-auto-declare-box.jpg\" alt=\"\" class=\"wp-image-941\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-auto-declare-box.jpg 810w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-auto-declare-box-300x147.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-auto-declare-box-768x377.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-auto-declare-box-100x49.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-auto-declare-box-150x74.jpg 150w\" sizes=\"auto, (max-width: 810px) 85vw, 810px\" \/><\/figure>\n\n\n\n<p>Note: If the Auto Declare box does not appear automatically, you can prompt it by selecting the desired text and pressing the Shift and F2 buttons at the same time.<\/p>\n\n\n\n<p>The assigned variable for the Contact on network 1 is now PB1. To the top of the workspace is the declaration editor. It shows the local variables defined for the program PLC_PRG. &nbsp;In the declaration editor we see a new line <strong>\u201cPB1 <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">AT<\/mark> <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">%IX0.0<\/mark>:&nbsp; <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">BOOL;<\/mark>\u201d<\/strong>. This shows the declaration we have just made. It includes the variable name and data type. It also contains the <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">AT<\/mark><\/strong> code to link a specific address. This is how we linked the variable to the pushbutton PB1.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"783\" height=\"617\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-varible-PB1-part-2.jpg\" alt=\"\" class=\"wp-image-942\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-varible-PB1-part-2.jpg 783w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-varible-PB1-part-2-300x236.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-varible-PB1-part-2-768x605.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-varible-PB1-part-2-100x79.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-varible-PB1-part-2-150x118.jpg 150w\" sizes=\"auto, (max-width: 783px) 85vw, 783px\" \/><\/figure>\n\n\n\n<p>Using the Auto Declare Box, go ahead and declare variables for PB2, LED1 and LED2, make sure you link to the correct address. Once a variable name has been declared it is available to use for multiple instructions within the POU. Note that LED1 and LED2 are declared once but appear in two different places in the logic. Remember variable names cannot have spaces.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"827\" height=\"598\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/EX11-remaining-variablesa.jpg\" alt=\"\" class=\"wp-image-1018\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/EX11-remaining-variablesa.jpg 827w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/EX11-remaining-variablesa-300x217.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/EX11-remaining-variablesa-768x555.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/EX11-remaining-variablesa-100x72.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/EX11-remaining-variablesa-150x108.jpg 150w\" sizes=\"auto, (max-width: 827px) 85vw, 827px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Back_to_the_situation_in_the_green_room\"><\/span>Back to the situation in the green room.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If someone enters the area from upstairs, access to the light control is required. How can we add PB3 and PB4 to the program to control the lights from upstairs as well? With what you have learned so far try to create your own solution and then test it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"877\" height=\"400\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-greenroom-2.jpg\" alt=\"\" class=\"wp-image-944\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-greenroom-2.jpg 877w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-greenroom-2-300x137.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-greenroom-2-768x350.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-greenroom-2-100x46.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/ex11-greenroom-2-150x68.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>(Hint: A solution is provided at the beginning of Exercise 12. You can compare your work to what is shown there but give it a try before you look ahead.)<\/p>\n\n\n\n<p>Make the changes to the program. <a href=\"#go-online\" target=\"_blank\" rel=\"noreferrer noopener\">Login to connect online with the PLC<\/a> and test the program. When you are satisfied, logout and stop the PLC. Remember to save the project. <\/p>\n\n\n\n<p>This concludes Exercise 11<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Quick_Change_Commands_SetReset_And_Negation\"><\/span>Quick Change Commands, Set\/Reset And Negation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>A feature of the editor that should be mentioned, is the capability to quickly change the type of Contact or Coil using the Set\/Reset and Negation commands.<\/p>\n\n\n\n<p>The commands are easily available in 3 places:<\/p>\n\n\n\n<p>1 . From the toolbar.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"881\" height=\"150\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-toolbar.jpg\" alt=\"\" class=\"wp-image-950\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-toolbar.jpg 881w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-toolbar-300x51.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-toolbar-768x131.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-toolbar-100x17.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-toolbar-150x26.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>2 . Select from the FBD\/LD\/IL dropdown menu.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"520\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-drop-down.jpg\" alt=\"\" class=\"wp-image-951\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-drop-down.jpg 550w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-drop-down-300x284.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-drop-down-100x95.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-drop-down-150x142.jpg 150w\" sizes=\"auto, (max-width: 550px) 85vw, 550px\" \/><\/figure>\n\n\n\n<p>3 . Right click on the element being edited, a menu will appear with a list of instructions.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"377\" height=\"428\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-right-click.jpg\" alt=\"\" class=\"wp-image-952\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-right-click.jpg 377w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-right-click-264x300.jpg 264w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-right-click-88x100.jpg 88w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-right-click-132x150.jpg 132w\" sizes=\"auto, (max-width: 377px) 85vw, 377px\" \/><\/figure>\n<\/div>\n\n\n<p>The Set\/Reset command will toggle a selected Coil between 3 states: Set Coil, Reset Coil and Coil. If you highlight the Coil and apply the command the instruction will change.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"989\" height=\"115\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-set-reset.jpg\" alt=\"\" class=\"wp-image-953\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-set-reset.jpg 989w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-set-reset-300x35.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-set-reset-768x89.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-set-reset-100x12.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-set-reset-150x17.jpg 150w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>The Negation command will toggle a selected Contact between 2 states: Negated Contact and Contact. If you highlight the Contact and apply the command the instruction will change.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"127\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-negation.jpg\" alt=\"\" class=\"wp-image-954\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-negation.jpg 786w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-negation-300x48.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-negation-768x124.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-negation-100x16.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-negation-150x24.jpg 150w\" sizes=\"auto, (max-width: 786px) 85vw, 786px\" \/><\/figure>\n\n\n\n<p>It may be used less frequently, but the Negation command can be applied to other elements as well:<\/p>\n\n\n\n<p>On network segments and block inputs\/outputs it will appear as around dot called a Negation Symbol. Whatever the logic condition may be to the left of the symbol, it will be opposite to the right.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"272\" height=\"105\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-negation.jpg\" alt=\"\" class=\"wp-image-955\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-negation.jpg 272w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-negation-100x39.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-negation-150x58.jpg 150w\" sizes=\"auto, (max-width: 272px) 85vw, 272px\" \/><\/figure>\n<\/div>\n\n\n<p>When the Negation command is applied to Coils, they become Negated Coils. The output of a Negated Coils is the exact opposite of what a Coil would have been.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"222\" height=\"124\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-negated-coil.jpg\" alt=\"\" class=\"wp-image-956\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-negated-coil.jpg 222w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-negated-coil-100x56.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/symbol-negated-coil-150x84.jpg 150w\" sizes=\"auto, (max-width: 222px) 85vw, 222px\" \/><\/figure>\n<\/div>\n\n\n<p>Another quick way to change instructions is to drag and drop the desired item from the toolbox into place. For example, to change a Contact to a Negated Contact, click and hold Negated Contact from the toolbox and drag to the network area. A grey square will appear with the letter \u201cR\u201d. R stands for Replace. Bring the mouse cursor to the square until it turns green then release to replace the instruction.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"486\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-replace-1024x486.jpg\" alt=\"\" class=\"wp-image-1019\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-replace-1024x486.jpg 1024w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-replace-300x142.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-replace-768x365.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-replace-100x47.jpg 100w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-replace-150x71.jpg 150w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/quick-change-replace.jpg 1087w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>&nbsp;This method works to swap out Coil, Set Coil and Reset Coil instructions as well.<br><br><br><br><\/p>\n\n\n\n<p>Thank you for reading the learning series, PLC Part 3 Basic Ladder Diagram.<\/p>\n\n\n\n<p><strong>Click on this link to proceed to the next section&nbsp;<a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-timers-counters-and-triggers\/\">PLC Part 4 Timers Counters &amp; Triggers<\/a>.<\/strong><br><br><br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"References_%E2%80%93_Books_And_Weblinks\"><\/span>References &#8211; Books And Weblinks<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You can explore more on the subjects discussed in PLC Part 3 Basic Ladder Diagram with these links.<\/p>\n\n\n\n<p><strong>CODESYS<\/strong> &#8211;&nbsp; Codesys help website &#8211;&nbsp; <a href=\"https:\/\/help.codesys.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/help.codesys.com\/<\/a><\/p>\n\n\n\n<p><strong>Arduino Uno<\/strong> &#8211;&nbsp; Arduno Learn website &#8211;&nbsp; <a href=\"https:\/\/docs.arduino.cc\/learn\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/docs.arduino.cc\/learn\/<\/a><\/p>\n\n\n\n<p><strong>Open PLC and Slave Device<\/strong> &#8211;&nbsp; Open PLC Project website &#8211;&nbsp; <a href=\"https:\/\/www.openplcproject.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.openplcproject.com\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to the next level in our learning series. The subject is Programming With Basic Ladder Diagram The prerequisite for this material is our previous part in the learning series, PLC Part 2 Intro To CODESYS. Something else that may help, take a look at the setup for a DIY PLC Training station. The exercises &hellip; <a href=\"https:\/\/mitechservices.ca\/MITS\/mi-learning-plc-fundamentals\/plc-part-3-basic-ladder-diagram\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;PLC Part 3 Basic Ladder Diagram&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":73,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-265","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mitechservices.ca\/MITS\/wp-json\/wp\/v2\/pages\/265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mitechservices.ca\/MITS\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mitechservices.ca\/MITS\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mitechservices.ca\/MITS\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mitechservices.ca\/MITS\/wp-json\/wp\/v2\/comments?post=265"}],"version-history":[{"count":122,"href":"https:\/\/mitechservices.ca\/MITS\/wp-json\/wp\/v2\/pages\/265\/revisions"}],"predecessor-version":[{"id":1374,"href":"https:\/\/mitechservices.ca\/MITS\/wp-json\/wp\/v2\/pages\/265\/revisions\/1374"}],"up":[{"embeddable":true,"href":"https:\/\/mitechservices.ca\/MITS\/wp-json\/wp\/v2\/pages\/73"}],"wp:attachment":[{"href":"https:\/\/mitechservices.ca\/MITS\/wp-json\/wp\/v2\/media?parent=265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}