Basics of PLC 61131 programming with Wago CoDeSys software

Wago-I/O-Pro CAA is the Wago version of CoDeSys (Controlled Development System) by 3S Co. Here are some basics about how it works.

08/21/2009


Wago Brent Kucharski, training

Brent Kucharski, a Wago product training manager, told Control Engineering that the diversity of students ensures that training for I/O-based industrial controllers is interesting. A recent class included adult students from Nestle Purina, Swiki Anderson and Assoc., ENSCO, Lubrication Systems Co., and Evrisko Systems.

 

Germantown, WI - Wago-I/O-Pro CAA is the Wago version of CoDeSys (Controlled Development System) by 3S Co. (Smart Software Solutions GmbH), says Brent Kucharski, Wago product training manager. Hundreds of manufacturers use this IEC 61131 programming tool for multiple hardware and software platforms. In a recent training class, Kucharski said each manufacturer provides a Target Support Package (TSP), which defines device drivers. IEC 61131 Part 1 is general information; Part 2 is operational funds and requirements; Part 3 is programming languages; Part 4 is the manual; and Part 5 is PLC communications, he said.

Languages are instruction list (IL), ladder diagram (LD), function block diagram (FBD), sequential function chart (SFC), structured text (ST), and continuous function chart (CFC), Kucharski explained; Nine Wago products are programmed with the software. A site license is less than $900.

In the software, on the left is a program organization unit (POU), a box with vertical folders, like a Microsoft Windows tree, he said. On the upper right, the variable declaration editor is used for local programs. The middle a box shows the text or graphical editor. On the bottom is the message window, where compiling messages or warnings show.

POU types are:
- Functions. Local variables are initialized each call. Variables do not retain their value from the previous call. Function name also is name of the output variable. Requires one or more input variables.
-Function blocks. FBs retain the value from the previous call. I/O variables are optional; not every one has to be used. Counters, timers, triggers, and robotics are among uses.
-Programs. Programs retain their values, but only have one global instance.

More about languages:
- SFC is a language but cannot work or stand alone. It's basically containers used to house other code in flowchart-type way. Batching and packing machines often use this (rather than LD, which could run a packaging application in 6,000 rungs, very hard to troubleshoot.) SFC helps structure software, consists of steps and transitions, and backs up steps with real actions.
- CFCs can loop back on themselves, are like FBDs and allow free placement of blocks and connections.
- IL is a low level language, causing little work for the CPU. It can be hard to understand. It is a textual language, like assembler code.
- ST, a textual language, operates high level like PASCAL. It's best for conditional execution and loops.
- FBD is graphical, network-oriented, and easy to understand.
- LD with origins in automotive, is supported by all PLCs support. It is network oriented and is good for Boolean expressions.

Also read from Control Engineerin g:
- Wago industrial control seminar: Implementation tips for I/O-based controllers (more photos) ;

and

- Speaking in Tongues: Understanding the IEC 61131-3 Programming Languages .

- Mark T. Hoske, editor in chief, Control Engineering www.controleng.com





No comments
The Top Plant program honors outstanding manufacturing facilities in North America. View the 2013 Top Plant.
The Product of the Year program recognizes products newly released in the manufacturing industries.
The Leaders Under 40 program features outstanding young people who are making a difference in manufacturing. View the 2013 Leaders here.
The new control room: It's got all the bells and whistles - and alarms, too; Remote maintenance; Specifying VFDs
2014 forecast issue: To serve and to manufacture - Veterans will bring skill and discipline to the plant floor if we can find a way to get them there.
2013 Top Plant: Lincoln Electric Company, Cleveland, Ohio
Case Study Database

Case Study Database

Get more exposure for your case study by uploading it to the Plant Engineering case study database, where end-users can identify relevant solutions and explore what the experts are doing to effectively implement a variety of technology and productivity related projects.

These case studies provide examples of how knowledgeable solution providers have used technology, processes and people to create effective and successful implementations in real-world situations. Case studies can be completed by filling out a simple online form where you can outline the project title, abstract, and full story in 1500 words or less; upload photos, videos and a logo.

Click here to visit the Case Study Database and upload your case study.

Why manufacturers need to see energy in a different light: Current approaches to energy management yield quick savings, but leave plant managers searching for ways of improving on those early gains.
Electric motor power measurement and analysis: Understand the basics to drive greater efficiency; Selecting the right control chart; Linear position sensors gain acceptance
Protecting standby generators for mission critical facilities; Selecting energy-efficient transformers; Integrating power monitoring systems; Mitigating harmonics in electrical systems

Annual Salary Survey

Participate in the 2013 Salary Survey

In a year when manufacturing continued to lead the economic rebound, it makes sense that plant manager bonuses rebounded. Plant Engineering’s annual Salary Survey shows both wages and bonuses rose in 2012 after a retreat the year before.

Average salary across all job titles for plant floor management rose 3.5% to $95,446, and bonus compensation jumped to $15,162, a 4.2% increase from the 2010 level and double the 2011 total, which showed a sharp drop in bonus.

2012 Salary Survey Analysis

2012 Salary Survey Results

Maintenance and reliability tips and best practices from the maintenance and reliability coaches at Allied Reliability Group.
The One Voice for Manufacturing blog reports on federal public policy issues impacting the manufacturing sector. One Voice is a joint effort by the National Tooling and Machining...
The Society for Maintenance and Reliability Professionals an organization devoted...
Join this ongoing discussion of machine guarding topics, including solutions assessments, regulatory compliance, gap analysis...
IMS Research, recently acquired by IHS Inc., is a leading independent supplier of market research and consultancy to the global electronics industry.
Maintenance is not optional in manufacturing. It’s a profit center, driving productivity and uptime while reducing overall repair costs.
The Lachance on CMMS blog is about current maintenance topics. Blogger Paul Lachance is president and chief technology officer for Smartware Group.