djsfantasi
- Joined Apr 11, 2010
- 9,237
I’m also prejudiced in that regard. I once wrote an entire search subsystem for a proprietary hierarchical database, including searching a free-form field. It took me 72 hours and ran bug-free for 10 years.I think I understand why you would think that way. I do a lot of non-PLC programming too, so I have one foot in each frame of mind.
How often in the development of your software
Scratch that...
How often in the use of paid, "stable release" software from a reputable source other than yourself (ex: MS Office), are you met with a weird error or an unresponsive window?
For me, pretty often. At least once per week. If I went a whole year with no hiccups I would consider simulation theory in earnest.
Now imagine if any of these events could result in death, maiming, or the loss of millions of dollars.
Once in a year would be too often.
The instruction sets in a PLC are simple and have predictable, stable behavior. Decades of experience have gone into making them as safe and reliable as possible. There are reasons behind the way things are done, and most of them are documented on a plant floor somewhere in blood.
Sorry if you've heard that mantra before. I feel like I might be banging a drum that's banged too often, but that might just be because I hang out on PLC forums too. Just trying to explain the PLC mindset because you said you have zero understanding of it.
So my experience is if you know what you’re doing, are careful and control your own interfaces, you should expect to write bug-free code.
But your explanations of coding for the PLC are excellent and I’ve learned from them.





