Deutsch | English | Español | Français | Italiano | Português | Русский | العربية | 日本語 | 简体中文 | 繁體中文 | 한국의 | Türk | Polski
LOGO
Where All The Metalworking Business Happens
Product / Service Supplier Catalogs & Literature    
Search
or
home Product News Catalogs Web TV News & Topics Featured Articles Trade Shows Sourcing Help My allmetalworking
Featured Articles Content
allmetalworking > Featured Articles > The Benefits Of Reusing Control Logic

The Benefits Of Reusing Control Logic
Author: Matt Dougherty
Source From: Control Engineering
Posted Date: 2013-02-22

The first large project I worked on in my career taught me that reusing code isn’t just a way to get more done with less effort; it is also makes problems that have nothing to do with the code very obvious. Let me explain:

The project was a new 40 million gallon-per-day wastewater treatment facility in South Carolina. The commissioning of the plant went very well, and all systems checked out. A few weeks after commissioning, I was sent back to the plant because they were having a problem with their effluent pumps.

Three effluent pumps were set up in a lead-lag configuration that followed the level of the effluent wet well. When the level got high, the pumps would turn on and pump down to the low level. If one pump couldn’t keep up, a second pump started. The logic seemed to be working correctly, except the pump didn’t always stop when the level got low. The customer was very concerned that the pumps could have already been damaged by running dry.

I studied the data on the historical trends, and it appeared the problem only happened on the second pump, which the operators confirmed. The customer concluded that it must be a PLC issue and insisted we look for the solution there. My conclusion was different: I was certain that this was not a PLC issue. I was certain because I used the same logic for turning every pump on and off based on the level. If the other pumps always worked correctly, I knew there had to be something wrong outside of the PLC.

The customer was skeptical, so I started looking for a way to examine the problem and prove that the code was solid. This was a very important customer, so I had to take care of the problem quickly.

Luckily, the interposing relay used in the control cabinet had a spare set of contacts. This was a good point of demarcation for proving the PLC programming. I tied the spare set of contacts back to a spare digital input on the PLC and added that point to the history collection system. I then let the system run all day and all night.

The next day, the historical trend showed the PLC output turned off an hour before the pump finally stopped. The PLC did indeed do the right thing. The customer called in the motor controller supplier and had the contactor replaced. They never had a problem with the pump again.

I learned a valuable lesson: reusing effective code properly is not being lazy, it is good design.

Tags:

Original Hyperlink: http://www.controleng.com/blogs/real-world-engineering/blog/the-benefits-of-reus..

For more information from this magazine/website? Please click here http://www.controleng.com/

Note: The copyright and the ownship of the brand, product names, product numbers, and content mentioned belongs to their repective companies.

comments powered by Disqus
Latest News

‧2014-05-20
Dart masters the "peaks and valleys" of custom engine block production with advanced flexible honing

‧2014-05-15
3D Printing Builds Up its Manufacturing Resume

‧2014-05-08
Why Big Data has to become Smart Data

‧2014-05-06
Burintekh uses Delcam’s FeatureCAM system for drill manufacture

‧2014-05-01
Expanding Availability for Arbitrary Speed Threading

Related Catalogs
Featured Pages
5 Axis Machining CenterAir ToolsAutomatic Cold Drawing MachineAutomatic Feeding Equipment
Automatic Tool ChangerBall BearingsBallscrewBearings
Boring and Milling MachineCasting Base for Machine ToolChip ConveyerCircular Sawing Maching
CNC EDMCNC LatheCNC Machine Center SpindlesCNC Rotary Table
CNC Surface GrinderCooling EquipmentDie Casting End Mill
Forged PartsGear ReducerGearboxGrinding Center
Hoist and ChainHorizontal Machining CenterHydraulic PressIndex Drive
Index TableIndustrial RobotInjection MoldsJawed Chuck
Linear GuidewayLubrication SystemMachine Guard SystemMetal Band Saw
Metal Cutting ToolsMetal Stamping PartsPipe & Tube BenderPower Press
Precision Machining ServiceRobot Tool ChangerServo MotorsSpindles
Telescopic CoversTool HolderTool Storage MagazineTurning Center
Vacuum PumpsVertical Machining CenterWelding Machines 
Contents
· Home
· Product News
· Catalogs
· Web TV
· News & Topics
· Features Articles
· Trade Show
· Sourcing Help
· My Allmetalworking
Special Zone
· Directory
· Trade Show Supplement
2014 Hannover
Allmetalworking.com
· About Us
· Promote Your Business
· Advertise
· Partner with Us
· Press Release
· Contact Us
· Term of Use
· Privacy Policy
· Starter Program
· Sitemap
B2B Web Portal Alliance
· Allitwares.com
· Allmetalworking.com
· Allbiomedical.com
· Allautowares.com
Buy Engineer Sample Kits
OEM Sourcing
Language
· Deutsch
· English
· Español
· Français
· Italiano
· Português
· Русский
· العربية
· 日本語
· 简体中文
· 繁體中文
· 한국의
· Türk
· Polski
 
   

Copyrights © 2012 Allitwares Corporation All Rights Reserved. www.allmetalworking.com is a Division of Allitwares Corporation
www.allmetalworking.com is a B2B Trade Portal | B2B Web Portal |B2B Marketplace for machine tools, machining services and material.