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.


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) ;


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

- Mark T. Hoske, editor in chief, Control Engineering

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 Engineering Leaders Under 40 program identifies and gives recognition to young engineers who...
A cool solution: Collaboration, chemistry leads to foundry coat product development; See the 2015 Product of the Year Finalists
Raising the standard: What's new with NFPA 70E; A global view of manufacturing; Maintenance data; Fit bearings properly
Sister act: Building on their father's legacy, a new generation moves Bales Metal Surface Solutions forward; Meet the 2015 Engineering Leaders Under 40
Cyber security cost-efficient for industrial control systems; Extracting full value from operational data; Managing cyber security risks
Drilling for Big Data: Managing the flow of information; Big data drilldown series: Challenge and opportunity; OT to IT: Creating a circle of improvement; Industry loses best workers, again
Pipeline vulnerabilities? Securing hydrocarbon transit; Predictive analytics hit the mainstream; Dirty pipelines decrease flow, production—pig your line; Ensuring pipeline physical and cyber security
Upgrading secondary control systems; Keeping enclosures conditioned; Diagnostics increase equipment uptime; Mechatronics simplifies machine design
Designing positive-energy buildings; Ensuring power quality; Complying with NFPA 110; Minimizing arc flash hazards
Building high availability into industrial computers; Of key metrics and myth busting; The truth about five common VFD myths

Annual Salary Survey

After almost a decade of uncertainty, the confidence of plant floor managers is soaring. Even with a number of challenges and while implementing new technologies, there is a renewed sense of optimism among plant managers about their business and their future.

The respondents to the 2014 Plant Engineering Salary Survey come from throughout the U.S. and serve a variety of industries, but they are uniform in their optimism about manufacturing. This year’s survey found 79% consider manufacturing a secure career. That’s up from 75% in 2013 and significantly higher than the 63% figure when Plant Engineering first started asking that question a decade ago.

Read more: 2014 Salary Survey: Confidence rises amid the challenges

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.