How Can We Code a PLC, Not Draw in Ladder?

Have you used Gmail, Outlook, or an app on your phone recently? 📱🌐

Of course, you have. It’s almost impossible to avoid them. You may not realize it, but there are millions of lines of code under the hood.

Someone has to write it – not from scratch, but they reuse existing infrastructure, libraries, and code.

A lot can go wrong when you develop a production system and you need a way to fix it. The cheapest solution is rather simple, although overlooked.

Show the code to another, a more experienced programmer, or your colleague. Get some feedback and fix it. Here you go, you fixed so many issues before deployment. A technique used by most successful companies in the world.

On the other hand, you have PLC systems that use Ladder. We wrote a lot about it on our blog https://inxton.com/blog.

It’s a drawing of a logic pattern that resembles an electrical scheme. It’s useful when you develop a simple machine with few moving parts. One of the biggest arguments for the ladder is that maintenance staff can understand it, therefore maintain it.

But that’s not what we do anymore. Nowadays, we develop an information system with moving parts.

A piece of software, similar to the one you are using every day.

To build such a system you need a way to describe it. Even though there were, are, and will be attempts to replace it with drawing diagrams or AI, at the end of the day, you’ll end up with code.

Code can be generated, analyzed, reviewed, archived, and easily compared.

The code is the best tool we have right now. And it’s here to stay.

Tags: Weekly Thoughts

Jozef Chmelár
Community Manager

Jozef Chmelár

Hello! I'm a software engineer and community manager here at inxton. I'm probably working on a new feature or shooting a video for you...when I'm not in the office I ride on the wakeboard 🏄‍♂️ or I'm planning a trip somewhere🗺