Alert: Automation World now enhanced for the iPad and iPhone. Watch a quick video preview
Greenfield
Factory Automation
Bassett
Batch Processing
Hand
Process Automation
Reynolds
Packaging Automation
Campbell
On the Edge
Download this free 94-page Continuous Process Playbook loaded with industry expert advice on topics ranging from control systems, instrumentation, and industrial networks to energy management, security, and system upgrades.
News
|

Object-Oriented Programming in Automation

Print Reprint
     
Users are advised to get on board with object-oriented programming sooner rather than later, because OOP is the future.

SPS Magazin has concentrated on the topic of engineering of control systems for a few months now, especially on programming. The reason for us investing that much in this issue is that software is a big part of automation engineering. In programming we were particularly interested in the subject of object-oriented programming (OOP). At this point, an interim conclusion may be granted: The topic of OOP has sneaked in and established itself in automation.

There are subjects that are not worth fighting over. Object-oriented programming of control seems to be one of them. I've been visiting several producers of controllers to interview them about engineering. So far I've done some interviews, and plenty will follow.

ADVERTISEMENT

By now I have already see some interesting developments. I haven't met one provider who was not interested in OOP. But the points in which producers of controllers differ are strategies and the degree of realization. There are the ones that advertise their use of OOP; they merchandise the consequent use of this method of programming and see it as a competitive advantage. And there are others that do not use the technique continuously and who rarely or never use the concepts that go with it.

A third group of producers are using OOP only to make life a little easier for software engineers here and there, and to increase the re-usability of code. This group is not speaking out loud, however; they are using it silently.

If the wide market of controller programmers is to be addressed, it seems wise to introduce them to OOP step by step. Concepts such as class, inheritance, instantiation or polymorphy are obviously scaring PLC system programmers. The frequently invoked replacing of generations of programmers is taking years, and so it is not a surprise that OOP adoption is rather evolutionary.

The advantages of this technique are many:

•    Dramatically improved re-usability of code.
•    Advanced quality of programs.
•    Working in a team is simplified.
•    Administering codes is simplified.
•    Essential simplification with changes.

No matter what a user’s personal opinion of object-oriented programming, in automation there is no way around OOP anymore. It is the duty of the producer to design and package the technique in a way, that reveals its use and that removes unnecessary barriers of concepts and theoretical ballast. Users are advised to get on board with object-oriented engineering sooner rather than later. Because OOP is the future—whether obvious or rather hidden doesn't matter.

Martin Buchwitz, [email protected], is editor of SPS Magazin in Germany.

0

Add new comment

Newsletters

Don't miss intelligence crucial to your job and business!
Click on any newsletter to view a sample. Enter your email address below to sign up!
Each newsletter ranges in frequency from once per month to a few times per month at most.
IT Delivers on Automation’s Promise
E-Book Special Report
IT Delivers on Automation’s Promise

Sign up to receive timely updates from the editors at Automation World and download this FREE Special Report on the transformative power of data in manufacturing. By integrating information and automation technologies, manufacturers are finally achieving major gains in productivity from their automated systems.

x