Understanding programmable controllers

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

10/01/2000


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.

Components

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 Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by Control Engineering subscribers. Vote now (if qualified)!
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
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.
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
HMI effectiveness; Distributed I/O; Engineers' Choice Award finalists; System Integrator advice; Inside Machines
Women in engineering; Engineering Leaders Under 40; PID benefits and drawbacks; Ladder logic; Cloud computing
Robotic integration and cloud connections; SCADA and cybersecurity; Motor efficiency standards; Open- and closed-loop control; Augmented reality
Programmable logic controllers (PLCs) represent the logic (decision) part of the control loop of sense, decide, and actuate. As we know, PLCs aren’t the only option for making decisions in a control loop, but they are likely why you’re here.
This digital report explains how motion control advances and solutions can help with machine control, automated control on assembly lines, integration of robotics and automation, and machine safety.
This article collection contains several articles on how advancements in vision system designs, computing power, algorithms, optics, and communications are making machine vision more cost effective than ever before.

Find and connect with the most suitable service provider for your unique application. Start searching the Global System Integrator Database Now!

Control room technology innovation; Practical approaches to corrosion protection; Pipeline regulator revises quality programs
Cloud, mobility, and remote operations; SCADA and contextual mobility; Custom UPS empowering a secure pipeline
Infrastructure for natural gas expansion; Artificial lift methods; Disruptive technology and fugitive gas emissions
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
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.
The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by Control Engineering subscribers. Vote now (if qualified)!
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
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.
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
HMI effectiveness; Distributed I/O; Engineers' Choice Award finalists; System Integrator advice; Inside Machines
Women in engineering; Engineering Leaders Under 40; PID benefits and drawbacks; Ladder logic; Cloud computing
Robotic integration and cloud connections; SCADA and cybersecurity; Motor efficiency standards; Open- and closed-loop control; Augmented reality
Programmable logic controllers (PLCs) represent the logic (decision) part of the control loop of sense, decide, and actuate. As we know, PLCs aren’t the only option for making decisions in a control loop, but they are likely why you’re here.
This digital report explains how motion control advances and solutions can help with machine control, automated control on assembly lines, integration of robotics and automation, and machine safety.
This article collection contains several articles on how advancements in vision system designs, computing power, algorithms, optics, and communications are making machine vision more cost effective than ever before.

Find and connect with the most suitable service provider for your unique application. Start searching the Global System Integrator Database Now!

Control room technology innovation; Practical approaches to corrosion protection; Pipeline regulator revises quality programs
Cloud, mobility, and remote operations; SCADA and contextual mobility; Custom UPS empowering a secure pipeline
Infrastructure for natural gas expansion; Artificial lift methods; Disruptive technology and fugitive gas emissions
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
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.
The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by Control Engineering subscribers. Vote now (if qualified)!
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
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.
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
HMI effectiveness; Distributed I/O; Engineers' Choice Award finalists; System Integrator advice; Inside Machines
Women in engineering; Engineering Leaders Under 40; PID benefits and drawbacks; Ladder logic; Cloud computing
Robotic integration and cloud connections; SCADA and cybersecurity; Motor efficiency standards; Open- and closed-loop control; Augmented reality
Programmable logic controllers (PLCs) represent the logic (decision) part of the control loop of sense, decide, and actuate. As we know, PLCs aren’t the only option for making decisions in a control loop, but they are likely why you’re here.
This digital report explains how motion control advances and solutions can help with machine control, automated control on assembly lines, integration of robotics and automation, and machine safety.
This article collection contains several articles on how advancements in vision system designs, computing power, algorithms, optics, and communications are making machine vision more cost effective than ever before.

Find and connect with the most suitable service provider for your unique application. Start searching the Global System Integrator Database Now!

Control room technology innovation; Practical approaches to corrosion protection; Pipeline regulator revises quality programs
Cloud, mobility, and remote operations; SCADA and contextual mobility; Custom UPS empowering a secure pipeline
Infrastructure for natural gas expansion; Artificial lift methods; Disruptive technology and fugitive gas emissions
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
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