Midweek PLC Musings

Abstraction in Art and the Art of PLC Programming

What is it about abstract art that gets so many people unsure, concerned and even upset? We are machines evolved to abstract things. We constantly simplify, and thereby abstract stuff, to put into our memory. Our brains would just not be large enough to remember everything. Yes, in art a lot of people are enchanted by realism. But that, I think, stems from our comfort of being able to identify what the artist intended at a glance. If you really spent some time, and looked close enough, you’d see that even the most accomplished realist artists are taking shortcuts. Not every individual hair is shown. That would be silly. When I got involved in the arts, I readily embraced abstraction, because I’d been doing it at work for a long time already. When we take an industrial problem, express it in the precise terms required to take action to solve it - we are abstracting the real world. When a valve becomes two limit switches, a motor forward and reverse direction output and a couple of control signals, we have done a pretty good job of abstracting a pretty complex piece of machinery!

So now that you are following my train of thought, where is this train going? It is departing normal everyday ladder logic programming to meander through the program (or programs) that you and I have created to see if there is opportunity for abstraction. Are there any repeated areas of similar code, where we are executing task that could be abstracted into a function block maybe? A bunch of valves possibly, a whole lot of motor control that could be packaged up, a number of similar actuators, a bunch of signal transmitters with alarming and bypass functionality maybe. Even the bypass just mentioned would benefit from being packaged into a separate function block, so that every time you apply one it is done the same. And when someone else adds one to your program, it is also done the same. That is the benefit of abstraction: Time saving in all future applications, working with a tested (and hopefully documented) function block where you don’t constantly have to look into how it works. Eventually everyone will use it, and it becomes your own facility standard.

There have been some pretty impressive examples of function block creation out there in the industrial world. The Rockwell PlantPAx comes to mind. But you don’t have to go anywhere near to that complexity, to make some pretty significant gains real for you. I bet that you can walk through your own code and come up with easily a dozen function blocks that would make sense to you, and those you work with. And don’t limit yourself to the idea of just packaging up the code into a function block. If you are building something, it makes sense to add better troubleshooting tools, monitoring and some diagnostics to make your and everyone’s life easier. Making a new function block takes from half a hour to the better part of a day for something pretty complex. But the payoff in repeated use (and certainty of operation) for the more complex ones is also higher, so they still make sense.

So, what do you think? Do function blocks make sense for you? Have you built some?

要查看或添加评论,请登录

Hugo Ahrens的更多文章

  • Midweek PLC Musings

    Midweek PLC Musings

    There was some commentary about function block programming and its suitability for the application at hand. It might be…

  • Midweek PLC Musings

    Midweek PLC Musings

    Last week I regaled you with the ever lasting impact of ladder logic. Turns out I’m not done with that topic, because…

  • Midweek PLC Musings

    Midweek PLC Musings

    In Support of Ladder Logic Not that ladder logic needs my support specifically to keep it alive. It’s doing quite well…

    4 条评论
  • Midweek PLC Musings

    Midweek PLC Musings

    Last week I developed some general thoughts about what you would include in a typical single speed motor control…

  • Midweek PLC Musings

    Midweek PLC Musings

    Thinking about a General Motor Logic Block. So last week we looked at abstraction, and I thought it might be helpful to…

  • Midweek PLC Musings

    Midweek PLC Musings

    Alternating Logic What are we talking about when confronted with the requirement to discuss something that requires…

  • Midweek PLC Musings

    Midweek PLC Musings

    Back To The Simple Toggle You would think that a simple toggle bit instruction would be one of the simplest items to…

  • Midweek PLC Musings

    Midweek PLC Musings

    Truth And Fake News Those of us still using Ladder Logic during some part of our day have a great advantage over the…

    2 条评论
  • Midweek PLC Musings

    Midweek PLC Musings

    Calling a Spade a Shovel In the technical world we live in there is no faster way to discount your trade value - than…

  • Midweek PLC Musings

    Midweek PLC Musings

    Programmers Notebooks, what are they for? No they are not a design tool. They are a memory aid and progress reference.

社区洞察

其他会员也浏览了