{"id":1527,"date":"2024-11-04T20:34:16","date_gmt":"2024-11-04T20:34:16","guid":{"rendered":"https:\/\/mitechservices.ca\/MITS\/?p=1527"},"modified":"2024-11-18T16:17:46","modified_gmt":"2024-11-18T16:17:46","slug":"plc-basics-discrete-inputs-and-outputs","status":"publish","type":"post","link":"https:\/\/mitechservices.ca\/MITS\/2024\/11\/04\/plc-basics-discrete-inputs-and-outputs\/","title":{"rendered":"PLC Basics: Discrete Inputs and Outputs"},"content":{"rendered":"\n<p class=\"has-text-align-center wp-block-paragraph\"><strong>See The Video Here<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"PLC Basics   Discrete I O Part 1 Inputs\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/ezDyAbOOYp8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Understanding Discrete Inputs and Outputs in PLCs<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">While the CPU serves as the &#8220;brain&#8221; of a PLC with its processing power and memory, the real-world action lies in the Inputs\/Outputs (I\/O). I\/O connections bring the PLC into interaction with the outside world, connecting sensors, switches, and actuators, which make I\/O a key area for anyone installing or servicing PLC hardware.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I\/O in PLCs is typically divided into two categories: discrete (digital) and analog. Here, we\u2019ll focus on discrete I\/O\u2014those that handle simple on\/off signals.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What is Discrete I\/O?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Discrete I\/O (also called digital I\/O) manages on\/off signals. This means it recognizes binary states\u2014either on or off, represented as 1 or 0 in the PLC&#8217;s memory (1 for TRUE and 0 for FALSE). In practical terms:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Discrete Inputs:<\/strong> A switch in the &#8220;off&#8221; position would be read by the PLC memory as 0. When switched to the &#8220;on&#8221; position, it\u2019s read as 1.<\/li>\n\n\n\n<li><strong>Discrete Outputs:<\/strong> When the PLC sends a 1 from memory, the connected device (like an indicator light or motor) will be in the on state. If the output is set to 0, the device remains off.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Exploring Discrete Inputs<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Devices such as push buttons, toggle switches, and relay contacts are typical discrete inputs for PLCs. These switching devices form electric circuits with the PLC. Here&#8217;s how it works:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Open Switch:<\/strong> If the switch opens, current flow stops and the input as &#8220;off.&#8221; Based on our statement above, we know the PLC memory reads it as 0.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Closed Switch:<\/strong> When a switch closes, current flows and the input circuit is &#8220;on.&#8221; Based on our statement above, we know the PLC memory registers this as a 1.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"604\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/decrete-IO-1024x604.jpg\" alt=\"\" class=\"wp-image-131\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/decrete-IO-1024x604.jpg 1024w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/decrete-IO-300x177.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/decrete-IO-768x453.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/decrete-IO.jpg 1266w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Input Specifications<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Input modules come in different types with different attributes. Typical operating voltages can be AC or DC and range from 5V to 240V. Depending on density, it is common for modules to have 8, 16 or 32 inputs. Then there is sinking and sourcing to consider which is related to the direction of current flow. The point is, it&#8217;s important to pay attention to the input specifications when wiring. You need to select a PLC or input module that is suited to the supply voltage and the connected devices.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, here is a diagram of an AC input module. Lets consider that list of attributes that was just mentioned.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Number of inputs &#8211; in this case there are 8.<\/li>\n\n\n\n<li>Operating voltage &#8211; 240 VAC<\/li>\n\n\n\n<li>Sinking or Sourcing &#8211; That is not applicable when the module is designed to work with alternating current (AC). We will talk more about sinking and sourcing in a moment.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"478\" height=\"678\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Field-Wiring-AC-Input.jpg\" alt=\"\" class=\"wp-image-132\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Field-Wiring-AC-Input.jpg 478w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Field-Wiring-AC-Input-212x300.jpg 212w\" sizes=\"auto, (max-width: 478px) 85vw, 478px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Considering the operating voltage of this module, it&#8217;s a good time to discuss electrical safety. <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\"><strong>Never assume, just because you are working on PLC control circuits, that you are working with safer, lower, voltages. In his case the control voltage is 240VAC. You could get a nasty shock. In fact, it could be a lethal one.<\/strong><\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Sinking and Sourcing<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Sinking<\/strong> and <strong>sourcing<\/strong> describe the direction of current flow in DC inputs. This is critical to know for proper wiring and compatibility, especially with semiconductor devices.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The explanation of sinking and sourcing is based on conventional current flow. Where positive potential is considered the \u201csource\u201d and negative potential is considered the \u201csink\u201d.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"593\" height=\"512\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Current-Flow.jpg\" alt=\"\" class=\"wp-image-133\" style=\"width:593px;height:auto\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Current-Flow.jpg 593w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Current-Flow-300x259.jpg 300w\" sizes=\"auto, (max-width: 593px) 85vw, 593px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Consider the diagram labelled <em>Field Wiring For DC Sourcing Input Module<\/em> below. The input module common terminal is connected to the positive. The switching devices are connected to the negative. In this configuration the input module is the electrical source. The red arrows indicate the conventional direction of current flow.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"710\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Field-Wiring-DC-Sorcing-input.jpg\" alt=\"\" class=\"wp-image-134\" style=\"width:641px;height:auto\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Field-Wiring-DC-Sorcing-input.jpg 641w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Field-Wiring-DC-Sorcing-input-271x300.jpg 271w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Next, consider the diagram labelled <em>Field Wiring For DC Sinking Input Module<\/em>. The input module common terminal is connected to the negative. The switching devices are connected to the positive. In this configuration the switching devices are the electrical source. That make the input module the sink. The red arrows indicate the conventional direction of current flow.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"622\" height=\"715\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Field-Wiring-DC-Sinking-input.jpg\" alt=\"\" class=\"wp-image-136\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Field-Wiring-DC-Sinking-input.jpg 622w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Field-Wiring-DC-Sinking-input-261x300.jpg 261w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n<\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Discrete Outputs and Their Role<\/strong><\/h2>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><strong>See The Video Here<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"PLC Basics   Discrete I O Part 2 Outputs\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/eO5m9E5GUMo?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Discrete outputs control devices like indicator lights, solenoids, or relay coils\u2014often called load devices. These load devices, when connected properly to PLC outputs, form electric circuits. It is the PLC outputs that will act as switching devices for each load device.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Output On:<\/strong> if the PLC memory for the assigned output is set to 1 the output will be in the ON state. When a PLC output is ON, current will flow and the load device will be energized.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Output Off:<\/strong> if the PLC memory for the assigned output is set to 0 the output will be in the OFF state. When a PLC output is OFF, current is interrupted and the load device will be de-energized.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"619\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Discrete-Outpu-On-Off-1024x619.jpg\" alt=\"\" class=\"wp-image-151\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Discrete-Outpu-On-Off-1024x619.jpg 1024w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Discrete-Outpu-On-Off-300x181.jpg 300w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Discrete-Outpu-On-Off-768x465.jpg 768w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Discrete-Outpu-On-Off.jpg 1101w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Output Specifications<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Similar to inputs, output modules are available in different. There are variations with different voltage ranges number of outputs. Outputs also be sinking or sourcing. It&#8217;s important to pay attention to the output specifications when wiring. You need to select a PLC or output module that is suited to the supply voltage and the connected devices.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, let&#8217;s look at the difference between sinking and sourcing outputs. Remember, conventional current flow is from positive to negative. Positive potential is considered the \u201csource\u201d and negative potential is considered the \u201csink\u201d.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Consider the diagram labelled <em>Field Wiring For DC Sourcing Output Module<\/em> below. The output module common terminal is connected to the positive. The load devices are connected to the negative. In this configuration the output module is the electrical source. The red arrows indicate the conventional direction of current flow.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"619\" height=\"664\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Filed-wiring-sourcing-output.jpg\" alt=\"\" class=\"wp-image-153\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Filed-wiring-sourcing-output.jpg 619w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Filed-wiring-sourcing-output-280x300.jpg 280w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Next, consider the diagram labelled <em>Field Wiring For DC Sinking Output Module<\/em>. The output module common terminal is connected to the negative. The load devices are connected to the positive. In this configuration the load devices are the electrical source. That make the output module the sink. The red arrows indicate the conventional direction of current flow.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"616\" height=\"670\" src=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Filed-wiring-sinking-output.jpg\" alt=\"\" class=\"wp-image-154\" srcset=\"https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Filed-wiring-sinking-output.jpg 616w, https:\/\/mitechservices.ca\/MITS\/wp-content\/uploads\/2022\/04\/Filed-wiring-sinking-output-276x300.jpg 276w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">For those working with PLCs, understanding the concept of sinking and sourcing is essential to ensure proper field wiring, which in turn ensures device reliability.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are really interested in PLC fundamentals then you might want to take a look at this course on Udemy called the <strong><a href=\"https:\/\/www.udemy.com\/course\/pre-plc-programming-course-before-you-start-programming\/?referralCode=54058F1B288429731600\" title=\"\">Pre PLC Programming Course.<\/a> <\/strong>In my opinion, this course teaches what you absolutely need to know before you click on the PLC software and attempt to understand the programming. It is not geared toward any particular brand of PLC our programming software. The fundamentals are relevant to all types of PLCs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Up Next &#8211; <a href=\"https:\/\/mitechservices.ca\/MITS\/2024\/11\/09\/analog-i-o-in-plcs-bridging-the-digital-and-real-worlds\/\" title=\"\">PLC Basics: Analog I\/O in PLCs, Bridging the Digital and Real Worlds<\/a><\/strong><\/p>\n\n\n\n<div style=\"height:187px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n","protected":false},"excerpt":{"rendered":"<p>See The Video Here Understanding Discrete Inputs and Outputs in PLCs While the CPU serves as the &#8220;brain&#8221; of a PLC with its processing power and memory, the real-world action lies in the Inputs\/Outputs (I\/O). I\/O connections bring the PLC into interaction with the outside world, connecting sensors, switches, and actuators, which make I\/O a &hellip; <a href=\"https:\/\/mitechservices.ca\/MITS\/2024\/11\/04\/plc-basics-discrete-inputs-and-outputs\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;PLC Basics: Discrete Inputs and Outputs&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1527","post","type-post","status-publish","format-standard","hentry","category-plc-basics"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mitechservices.ca\/MITS\/wp-json\/wp\/v2\/posts\/1527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mitechservices.ca\/MITS\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mitechservices.ca\/MITS\/wp-json\/wp\/v2\/types\/post"}],"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=1527"}],"version-history":[{"count":12,"href":"https:\/\/mitechservices.ca\/MITS\/wp-json\/wp\/v2\/posts\/1527\/revisions"}],"predecessor-version":[{"id":1601,"href":"https:\/\/mitechservices.ca\/MITS\/wp-json\/wp\/v2\/posts\/1527\/revisions\/1601"}],"wp:attachment":[{"href":"https:\/\/mitechservices.ca\/MITS\/wp-json\/wp\/v2\/media?parent=1527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mitechservices.ca\/MITS\/wp-json\/wp\/v2\/categories?post=1527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mitechservices.ca\/MITS\/wp-json\/wp\/v2\/tags?post=1527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}