Zibb
Subscribe to Control Engineering
FirstLight
Email
Print
Reprint
Learn RSS

Choose the right programming language

Mark T. Hoske, editor-in-chief -- Control Engineering, 7/1/2003

Which language should you choose for use with your programmable controller? Among the five languages defined in IEC 61131-3, generally ladder diagrams or ladder logic is most widely applied in North America. Other languages have practical applications and should not be overlooked. Choice depends on programmer's skill, the programming task, the level and structure of the problem and control system, who needs to interact with the program, and, perhaps, how often it's modified.

Since inception in 1992, PLCopen has helped promote and support programming standards, which allows, the association says, for less training, more logical organization, modularization, and use of modern software techniques. "Each program is structured, increasing its reusability, reducing errors, and increasing programming and user efficiency," according to the group.

Four languages describe the same piece of code.

"Also, the standard allows two ways of developing your program: top down and bottom up. Either you specify your whole application and divide it into subparts, declare your variables, and so on. Or you start programming your application at the bottom, for instance via derived functions and function blocks. Whichever you choose, the development environment will help you through the whole process," PLCopen says.

The five elements of IEC 61131-3 are:

  • Sequential function charts (SFC)—Rather than a language, SFC is more of a graphical method of organizing control programs.
  • Ladder diagram (LD)—most used in North America, it graphically represents rungs of contacts, coils, and special instruction blocks. Its origin is relay-ladder logic.
  • Instruction list (IL)—a text-based language similar to assembler. This is the European counterpart to LD.
  • Structured text (ST)—a text-based language similar to Pascal.
  • Function block diagram (FBD)—a graphical language corresponding to a circuit diagram. FBD is widely used in process industries.
Other resources

Several IEC standards provide more information about function blocks: IEC 61499 and IEC 61804, which focuses on the process industry. Function blocks encapsulate algorithms so they can be more easily understood and applied by those who aren't software specialists.

For more on function blocks, see www.controleng.com/issues, 2002, September, "Component Automation Enables Modeling and Control." Also, in the August 2003 issue, look for an article on multiple-platform programming software. See related items at www.controleng.com/tutorials.

IEC, at www.iec.org, publishes "Programmable controllers - Part 3: Programming languages." IEC 61131-3 "specifies syntax and semantics of programming languages for programmable controllers as defined in part 1 of IEC 61131." Price is about $205. A related IEC publication is "Programmable controllers - Part 8: Guidelines for the application and implementation of programming languages."

PLCopen, at www.PLCopen.org focuses on control programming and participates on technical committees to evolve programming standards.

Comments email mhoske@reedbusiness.com

 

Pros and cons of IEC 61131-3

Benefits and drawbacks of IEC 61131-3 include the following, according to Wolfgang Langer, Schneider Electric software product manager:

Benefits are:

  • Less retraining costs—IEC looks and feel similar among vendors;
  • Greater focus on problem solving and software reusability;
  • Fewer misunderstandings and errors in programming when switching between languages; all IEC languages work the same; and
  • Greater community—many tools from independent suppliers can be used. PLCopen drives IEC standard with vendors to comply with interoperability standard.

Drawbacks include:

  • Too many optional features;
  • Does not define implementation limitations for the size of a page value to define a program;
  • Doesn't define the minimum of subsets needed to implement;
  • Doesn't define minimum limitations while implementing, such as how many rungs must be supported in one section; and
  • Doesn't define conversion among languages.

David Greenfield dgreenfield@reedbusiness.com

Email
Print
Reprint
Learn RSS

Talkback

We would love your feedback!

Post a comment

» VIEW ALL TALKBACK THREADS

Related Content

Related Content

 

By This Author

Sponsored Links

 

Advertisement
SPONSORED LINKS

More Content

  • Blogs
  • Discussions
  • Webcasts
  • Podcasts
  • Videos

Blogs

  • Peter Welander
    Pillar to Post: Peter Welander's Blog

    January 7, 2009
    Is nothing growing in manufacturing?
    Manufacturing is down. You might have already heard something to this effect, but the extent of the economic downturn in December may surprise you.......
    More
  • Peter Welander
    Pillar to Post: Peter Welander's Blog

    January 6, 2009
    Ted Turner calls for clean energy
    Last Sunday there was an interesting group of editorials in the Chicago Tribune by names as diverse as Muammar Gaddafi and George McGover......
    More
  • View All BlogsRSS

Discussions

  • Re: 115VAC at 400 Hz (reply posted by Roy Matson)

  • Re: Seeking Control Builder ABB (reply posted by Rob)

  • Tachometer, Explosive proof (posted by plutonium)


  • Source: Control.com, the global online discussion community for automation professionals.

    Webcasts

    Engineering-driven Ethernet
    This Control Engineering Roundtable Webcast will address the engineering issues you should be aware of when exploring the adoption of Ethernet or when looking to expand its use in your facility.

    Bridging gaps with wireless
    Discover how you can create stronger, flexible and cost-effective wireless connections for your entire plant. Register today!

    View All Webcasts

    Podcasts

    Integration platforms such as EDDL and FDT/DTM help integrate increasingly intelligent instrumentation and devices with control and asset management systems. This audio tutorial helps you understand how these platforms operate and what they can do.
    Integration Platforms: EDDL and FDT/DTM
    Integration platforms such as EDDL and FDT/DTM help integrate increasingly intelligent instrumentation and devices with control and asset management systems. This audio tutorial helps you understand how these platforms operate and what they can do. Hear It Now

    View All Podcasts Subscribe Now to Process Control & Instrumentation and never miss an episode
    Advertisements





    NEWSLETTERS

    Get engineering industry news, trends, and business-critical information delivered directly to your inbox!

    Click on a title below to learn more.

    Weekly News (Weekly)
    Process Instrumentation & Sensors (Monthly)
    System Integration Monthly (Monthly)
    Process & Advanced Control (Monthly)
    Machine Control (Monthly)
    Information Control (Monthly)
    Automation Control (Monthly)
    Product Review (Monthly)
    Sustainable Engineering (Monthly)
    Simplified Safety
    Fieldbus Facts
    PROFInews North American Edition
    About Us   |   Advertising Info   |   Site Map   |   Contact Us   |   Useful Sites   |   FREE Subscription   |   RSS
    © 2009 Reed Business Information, a division of Reed Elsevier Inc. All rights reserved.
    Use of this Web site is subject to its Terms of Use | Privacy Policy
    Please visit these other Reed Business sites