Toggle menu
SAME DAY SHIPPING AVAILABLE

Best PLC Programming Practices 1 (using multiple outputs with the same address)

Posted by PLC Cable Inc on Aug 24, 2021

Best PLC Programming Practices 1 (using multiple outputs with the same address)

Recently this subject came up and even though a PLC will let you use the same output address (location) several times in the program its a bad habit to get into or bad idea to do so, for many reasons such as and this is one of them, most people in the industry when troubleshooting a machine they will look for the output in the program and work backwards, well if you have several places in the program that this can happen its very hard to find the issue.

Troubleshooting 101 (this is how I do it) Lets say... you have a machine that the motor does not run, you get out your meter and check the contact and you dont have power pulling in the contact, you check the LED on the PLC and yep... its off, so now hook up the laptop and search the output and you find 1 output, well simple just work backwards until you find what is stopping that output from energizing, 99% of the time its an input but starting at the output is the fastest way to find that input.

So lets say the logic is LARGE... there are so many conditions that this one output will come on or needs to come on that its impossible to not have more than one rung, use the PLC memory bits, every PLC has internal holding registers so make several rungs where your scenarios playout and make a holding register true (on) see the attached PIC, we made a simple program in a CLICK PLC where the first 3 rungs make C1, C2 and C3 turn on and then use the 4th rung where all three of the holding register outputs are used to energize the output Y001 and since they are parallel anyone of the three different holding registers will make the rung true.

   

PLC Cables, Inc. is not an authorized distributor, reseller or representative for the listed manufacturers on this website (other than PLC Cables, Inc.) and makes no representations as to any quality control performed by any listed manufacturer on the products. PLC Cables, Inc. sells new, new surplus, used and refurbished products which are sourced through independent channels. All warranties and support, if applicable, are with PLC Cables, Inc. and not the manufacturer. The products listed on this website may vary as to their country of origin; the accessories, and other items included with the product; and the language used on the packaging, the parts, and any related instructions or printed material related to the products. This website is not sanctioned or approved by any manufacturer or tradename listed. Designated trademarks, brand names and brands appearing herein are the property of their respective owners. For more information about us click here https://www.plccable.com/contact-about-us/