All Topics  
Programmable logic controller

 

 

 

 

 

Programmable logic controller


 
 



A programmable logic controller (PLC) or programmable controller is a digital computer used for automationAutomation

Automation, roboticization or industrial automation or numerical control is the use of control systems such as c...
 of industrial processes, such as control of machinery on factory assembly lineAssembly line

An assembly line is a manufacturing process in which parts are added to a product in a sequential manner using optimally pl...
s. Unlike general-purpose computers, the PLC is designed for multiple inputs and output arrangements, extended temperature ranges, immunity to electrical noise, and resistance to vibration and impact. Programs to control machine operation are typically stored in battery-backed or non-volatile memory. A PLC is an example of a real timeReal Time

Real Time is a webcast based on the long-running British science fiction television series Doctor Who which was then...
 system since output results must be produced in response to input conditions within a bounded time, otherwise unintended operation will result.

Features


The main difference from other computers is that PLCs are armored for severe conditions (dust, moisture, heat, cold, etc) and have the facility for extensive input/outputInput/output

In computing, Input/output, or I/O, is the collection of interfaces that different functional units of an information proce...
 (I/O) arrangements. These connect the PLC to sensorSensor

Overview Most sensors are electrical or electronic, although other types exist....
s and actuatorActuator

An actuator is the mechanism by which an agent acts upon an environment....
s. PLCs read limit switchSwitch

A switch is a device for changing the course of a circuit....
es, analog process variables (such as temperature and pressure), and the positions of complex positioning systems. Some even use machine visionMachine vision

Machine vision is the application of computer vision to industry and manufacturing....
. On the actuator side, PLCs operate electric motorElectric motor

An electric motor converts electrical energy into kinetic energy....
s, pneumatic or hydraulic cylinders, magnetic relayRelay

A relay is an electrical switch that opens and closes under control of another electrical circuit....
s or solenoidSolenoid

A solenoid is a loop of wire, often wrapped around a metallic core, which produces a magnetic field when an electrical curre...
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 computer network that plugs into the PLC.

PLCs were invented as replacements for automated systems that would use hundreds or thousands of relayRelay

A relay is an electrical switch that opens and closes under control of another electrical circuit....
s, cam timerFacts About Cam timer

A cam timer is an electromechanical system for controlling a sequence of events automatically....
s, and drum sequencers. Often, a single PLC can be programmed to replace thousands of relayRelay

A relay is an electrical switch that opens and closes under control of another electrical circuit....
s. Programmable controllers were initially adopted by the automotive manufacturing industry, where software revision replaced the re-wiring of hard-wired control panels when production models changed.

Many of the earliest PLCs expressed all decision making logic in simple ladder logicLadder logic

Ladder logic is a method of drawing electrical logic schematics....
 which appeared similar to electrical schematic diagrams. The electricians were quite able to trace out circuit problems with schematic diagrams using ladder logic. This program notation was chosen to reduce training demands for the existing technicians. Other early PLCs used a form of instruction listInstruction list Summary

Instruction List is one of the 5 languages supported by the IEC 61131-3 standard....
 programming, based on a stack-based logic solver.

The functionality of the PLC has evolved over the years to include sequential relay control, motion control, process controlProcess control

Process control is a statistics and engineering discipline that deals with architectures, mechanisms, and algorithms for con...
, distributed control systemDistributed control system

A distributed control system is part of a manufacturing system....
s and networkingComputer network

A computer network is a group of interconnected computers....
. The data handling, storage, processing power and communication capabilities of some modern PLCs are approximately equivalent to desktop computerDesktop computer

A desktop computer is a personal computer made for use on a desk in an office or home and is distinguished from portable com...
s. PLC-like programming combined with remote I/O hardware, allow a general-purpose desktop computer to overlap some PLCs in certain applications.

Under the IEC 61131-3IEC 61131-3

IEC 61131-3 is an international standard first published in December 1993 by the IEC....
 standard, PLCs can be programmed using standards-based programming languages. A graphical programming notation called Sequential Function ChartSequential function chart

Sequential function chart is a graphical programming language used for PLCs....
s is available on certain programmable controllers.

PLC compared with other control systems


PLCs are well-adapted to a range of automationAutomation

Automation, roboticization or industrial automation or numerical control is the use of control systems such as c...
 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 in ladder logicLadder logic

Ladder logic is a method of drawing electrical logic schematics....
 (or function chart) notation. 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 economic 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 of places.

For high volume or very simple fixed automation tasks, different techniques are used. For example, a consumer dishwasherDishwasher

A Dishwasher is a mechanical device for cleaning food utensils for preparation, keeping, serving and eating and drinking....
 would be controlled by an electromechanical cam timerCam timer

A cam timer is an electromechanical system for controlling a sequence of events automatically....
 costing only a few dollars in production quantities.

A microcontrollerMicrocontroller

A microcontroller is a computer-on-a-chip used to control electronic devices....
-based design would be appropriate where hundreds or thousands of units will be produced and so the development cost (design of power supplies and input/output hardware) 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 busses economically use PLCs instead of custom-designed controls, because the volumes are low and the development cost would be uneconomic.

Very complex process control, such as 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.

PLCs may include logic for single-variable feedback analog control loop, a "proportional, integral, derivative" or "PID controllerPID controller Summary

A proportional-integral-derivative controller is a common feedback loop component in industrial control systems ....
." 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 systemDistributed control system

A distributed control system is part of a manufacturing system....
 (DCS) would instead be used. However, as PLCs have become more powerful, the boundary between DCS and PLC applications has become less clear-cut.

PLCs have similar functionality as Remote_Terminal_Units. An RTU, however, usually does not support control algorithms or control loops. As hardware rapidly becomes more powerful and cheaper,
RTUs, PLCs and DCSDistributed control system

A distributed control system is part of a manufacturing system....
s are increasingly beginning to overlap in responsibilities, and many vendors sell RTUs with PLC-like features and vice versa. The industry has standardized on the IEC 61131-3 functional block language for creating programs to run on RTUs and PLCs, although nearly all vendors also offer proprietary alternatives and associated development environments.

Digital and analog signals

Digital or discrete signals behave as binary switches, yielding simply an On or Off signal (1 or 0, True or False, respectively). Push buttons, limit switches, and photoelectric sensorPhotoelectric sensor

A photoelectric sensor, or photoeye, is a device used to detect the presence of an object by using a light transmitter, ofte...
s are examples of devices providing a discrete signal. Discrete signals are sent using either voltageVoltage

Voltage is the difference of electrical potential between two points of an electrical network, expressed in volts ....
 or current, where a specific range is designated as On and another as Off. For example, a PLC might use 24 V DC I/O, with values above 22 V DC representing On, values below 2VDC representing Off, and intermediate values undefined. Initially, PLCs had only discrete I/O.

Analog signals are like volume controls, with a range of values between zero and full-scale. These are typically interpreted as integer values (counts) by the PLC, with various ranges of accuracy depending on the device and the number of bits available to store the data. As PLCs typically use 16-bit signed binary processors, the integer values are limited between -32,768 and +32,767. Pressure, temperature, flow, and weight are often represented by analog signals. Analog signals can use voltageVoltage

Voltage is the difference of electrical potential between two points of an electrical network, expressed in volts ....
 or current with a magnitude proportional to the value of the process signal. For example, an analog 4-20 mA4-20 mA

4-20 mA is an analog electrical transmission standard for industrial instrumentation and communication....
 or 0 - 10 V input would be convertedAnalog-to-digital converter

An analog-to-digital converter is an electronic circuit that converts continuous signals to discrete digital numbers....
 into an integer value of 0 - 32767.

Current inputsCurrent loop Overview

A current loop describes two different electrical signalling schemes....
 are less sensitive to electrical noise (i.e. from welders or electric motor starts) than voltage inputs.

Example

As an example, say a facility needs to store water in a tank. The water is drawn from the tank by another system, as needed, and our example system must manage the water level in the tank.

Using only digital signals, the PLC has two digital inputs from float switchFloat switch

A float switch is a device used to sense the level of liquid within a tank....
es (tank empty and tank full). The PLC uses a digital output to open and close the inlet valveValve Overview

A valve is a device that regulates the flow of fluids by opening, closing, or partially obstructing various passageways....
 into the tank.

When the water level drops enough so that the tank empty float switch is off (down), the PLC will open the valve to let more water in. Once the water level raises enough so that the tank full switch is on (up), the PLC will shut the inlet to stop the water from overflowing.

| |
| Low Level High Level Fill Valve |
|------[ ]------|------[/]----------------------(OUT)---------|
| | |
| | |
| | |
| Fill Valve | |
|------[ ]------| |
| |
| |

An analog system might use a water pressure sensorPressure sensor

A pressure sensor measures the pressure, typically of fluids, at a point in a fluid network....
 or a load cellLoad cell

A load cell is typically an electronic device that is used to convert a force into a differential electrical signal....
, and an adjustable (throttling)dripping out of the tank, the valve adjusts to slowly drip water back into the tank.

In this system, to avoid 'flutter' adjustments that can wear out the valve, many PLCs incorporate "hysteresisHysteresis

Hysteresis is a property of systems that do not instantly follow the forces applied to them, but react slowly, or do not ret...
" which essentially creates a "deadbandDeadband

Deadband is an area of a signal range or band where no action occurs....
" of activity. A technician adjusts this deadband so the valve moves only for a significant change in rate. This will in turn minimize the motion of the valve, and reduce its wear.

A real system might combine both approaches, using float switches and simple valves to prevent spills, and a rate sensor and rate valve to optimize refill rates and prevent water hammerWater hammer

Water hammer is a pressure surge or wave caused by the kinetic energy of a fluid in motion when it is forced to stop or chan...
. Backup and maintenance methods can make a real system very complicated.

System scale


A small PLC will have a fixed number of connections built in for inputs and outputs. Typically, expansions are available if the base model does not have enough I/O.

Modular PLCs have a chassis (also called a rack) into which is placed modules with different functions. The processor and selection of I/O modules is customised for the particular application. Several racks can be administered by a single processor, and may have thousands of inputs and outputs. A special high speed serial I/O link is used so that racks can be distributed away from the processor, reducing the wiring costs for large plants.

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 HMIUser interface

The user interface is the aggregate of means by which people interact with a particular machine, device, computer program o...
 (Human-Machine Interface) devices such as keypads or PCPersonal computer

A personal computer is usually a microcomputer whose price, size, and capabilities make it suitable for personal usage....
-type workstations. Some of today's PLCs can communicate over a wide range of media including RS-485, Coaxial, and even Ethernet for I/O control at network speeds up to 100 Mbit/s.

Programming

Early PLCs, up to the mid-1980s, were programmed using proprietary programming panels or special-purpose programming terminalsComputer terminal

A computer terminal is an electronic or electromechanical hardware device that is used for entering data into, and displayin...
, which often had dedicated function keys representing the various logical elements of PLC programs. Programs were stored on cassette tape cartridges. Facilities for printing and documentation were very minimal due to lack of memory capacity. More recently, PLC programs are typically written in a special application on a personal computer, then downloaded by a direct-connection cable or over a network to the PLC. The very oldest PLCs used non-volatile magnetic core memoryMagnetic core memory

Magnetic core memory, or ferrite-core memory, is an early form of computer memory....
 but now the program is stored in the PLC either in battery-backed-up RAMRam Summary

Depending on context, RAM, Ram or ram may be an acronym or a full word, and it can mean one of the following:...
 or some other non-volatile flash memoryFlash memory

Flash memory is a form of non-volatile computer memory that can be electrically erased and reprogrammed....
.

Early PLCs were designed to replace relay logic systems. These PLCs were programmed in "ladder logicLadder logic

Ladder logic is a method of drawing electrical logic schematics....
", which strongly resembles a schematic diagram of relay logic. Modern PLCs can be programmed in a variety of ways, from ladder logic to more traditional programming languages such as BASIC and C. Another method is State LogicState logic

A State logic control system is a programming method created for PLCs....
, a Very High Level Programming Language designed to program PLCs based on State Transition DiagramFacts About State diagram

State diagrams are used to graphically represent finite state machines....
s.

Recently, the International standard IEC 61131-3IEC 61131-3 Summary

IEC 61131-3 is an international standard first published in December 1993 by the IEC....
 has become popular. IEC 61131-3 currently defines five programming languages for programmable control systems: FBD, LD, ST, IL and SFC. These techniques emphasize logical organization of operations.

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.

User interface


PLCs may need to interact with people for the purpose of configuration, alarm reporting or everyday control.
A Human-Machine InterfaceUser interface

The user interface is the aggregate of means by which people interact with a particular machine, device, computer program o...
 (HMI) is employed for this purpose. HMI's
are also referred to as MMI's (Man Machine Interface) and GUI (Graphical User Interface).

A simple system may use buttons and lights to interact with the user. Text displays are available as well as graphical touch screens. Most modern PLCs can communicate over a network to some other system, such as a computer running a SCADAFacts About SCADA

SCADA is the acronym for Supervisory Control And Data Acquisition....
 (Supervisory Control And Data Acquisition) system or web browser.

Communications

PLCs have built in communications ports usually 9-Pin RS232, and optionally for RS485 and EthernetEthernet

Ethernet is a large and diverse family of frame-based computer networking technologies for local area networks ....
. ModbusModbus

Modbus is a serial communications protocol published by Modicon in 1979 for use with its programmable logic controllers....
 or DF1 is usually included as one of the communications protocols. Others' options include various fieldbusFieldbus

A Fieldbus is an industrial network system for real-time distributed control....
es such as DeviceNetDeviceNet

DeviceNet is a communication protocol used in the automation industry to interconnect control devices for data exchange....
 or ProfibusProfibus

PROFIBUS is the most popular type of fieldbus with more than 14 million nodes in use worldwide....
. Other communications protocols that may be used are listed in the List of automation protocolsList of automation protocols

Automation ProtocolsThis Wikipedia page was started to summarize all communication network protocols used for Building, Industria...
.

History

The PLC was invented in response to the needs of the American automotive industry. Before the PLC, control, sequencing, and safety interlock logic for manufacturing automobiles was accomplished using relays, timers and dedicated closed-loop controllers. The process for updating such facilities for the yearly model change-over was very time consuming and expensive, as the relay systems needed to be rewired by skilled electricians. In 1968 GM Hydramatic (the automatic transmission division of General Motors) issued a request for proposal for an electronic replacement for hard-wired relay systems.

The winning proposal came from Bedford Associates of Bedford, MassachusettsBedford, Massachusetts

Bedford is a town in Middlesex County, Massachusetts, USA....
. The first PLC, designated the 084 because it was Bedford Associates' eighty-fourth project, was the result. Bedford Associates started a new company dedicated to developing, manufacturing, selling, and servicing this new product: Modicon, which stood for MOdular DIgital CONtroller. One of the people who worked on that project was Dick MorleyDick Morley

Dick Morley is known as the "father" of the PLC since he was involved with the production of the first programmable logic co...
, who is considered to be the "father" of the PLC. The Modicon brand was sold in 1977 to Gould ElectronicsGould Electronics

Gould Electronics Inc. -- founded in 1884 and based in Chandler, Arizona -- is a company involved in the electronics and sem...
, and later acquired by German Company AEGAEG

AEG was a German producer of electronics and electrical equipment....
 and then by French Schneider ElectricSchneider Electric

Schneider Electric is a large, worldwide company of French origin....
, the current owner.

One of the very first 084 models built is now on display at Modicon's headquarters in North Andover, MassachusettsNorth Andover, Massachusetts

North Andover is a town in Essex County, Massachusetts, United States....
. It was presented to Modicon by GM, when the unit was retired after nearly twenty years of uninterrupted service.

The automotive industry is still one of the largest users of PLCs, and Modicon still numbers some of its controller models such that they end with eighty-four.

PLCs are used in many different industries and machines such as packaging and semiconductor machines. Well known PLC brands are SiemensSiemens AG

Siemens AG is the world's largest conglomerate company....
, Allen-BradleyAllen-Bradley

Allen-Bradley is a company that specializes in industrial control and automation products, such as programmable logic contro...
, ABB, MitsubishiMitsubishi Summary

The , Mitsubishi Group of Companies, or Mitsubishi Companies, all refer to a large grouping of independently operated ...
, OmronOMRON

The is a Japanese electronics company in Kyoto....
, and General ElectricGE Fanuc Automation North America, Inc.

General Electric Fanuc, a joint partnership between FANUC LTD....
.

External links