4 ms·
> I specifically remember that the programming environment we sold to customers included support for "condition-coil" logic, AKA "ladder logic." Yes, the IEC 6
by Tomte 3y ago
> I specifically remember that the programming environment we sold to customers included support for "condition-coil" logic, AKA "ladder logic."
Yes, the IEC 61131 languages. AWL is a crippled assembler language, ST is a crippled Pascal.
Industrial automation is for masochists. The usual explanation is that the PLCs need to be programmed by electricians without any college degree, but (a) are electricians not stupid and (b) would better languages not need to be more complicated.
- contingencies 3y agoLiterally trawling through patents related to electrical cabinets right now...
- ryukoposting 3y ago61131! I haven't thought about that number in years. Couldn't agree with your evaluation more. The sad thing about ST is that it was probably the least shitty of the IEC 61131 languages. Despite the masochism, it was a fun field to work in for a time. Since the industry demands these shitty esoteric programming languages, you end up with all these small companies writing their own compilers and runtimes. It's a unique opportunity to do real-life compiler development from the ground up.
- spieswl 3y agoSome of us even have it on our resumes!
- electroly 3y agoIt was so much worse before 61131. My career in industrial automation was on PLCs that predate 61131's existence and had no structured text language of any kind. Ladder only. I helped write a toolchain that compiles languages similar to 61131 (but, again, predating it) down to ladder. I've seen an implementation of bitwise floating-point math in ladder that no mortal human could possibly understand. Our experience was not that companies think electricians are stupid, but that they're electricians: they know electrical stuff, not computer programming. A ladder diagram is immediately recognizable to an electrician or technician who needs to diagnose an equipment failure and wasn't involved in writing the program.
- vvanders 3y agoYou see similar things in HLD languages, from my external observation building hardware/gates has a very different mental model. FWIW if you're building something at a certain small scope ladder is perfectly serviceable.
- spieswl 3y ago61131 has ladder logic, function block, and structured text, which is a pretty eclectic group of programming representations. I think about 99% of the PLC programs I saw were ladder logic, with the exceptions being Siemens pushing structured text with a C-like look-and-feel. Anywho, cool, robust, reliable things still got made, you just had to think differently. It was very interesting to think about those programs and their relative programming simplicity when compared to complex, modern C++ that is running in other codebases I've seen since then.
- eternityforest 3y agoI wonder what a better language would look like. It would have to be similarly locked down, because trusting a programmer with a full strength language seems like a bad idea when it's something that could kill people if it fails.