Understanding programmable controllers

A programmable controller, or PLC as it is commonly known, is the heart of an industrial control system (Fig. 1).


A programmable controller, or PLC as it is commonly known, is the heart of an industrial control system (Fig. 1). It functions as one component in a collection of devices configured to ensure a stable, accurate, and smooth operation of a process or manufacturing activity. Rapid advances in technology have allowed complicated tasks to be accomplished by these systems, which typically include a host computer, field devices, networking communications, and controllers.

Although there are various types of controllers, PLCs are still the most popular. Drawing upon a control application program stored in its memory, the PLC monitors the system through the signals of various field input devices. Based on its program logic, it then determines a course of action to be carried out by the field output devices.


In simple terms, a PLC is a solid state device that controls output devices based on input status and a user program (Fig. 2). For example, the PLC may receive inputs from a switch or thermocouple (Fig. 3a), and set corresponding outputs (Fig. 3b) such as "turn on a light" or "close a valve" based on the instructions in its program (Fig. 4). It may be used to control a simple and repetitive task. Or it may be grouped with other PLCs and computers and linked through a communications network to integrate the control of a complex process (Fig. 5).

Every PLC has four basic components.

  • CPU , or processor, stores program files and data into memory and executes the program.


      • Power supply provides power to modules in the chassis. It does not usually power any I/O devices.


          • Chassis , or backplane, is the hardware into which I/O and specialty modules are plugged. It provides the communications link from the modules to the processor.


              • I/Os are the modules to which the field devices physically connect.

                • Programming

                  A PLC reads the input information and sets appropriate outputs based on a program entered by the user. The process by which the PLC scans its inputs, executes its program rungs, turns on outputs, performs housekeeping tasks, and returns to the first rung to start the sequence again is called a program scan . Instructions include addresses that are used to correlate physical I/O data into PLC memory locations and store internal data and values used in the ladder program. Addressing schemes vary with the PLC product.

                  PLCs are programmed from a computer equipped with the proper programming software or with a dedicated programming device designed for the particular PLC being used. Today, most users run a programming software package suited for the PLCs they are using on a standard PC connected to the PLC through a communications network. The increased functionality available today lets users do more complex programming, data handling, and information exchange. Operator terminals or human/ machine interfaces (HMIs) let users monitor processes and communicate instructions and information to the PLC more easily and more efficiently.

                  PLCs may be programmed in a number of ways. Six languages are commonly used:

                  • Relay ladder logic


                      • Instruction list


                          • Sequential function chart


                              • Function block


                                  • Structured text


                                      • High level (C, Basic, etc.).

                                        • By far, ladder logic is most well known and most common (Fig. 6). It is fast and well suited for sequential logic, discrete logic, timing/counting, and Boolean operations. Instruction list is a low-level language similar to assembly language. Powerful but difficult to learn, it is useful when small functions are repeated often. Sequential function charts are typically used for batch/sequential control.

                                          Function blocks are targeted at process and drive systems and show the flow of the program more easily. Structured text is similar to Basic or Pascal and well suited for complex math and data handling. Although not normally used for PLCs, high-level languages such as C or Basic can be applied with the help of special modules. These languages are typically used for complex algorithms.

                                          Languages are governed by the international standard IEC 1131-3. It specifies their syntax, semantics, and display, in essence letting compliant multiple languages be used within the same PLC and letting the program developer select the language best suited for each task. The standard was developed with the input of vendors, end-users, and academics and is available from the American National Standards Institute. (See More info box for ordering information.)

                                          Integrated solutions

                                          PLCs are not isolated components. They are part of complex, integrated systems. They may be part of a control subsystem connected to a data acquisition system. They may be configured for centralized control or for distributed control (Fig. 7). They interact and are interoperable with compatible software, HMIs, network communications, remote I/O devices, and more. Without all the elements, the solution is not complete.

                                          Plant Engineering magazine would like to acknowledge with appreciation the special contributions made to this article by Allen-Bradley/Rockwell Automation, Cleveland, OH; Cutler-Hammer/ Eaton Corp., Cleveland, OH; GE Fanuc Automation, Charlottesville, VA; and Omron Elect ronics, Schaumburg, IL.

                                          Maintenance and troubleshooting

                                          PLCs are designed for reliability. Nonetheless, problems can occur. Most PLCs are equipped with a variety of self-diagnostic functions that help rapidly identify and correct errors that might occur. Fatal errors are serious and typically stop PLC operation. Nonfatal errors are less serious and program execution usually continues. However, the cause of the error should be corrected and the error cleared as quickly as possible. The accompanying flow chart can be used to help troubleshoot errors that occur during operation.

                                          Probably the biggest deterrent to system breakdown is adequate preventive maintenance for the PLC and the control system. Here are five points to keep in mind.

                                          • Inspect the tightness of the I/O terminal screws periodically. They can become loose over time.


                                              • Ensure that components are free of dust. Proper cooling of the PLC is impossible if layers of dust are present.


                                                  • Check for corrosion of connecting terminals periodically. Corrosion may occur in some environments. The printed circuit board and connector may become corroded internally.


                                                      • Maintain a certain amount of commonly used spare parts such as the input and output modules. Downtime is costly and should not occur because parts are not available.


The Top Plant program honors outstanding manufacturing facilities in North America. View the 2017 Top Plant.
The Product of the Year program recognizes products newly released in the manufacturing industries.
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
SCCR, 2018 Maintenance study, and VFDs in a washdown environment.
Welding ergonomics, 2017 Salary Survey, and surge protection
2017 Top Plant winner, Best practices, Plant Engineering at 70, Top 10 stories of 2017
Product of the Year winners, Pattern recognition, Engineering analytics, Revitalize older pump installations
Control room technology innovation; Practical approaches to corrosion protection; Pipeline regulator revises quality programs
The cloud, mobility, and remote operations; SCADA and contextual mobility; Custom UPS empowering a secure pipeline
Setting internal automation standards
Knowing how and when to use parallel generators
PID controllers, Solar-powered SCADA, Using 80 GHz radar sensors

Annual Salary Survey

Before the calendar turned, 2016 already had the makings of a pivotal year for manufacturing, and for the world.

There were the big events for the year, including the United States as Partner Country at Hannover Messe in April and the 2016 International Manufacturing Technology Show in Chicago in September. There's also the matter of the U.S. presidential elections in November, which promise to shape policy in manufacturing for years to come.

But the year started with global economic turmoil, as a slowdown in Chinese manufacturing triggered a worldwide stock hiccup that sent values plummeting. The continued plunge in world oil prices has resulted in a slowdown in exploration and, by extension, the manufacture of exploration equipment.

Read more: 2015 Salary Survey

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.
The maintenance journey has been a long, slow trek for most manufacturers and has gone from preventive maintenance to predictive maintenance.
This digital report explains how plant engineers and subject matter experts (SME) need support for time series data and its many challenges.
This digital report will explore several aspects of how IIoT will transform manufacturing in the coming years.
Maintenance Manager; California Oils Corp.
Associate, Electrical Engineering; Wood Harbinger
Control Systems Engineer; Robert Bosch Corp.
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
click me