andydaoust
Member
I'm working on a project in which someone wrote the lamest program I've ever seen. I'm am basically a beginner in the PLC programming world. I have however been an instrument technician for 20 years and have had to fix a number of bonehead programs. I feel a guideline would make the end users job easier and more cost effective in the end. For example, we always use a certain brand of pressure switches. They work in our environment, save labor because they hold there setpoint and don't need calibrating. We had a contractor save $50 per switch on a project with 200 pressure switches by using a brand different from our standard. Good for him, he made more money. Bad for us. We had to replace half of them. This required buying the new switch, redoing the conduit and costing who knows how much in down time and lost production. To be fair our management in the interest of maintaining a high level of bonus allowed the contractor to use the inferior switch.
Back to my bonehead program. This person used physical outputs in their logic. Now if I force an output, I also force many other pieces of the program with unknown results. If they had done this consistently it would be better, they did not however. So a standard which said the outputs will be addressed only once would keep that from happening. It wouldn't be dictating the body of the program just how the outputs are being addressed. Then if I want to stroke a valve, for example, I don't have to worry about some other valve opening or motor starting. The program would be meeting our maintenance needs. There are many other things in this program that are poorly written. Such as how is a component failure is handled. A guideline would've helped here as well. Thanks for letting me rant my frustrations. I will be asking for help on many of the problems as it looks like I will be re-writing the whole thing.
Back to my bonehead program. This person used physical outputs in their logic. Now if I force an output, I also force many other pieces of the program with unknown results. If they had done this consistently it would be better, they did not however. So a standard which said the outputs will be addressed only once would keep that from happening. It wouldn't be dictating the body of the program just how the outputs are being addressed. Then if I want to stroke a valve, for example, I don't have to worry about some other valve opening or motor starting. The program would be meeting our maintenance needs. There are many other things in this program that are poorly written. Such as how is a component failure is handled. A guideline would've helped here as well. Thanks for letting me rant my frustrations. I will be asking for help on many of the problems as it looks like I will be re-writing the whole thing.
Last edited: