11 ms·
Ask HN: Is there a high level language option for PLC programming
I'm looking at refreshing in ladder logic to support some PLC programming. After years of programming on the PC ladder logic feels like a steep backwards. Are there any more high level options? I'm hoping that there might be a tool that compiles to ladder logic. I'm also suspecting that this is far too niche.
- the_only_law 5y agoThere’s a Pascal like language called structured text[0], but that may not be exactly what you’re working for. I hear it’s not used much in production and the tooling for the cheaper hobbyist-tier PLCs don’t tend to support it. [0]https://en.m.wikipedia.org/wiki/Structured_text https://en.m.wikipedia.org/wiki/Structured_text
- slopdo 5y agoStructured Text is one of the programming languages at Part 3 of the International Standard IEC 61131 for Programmable Logic Controllers [0]. In my (european) experience it is commonly used in production. Later, IEC 61499 for Distributed Systems [1] extended the IEC 61131 with (among others) event-driven control. On the open source ecosystem, Eclipse 4diac [2] might be interesting as it provides a full PLC framework including IDE and Runtime Environment. [0]https://en.wikipedia.org/wiki/IEC_61131-3 https://en.wikipedia.org/wiki/IEC_61131-3 [1]http://www.iec61499.de/ http://www.iec61499.de/ [2]https://www.eclipse.org/4diac/ https://www.eclipse.org/4diac/
- airbreather 5y agoStructured Text, if you want to try it our download CoDeSys for free, it includes a simulator. In production environments it is most often encapsulated in FBD.
- PaulWaldman 5y agoIs there a specific PLC vendor or model you're interested in targeting?
- xupybd 5y agoYeah I'm working with Delta PLCs