A programmable logic controller (PLC) or programmable controller is an industrial
computer that has been
ruggedized
A rugged computer or ruggedized computer is a computer specifically designed to operate reliably in harsh usage environments and conditions, such as strong vibrations, extreme temperatures and wet or dusty conditions. They are designed from incepti ...
and adapted for the control of manufacturing processes, such as
assembly line
An assembly line is a manufacturing process (often called a ''progressive assembly'') in which parts (usually interchangeable parts) are added as the semi-finished assembly moves from workstation to workstation where the parts are added in sequ ...
s, machines,
robotic devices, or any activity that requires high reliability, ease of programming, and process fault diagnosis.
Dick Morley
Richard E. Morley (December 1, 1932 – October 17, 2017) was an American mechanical engineer who was considered one of the "fathers" of the programmable logic controller (PLC) since he was involved with the production of the first PLC for ...
is considered as the father of PLC as he had invented the first PLC, the Modicon 084, for
General Motors
The General Motors Company (GM) is an American Multinational corporation, multinational Automotive industry, automotive manufacturing company headquartered in Detroit, Michigan, United States. It is the largest automaker in the United States and ...
in 1968.
PLCs can range from small modular devices with tens of
inputs and outputs (I/O), in a housing integral with the processor, to large rack-mounted modular devices with thousands of I/O, and which are often networked to other PLC and
SCADA
Supervisory control and data acquisition (SCADA) is a control system architecture comprising computers, networked data communications and graphical user interfaces for high-level supervision of machines and processes. It also covers sensors and ...
systems.
They can be designed for many arrangements of digital and analog I/O, extended temperature ranges, immunity to
electrical noise, and resistance to vibration and impact. Programs to control machine operation are typically stored in battery-backed-up or
non-volatile memory
Non-volatile memory (NVM) or non-volatile storage is a type of computer memory that can retain stored information even after power is removed. In contrast, volatile memory needs constant power in order to retain data.
Non-volatile memory typ ...
.
PLCs were first developed in the automobile manufacturing industry to provide flexible, rugged and easily programmable controllers to replace hard-wired
relay logic systems. Since then, they have been widely adopted as high-reliability automation controllers suitable for harsh environments.
A PLC is an example of a
hard real-time system since output results must be produced in response to input conditions within a limited time, otherwise unintended operation will result.
Invention and early development
PLC originated in the late 1960s in the automotive industry in the US and were designed to replace relay logic systems. Before, control logic for manufacturing was mainly composed of
relays,
cam timers,
drum sequencers, and dedicated closed-loop controllers.
The hard-wired nature made it difficult for design engineers to alter the automation process. Changes would require rewiring and careful updating of the documentation. If even one wire were out of place, or one relay failed, the whole system would become faulty. Often technicians would spend hours troubleshooting by examining the schematics and comparing them to existing wiring. When general-purpose computers became available, they were soon applied to control logic in industrial processes. These early computers were unreliable and required specialist programmers and strict control of working conditions, such as temperature, cleanliness, and power quality.
The PLC provided several advantages over earlier automation systems. It tolerated the industrial environment better than computers and was more reliable, compact and required less maintenance than relay systems. It was easily extensible with additional I/O modules, while relay systems required complicated hardware changes in case of reconfiguration. This allowed for easier iteration over manufacturing process design. With a simple programming language focused on logic and switching operations, it was more user-friendly than computers using
general-purpose programming languages. It also permitted its operation to be monitored.
Early PLCs were programmed in
ladder logic
Ladder logic was originally a written method to document the design and construction of relay racks as used in manufacturing and process control. Each device in the relay rack would be represented by a symbol on the ladder diagram with connecti ...
, which strongly resembled a schematic diagram of
relay logic.
Modicon
In 1968, GM Hydramatic (the
automatic transmission division of
General Motors
The General Motors Company (GM) is an American Multinational corporation, multinational Automotive industry, automotive manufacturing company headquartered in Detroit, Michigan, United States. It is the largest automaker in the United States and ...
) issued a request for proposals for an electronic replacement for hard-wired relay systems based on a white paper written by engineer Edward R. Clark. The winning proposal came from Bedford Associates from
Bedford, Massachusetts. The result was the first PLC—built in 1969–designated the 084, because it was Bedford Associates' eighty-fourth project.
Bedford Associates started a company dedicated to developing, manufacturing, selling, and servicing this new product, which they named (standing for modular digital controller). One of the people who worked on that project was
Dick Morley
Richard E. Morley (December 1, 1932 – October 17, 2017) was an American mechanical engineer who was considered one of the "fathers" of the programmable logic controller (PLC) since he was involved with the production of the first PLC for ...
, who is considered to be the "father" of the PLC.
The Modicon brand was sold in 1977 to
Gould Electronics and later to
Schneider Electric, the current owner.
About this same time, Modicon created
Modbus, a data communications protocol used with its PLCs. Modbus has since become a standard open protocol commonly used to connect many industrial electrical devices.
One of the first 084 models built is now on display at Schneider Electric's facility in
North Andover, Massachusetts. It was presented to Modicon by
GM, when the unit was retired after nearly twenty years of uninterrupted service. Modicon used the 84 moniker at the end of its product range until the 984 made its appearance.
Allen-Bradley
In a parallel development
Odo Josef Struger
Odo Josef Struger (August 12, 1931 – December 8, 1998) was an Austrian pioneer in modern-day automation.
Early life
Struger was born in 1931 in Unterloibl. This is a town in the municipality of Ferlach in Carinthia of Austria. He moved to t ...
is sometimes known as the "father of the programmable logic controller" as well.
He was involved in the invention of the
AllenBradley programmable logic controller
[Anzovin, p. 100, item # 2189. ''Programmable logic controller was invented by the Austrian-born American engineer Odo J. Struger in 1958–60 at the Allen-Bradley company in Milwaukee, WI, USA. A programmable logic controller, or PLC, is a simple electronic device that allows precise numerical control of machinery. It is widely used to control everything from washing machines to roller coaster to automated manufacturing equipment.''] and is credited with inventing the PLC initialism.
Allen-Bradley (now a brand owned by
Rockwell Automation) became a major PLC manufacturer in the United States during his tenure.
Struger played a leadership role in developing
IEC 61131-3 PLC programming language standards.
Early methods of programming
Many early PLCs were not capable of graphical representation of the logic, and so it was instead represented as a series of logic expressions in some kind of Boolean format, similar to
Boolean algebra
In mathematics and mathematical logic, Boolean algebra is a branch of algebra. It differs from elementary algebra in two ways. First, the values of the variables are the truth values ''true'' and ''false'', usually denoted 1 and 0, whereas ...
. As programming terminals evolved, it became more common for ladder logic to be used, because it was a familiar format used for electro-mechanical control panels. Newer formats, such as state logic and Function Block (which is similar to the way logic is depicted when using digital integrated logic circuits) exist, but they are still not as popular as ladder logic. A primary reason for this is that PLCs solve the logic in a predictable and repeating sequence, and ladder logic allows the person writing the logic to see any issues with the timing of the logic sequence more easily than would be possible in other formats.
Up to the mid-1990s, PLCs were programmed using proprietary programming panels or special-purpose programming
terminals, which often had dedicated function keys representing the various logical elements of PLC programs.
Some proprietary programming terminals displayed the elements of PLC programs as graphic symbols, but plain
ASCII
ASCII ( ), abbreviated from American Standard Code for Information Interchange, is a character encoding standard for electronic communication. ASCII codes represent text in computers, telecommunications equipment, and other devices. Because ...
character representations of contacts, coils, and wires were common. Programs were stored on
cassette tape cartridge
Magnetic-tape data storage is a system for storing digital information on magnetic tape using digital recording.
Tape was an important medium for primary data storage in early computers, typically using large open reels of IBM 7 track, 7-track, ...
s. Facilities for printing and documentation were minimal due to a lack of memory capacity. The oldest PLCs used
non-volatile
Non-volatile memory (NVM) or non-volatile storage is a type of computer memory that can retain stored information even after power is removed. In contrast, volatile memory needs constant power in order to retain data.
Non-volatile memory typic ...
magnetic core memory.
Architecture
A PLC is an industrial microprocessor-based controller with programmable memory used to store program instructions and various functions. It consists of:
* a processor unit (CPU) which interprets inputs, executes the control program stored in memory and sends output signals,
* a power supply unit which converts AC voltage to DC,
* a memory unit storing data from inputs and program to be executed by the processor,
* an input and output interface, where the controller receives and sends data from/to external devices,
* a communications interface to receive and transmit data on communication networks from/to remote PLCs.
PLCs require programming device which is used to develop and later download the created program into the memory of the controller.
Modern PLCs generally contain a
real-time operating system, such as
OS-9 or
VxWorks.
Mechanical design
There are two types of mechanical design for PLC systems. A ''single box'', or a ''brick'' is a small programmable controller that fits all units and interfaces into one compact casing, although, typically, additional expansion modules for inputs and outputs are available. Second design type – a ''modular'' PLC – has a chassis (also called a ''rack'') that provides space for modules with different functions, such as power supply, processor, selection of I/O modules and communication interfaces – which all can be customized for the particular application. Several racks can be administered by a single processor and may have thousands of inputs and outputs. Either a special high-speed serial I/O link or comparable communication method is used so that racks can be distributed away from the processor, reducing the wiring costs for large plants. Options are also available to mount I/O points directly to the machine and utilize quick disconnecting cables to sensors and valves, saving time for wiring and replacing components.
Discrete and analog signals
Discrete (digital) signals can only take ''on'' or ''off'' value (1 or 0, ''true'' or ''false''). Examples of devices providing a discrete signal include
limit switches,
photoelectric sensors and
encoders.
Discrete signals are sent using either
voltage or
current, where specific extreme ranges are designated as o''n'' and o''ff''. For example, a controller might use 24 V DC input with values above 22 V DC representing o''n'', values below 2 V DC representing o''ff'', and intermediate values undefined.
Analog signals can use voltage or current that is proportional to the size of the monitored variable and can take any value within their scale. Pressure, temperature, flow, and weight are often represented by analog signals. These are typically interpreted as integer values with various ranges of accuracy depending on the device and the number of bits available to store the data.
For example, an analog 0 to 10 V or 4-20 mA
current loop input would be
converted
Conversion or convert may refer to:
Arts, entertainment, and media
* "Conversion" (''Doctor Who'' audio), an episode of the audio drama ''Cyberman''
* "Conversion" (''Stargate Atlantis''), an episode of the television series
* "The Conversion" ...
into an integer value of 0 to 32,767. The PLC will take this value and transpose it into the desired units of the process so the operator or program can read it. Proper integration will also include filter times to reduce noise as well as high and low limits to report faults. Current inputs are less sensitive to electrical noise (e.g. from welders or electric motor starts) than voltage inputs. Distance from the device and the controller is also a concern as the maximum traveling distance of a good quality 0-10 V signal is very short compared to the 4-20 mA signal. The 4-20 mA signal can also report if the wire is disconnected along the path as a <4 mA signal would indicate an error.
Redundancy
Some special processes need to work permanently with minimum unwanted downtime. Therefore, it is necessary to design a system that is fault-tolerant and capable of handling the process with faulty modules. In such cases to increase the system availability in the event of hardware component failure,
redundant CPU or I/O modules with the same functionality can be added to hardware configuration for preventing total or partial process shutdown due to hardware failure. Other redundancy scenarios could be related to safety-critical processes, for example, large hydraulic presses could require that both PLCs turn on output before the press can come down in case one output does not turn off properly.
Programming
Programmable logic controllers are intended to be used by engineers without a programming background. For this reason, a graphical programming language called
Ladder Diagram (LD, LAD) was first developed. It resembles the schematic diagram of a system built with electromechanical relays and was adopted by many manufacturers and later standardized in the
IEC 61131-3 control systems programming standard. , it is still widely used, thanks to its simplicity.
, the majority of PLC systems adhere to the
IEC 61131-3 standard that defines 2 textual programming languages:
Structured Text
Structured text, abbreviated as ST or STX, is one of the five languages supported by the IEC 61131-3 standard, designed for programmable logic controllers (PLCs). It is a high level language that is block structured and syntactically resembles ...
(ST; similar to
Pascal
Pascal, Pascal's or PASCAL may refer to:
People and fictional characters
* Pascal (given name), including a list of people with the name
* Pascal (surname), including a list of people and fictional characters with the name
** Blaise Pascal, Fren ...
) and
Instruction List (IL); as well as 3 graphical languages:
Ladder Diagram,
Function Block Diagram (FBD) and
Sequential Function Chart (SFC).
Instruction List (IL) was deprecated in the third edition of the standard.
Modern PLCs can be programmed in a variety of ways, from the relay-derived ladder logic to programming languages such as specially adapted dialects of
BASIC
BASIC (Beginners' All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages designed for ease of use. The original version was created by John G. Kemeny and Thomas E. Kurtz at Dartmouth College ...
and
C.
While the fundamental concepts of PLC programming are common to all manufacturers, differences in I/O addressing, memory organization, and instruction sets mean that PLC programs are never perfectly interchangeable between different makers. Even within the same product line of a single manufacturer, different models may not be directly compatible.
Programming device
PLC programs are typically written in a programming device, which can take the form of a desktop console, special software on a
personal computer, or a handheld programming device.
Then, the program is downloaded to the PLC directly or over a network. It is stored either in non-volatile
flash memory
Flash memory is an electronic non-volatile computer memory storage medium that can be electrically erased and reprogrammed. The two main types of flash memory, NOR flash and NAND flash, are named for the NOR and NAND logic gates. Both us ...
or battery-backed-up
RAM. In some programmable controllers, the program is transferred from a personal computer to the PLC through a programming board that writes the program into a removable chip, such as
EPROM.
Manufacturers develop programming software for their controllers. In addition to being able to program PLCs in multiple languages, they provide common features like hardware diagnostics and maintenance, software debugging, and offline simulation.
A program written on a personal computer or uploaded from PLC using programming software can be easily copied and backed up on external storage.
Simulation
PLC simulation is a feature often found in PLC programming software. It allows for testing and
debugging
In computer programming and software development, debugging is the process of finding and resolving '' bugs'' (defects or problems that prevent correct operation) within computer programs, software, or systems.
Debugging tactics can involve in ...
early in a project's development.
Incorrectly programmed PLC can result in lost productivity and dangerous conditions. Testing the project in simulation improves its quality, increases the level of safety associated with equipment and can save costly downtime during the installation and commissioning of automated control applications since many scenarios can be tried and tested before the system is activated.
Functionality
The main difference from most other computing devices is that PLCs are intended-for and therefore tolerant-of more severe conditions (such as dust, moisture, heat, cold), while offering extensive
input/output (I/O) to connect the PLC to
sensor
A sensor is a device that produces an output signal for the purpose of sensing a physical phenomenon.
In the broadest definition, a sensor is a device, module, machine, or subsystem that detects events or changes in its environment and sends ...
s and
actuators. PLC input can include simple digital elements such as
limit switches, analog variables from process sensors (such as temperature and pressure), and more complex data such as that from positioning or
machine vision systems. PLC output can include elements such as indicator lamps, sirens,
electric motors,
pneumatic
Pneumatics (from Greek ‘wind, breath’) is a branch of engineering that makes use of gas or pressurized air.
Pneumatic systems used in Industrial sector, industry are commonly powered by compressed air or compressed inert gases. A central ...
or
hydraulic cylinders, magnetic
relays,
solenoid
upright=1.20, An illustration of a solenoid
upright=1.20, Magnetic field created by a seven-loop solenoid (cross-sectional view) described using field lines
A solenoid () is a type of electromagnet formed by a helix, helical coil of wire whose ...
s, or analog outputs. The input/output arrangements may be built into a simple PLC, or the PLC may have external
I/O modules attached to a fieldbus or computer network that plugs into the PLC.
The functionality of the PLC has evolved over the years to include sequential relay control, motion control,
process control
An industrial process control in continuous production processes is a discipline that uses industrial control systems to achieve a production level of consistency, economy and safety which could not be achieved purely by human manual control. I ...
,
distributed control systems, and
networking
Network, networking and networked may refer to:
Science and technology
* Network theory, the study of graphs as a representation of relations between discrete objects
* Network science, an academic field that studies complex networks
Mathematics
...
. The data handling, storage, processing power, and communication capabilities of some modern PLCs are approximately equivalent to
desktop computer
A desktop computer (often abbreviated desktop) is a personal computer designed for regular use at a single location on or near a desk due to its size and power requirements. The most common configuration has a case that houses the power supply ...
s. PLC-like programming combined with remote I/O hardware, allows a general-purpose desktop computer to overlap some PLCs in certain applications. Desktop computer controllers have not been generally accepted in heavy industry because desktop computers run on less stable operating systems than PLCs, and because the desktop computer hardware is typically not designed to the same levels of tolerance to temperature, humidity, vibration, and longevity as the processors used in PLCs. Operating systems such as Windows do not lend themselves to deterministic logic execution, with the result that the controller may not always respond to changes of input status with the consistency in timing expected from PLCs. Desktop logic applications find use in less critical situations, such as laboratory automation and use in small facilities where the application is less demanding and critical.
Basic functions
The most basic function of a programmable controller is to emulate the functions of electromechanical relays. Discrete inputs are given a unique address, and a PLC instruction can test if the input state is on or off. Just as a series of relay contacts perform a logical AND function, not allowing current to pass unless all the contacts are closed, so a series of "examine if on" instructions will energize its output storage bit if all the input bits are on. Similarly, a parallel set of instructions will perform a logical OR. In an electromechanical relay wiring diagram, a group of contacts controlling one coil is called a "rung" of a "ladder diagram ", and this concept is also used to describe PLC logic. Some models of PLC limit the number of series and parallel instructions in one "rung" of logic. The output of each rung sets or clears a storage bit, which may be associated with a physical output address or which may be an "internal coil" with no physical connection. Such internal coils can be used, for example, as a common element in multiple separate rungs. Unlike physical relays, there is usually no limit to the number of times an input, output or internal coil can be referenced in a PLC program.
Some PLCs enforce a strict left-to-right, top-to-bottom execution order for evaluating the rung logic. This is different from electro-mechanical relay contacts, which, in a sufficiently complex circuit, may either pass current left-to-right or right-to-left, depending on the configuration of surrounding contacts. The elimination of these "sneak paths" is either a bug or a feature, depending on the programming style.
More advanced instructions of the PLC may be implemented as functional blocks, which carry out some operation when enabled by a logical input and which produce outputs to signal, for example, completion or errors, while manipulating variables internally that may not correspond to discrete logic.
Communication
PLCs use built-in ports, such as
USB,
Ethernet
Ethernet () is a family of wired computer networking technologies commonly used in local area networks (LAN), metropolitan area networks (MAN) and wide area networks (WAN). It was commercially introduced in 1980 and first standardized in ...
,
RS-232,
RS-485, or
RS-422 to communicate with external devices (sensors, actuators) and systems (programming software,
SCADA
Supervisory control and data acquisition (SCADA) is a control system architecture comprising computers, networked data communications and graphical user interfaces for high-level supervision of machines and processes. It also covers sensors and ...
,
HMI
HMI may refer to:
Companies and organizations
* Hahn-Meitner-Institut, now Helmholtz-Zentrum Berlin, a German research institute
* Hanson Musical Instruments, a manufacturer of electric guitars
* Hartz Mountain Industries, an American holding com ...
). Communication is carried over various industrial network protocols, like
Modbus, or
EtherNet/IP. Many of these protocols are vendor specific.
PLCs used in larger I/O systems may have
peer-to-peer (P2P) communication between processors. This allows separate parts of a complex process to have individual control while allowing the subsystems to co-ordinate over the communication link. These communication links are also often used for
HMI
HMI may refer to:
Companies and organizations
* Hahn-Meitner-Institut, now Helmholtz-Zentrum Berlin, a German research institute
* Hanson Musical Instruments, a manufacturer of electric guitars
* Hartz Mountain Industries, an American holding com ...
devices such as keypads or
PC-type workstations.
Formerly, some manufacturers offered dedicated communication modules as an add-on function where the processor had no network connection built-in.
User interface
PLCs may need to interact with people for the purpose of configuration, alarm reporting, or everyday control. A
human-machine interface (HMI) is employed for this purpose. HMIs are also referred to as man-machine interfaces (MMIs) and graphical user interfaces (GUIs). A simple system may use buttons and lights to interact with the user. Text displays are available as well as graphical touch screens. More complex systems use programming and monitoring software installed on a computer, with the PLC connected via a communication interface.
Process of a scan cycle
A PLC works in a program scan cycle, where it executes its program repeatedly. The simplest scan cycle consists of 3 steps:
# read inputs,
# execute the program,
# write outputs.
The program follows the sequence of instructions. It typically takes a time span of tens of milliseconds for the processor to evaluate all the instructions and update the status of all outputs. If the system contains remote I/O—for example, an external rack with I/O modules—then that introduces additional uncertainty in the response time of the PLC system.
As PLCs became more advanced, methods were developed to change the sequence of ladder execution, and subroutines were implemented. This enhanced programming could be used to save scan time for high-speed processes; for example, parts of the program used only for setting up the machine could be segregated from those parts required to operate at higher speed. Newer PLCs now have the option to run the logic program synchronously with the IO scanning. This means that IO is updated in the background and the logic reads and writes values as required during the logic scanning.
Special-purpose I/O modules may be used where the scan time of the PLC is too long to allow predictable performance. Precision timing modules, or counter modules for use with
shaft encoders, are used where the scan time would be too long to reliably count pulses or detect the sense of rotation of an encoder. This allows even a relatively slow PLC to still interpret the counted values to control a machine, as the accumulation of pulses is done by a dedicated module that is unaffected by the speed of program execution.
Security
In his book from 1998, E. A. Parr pointed out that even though most programmable controllers require physical keys and passwords, the lack of strict access control and version control systems, as well as an easy-to-understand programming language make it likely that unauthorized changes to programs will happen and remain unnoticed.
Prior to the discovery of the
Stuxnet computer worm in June 2010, the security of PLCs received little attention. Modern programmable controllers generally contain a real-time operating systems, which can be vulnerable to exploits in a similar way as desktop operating systems, like
Microsoft Windows
Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for serv ...
. PLCs can also be attacked by gaining control of a computer they communicate with.
, these concerns have grown as networking is becoming more commonplace in the PLC environment connecting the previously separate plant floor networks and office networks.
In February 2021,
Rockwell Automation publicly disclosed a critical vulnerability affecting its Logix controllers family.
Secret cryptographic key used to
verify communication between the PLC and workstation can be extracted from Studio 5000 Logix Designer programming software and used to remotely change program code and configuration of connected controller. The vulnerability was given a severity score of 10 out of 10 on the
CVSS vulnerability scale. At the time of writing, the mitigation of the vulnerability was to
limit network access to affected devices.
Safety PLCs
Safety PLCs can be either a standalone model or a
safety-rated hardware and functionality added to existing controller architectures (
Allen-Bradley Guardlogix,
Siemens
Siemens AG ( ) is a German multinational conglomerate corporation and the largest industrial manufacturing company in Europe headquartered in Munich with branch offices abroad.
The principal divisions of the corporation are ''Industry'', '' ...
F-series etc.). These differ from conventional PLC types by being suitable for safety-critical applications for which PLCs have traditionally been supplemented with hard-wired
safety relay
Safety relays are devices that generally implement safety functions.
History
Relays and contactors were used to control plant and machinery in the early days of control technology. In the event of a hazardous situation, the actuator was simply i ...
s and areas of the memory dedicated to the safety instructions. The standard of safety level is the
SIL.
A safety PLC might be used to control access to a
robot cell with
trapped-key access, or to manage the shutdown response to an emergency stop on a conveyor production line. Such PLCs typically have a restricted regular instruction set augmented with safety-specific instructions designed to interface with emergency stops, light screens, and so forth.
The flexibility that such systems offer has resulted in rapid growth of demand for these controllers.
PLC compared with other control systems
PLCs are well adapted to a range of
automation
Automation describes a wide range of technologies that reduce human intervention in processes, namely by predetermining decision criteria, subprocess relationships, and related actions, as well as embodying those predeterminations in machines ...
tasks. These are typically industrial processes in manufacturing where the cost of developing and maintaining the automation system is high relative to the total cost of the automation, and where changes to the system would be expected during its operational life. PLCs contain input and output devices compatible with industrial pilot devices and controls; little electrical design is required, and the design problem centers on expressing the desired sequence of operations. PLC applications are typically highly customized systems, so the cost of a packaged PLC is low compared to the cost of a specific custom-built controller design. On the other hand, in the case of mass-produced goods, customized control systems are economical. This is due to the lower cost of the components, which can be optimally chosen instead of a "generic" solution, and where the non-recurring engineering charges are spread over thousands or millions of units.
Programmable controllers are widely used in motion, positioning, or torque control. Some manufacturers produce motion control units to be integrated with PLC so that
G-code (involving a
CNC machine) can be used to instruct machine movements.
PLC Chip / Embedded Controller
For small machines with low or medium volume. PLCs that can execute PLC languages such as Ladder, Flow-Chart/Grafcet,... Similar to traditional PLCs, but their small size allows developers to design them into custom printed circuit boards like a microcontroller, without computer programming knowledge, but with a language that is easy to use, modify and maintain. It's between the classic PLC / Micro-PLC and the Microcontrollers.
Cam timers
For high-volume or very simple fixed automation tasks, different techniques are used. For example, a cheap consumer
dishwasher would be controlled by an electromechanical
cam timer costing only a few dollars in production quantities.
Microcontrollers
A
microcontroller
A microcontroller (MCU for ''microcontroller unit'', often also MC, UC, or μC) is a small computer on a single VLSI integrated circuit (IC) chip. A microcontroller contains one or more CPUs (processor cores) along with memory and programmable i ...
-based design would be appropriate where hundreds or thousands of units will be produced and so the development cost (design of power supplies, input/output hardware, and necessary testing and certification) can be spread over many sales, and where the end-user would not need to alter the control. Automotive applications are an example; millions of units are built each year, and very few end-users alter the programming of these controllers. However, some specialty vehicles such as transit buses economically use PLCs instead of custom-designed controls, because the volumes are low and the development cost would be uneconomical.
[Gregory K. McMillan, Douglas M. Considine (ed), ''Process/Industrial Instruments and Controls Handbook Fifth Edition'', McGraw-Hill, 1999 Section 3 ''Controllers'']
Single-board computers
Very complex process control, such as those used in the chemical industry, may require algorithms and performance beyond the capability of even high-performance PLCs. Very high-speed or precision controls may also require customized solutions; for example, aircraft flight controls.
Single-board computer
A single-board computer (SBC) is a complete computer built on a single circuit board, with microprocessor(s), memory, input/output (I/O) and other features required of a functional computer. Single-board computers are commonly made as demonstrati ...
s using semi-customized or fully proprietary hardware may be chosen for very demanding control applications where the high development and maintenance cost can be supported. "Soft PLCs" running on desktop-type computers can interface with industrial I/O hardware while executing programs within a version of commercial operating systems adapted for process control needs.
The rising popularity of
single board computers has also had an influence on the development of PLCs. Traditional PLCs are generally
closed platforms, but some newer PLCs (e.g. groov EPIC from
Opto 22, ctrlX from
Bosch Rexroth
Bosch Rexroth AG is an engineering firm based in Lohr am Main in Germany. It is the result of a merger on 1 May 2001 between Mannesmann Rexroth AG and the Automation Technology Business Unit of Robert Bosch GmbH, and is a wholly owned subsidiar ...
, PFC200 from
Wago, PLCnext from
Phoenix Contact, and Revolution Pi from Kunbus) provide the features of traditional PLCs on an
open platform.
PID Controllers
PLCs may include logic for single-variable feedback analog control loop, a
PID controller. A PID loop could be used to control the temperature of a manufacturing process, for example. Historically PLCs were usually configured with only a few analog control loops; where processes required hundreds or thousands of loops, a
distributed control system (DCS) would instead be used. As PLCs have become more powerful, the boundary between DCS and PLC applications has been blurred.
Programmable logic relays (PLR)
In more recent years, small products called programmable logic relays (PLRs) or smart relays, have become more common and accepted. These are similar to PLCs and are used in light industries where only a few points of I/O are needed, and low cost is desired. These small devices are typically made in a common physical size and shape by several manufacturers and branded by the makers of larger PLCs to fill out their low-end product range. Most of these have 8 to 12 discrete inputs, 4 to 8 discrete outputs, and up to 2 analog inputs. Most such devices include a tiny postage-stamp-sized LCD screen for viewing simplified ladder logic (only a very small portion of the program being visible at a given time) and status of I/O points, and typically these screens are accompanied by a 4-way rocker push-button plus four more separate push-buttons, similar to the key buttons on a VCR remote control, and used to navigate and edit the logic. Most have a small plug for connecting via RS-232 or RS-485 to a personal computer so that programmers can use simple applications in general-purpose OS like MS Windows,
macOS
macOS (; previously OS X and originally Mac OS X) is a Unix operating system developed and marketed by Apple Inc. since 2001. It is the primary operating system for Apple's Mac (computer), Mac computers. Within the market of ...
or
Linux, that have user-friendly (G)UIs, for programming instead of being forced to use the tiny LCD and push-button set for this purpose. Unlike regular PLCs that are usually modular and greatly expandable, the PLRs are usually not modular or expandable, but their price can be two
orders of magnitude less than a PLC, and they still offer robust design and deterministic execution of the logic.
A variant of PLCs, used in remote locations is the
remote terminal unit or RTU. An RTU is typically a low power, ruggedized PLC whose key function is to manage the communications links between the site and the central control system (typically
SCADA
Supervisory control and data acquisition (SCADA) is a control system architecture comprising computers, networked data communications and graphical user interfaces for high-level supervision of machines and processes. It also covers sensors and ...
) or in some modern systems, "The Cloud". Unlike factory automation using high-speed
Ethernet
Ethernet () is a family of wired computer networking technologies commonly used in local area networks (LAN), metropolitan area networks (MAN) and wide area networks (WAN). It was commercially introduced in 1980 and first standardized in ...
, communications links to remote sites are often radio-based and are less reliable. To account for the reduced reliability, RTU will buffer messages or switch to alternate communications paths. When buffering messages, the RTU will timestamp each message so that a full history of site events can be reconstructed. RTUs, being PLCs, have a wide range of I/O and are fully programmable, typically with languages from the
IEC 61131-3 standard that is common to many PLCs, RTUs and DCSs. In remote locations, it is common to use an RTU as a gateway for a PLC, where the PLC is performing all site control and the RTU is managing communications, time-stamping events and monitoring ancillary equipment. On sites with only a handful of I/O, the RTU may also be the site PLC and will perform both communications and control functions.
See also
*
Industrial control systems
*
Industrial safety systems
*
PLC technician
*
1-bit architecture
References
Bibliography
*
*
*
Further reading
* Daniel Kandray, ''Programmable Automation Technologies'', Industrial Press, 2010 , Chapter 8 ''Introduction to Programmable Logic Controllers''
*
{{Authority control
Industrial automation
Industrial computing
Computer engineering
Wikipedia articles with ASCII art