A PLC is an industrial-grade digital computer designed to perform control functions—especially for industrial applications.
The majority of PLCs today are modular, allowing the user to add an assortment of functionality including discrete control, analog control, PID control, position control, motor control, serial communication, and high-speed networking. Compared to older technologies, the PLC is easier to troubleshoot, more reliable, more cost-effective, and far more versatile.
Modicon, shortened from modular digital controller, is both the name of the first PLC product and the brand that invented it. Below is a picture of a Modicon PLC.
Figure 1. Modicon PLC with CPU, I/O, and communication cards. Image courtesy of Indiamart. |
While it may not look like a typical computer, at the core of a PLC is the very same technology seen in the computers and smart devices most people use in their everyday life.
A PLC is composed of a few basic parts. These include a power supply; a central processing unit, or CPU; input/output cards; and a backplane, carrier, or rack that these parts are placed into. The backplane, as shown in Figure 2, creates an electrical connection between all of the separate components, giving the PLC its modular design. This electrical connection includes both power and communication signals. Many PLC manufacturers use proprietary communication protocols on the backplane so that I/O can securely talk to the CPU.
Figure 2. Allen-Bradley ControlLogix backplane. Image courtesy of Quicktime. |
The power supply provides either 125VAC or 24VDC depending on the application and the circumstances of the installation. As mentioned above, this voltage is bussed down the backplane providing power for the CPU and I/O modules, which come in the form of “cards”. These cards can quickly be added or removed from their slot in the carrier.
Outside of the PLC itself are two very important components: the programming device and the human-machine interface (HMI). The programming device can be a desktop computer, laptop, or hand-held instrument from the same manufacturer. There are also fixed I/O PLCs with built-in displays and buttons that allow programs to be written directly on the PLC.
While the programming device allows the user to view and modify the code running on the PLC, the HMI provides a higher level of abstraction, modeling the control system as a whole. Figure 3 shows an integrated touchscreen that can be used in the control room or out in the “field” closer to the process. These types of interactive displays are very common and will often be mounted directly on the PLC enclosure or nearby for operator use.
The “field” is the area of the plant or factory where the actual control is done. This is where you would find pumps, motors, valves, temperature and pressure sensors, heat exchangers, mass flow meters, robotic arms, and raw materials.
In today’s large, complex industries, the HMI has become a critical feature in the implementation and deployment of a control system. As its name implies, the human-machine interface is a user’s window into the control scheme or process. It allows the user to monitor, interact with, and, if necessary, shut down the control system.
Before modern HMIs, plant operators relied on walls of analog gauges and light bulbs to understand the state of their processes. Opening a valve to let off pressure in a pipe or ramping a temperature control loop down could not be done from a computer mouse or capacitive touchscreen, but had to be radioed to an outside operator who performed the action manually. Figure 4 compares the control rooms of old against a modern control room, equipped with HMIs and advanced graphics.
This high-level view of the PLC is the domain of automation and control engineers. These engineers understand control systems, control algorithms, and configuration. They model the process and determine the size and scale of the system needed. From there, the PLC and all of its components are purchased. This could be a single rack with eight I/O cards, or twenty racks all communicating over an industrial network with thousands of I/Os. The key takeaway here is that all of the control is done by a single CPU.
The electrical engineer rarely works at such a high level and is more interested in the design and implementation of the PLC’s separate components. How does a discrete input card work? How does an analog output card drive its output?
In the next article of the PLC series, we’ll take a closer look at the hardware that makes PLC code run in the first place and then get into the graphical languages engineers use to write the code.