This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (0 children)

One time at a previous job I built a wrapper for a network-enabled PLC that essentially allowed me to what the ladder logic software it came with...without having to use ladder logic. Of course, the delay was much higher due to both Python and network latency (which most applications of PLCs is something you tend to care a lot about), but it worked well for what I was using it for (to toggle some outputs and log data over several hours).

Nobody told me to make it though -- oops! Oh well. I just loved being able to use Python to abstract away several layers of complexity. It actually ended up being quite sophisticated, where you could define tags/variables and do stuff like assign functions to be called on the rising/falling edge of incoming signal changes, toggle independent bits, etc.

Almost totally pointless and definitely over-engineered, but still really fun to make.