A Programmable Logic Controller
A Programmable Logic Controller
Contents
[hide]
1. 1 Features
1. 3.1 Example
4. 4 System scale
5. 5 Programming
6. 6 User interface
7. 7 Communications
8. 8 History
9. 9 See also
[edit] Features
Control panel with PLC (grey elements in the center). The unit consists of separate
elements, from left to right; power supply, controller, relay units for in- and output
The main difference from other computers is that PLCs are armored for severe
condition (dust, moisture, heat, cold, etc) and have the facility for extensive
input/output (I/O) arrangements. These connect the PLC to sensors and actuators.
PLCs read limit switches, analog process variables (such as temperature and
pressure), and the positions of complex positioning systems. Some even use
machine vision. On the actuator side, PLCs operate electric motors, pneumatic or
hydraulic cylinders, magnetic relays or solenoids, 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 relays, cam timers, and drum sequencers. Often, a single
PLC can be programmed to replace thousands of relays. 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 logic
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 list 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 control, distributed control systems and networking.
The data handling, storage, processing power and communication capabilities of
some modern PLCs are approximately equivalent to desktop computers. 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-3 standard, PLCs can be programmed using standards-based
programming languages. A graphical programming notation called Sequential
Function Charts is available on certain programmable controllers.
| |
| Low Level High Level Fill Valve |
|------[/]------|------[/]----------------------(OUT)---------|
| | |
| | |
| | |
| Fill Valve | |
|------[ ]------| |
| |
| |
An analog system might use a water pressure sensor or a load cell, 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 "hysteresis" which essentially creates a "deadband" 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 hammer. Backup and maintenance methods can make a real system
very complicated.
[edit] Programming
Early PLCs, up to the mid-1980s, 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. 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 memory but now the program is stored in the PLC either
in battery-backed-up RAM or some other non-volatile flash memory.
Early PLCs were designed to replace relay logic systems. These PLCs were
programmed in "ladder logic", 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 Logic, a Very High Level Programming Language designed to program
PLCs based on State Transition Diagrams.
Recently, the International standard IEC 61131-3 has become popular. IEC 61131-3
currently defines five programming languages for programmable control systems:
FBD (Function block diagram), LD (Ladder diagram), ST (Structured text, similar to
the Pascal programming language), IL (Instruction list, similar to assembly language)
and SFC (Sequential function chart). 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.
[edit] Communications
PLCs usually have built in communications ports usually 9-Pin RS232, and
optionally for RS485 and Ethernet. Modbus or DF1 is usually included as one of the
communications protocols. Others' options include various fieldbuses such as
DeviceNet or Profibus. Other communications protocols that may be used are listed
in the List of automation protocols.
[edit] 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, Massachusetts.
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 Morley, who is considered to be the "father" of the PLC. The Modicon
brand was sold in 1977 to Gould Electronics, and later acquired by German
Company AEG and then by French Schneider Electric, the current owner.
One of the very first 084 models built is now on display at Modicon's headquarters in
North Andover, Massachusetts. 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 Siemens, Allen-Bradley,
ABB, Mitsubishi, Omron, and General Electric.