Process Control and Optimization, VOLUME II - Unicauca

vendors offer an applications or programming manual that ... Provide for future expansion ...... control logic decision-making, enabling versatility rarely pos-.
593KB taille 11 téléchargements 201 vues
5.4

PLCs: Programmable Logic Controllers W. N. CLARE, G. T. KAPLAN, D. R. SADLON, A. C. WIKTOROWICZ R. A. GILBERT

(1995)

C. W. WENDT

(1985)

(2005)

Reviewed by B. G. Lipták (1995)

906 © 2006 by Béla Lipták

Types of Input/Output (I/O):

Discrete I/O: 120 VAC, 220 VAC, 0 to 5 V DC, 0 to 24 V DC, transistor-transistor logic (TTL) Analog I/O: 4 to 20 mA, 1 to 5 V DC, 0 to 10 V DC, –5 to +5 V DC, –10 to +10 V DC Special I/O: Thermocouple, RTD, stepper motor (pulses), strain gauge, high-speed counters, PID

Typical Specifications:

Scan Time per 1000 Words (1 K) of Logic: 0.1 to 50 ms, depending on manufacturer and enhanced software features Word Size: 4, 8, 16, or 32 bit (typical) Amount of I/O: Nano PLC — under 15 I/O, Small or Micro PLC—15 to 128 I/O; Medium PLC—128 to 512 I/O; Large PLC—512 and greater I/O Size of Memory: Small PLC—256 to 2 K words (K = 1024 bits, bytes, or words of digital data); medium PLC—2 K to 12 K words; large PLC—12 K words and larger Type of Memory: CMOS (complementary metal oxide semiconductor) RAM (random access memory); BBRAM (battery-backed RAM); EEPROM (electrically erasable PROM); and Flash memory Environmental Conditions: 0 to 60°C (32 to 140°F), relative humidity, to 95% noncondensing, 115 VAC ± 15% and 230 VAC ± 15%

Costs:

Nano PLC Hardware: Basic PLC with CPU, 12 I/O points costs $99 to $200 Small PLC Hardware: Basic PLC with CPU, 2 K to 8 K RAM memory, 20 to 40 I/O points costs $200 to $1000 (extra discrete I/O when available costs $10/point) Medium PLC Hardware: Basic system with 256 I/O points costs $5,000 to $8,000; with 512 I/O points costs $10,000 to $20,000; and with 1024 points costs $14,000 to $28,000 (RAM quantity adjusted to handle designated I/O count) Large PLC Hardware: $15,000 to $70,000 (cost driven by network and information display requirements) Software and Engineering: Software costs range from 50 to 100% of the hardware cost. System engineering costs and documentation costs each range from 25 to 50% of hardware cost. Therefore, the total cost (without installation labor) is about twice (if not more) the hardware cost.

Support Equipment Cost:

Handheld programmers cost $100 to $500; PC-supported programming software costs $2500 to $5000

Partial List of PLC Suppliers:

ABB (Elsag-Bailey Controls) (www.ABB.com) Allen-Bradley/Rockwell Automation (www.AB.com) Automation Direct (www.Automationdirect.com) Danaher (Eagle Signal Controls) (www.Dancon.com) Eaton (Cutler-Hammer) (www.EatonElectrical.com) Emerson (Westinghouse) (www.EmersonProcess.com) Fuji Electric Corp. (www.FujiElectric.com) G.E. Fanuc Automation (www.GEIndustrial.com) Giddings & Lewis (www.GLControls.com) Idec Corp. (www.Idec.com)

5.4 PLCs: Programmable Logic Controllers

907

International Parallel Machines Inc. (www.ipmiplc.com) Mitsubishi Electric (www.meau.com) Modicon/Schneider Electric (www.Modicon.com) Moeller Corp. (www.Moeller.net) Omega Engineering (www.Omega.com) Omron Electronics Inc. (www.Omron.com) Reliance Electric Co./Rockwell Automation (www.Reliance.com) Siemens (www.sea.siemens.com) Toshiba Inc. (www.Toshiba.com) Triconex/Invensys (www.Triconex.com) Uticor Technology Inc. (www.Uticor.com) (Note: The most popular PLCs are Allen-Bradley, Modicon, Siemens, and GE Fanuc.) Partial List of HMI Software Suppliers:

GE Fanuc (iFix & Cimplicity) (www.gefanucautomation.com) Rockwell Software (RSView) (www.software.rockwell.com) Invensys (Wonderware InTouch) (www.wonderware.com)

INTRODUCTION A programmable logic controller (PLC) is an industrially hardened computer-based unit that performs discrete or continuous control functions in a variety of processing plant and factory environments. Originally intended as relay replacement equipment for the automotive industry, the PLC is now used in virtually every industry imaginable. Though they were commonly referred to as PCs before 1980, PLC became the accepted abbreviation for programmable logic controllers, as the term “PC” became synonymous with personal computers in recent decades. PLCs are produced and sold worldwide as stand-alone equipment by several major control equipment manufacturers. In addition, a variety of more specialized companies produce PLCs for original equipment manufacturer (OEM) applications. Typically, PLC vendors can supply large volumes of application notes for their products. Most major PLC vendors also publish detailed articles about applications in technical journals and prepare papers for engineering societies and industrial symposia on control, automation, and so forth. Each manufacturer’s software package usually has its own application programming techniques. Vendors also are a valuable source of “how-to” information, providing training courses in their local office or at the factory as well as actual hands-on experience to help users gain familiarity with the PLC. Most vendors offer an applications or programming manual that provides insight on how to use available programming features. Of course, familiarity with one brand of PLC generally helps the engineer learn to use other brands quickly.

HISTORY The automotive industry fostered the development of the PLC primarily because of the massive rewiring required each time a model change occurred. Solid-state logic is much easier to change than relay panels, and this advantage was reflected in the cost of installing and operating PLCs instead of traditional relay

© 2006 by Béla Lipták

systems. Table 5.4a lists some of the milestones in the development of PLCs. Table 5.4b provides a summary of the differences among various technologies that perform logic control. Bedford Associates, the forerunner of Modicon, designed the first PLC in 1968 for the Hydramatic Division of General Motors Corporation to eliminate costly scrapping of assemblyline relays during model changeovers and to replace unreliable electromechanical relays. The objectives of the program were to: • • • •

Extend the advantages of static circuits to 90% of the machines in the plant Reduce machine downtime related to controls problems Provide for future expansion Include full logic capabilities, except for data reduction 1 functions

Richard Morley, a Bedford engineer, is credited with the original PLC design and the creation of ladder logic 2 programming. Morley says the diagrams on which ladder logic is based, however, probably originated in Germany years 3 before to describe relay circuitry. Describing the technology of the day, Morley explains, “Automatic control of industrial metalworking and assembly operations in 1969 were mostly by relays and clock-driven electromechanical devices. Relays ran hot and tended to beat themselves to death with their persistent 60-cycle hum and contact arcings. Electromechanical timers/sequencers were much like enlarged music box 4 mechanisms and were maintenance headaches.” Describing the early years of the PLC, Morley recounts, “We had some real problems in the early days of convincing people that a box of software, albeit cased in cast iron, could do the same thing as 50 feet of cabinets, associated relays, and wiring.” Morley recounted that in 1969, “all computers required a clean, air-conditioned environment, yet were still prone to frequent malfunctions. … Thus, even though PLCs were and are special, dedicated computers, considerable effort was made to not identify PLCs as computers due to the poor reliability of computers and the fact that they were not things procured

908

PLCs and Other Logic Devices

TABLE 5.4a History of Programmable Logic Controller (PLCs) 1968

PLC designed for General Motors Corporation to eliminate costly scrapping of assembly-line relays during model changeovers.

1969

First commercial PLCs manufactured for automotive industry as electronic equivalent of relays.

1971

First application of PLCs outside the automotive industry.

1972

Allen-Bradley (AB) adds the first computer interface to its PLC, read-write controller, and off-line software documentation package.

1973

Introduction of “smart” PLCs for arithmetic operations, printer control, data move, matrix operations, CRT interface, etc.

1974

First CRT-based program panel for PLC.

1975

Introduction of analog proportional, integral, derivative (PID) control, which made possible the accessing of thermocouples, pressure sensors, etc. Allen-Bradley coins the PLC acronym.

1976

First use of PLCs in hierarchical configurations as part of an integrated manufacturing system. AB introduces Remote I/O.

1977

Introduction of PLCs based on microprocessor technology.

1978

PLCs gain wide acceptance; sales approach $80 million. USDATA introduced REACT, the industry’s first microprocessor-based, user-configurable, interactive color graphics workstation for use with 2 PLCs.

1979

Integration of plant operation through a PLC communications system with AB’s DataHighway.

1980

Introduction of intelligent input and output modules to provide high-speed, accurate control in positioning applications.

1981

IBM introduces PC/XT using DOS. Data highways enable users to interconnect many PLCs up to 15,000 feet from each other. More 16-bit PLCs become available. Color graphics CRTs are available from several suppliers.

1982

Larger PLCs with up to 8192 I/O become available.

1983

“Third-party” peripherals, including graphics CRTs, operators’ interfaces, “smart” I/O networks, panel displays, and documentation packages, become available from many sources.

1985

IBM-PC programming terminal introduced. 6 AB PLC-5/15 introduced with built-in RIO and peer-to-peer DH+ directly on processor card. 2,5 Intellution introduces the FIX software, the first DOS-based process control system for IBM PCs.

1986

Various other PC HMI software introduced.

1990

Wonderware introduces InTouch, the first MS Windows-based HMI application, and starts a major transition to Windows-based “open” 2,5 technology.

1991

Small (Brick) PLCs enter the market place.

1992

Networked block I/O developed. Moore Products manufactures APACS, the first control system using IEC 1131-3 standard allowing DCS function blocks, PLC ladder, sequential 2 function chart, and structured text to be used and combined within a single controller.

1993

Ethernet and TCP/IP connectivity appear on PLCs.

1994

AB launches DeviceNet, an open device-level network.

4

by manufacturing operations.” Unlike computers of that era, the programmable controller was designed to be reliable. Morley explains, “No fans were used, and outside air was not allowed to enter the system for fear of contamination and corrosion. Mentally, we had imagined the programmable controller being underneath a truck, in the open, and being driven around—driven around in Texas, driven around in Alaska. Under those circumstances, we wanted it to survive. The other requirement was that it stood on a pole, helping run a utility or a microwave station which was not climate controlled, and not serviced at all. Under those circumstances, would it work for the years that it was intended to be? Could it be walled in? Could it be bolted in a system that was expected to last 20 years?” Upon arriving for a client demonstration, the PLC

© 2006 by Béla Lipták

was accidentally dropped on the floor. The client was surprised that not only did the PLC work perfectly, but that Modicon 3 staff expected it to work after being dropped. Bedford Associates demonstrated the Modicon 084 solid5 state sequential logic solver at GM in 1969. The fundamental advantage that PLCs introduced was that they used programming rather than rewiring to configure for a new application. PLC programming could be done much quicker than the traditional rewiring methods. In addition, solid-state devices offered greater reliability, required less maintenance, and had 2,6 a longer life than mechanical relays, all in a smaller footprint. The 1970s and 1980s were dominated by proprietary systems and software. Odo Struger, often called the father of Allen5 Bradley’s PLC, is credited with the PLC acronym. The early

5.4 PLCs: Programmable Logic Controllers

909

TABLE 5.4b Cost Advantages over Relay Relays

Solid-State Controls

Microprocessor

Minicomputer

PLCs

Hardware cost

Low

Equal

Low

High

High to low, depending on number of controls

Versatility

Low

Low

Yes

Yes

Yes

Usability

Yes

Yes

No

No

Yes

Troubleshooting maintainability

Yes

No

No

No

Yes

Computer-compatible

No

No

Yes

Yes

Yes

Arithmetic capability

No

No

Yes

Yes

Yes

Information gathering

No

No

Yes

Yes

Yes

Industrial environment

Yes

No

No

No

Yes

Programming cost

(Wiring) High

(Wiring) High

Very high

High

Low

Reusable

No

No

Yes

Yes

Yes

Space required

Largest

Large

Small

OK

Small

1980s saw a cross pollination between PLCs and distributed control systems (DCSs). PLCs, for example, had already begun incorporating distributed control functions so they could be linked much in the way that DCSs were linked. Building on the trend, software companies sprang up in great numbers 2 during this time. During the 90s, standardization and open systems were the main themes. Ethernet peer-to-peer networking became available from virtually all PLC manufacturers. EEPROM and Flash memories replaced the EPROMs of the 1980s. PCs and CRTs in general became accepted and started to replace switches and lights on control system panels. Small PLCs called “Bricks” were introduced to the marketplace. Redundancy for PLCs became a standard product. Many PLC systems were upgraded to address Y2K concerns. The first few years of the 21st century have seen a consolidation of PLC manufacturers. Very small nano or pico PLCs, some as small as industrial relays, have appeared. Safety PLCs featuring triple redundancy were introduced. LCD base operator interface panels have largely displaced CRTs, especially on the plant floor.

functions—including counting, timing, and complex mathematical applications — to its repertoire. Most medium-sized PLCs can perform proportional, integral, derivative (PID), feedforward, and other control functions as well (see Chapter 2). In addition, medium-sized and large-scale PLCs have data highway capabilities and can function well in DCS environments. Nano PLCs In the 1990s, small PLCs were introduced with limited functionality. Today’s small PLCs generally contain all of the software and networking power that used to be confined to the larger 8 units. A small PLC can be amazingly inexpensive. This small, dedicated controller is enclosed in a single-mounted hardened case. It is intended to be a relay replacement unit and provide reliable control to a stand-alone section of a process. Small PLCs offer many of the same functions as larger models but with limited flexibility of adding I/O points. They are especially suited to limited applications with only basic communications requirements. “For instance, a $99 PLC with four PID loops and two serial ports, matched with a $79 four channel analog plug-in option card, is a cost-effective choice over traditional 9 relays and a single-loop controllers.”

PLC SIZES Today’s PLC is at best a distant relative of the first- and second-generation PLCs built during the 1970s and 1980s. There are now many PLC sizes to select from, ranging from nano- and micro-size devices with 12–30 I/O, to large supervisory control units with built-in PC and networking capa7 bilities. The modern medium-sized PLC performs all the relay replacement functions expected of it but also adds many other

© 2006 by Béla Lipták

BASIC PLC COMPONENTS A PLC manufactured by virtually any company has several common functional parts. Figure 5.4c illustrates a generic PLC architecture. The diagram shows a central processor, memory, I/O, power supply, and programming and peripheral device subsections. Each is discussed below.

910

PLCs and Other Logic Devices

Programming device

Power supply

CPU

Memory I/O Bus

I/O System modules Output devices

Solenoids motor starters etc.

Input devices

Switches pushbuttons etc.

FIG. 5.4c PLC architecture.

Central Processor Unit (Real Time) The central processor unit (CPU) performs the tasks necessary to fulfill the PLC function. Among these tasks are scanning, I/O bus traffic control, program execution, peripheral and external device communications, special function or data handling execution (enhancements), and self-diagnostics. Central processing units that use microprocessor-based (VLSI) systems are both more powerful and more flexible than earlier technologies such as TTL or CMOS. It should be noted that the CPU and memory units are considered separate functions. One common method for rating how a PLC performs these tasks is its scan time. Scan time is roughly defined as the time it takes for the PLC to interrogate the input devices, execute the application program, and provide updated signals to the output devices. Scan times can vary from 0.1 ms per 1 K (1024) words of logic to more than 50 ms per 1 K of logic. Although scan times are often given as performance measures, there are factors that make them misleading. Word size varies from 4 bits to 32 bits depending on the PLC model and manufacturer. Special features, which vary from preprogrammed drum times to full floating-point mathematics, have different processing times and may generate longer scan times. Because of these variables, other performance factors must be considered when selecting a PLC. The user should take into account the application as well as the speed of the controller. Generally speaking, process applications need to take advantage of microprocessor power, whereas machine control applications are usually more concerned with program execution speed. Newer CPUs are equipped with communications ports such as ASCII (RS-232), remote I/O (RIO), and Ethernet built into the CPU module. Some CPUs now even support timed interrupts.

© 2006 by Béla Lipták

Redundancy The new breed of data highways can provide a process with a “hot” backup PLC to take over in the event of a PLC processor failure. Figure 5.4d depicts a PLC system with redundant CPUs and I/O. Until recently, it was difficult or impossible to configure an ordinary PLC into a redundant hot backup system. Siemens was one of the first PLC makers to introduce redundant configurations for PLCs. For some people, redundancy is very important. Why is redundancy important? Safety in areas containing explosives or flammables, unattended operation, and environmental liabilities lead the list of concerns addressed 10 in part by redundancy. Safety PLCs For several years, Triconex was one of a few manufacturers that offered a triplicate PLCs for use in safety systems. Fault tolerant systems called programmable safety systems (PSSs) are now offered by a number of PLC manufacturers. “The big difference between a regular PLC and a PSS is that all the triple redundant features needed in both hardware and software are built into the latter. That can be done with regular PLCs but it’s a significant engineering 11 challenge.” See Section 5.8 for further information on safety PLC systems. It’s important to acknowledge that having redundant CPUs doesn’t necessarily provide system-wide redundancy. Nor does it protect against all types of errors. A programming error, such as divide by zero, or an infinite loop will stop a redundant CPU just as fast as a nonredundant CPU. Memory Unit 12

The memory unit of the PLC serves several functions. It is the library where the application program is stored. It is also where the PLC’s executive program is stored. An executive program functions as the operating system of the PLC, which serves as the program that interprets, manages, and executes the user’s application program. Finally, the memory unit is the part of the PLC where process data from the input modules and control data for the output modules are temporarily stored as data tables. This includes I/O status bits, counter values, timer preset and accumulated values, and other stored constants or variables. Typically, an image of these data tables is used by the CPU and, when appropriate, sent to the output modules. The basic PLC memory element is the word. A word is a collection of 4, 8, 16, or 32 bits that is used to transfer data about the PLC. As word length increases, more information can be stored in a memory location. Even with the ambiguity associated with word length, PLCs that provide the equivalent of 32 K of 8-bit memory locations can execute application programs that are moderately complicated and interact with 50–100 discrete I/O points. Memory can be volatile or nonvolatile. Volatile memory is erased if power is removed. Obviously, this is undesirable, and most units with volatile memory provide battery backup to ensure there will be no loss of program in the event of a power outage. This is often referred to as battery-backed

5.4 PLCs: Programmable Logic Controllers

911

Host computer System control room LDT terminal

Programming highway

10 MB Winchester disk

LA-120 computer terminal

7890 micro 11 supervisory computer Spare PLC-3 #3

T4 industrial terminal

1797 operator terminal

Terminal highway

Plant

1797 engineering terminal

LA-120 report printer

1797 supervisor terminal

LA-120 alarm printer

Data acquisition highway

Central control room

Backup PLC-3 #1

Main PLC-3 #1

Backup data acquisition highway

Backup PLC-3 #2

Main PLC-3 #2

Remote I/O

Plant areas

P A D D I I I O D

P A D D I I I O D

P A D D I I I O D

P A D D I I I O D

P A D D I I I O D

P A D D I I I O D

P A D D I I I O D

P A D D I I I O D

Area 1 raw mtls.

Area 2 premix

Area 3 mixing

Area 4 cooking

Area 5 drying

Area 6 process utilities

Area 7 packaging

Area 8 product storage

FIG. 5.4d Hot backup PLC networking. (Courtesy of Allen-Bradley.)

RAM. When batteries are used, they must be replaced on a regular basis, typically 1–2 years. Some small PLCs use a large capacitor instead of a battery to avoid this maintenance issue. Nonvolatile memory does not change state on loss of power and is used in cases in which extended power outages or long transportation times to job sites (after program entry) are anticipated. Core memory was widely used in the 60s and early 70s but is no longer used. In the late 70s a solid-state nonvolatile memory called programmable read-only memory (PROM) became popular. The user programmed the PROM by applying a high current pulse in order to fuse internal links to set individual bits to 1 or 0. This procedure was 13 irreversible. This required a separate piece of equipment called a PROM burner. Then erasable PROMs became available. Like the PROMs, EPROMs could be programmed by

© 2006 by Béla Lipták

the user. The advantage was that EPROMs could be erased optically, through exposure to ultraviolet light through a quartz window on the chip, and then rewritten electrically. A drawback to EPROM devices was that they had to be removed from the equipment to be reprogrammed.

EEPROM and Flash Memory New memory technologies, electrically erasable (or Alterable) PROMs (EEPROMs, 2 E PROMs, or EAPROMs) and Flash memories, became available in the 90s and have essentially replaced the earlier types. EEPROM and Flash memories can be electrically reprogrammed by the user, but without removal from the system, and without the use of exterior programming devices such as 14 PROM programmers. Flash is also used for the firmware used by PLCs and intelligent modules. Revision changes to

912

PLCs and Other Logic Devices

the firmware can be “Flash upgraded” in the field, without equipment disassembly. EEPROM and Flash memory are the current choices for nonvolatile memory. I/O Systems The I/O group includes all types of modules, from dry contact modules to intelligent I/O to remote I/O capabilities. Inputs are defined as real-world electrical signals that give the controller real-time status of process variables such as level, pressure, flow, temperature, weight, analysis results, position, or status (hand switches, pushbuttons, alarm contacts, and so on). These signals can be analog or digital, low or high frequency, maintained or momentary. Typically, they are presented to the 15,16 PLC as a varying voltage, current, or resistance value. Based on the status sensed or values measured, the PLC controls various output modules to operate devices such as valves, motors, pumps, and alarms. PLC manufacturers are providing more and more types of input and output capabilities in their products. There are, however, many third-party peripherals that aid the PLC in interfacing to the field devices. One of the most important functions of the I/O is its ability to filter, condition, and isolate real-world signals (0–120 VAC, 0–24 V DC, 4–20 mA, 0–10 V, and thermocouples) and convert these to the low signal levels (typically 0–5 V DC max) in the PLC I/O bus. This is accomplished by use of optical isolators. A light-emitting diode (LED) generates a light that optically turns on a phototransistor. Because the only thing normally connecting the input to the output is light, there is an excellent isolation between input and output voltages. Only the electrical breakdown of the isolator (typically over 1000 V) limits the voltage isolation achieved with these devices. Typical discrete I/O schematics are shown in Figures 5.4e, 5.4f, and 5.4g. Most I/O systems are modular in nature; that is, a system can be arranged by use of modules that contain multiples of I/O points. These modules can be composed of 1, 4, 8, 16, or 32 points and plug into the existing bus structure. The bus structure is really a high-speed multiplexer that carries information back and forth between the I/O modules and the central processor unit. Higher point densities are possible, but their selection may involve a trade-off in wire size used, as well as the ease of wire harness installation to the module. In small PLCs, the CPU and I/O are generally contained in a single enclosure and may or may not be expandable. These have been nicknamed “Bricks” because the size of the enclosure is similar to the size of a brick. In most medium and large PLCs, plug-in I/O modules are used to convert the I/O signal level to one that is compatible with the bus architecture. These modules can be composed of 1, 4, 8, 16, or 32 points, depending on the manufacturer’s standard design. For small projects (20–256 I/O), I/O requirements are usually easy to define and group. A systematic approach is required for medium-sized projects (256–1024 I/O), however, in order to avoid confusion of I/O allocation. Obviously, the organization

© 2006 by Béla Lipták

LS−1

LS−2

Stop

Start

Electrical optical isolation

Filter

Electrical optical isolation

Filter

Electrical optical isolation

Filter

Electrical optical isolation

Filter

To the processor Input bus

Address lines To I/O Bus Logic circuitry

Threshold device

Remote contact

Photo isolator Circuit status indicator

Filter Common external

Hot 115 V

AC source

FIG. 5.4e 4 Typical input area; typical AC input unit.

of I/O for large systems (1024 I/O and above) requires careful planning. PLC manufacturers are typically very good at backward compatibility. When new models of CPUs are introduced, Light sensitive transistor

LED

Signal input

Signal output

Light path Optical

On Off

Input

Isolator Filtering

FIG. 5.4f 4 Electrical optical isolator.

On Off

Output

5.4 PLCs: Programmable Logic Controllers

Storage

Electrical optical isolation

Power drives

MS 1

Storage

Electrical optical isolation

Power drives

MS 2

Storage

Electrical optical isolation

Power drives

SOL 1

Storage

Electrical optical isolation

Power drives

SOL 2

Address lines from memory Output bus From the processor Blown fuse indicator

Circuit status indicator

Varistor Remote device

Signal

Filter

Fuse Common Hot external 115 V AC source

FIG. 5.4g 4 Typical output area; typical AC output unit.

they are generally able to use the I/O modules made years before. For example, at least one PLC manufacturer’s current PLC still works with I/O modules introduced nearly 30 years ago — an impressive feat considering the advances in technology during that time span. In other cases, when manufacturers have changed lines, other companies have stepped in to support and expand the older PLC equipment. Some manufacturers assign I/O memory locations based on I/O type and position in the rack. Care must be taken in these systems when adding I/O to these systems, as it might cause an automatic readdressing of existing I/O modules. Because the program doesn’t alter itself, it would need to be updated for it to function like it did before the I/O module addition. Local I/O There are at least three different types of racks: local, expansion, and remote. A local I/O base can hold the CPU module, power supply, and optionally I/O modules. Expansion racks that are close by (usually within the same panel) are either plugged into the side of the local I/O base or connected by a short parallel cable. Standard cabling is provided for connection from the remote I/O base to the PLC processor. These cables are generally high-speed serial cables to simplify installation. The PLC processor generally plugs into a dedicated slot in the rack. Some manufacturers allow multiple processors in a single rack.

© 2006 by Béla Lipták

913

The I/O base (rack or housing) is used to hold the I/O module in place and to provide a termination point for the wiring. The bases may be mounted anywhere in the control enclosure; however, there are cable length and free space requirements that must be met. Some racks are sized to mount directly into a standard 19-in. rack enclosure. The majority of bases mount horizontally to allow proper module cooling. Some manufacturers define how much space must be reserved around the rack to permit proper circulation. A terminal strip is built into the mounting base for field connections so that no wiring need be disturbed in order to remove or replace a module. These bases typically hold various quantities of I/O — anywhere from 1 to 128 I/O points. Some PLC vendors provide wire-way as part of the rack structure to “clean up” the panel design. As each new generation of I/O becomes increasingly dense, the systems become progressively harder to wire. Interposing terminal blocks between the field connections and the rack may become standard in the future. Some manufacturers already offer prewired field terminals that mount in a panel and are equipped with a cable that plugs directly onto the I/O module. Digital Inputs Pushbuttons, limit switches, or even electromechanical relay contacts are familiar examples of digital, contact closure type signals. Input modules are typically transistor-triggered and have built-in time delays to protect against contact bounce. The input signal from a field device (limit switch) has to be energized for some amount of time in order for the module to notify the processor of a true “on” condition. The modules are available in a number of voltages including DC voltages (14, 15–30, 24, 120, 240), TTL (5 V DC), and AC voltages (24, 48, 120, 240). They come in 8, 16, or 32 points per module. Discrete I/O modules come equipped with an LED indicator light to indicate the status of each I/O point in the module (on or off) for troubleshooting. The input module LED indicates field side status of the pushbutton. Modules, especially high-density modules, often share a common neutral between multiple inputs. This means that the input voltages must be referenced to the same neutral. AC signals powered from different power sources cannot be mixed within the shared group. Using a different module for the different sources or using isolating relays solves the problem. Digital Outputs Digital or discrete outputs (DOs) can be used to power pilot lights, solenoid valves, or annunciator windows (lamp box). The discrete output module uses a solid-state switch (triac) to power a field device, such as a motor starter, a valve, or lights. Outputs are available for voltage ranges of 5–240 V at currents up to 5 A, with typical 120 V outputs operating at 1–2 A maximum. Solid-state drivers of this type are not intended to drive large loads directly (e.g., a large motor starter). Highly inductive loads or those with a high surge current may also require an interposing dry contact relay in order to power the field device or a resistor-capacitor (RC) network to control transients.

914

PLCs and Other Logic Devices

Both manufacturers and third-party vendors offer dry contact modules. These modules solve the problems normally associated with triacs: low power and uncertainty of failure state. Triac outputs also “leak” some current when they are off. When attached to high impedance devices such as Sonalerts or LED pilot lights, this leakage current can cause continuous or intermittent operation. A voltage-dropping resistor can be added across the load to solve this, but the resistors are often large and run hot. Some designers simply add inexpensive isolation relays as needed to address this problem. Manufacturers rate their equipment output current at different temperatures. All current ratings for solid-state outputs will vary with ambient temperatures. Therefore, one should be sure to check the PLC output rating for each application and manufacturer. Built-in fusing on output modules is becoming standard in the industry and provides good protection for overload conditions. The type of fuse depends on the module, and the way in which fuses are accessed varies from one PLC manufacturer to another. Some wiring arms have individual fuses for each output. Discrete I/O modules come equipped with an LED indicator light to indicate the status of each output on the module (on or off) for troubleshooting. The output module LED generally indicates logic side status. Analog Inputs Analog modules are sometimes referred to as A/D (analog-to-digital) modules. They provide optical isolation for electrical noise protection and are typically arranged in a quad module or an eight-point module. The analog I/O system is designed to interface with analog field devices such as flowmeters, pressure transmitters, and valve positioners. This system accepts inputs of 0–5 V DC, 0–10 V DC, –5 to +5 V DC, –10 to +10 V DC, 0–20 mA, or 4–20 mA. Precisions of 1 in 4,096 (12-bit), 1 in 32,768 (15-bit), or 1 in 65,536 (16-bit) are commonly available. Direct thermocouple and RTD input modules typically accept eight to ten points each. On-board cold junction compensation is often included with thermocouple input modules, and many different types of thermocouples (B, C, E, J, K, N, R, S, T ), RTD (100 Ω platinum, 120 Ω nickel, 10 Ω copper), and mV signals (0–50 mV, 0–100 mV) can be accommodated. Analog Outputs Analog outputs can drive signals to variable-speed drives, control valves, and other analog devices. The output analog module can output a signal of 4–20 mA current loop as well as 0–10 V DC, 0–5 V DC, –5 to +5 V DC, and –10 to +10 V DC. Most source their power from the back plane. Some loops require external loop power supplies. Register I/O Systems One additional type of input signal, the register input, reflects the computerized nature of the PLC. The register input is particularly useful when the process condition is represented by a collection of digital signals delivered to the PLC at the same time. A binary-coded decimal

© 2006 by Béla Lipták

(BCD) thumbwheel is a good example of an input device that is compatible with a register input port. If the thumbwheel represents three and one-half digits of process data, then all 14 data output wires from the thumbwheel would provide their digital signal directly to the PLC register input unit, which would, in turn, signal the condition and transfer the data to the central processor unit. The register I/O system provides direct interface to multibit data field devices, such as thumbwheel switches, position encoders, and digital readouts to the PLC. These devices are typically TTL level, which allows interface to other types of electronic hardware as well. Intelligent I/O and other specialpurpose I/O requirements are becoming increasingly common. Specialty Modules Specialty modules are designed to solve a single interface problem. X/Y positioner modules can be included in this category, as well as servo axis controllers, stepper motor outputs, and even maintenance access modules. These modules are a further extension of the distributed technology. Combination I/O modules combine either digital or analog inputs and outputs on a single module. They are particularly useful in small systems. High-Speed Modules Fast-response I/O is currently offered in both discrete and analog versions. Discrete rapid response modules are facilitated by the PLC logic, but the output does not rely on ladder logic scan times to get updated. High-speed analog modules provide quicker analog-to-digital and digitalto-analog (D/A) conversions. This gives PLCs the ability to control faster PID loops and to make analog measurements of assembly-line parts (weight, for example). High-speed pulse counter modules provide the ability to interface with turbine meters, stepper motors, and optical encoders. Highspeed pulses cannot normally be interfaced to PLC inputs because of the scan time of the ladder logic. These modules provide an interface that does not rely on the scan time, so the PLC is able to monitor fast pulses that indicate position or flow. They can often be configured as high-speed up counters, up/down counters for quadrature use, high-speed interrupts, pulse catchers for very fast pulses, and adjustable filter inputs. PID loop coprocessor and temperature controller modules are also available. Intelligent I/O Modules Intelligent I/O modules include all modules that are able to perform processing functions. Because the tasks performed by the PLC are further distributed, greater speed and reliability for the overall system can be realized. Intelligent I/O modules give the PLC multiple additional capabilities, which may include memory storage and retrieval, computing tasks, and communications. Memory modules provide additional room to store data points, alarm messages, lookup tables, and the like. This approach leaves the main operating memory free for the control tasks. Computing modules give PLCs the ability to perform true computer functions using a language like Basic. Basic modules can be used for a variety of things, such as complex math abilities.

5.4 PLCs: Programmable Logic Controllers

Because they usually come with two or more serial ports, they can be used for handling specialized ASCII protocols and they can demultiplex a multiplexer data stream. Of course they can be programmed as Modbus masters or slaves. Again, the realtime tasks are left in the main memory, but tasks such as setpoint calculation, formation of data, and some operator interface tasks may be placed in the computer module. Other in-rack modules include complete computers, state language coprocessors, and real-time interrupt modules. Clock modules that fit into the I/O bus may be considered part of this group. These modules provide real-time and day/date functions upon interrogation from the PLC. Most are backed up by a battery to ensure time keeping during power outages. I/O Simulators Some I/O simulators used to develop and debug programs can be categorized in the I/O enhancement group. These specific devices are typically hardware modules that can be plugged into the PLC. I/O simulators generally look like input cards except switches are built into the module for testing. PLC Power Supply The power supply may be integral or separately mounted. It always provides the isolation necessary to protect solidstate components from most high-voltage line spikes. The power supply converts power line voltages to those required by the solid-state components. All PLC manufacturers provide the option to specify line voltage conditions (typically 120 VAC, 240 VAC, or 12/24 V DC). In addition, the power supply is rated for heat dissipation requirements for plant floor operation. This dissipation capability allows PLCs to have high-ambient-temperature specifications and represents an important difference between PLCs and PCs for industrial applications. The power supply drives the I/O logic signals, the central processor unit, the memory unit, and possibly some peripheral devices. As I/O is expanded, some PLCs may require additional power supplies in order to maintain proper power levels. The power supply generally does not provide power to field devices, though some manufacturers provide external terminals to permit this use. The additional power supplies may also be separate or part of the I/O structure. The power requirements of all the I/O modules and CPU or remote I/O adapters are added together for each voltage used to make sure that the power supply is large enough.

ADDITIONAL PLC COMPONENTS Communications Modules Communications modules can provide the PLC with a range of capabilities, from simple ASCII output strings to communications networking. The storage of ASCII messages for a

© 2006 by Béla Lipták

915

printer or display can be contained outside the main memory of the PLC, and the data can be output when required. Fullsystem communications networking capabilities are provided with network modules, giving the designer the ability to multidrop PLCs off a single operator interface device or a supervisory computer. A wide variety of devices communicate using ASCII, including weight scales, bar code scanners, some operator interfaces, and modems. Modules included in this category also include telephone and radio modem modules. Remote I/O and peer-to-peer are specialized communications modules that are discussed below. Remote I/O Robust industrial networks make distributed I/O feasible. Networks enable I/O modules to be located close to field 8,11 devices, resulting in labor and material savings for wiring. Often manufacturers provide a remote I/O distribution panel or module to serve the efficient multiplexing of the modules on the remote I/O rack back to the CPU. A remote I/O base is similar to the local I/O base except it holds a remote I/O adapter (or has it built-in) instead of the CPU. Most mediumsized PLCs can support several remote racks, which in turn contain 4, 8, or 16 I/O modules. It may or may not be possible to mix various modules in a remote rack. Specific information about module compatibility and remote I/O multiplexing is available from the manufacturer. This information is required to facilitate PLC selection and sizing for specific applications. Whereas in most systems the module has the intelligence to communicate with the CPU, some systems require the use of serial interface modules. In any case, some provision is made to accept register input data from the input modules and to send this data (on or off status of field device) in serial format to the PLC processor. Serial data are also converted into register data to be sent to the output module. This is normally a proprietary protocol. Remote I/O adapters need to be configured for a particular drop, either by programming or a switch setting on the module itself. Remote I/O is very often an RS-485-based system. The end modules in the RIO network are usually terminated with a resistor that matches the impedance of the cable used. RIO communications speeds range from 56 K to 230 Kbps. Remote I/O is broken down into two distinct types: the integral type, which allows a limited transmission distance (up to 15,000 ft, or 4,500 m); and the transmitter/ receiver type, which allows virtually unlimited transmission capability. Most PLC manufacturers and third-party peripherals manufacturers can provide some form of either type. Technology is advancing rapidly in this area, as systems change from fiber optics to microwave and radio transmission. Many manufacturers are now offering flexible remote I/O solutions. Often these are modular, plug-together systems instead of being rack based. Designed to be located next to the wireway, they incorporate built-in terminal blocks for direct wiring.

916

PLCs and Other Logic Devices

Open vs. Proprietary I/O Networks Proprietary networks have a compelling advantage: They are easy to put together. If you buy all your network components from one supplier, even if they’re for an open network like DeviceNet, you avoid potential configuration problems. Even so, offering both open 11 and proprietary systems is important to most manufacturers. Besides proprietary remote I/O networks, a variety of open protocols exist to enable I/O data interchange. These include Modbus, DeviceNet, Profibus, HART, and Fieldbus, among others. Because these are open, a number of different manufacturers offer products based on them. Ethernet is becoming a major factor by providing a backbone that can carry the 17 diverse protocols of nonproprietary I/O communications.

Hierarchical control

Supervisory PC

Management control

Management reports

PLC

PLC

PLC

PLC

Process A

Process B

Process C

Process D

Peer-to-Peer Communications Many PLC manufacturers have responded to the increasing industry demands for equipment that allows communications 18,19,20,21 among multiple process areas. The original master control layout shown in Figure 5.4h is adequate for PLC control of moderate-size applications of perhaps 100–500 I/O points, but as the application grows the PLC becomes overburdened under this arrangement. The hierarchical plan illustrated in Figure 5.4i provides a supervisory PLC controlling network that reduces this burden. The plan allows for a “master” PLC that oversees the process and controls a set of “slave” PLCs that control the actual process activities in the plant. An alternate approach is illustrated in Figure 5.4j. This distributed control system allows dedicated PLCs to control sections of the process with an interface to management. As indicated in the figure, this interface could be to a human operator. This person would monitor selected data from the collection of PLCs. Any management decisions generated from this data are passed back to the PLCs by an input terminal. Under normal conditions it is expected that each dedicated PLC can monitor and control its section of the process.

Raw materials

PLC

PLC

PLC

Inspect

Inspect

Package

PLC

FIG. 5.4i Hierarchical control. (Courtesy of Allen-Bradley.)

Most major PLC manufacturers currently offer their own network communications for their products (e.g., DataHighway+, ControlNet, Modbus +, and TI-WAY). Various network protocols exist and efforts to generate standards are gaining momentum. Instrument and control organizations such as the Instrumentation, Systems, and Automation (ISA) Society constantly exert pressure on the PLC industry to agree on one or at least a few communications standards. In any event, there are several communications philosophies of interest. Some of these are outlined below.

Process

Master control

PLC

Material handling

Machine tool

Assembly

Conveyors

Packaging

PLC

PLC

Inspection

Testing

Machine

PLC PLC PLC PLC

Management input PLC PLC PLC

FIG. 5.4h With master control, one PLC controls a number of related machines and processes. This system is simple but may require long runs of multiple-wire cables, and the entire system is vulnerable to the failure of the one PLC. (Courtesy of Allen-Bradley.)

© 2006 by Béla Lipták

Process

Machine

PLC Computer numerical control

Machine

Management data

Machine

Machine

PLC

PLC

Conveyors

PLC

Packaging

Test and inspection

FIG. 5.4j Distributed control. (Courtesy of Allen-Bradley.)

5.4 PLCs: Programmable Logic Controllers

To other TI networks

To other public industrial networks

Bridge

Gateway

917

Tiway II

Tiway adaptor

Tiway adaptor

Tiway adaptor

Robot

CNC

Non TI PLC

Operator interface

Data exchange

Programmer

Computer

Gateway Network controller

5TI

TI510

Peer to peer communications

Gateway TI 5100 Tiway I

5TI data bus line

5TI

TI520

PM550

Data storage

5TI

TI530

5TI

TI510

TI520

TI500

5TI

PM550

Operator interface

FIG. 5.4k Peer-to-peer communications. (Courtesy of Texas Instruments.)

The computer interface device group is a rapidly expanding section of PLC peripheral devices. These devices allow peer-to-peer communications (i.e., one PLC connected directly to another), as well as network interaction with various computer systems. In fact, this group of devices will certainly expand in number as communications standards become commonly accepted and more and more products are 22 provided to facilitate such network interactions. Most PLC manufacturers have already addressed the need for peer-to-peer communications among PLCs on a distributed network. Without this feature, every time one PLC needs to know the status of another part of the machine or plant, it must interrupt the activities of the supervisory computer in order to get the information (Figure 5.4k) or interface through status I/O points. The ability of one PLC to “talk” to another along the data highway greatly speeds the control activities of each machine and allows the supervisory computer to “concentrate” on its tasks. Some PLC manufacturers and third parties are offering universal communications networking based on open protocols such as Modbus. This is likely to be the favored method in the future, because the need for networking different brands of PLCs together will increase. More PLC vendors are adding Ethernet compatibility to their systems. Ethernet has become the open architecture of

© 2006 by Béla Lipták

choice for a variety of industries. However, care must be taken to ensure that the PLC is never connected to the Internet. Doing so opens the door to all sorts of security issues, especially 11 hackers. Using a PC in combination with firewalls, encryp23 tion, and passwords helps address some of these issues. Peripheral Devices The popularity of PLCs has led to the creation of a strong thirdparty peripheral manufacturing industry. These companies are always developing new products that assist the PLC user with interfacing a specific application to a PLC. Two categories of these products — operator stations and programming/ documentation tools — are presented below. The operator stations facilitate operator interface with the PLC-controlled process to monitor process variables, to alter program parameters, to conduct on-line program alterations, and to conduct troubleshooting procedures. Programming and documentation tools include products supplied by the manufacturers or made avail24,25 able by third-party vendors. Local Operator Interface Operational aids include a variety of resources that range from switches and lights, to color graphics CRTs, to equipment or support programs that can give the operator specific

918

PLCs and Other Logic Devices

access to processor parameters. In this situation the operator is usually allowed to read and modify timer, counter, and loop parameters but not access the program itself. Some aids facilitate the interaction between the PLC and printers to deliver process information in a desired format. Some devices have the ability to set up an entire panel and plug into the PLC through external RS-232-C ports, saving enormous panel and wiring costs. The most basic of operator interfaces is switches and lights. These are directly wired to the input and output cards and relay information back and forth to the PLC. Analog signals can also be used with potentiometers, panel meters, and chart recorders. Individual loop controllers can be wired to accept a remote set point from the PLC. Register I/O is used with BCD thumbwheels and BCD displays. Annunciator panels can also be used. Although just about all control panels have some switches and lights, the cost of using a display has fallen to such an extent that it is often not cost-effective to use switches and lights as the primary interface. PLC backup systems that are used if the PLC is being serviced still use these simple devices. Annuniciator panels are still used in some industries. They are light boxes that have alarm descriptions illuminated when an output is activated. The PLC generally supplies one output point per alarm. The lamp test, silence, and acknowledge functions are built into the annunciator assembly. Text display units are also available in a number of sizes, which display a preprogrammed message when signaled by the PLC. Other message systems are available that can dial a preprogrammed phone number and deliver a page, a text message, or a verbal description of the triggering event. Some switches and light assemblies became available in standard arrangements that connected directly using remote I/O technology. Some are available that communicate using the Modbus protocol. Operator stations include those provided by manufacturers intended to be used with their particular PLC and those offered by third parties for use with either a particular brand or anyone’s PLC. These stations may include devices such as timer/counter access modules (TCAMs), loop access modules (LAMs), data terminals, color graphics consoles, computers, printers, and manual backup stations. Most PLC manufacturers provide an operator interface unit (OIU) designed specifically for their PLC. These are either part of the standard system or offered as an option. They are sometimes mounted directly on the PLC or can be panel-mounted and cabled back to the controller. Functions include access to read/write register data, simple programming, and diagnostics. Some specialized devices, such as TCAMs, LAMs, and OIUs, provide operator interaction with PLC internal registers and loop tables. This gives the systems designer the ability to provide real-time changing of variables, loop tuning and inspection, manual control of analog outputs, and the ability to provide batch- or menu-type information at low cost. Communications with the PLC are multidropped over an RS-422 or a similar differential line. Unauthorized data

© 2006 by Béla Lipták

entry is prevented with software locks, keylock protection, or both. TCAMs and LAMs have become less popular as the cost of graphic interface panels has dropped, because their functions are easily added to these newer interface panels. Some PLCs can support communications directly with dumb data terminals. However, dumb terminals have been replaced almost completely by PCs. Many PLCs are able to provide communications directly to printers. A stand-alone PLC system can often provide performance reports, alarm logging, and the like without ever involving a computer. This feature is usually somewhat limited, because PLCs were designed primarily to control the process machine. Large amounts of data, sophisticated print logs, and multiple alarms are not really within the realm of a stand-alone PLC system. This type of data manipulation is too cumbersome and requires too much memory for most PLCs. In addition, many PLCs are located in the process floor, which is generally not a good environment for printers. Small touch screen panels have become very popular in recent years. They provide basic reporting of status information and commands in a small format. Some also provide built-in alarm management functions. They are meant to replace the traditional switches, lights, and meters. The main disadvantage these small screens have is that they are fundamentally different from the computers in the control room. The screen graphics for the local panels must be developed separately. They generally are limited to the individual control panel they are associated with. With the advent of plant floor Ethernet and relatively inexpensive computers, it has become practical to provide the same screens at the local control panel that are displayed in the control room. An industrial computer or a regular desktop computer in a sealed computer enclosure is used. The same software that is used in the control room is loaded onto the local computer, which uses the local area network (LAN) to communicate with the supervisory control and data acquivision (SCADA) server. This has many advantages. Because the screens are shown on the same type of hardware, they can be simply copied from the control room computers. Obviously, this helps reduce development and maintenance costs. Because these communicate with the entire plant, an alarm can be investigated at any control panel throughout the plant. Human-Machine Interface Intelligent human-machine interfaces (HMIs) can be networked into a total distributed system to give a redundant or local interface to the system (Figure 5.4l). This technique can be used to provide the control room interface, while the supervisory computer supports its own interfaces. Another powerful technique is to allow the networking of a few PLCs together solely for the purpose of providing a single humanmachine interface to all parts of the system (Figure 5.4m). This solution is ideal for small PLC users because it is very economical yet allows expansion as the plant grows.

5.4 PLCs: Programmable Logic Controllers

Intelligent HMI

Terminals

Supervisory computer

Intelligent multiplexer Data hiway PLC

PLC

PLC

PLC

FIG. 5.4l Local or redundant HMI in network.

Color graphics consoles offer process graphics and communications facilities simultaneously to many brands of PLCs. Because of this ability, HMIs are sometimes used to tie multiple PLC systems together. These systems range from those that can simply be purchased and put on-line with a minimum of engineering effort to those that require some programming. The basic differences are in flexibility. Those that do not require programming may not be able to provide the custom menus and graphics that are required. The ease of communications with different types of PLCs also varies according to manufacturer. Finally, the method of generating the graphics pages differs greatly. Most color graphics consoles offer multiple graphics pages that are animated by reading data tables in the PLCs. Operators enter the data by means of standard keyboards, user-configurable industrial keyboards, light pens, touch screens, and the like. Different graphics pages may be selected with preformatted menus or custom menus programmed by the user or the systems house. Development stations are often required to give the final user the ability to change graphics menus or key commands after the initial project is completed.

Supervisory computer

Terminal

Report printer

Operator’s MMI Stage 3

Operator’s MMI

Intelligent multiplexer Data hiway

PLC

PLC Stage 1

PLC

PLC Stage 2

FIG. 5.4m Entry-level networking grows with user’s needs.

© 2006 by Béla Lipták

PLC

919

Computer systems can be made to perform humanmachine interface functions. Indeed, the color graphics consoles described in the previous paragraph are simply computers with standard graphics and communications software packages. Most PLC manufacturers provide board-level additions or modules that give the PLC the ability to converse via the RS-232 or Ethernet with nearly any computer. Of course, both the communications software and the particular applications software must be generated to provide an interface. Many vendors and systems houses are providing communications packages for various PLCs to run on microcomputers and PCs. These small systems offer low-cost operator interfaces to PLCs, providing data handling capabilities and the ability to be networked into a true distributed architecture. Microcomputers that have the ability to multitask, access large amounts of both RAM and nonvolatile memory, have proper software support, and are able to be networked will provide a good investment in terms of operator interface functions as well as total system capability. Printers Printers have always been an important part of the PLC system both as a development tool and for handling some of the operator interface functions. Two types of printers are commonly found in control rooms: dot matrix printers and laser printers. The dot matrix printers are used to print alarms and events as they occur. They are unique because as soon as a line of text is sent to the printer, the operator can read it. This is not possible with most types of printers currently popular. The laser printers are used for reports or screen printout and are either color or black and white. Programmers and Workstations The programmer unit provides an interface between the PLC and the user during program development, start-up, and troubleshooting. The instructions to be performed during each scan are coded and inserted into memory with the programmer. Programmers vary from small handheld units the size of a large calculator to desktop stand-alone intelligent CRTbased units. These units come complete with documentation, reproduction, I/O status, and on-line and off-line program26,27 Most PLCs can use a PC as the programming ming ability. tool. A program for the PC allows it to interface with a serial or Ethernet port in the PLC. Programming units are the liaison between what the PLC understands (words) and what the engineer desires to occur during the control sequence. Some programmers have the ability to store programs on floppy disks or on a hard drive. Another desirable feature is automatic documentation of the existing program. This is accomplished by a printer attached to the programmer. With off-line programming, the user can write a control program on the programming unit, then take the unit to the PLC in the field and load the memory with the new program, all without removing the PLC. Selection

920

PLCs and Other Logic Devices

of these features depends on user requirements and budget. On-line programming allows cautious modification of the program while the PLC is controlling the process or the machine. Manufacturers of PLCs provide two basic programming tools. These are handheld programmers and programming software that runs on PCs. The programming software may not be an option if a small PLC is purchased. Dedicated CRT programmers, once manufactured for the sole purpose of programming PLCs, have been replaced with PCs running PLC programming software. The handheld programmer enables the operator to enter a program one contact at a time. These units are widely used because they are rugged, portable, and easy to operate. They are very cost-effective and give an engineer the capability to enter a program and to diagnose trouble in logic and field devices. The programming software on a PC provides the engineer with a visual picture of the program in the PLC. Ladder diagrams are drawn on the screen, just as they would be drawn on paper. Design and troubleshooting time is reduced. With menu-driven software, programming training time is decreased. Information is stored on either floppy disks or the hard drive. Programs can be copied from one disk to another and then verified without need for loading the PLC’s memory. With stand-alone programming an engineer can develop a program on the PC and then load it into the PLC. PLC programming software generally provides complete documentation capability, including ladder diagrams, crossreference listing, I/O listing, user-defined contacts, and coil names along with commentary above each network or rung. All of this is can be sent to a printer for hard copy documentation. The screen typically shows eight rungs of ladder logic by 11 contacts across. The ladder diagrams can be placed into the real-time mode, which allows visual contact status. A whole screen of contacts and coils can be updated in as fast as a few seconds. Laptop PCs are often used for portability. With a modem connection, these programs can be used at remote locations for programming and troubleshooting. PLC programming software may be restricted for use on only one PC. Security keys are one way to obtain this isolation. Security keys are devices that plug into the back of the computer or a special key disk. Without the key the software will not run. Some manufacturers use alternate security schemes such as providing extra keys at group prices or issuing site license agreements. In any case, it is unlikely that a PLC manufacturer will ever allow the use of programming software on an unlimited number of PCs. Some PC-compatible software allows the PLC to be emulated by the PC. This software is sold by the PLC manufacturer or a licensee and is often model-specific. If the software also offers on-line programming and troubleshooting characteristics, it might be usable on only a single specific PLC. This restriction is achieved by means of software or hardware keys that come with each copy of the software purchased.

© 2006 by Béla Lipták

Terminal

Development MMI Engineering

Report printer

Alarm printer

Operator’s MMI

Supervisory computer

Supervisor’s terminal

Data hiway PLC

PLC

PLC

PLC

PLC

FIG. 5.4n Networking with on-line engineering.

On-line engineering of PLC systems can be configured from a remote location like a control room with the combination of the programming/documentation tools and the distributed network. Systematic start-up and debugging of processes are available with this technique. Figure 5.4n depicts on-line engineering as part of a distributed system.

JUSTIFICATION FOR THE USE OF PLCs For a given control problem, several technologies besides PLCs can be applied to achieve a solution: relays and standalone controllers, DCSs, and software running on PCs. PLCs differ from these technologies as described below. PLCs vs. Relays and Stand-Alone Controllers The main purpose of any control system is to get the process variable under control effectively and reliably. When control options are available, several factors can be taken into consideration in making an implementation decision. Some of these factors include the controller’s cost, versatility, flexibility, and expandability. Cost The ideas associated with cost are discussed first because this is usually the first issue users consider when selecting a control technology. In most cases, the two things initially known about a problem are the results desired and the budget available for fixing the problem. Unfortunately, at the beginning of a project the understanding of the problem is often limited. If the user’s focus on the problem is too narrow, the solution might solve only the perceived symptoms

5.4 PLCs: Programmable Logic Controllers

of the problem while the problem itself may reappear in an alternate form at some other point in the process. The budget assigned to solve a problem should be based not only on the initial investment required for the PLC hardware, but also on the costs associated with labor, maintenance, and downtime. Purchasing a larger and therefore more expensive PLC might in some situations be cost-effective when labor, maintenance, and downtime costs are also considered. Similarly, while PLCs may be more expensive than individual solid-state control units, if the indirect costs are also considered then the PLC becomes a cost-competitive alternative. As the cost of PLCs continues to drop, the cost of small PLCs may be equal to or even be less expensive than the cost of industrial relays. Although significant, cost reductions alone are not the only reason that PLCs are the major replacement candidate for traditional relay logic. Compared with electromechanical relay systems, PLCs offer the following additional advantages: • • • • • • • •

Ease of programming and reprogramming in the plant A programming language that is based on relay wiring symbols familiar to most plant electrical personnel High reliability and minimal maintenance Small physical size Ability to communicate with computer systems in the plant Moderate to low initial investment cost Rugged construction Modular design

Versatility The multifunction capability of a PLC allows control logic decision-making, enabling versatility rarely possible with other systems. The ability to combine discrete and analog logic is a powerful tool for the controls engineer. This is particularly evident in the control of batch processes. Entire start-up and shutdown sequences can be performed by the sequencer logic, and analog logic can be brought in during the batch run. Control of critical start-up parameters, such as temperature and pressure, can be precisely preprogrammed for each start-up step. Temperature stepping is easily programmed, as are the feedforward calculations that are used in some polymer reactors. All of these types of PLC applications 28,29,30,31 are currently in use today and are well documented. Flexibility As a process goes on-line and is refined, the control equipment should be easily reconfigured to accommodate such modifications. The multifunction use of the PLC has already been discussed. In addition, digital blending applications, boiler control of either carbon monoxide or excess oxygen, and some other forms of optimizing control are also within the capabilities of PLCs. Because one common device performs multiple functions in a plant, fewer spare parts are needed, and the programming language is technician-friendly. In addition, the digital nature and selfdiagnostic capabilities are strong additional justification for the PLC.

© 2006 by Béla Lipták

921

Expandability As a process matures, it is inevitable that enhancements will be added. These usually require more inputs and outputs. For hand-wired relay systems this usually necessitates extensive panel changes, which generally are problematic. A PLC easily accommodates the additional I/O without requiring changes in the existing wiring: The new points are merely placed in the system. If a PID loop or two is being added, no panel rework is necessary; only the wiring of the new points and some reprogramming to incorporate them are required. Conversely, if the initially selected PLC is “tight,” additional I/O bases might be necessary. For this reason, most manufacturers recommend sizing the system to allow for 10 to 20% expansion. Another advantage of the PLC is that it allows piecemeal implementation of projects. Systems can be brought on-line quickly and can be gradually converted to the PLC while online. The ability of the PLC to be reprogrammed while operating permits automation of processes that are too expensive to shut down. This technique is valuable to new as well as 32,33 to retrofit projects (revamps). PLC vs. DCS The capabilities of PLCs and DCSs have changed to the extent that today many applications that used to be the exclusive province of one or the other can be handled by both. The technology differences between PLCs and DCSs have evolved to be subtle or nonexistent. Manufacturers that had been making relays for logic and interlock applications developed PLCs, while DCS systems were developed by process control manufacturers with substantial experience in PIDtype analog control. In the past it made good sense to use each type of controller in its area of superior experience. If the bulk of the I/O was digital (discrete), the logical choice was to use a PLC. If the I/O was mostly analog, a DCS system was selected. This logic is no longer universally true, and personal preference and end-user familiarity have become decisive factors in system selection. PLC and DCS comparisons have been taking place for as long as the two systems have existed. What’s odd about this debate is that PLCs define only the controllers, whereas DCSs also include the software, 34 operator interface, and network. In terms of pros and cons between the two designs, PLC I/O is likely to be more rugged and PLCs are likely to handle discrete logic faster than DCS systems. PLCs are also likely to be more desirable because their languages, such as ladder logic, are usually more familiar to plant personnel, and therefore there is less resistance to using them. On the other hand, ladder logic-type languages can be undesirable in some situations because they are not well suited to analog process control. PLCs tend to be sold in a more piecemeal fashion as compared to the integrated systems approach common to DCSs. While PLCs are less expensive than DCSs, the end user often becomes more deeply involved with programming and systems integration issues. Nonetheless, many users find

922

PLCs and Other Logic Devices

PLCs to be a cost-effective solution for small to medium35 sized process plants. Some users have overcome the limitations of PLCs by coupling them to PCs using custom-coded programming. The disadvantage of this approach is that such a nonstandardized system is usually understood fully only by its designer, and when that individual leaves the organization, the system can be ruined. When it comes to communications redundancy and data security, the DCS systems are superior. The DCS systems are also superior in their programming library, in advanced or optimizing control, in self-tuning algorithms, and, particularly, in their total plant architecture and information management capabilities.

Start

Start

Task 1

Event occur

No

Task 2 Sort

Task 3 Task 4

Task 1

Task 2

Task 3

Task 4

PLC vs. Personal Computers The PC is designed to be flexible and handle thousands of different types of applications, but PLCs are especially 35 designed for control. PCs started showing up on the factory floor in the mid-80s in programming and HMI applications. However, now the PC is migrating toward actual control. In response, PLC manufacturers have adapted PC technology, such as Ethernet. Some systems actually provide a “PC on a 11 card” to plug into the PLC back plane. PLCs are often thought of as computers. To a certain extent this is true; however, there are important differences between PLCs and computers. Real-Time Operation/Orientation The PLC is designed to operate in a real-time control environment. The first priority of the CPU is to scan the I/O for status, make sequential control decisions (as defined by the program), implement those decisions, and repeat this procedure all within the allotted scan time. Most PLCs have internal clocks and “watchdog timers” built into their operations to ensure that a software error like “divide by zero” or an endless loop does not send the central processor into an undefined state. When the watchdog time is exceeded, the processor shuts down in a predetermined manner and usually turns off all outputs. In realtime systems, reliability is a big concern. PLC manufacturers’ experience shows mean time between failures (MTBF) ranging from 20,000 to 400,000 hours. “This is far in excess of 3,6 almost any other type of electronic or control equipment.” Environmental Considerations PLCs are designed to operate near the equipment they control. This means they function in hot, humid, dirty, noisy, and dusty industrial environments. Typical PLCs can operate in temperatures as high as 140°F (60°C) and as low as 32º F (0°C), with tolerable relative humidity ranging from 0 to 95% noncondensing. In addition, they have electrical noise immunities comparable with those required in military specifications. Programming Languages and Techniques PLC languages are designed to emulate the popular relay ladder diagram format. This format is read and understood worldwide by

© 2006 by Béla Lipták

(A)

(B)

FIG. 5.4o PLC versus computer. Program structure for a PLC (A) requires sequential execution with a scan, starting with task 1 and proceeding through task 4. The program structure for a general-purpose computer (B) permits task execution in any order.

maintenance technicians as well as engineers. Unlike computer programming, PLC programming does not require extensive special training. Applications know-how is much more important. Although certain special techniques are important for programming efficiency, they are easily learned. The major goal is the control program performance. Another difference between computers and PLCs is the sequential operation of the PLC. Program operations are performed by the PLC in the order they were programmed (Figure 5.4o). This is an extremely useful feature that allows easy programming of shift registers, ring counters, drum timers, and other useful indexing techniques for real-time control applications. Maintenance and Troubleshooting As a plant floor controller, the plant electrician or the instrument technician must maintain the PLC. It would be highly impractical to require computer-type maintenance service. To this end, PLC manufacturers build in self-diagnostics to allow for easy troubleshooting and repair of problems. Most PLC components are modular and simple to isolate; remove-and-replace (system modules) diagnostic techniques are usually implemented.

SUMMARY Table 5.4p together with Figures 5.4q and 5.4r provide illustrative summaries of the PLC characteristics discussed thus far. Table 5.4p illustrates an I/O list for a milling application, while Figure 5.4q shows in some detail the PLC and all its key parts. The CPU is shown in the center of the figure as the PLC processor. Power for this unit is delivered by the

5.4 PLCs: Programmable Logic Controllers

923

TABLE 5.4p Example of a Detailed I/O List for a Milling Machine Input

Definition

XO

Used in Rung(s)*

MOA

Automatic

1– 46

40– 47

40–48

X1

Right Shot

Pin In

L.S. 1

3

–3

9

X2

Left Shot

Pin In

L.S. 2

3

–3

9

X3

Machine

Slide Adv

L.S. 3

7

– 22

X4

Machine

Slide Ret

L.S. 4

3

8

X5

Shot Pins

Out

L.S. 5 & 6

6

– 52

X6

Pump

#1

3M

1

X7

Right Bore

Slide Ret

L.S. 7

11

46

X8

Left Bore

Slide Ret

L.S. 8

12

47

X9

Right Bore

Slide Adv

L.S. 9

3

15

– 19

X10

Left Bore

Slide Adv

L.S. 10

3

15

– 21

X11

Swing

Clamp On

P.S. 1

6

X12

Pull

Clamp On

P.S. 2

5

X13

Swing

Clamp Off

P.S. 3

16

Cycle

Start

2

3

X14

43

44

45

– 17

– 36

– 36

–37

50

51

52

– 39

– 45 X15

Cycle

Stop

1

2

X16

Auto Lube

On/Off

40

48

Complete

Pin

– 40

– 48

X18

X17

Hi Lube

Level

37

– 40

X19

Lo Lube

Level

– 40

– 48

X20

Manual

Light

–1

49

Clamp

On/Off

49

– 52

Shot Pins

In/Out

50

– 52

Clamp

On/Off

51

– 52

X21

Lube

Pull

X22 X23

Swing

*

Rung is a grouping of PLC instructions that controls one output or storage bit. This is represented as one section of a logic ladder diagram.

power supply shown to its right. The programming unit connected directly to it on the left is the way a ladder logic program line, like the one shown just above the CPU, is entered into the controller. Representations of two I/O modules are shown in Figure 5.4r. The input module is on the left of the drawing and indicates a variety of contacts directly attached to seven of the eight points on the module. The point at address zero is shown as a spare for use as a replacement or future enhancement site. The output module shown has all eight of its output addresses (from address 140 through 147) in use. Figure 5.4q shows an example of a remote I/O rack. Although the rack shown (rack No. 2) is powered by the main power supply, that is not a requirement. A remote I/O rack functions the same way as its direct I/O counterpart does. Various modules can be inserted in the rack to match the application’s control needs.

© 2006 by Béla Lipták

PROJECT EXECUTION Like any major enterprise, the PLC project must take into account the important considerations of schedule and budget. The PLC can facilitate the transition, however, by simultaneously pursuing several activities, thereby condensing the overall project schedule. A review of each major activity is presented in the following paragraphs. Systems Analysis The control system should be analyzed as a whole to determine plant control requirements. The PLC plays an integral part in these analyses, and its capabilities should be thoroughly understood by the controls engineer. Vital to systems analysis are the process and instrument diagram (P&ID), the descriptive operational sequence, and a logic diagram

924

PLCs and Other Logic Devices

If LS15 and PB4 are both closed, SOL 3 is energized through the PLC instructions addressed to: LS15 PB4 SOL 3

+

12102 ] [

12105 ] [

02504 ( )

+ PLC (main) power supply

PLC processor

PLC program panel

Remote I/O distribution panel

Remote I/O rack no. 2 L1 1 L2 1

LS 15

R a c k 2

PB 4

Wire No. 02504

SOL 3

Wire no. 12105 Wire no. 12102 SOL 3 LS 15 121 02 121 03 121 PB4 121

LS 15

SOL 3 025 04

(Other I/O devices not shown)

04 05

PB 4

1 User-supplied I/O power

FIG. 5.4q Configuration drawing. (Courtesy of Allen-Bradley.)

or electrical schematic. Part of this evaluation will be system sizing and selection. Once the appropriate PLC is selected and purchase orders are placed, two activities should begin immediately: engineering design and software development. Systems Integrators One of the first decisions is whether to perform the work in-house or have a systems integrator do it. The general trend in the industry is that systems are more likely to be sold to OEMs and system integrators than

© 2006 by Béla Lipták

10

to end users. If an integrator will be used, it should be selected carefully. Some things to consider include: • • • • • •

How well does the integrator know the PLC/HMI/reporting software? How well does it know your industry? How familiar is the integrator with your operations? How well can you define the operation of your project? How good is its training? Will it have time and budget to fine-tune the system?

5.4 PLCs: Programmable Logic Controllers

Outputs

Inputs

10

0

Spare

140

75

2SS Cycle manual off Auto

2

A 1 LT Manual cycle

14 1

15

2

141

142

76

77

8 PB Cycle start

A Chuck clamped 10 LT A 20 SOL Unclamp chuck

16 5 PS Closed when chuck clamped

2 LT auto cycle

925

3

143

78 21 SOL Clamp chuck

17

4

144

Chuck Clamp Unclamp 18

5

145

79

80

Clamp and jack retracted 12 LT W 13 LT Jack advanced

19 4 PS Closed when chuck advanced

6

146

81

G 11 LT Clamp advanced

20

7

10

147

82

B 2

FIG. 5.4r 14 Point-to-point wiring diagram.



After warranty, will you be able to make changes without the integrator or will you have to pay for it to 36 return?

For budgeting, whether the work is done in-house or by an integrator, software costs range from 50 to 100% of the hardware cost. System engineering costs and documentation costs each range from 25 to 50% of hardware cost. Therefore, the total cost (without installation labor) is about twice (if not more) the hardware cost. Open Systems Another consideration is whether to use open systems or proprietary. A major benefit of using open systems is that a number of different manufacturers can supply equipment for the system. “The trend today is definitely towards open systems and open languages, but the bulk of the PLC market is still proprietary—about 75% proprietary and 25% open or standards-based. Even so, a large number of proprietary PLCs are shipped with Profibus, DeviceNet, or other open network7 ing capabilities.”

© 2006 by Béla Lipták

Distributed Control “One of the effects of better networks and intelligent devices is that control function no longer has to reside in a central controller. It can be scattered about, either in a network of small PLCs or in intelligent I/O bases.… Some distributed processing is good to have because you can divide an operation into logical pieces, but it becomes difficult to partition programs and logic and so forth into the 11 machines.” A potential benefit dividing a single large system into separate areas of control is that starting and troubleshoot37 ing a smaller piece of the system is more manageable. Redundancy Another issue is the amount of redundancy that will be built into the control system. Some areas to consider when evaluating the need for redundancy include preventing production impacts, equipment damage, business interruption and quality impacts, liability costs, public health 38 and safety, site safety, and environmental impacts. Redundant PLCs are available and I/O can be made redundant but it is often better to provide diversity in redundancy planning. Instead of using PLCs, manual controllers can be used. Manual control stations are important as backups in case of failure

926

PLCs and Other Logic Devices

of the PLC controlling PID loops. Operator stations and HMI often provide manual control capabilities but still rely on the integrity of the PLC, so they are not truly manual in the hardwired sense. A manual control station is an important part of the distributed control system because it gives true manual control of the loops locally or in the control room, even when the local control systems are down. It is important to look at the overall system when evaluating redundancy. Unfortunately, the term “control-system redundancy” has come to refer to only the CPU, possibly the I/O but not the field devices. Even redundant PLCs can “fail” if they are powered from a single power source. PLC Hardware, System Sizing, and Selection Despite the variety of available PLC models, system sizing is relatively simple. Hardware and system size can be determined by an analysis of the following system characteristics: 1. 2. 3. 4. 5. 6.

I/O quantity and type Remote I/O requirements Memory quantity and type Programming requirements Programmers Peripheral requirements

Although sizing is generally straightforward, selection of the right PLC requires considerable judgment regarding trade-offs between future requirements and present cost. The first three are examined below. The others are addressed elsewhere in this chapter. I/O Quantity and Type (Example 1) For this simple system, the first step is development of the I/O list (Table 5.4p). This detailed document will be used extensively and should be developed with great care. (Once I/O numbers are assigned, it becomes very difficult to change all references to these numbers.) If switches and pilot lights are used to operate the controls, include I/O for them. Include any alarm outputs used for alarm annunciators. An intrusion switch on the panel door is useful for larger control panels. Also, consider allowing 20% spare I/O of each type used. The I/O list is followed by the configuration drawing. The configuration drawing (Figure 5.4q) shows the arrangement of the I/O and support hardware. The point-topoint wiring diagram (Figure 5.4r) is used by the panel shop and the installation contractor to make the I/O device interconnect. Panel, or enclosure, design should now be coordinated with the addition of panel instrumentation, such as light switches, meters, and recorders. Once these steps are completed, panel fabrication and assembly can begin. I/O Quantity and Type (Example 2) In this somewhat more complicated example, the user should arrange any special I/O types as well as the commonly available modules according to an I/O matrix by logical area, as shown in Table 5.4s.

© 2006 by Béla Lipták

In this table, I/O types are listed across the first row and plant areas are listed down the first column. In this way, one can accurately reconstruct the decision-making process concerning I/O quantity and type. It is important to include at least 10 to 20% spare rack space in all I/O considerations. For example, consider a typical process application. Assume a total I/O count of 764, broken down into 436 inputs and 328 outputs. This application falls into the medium PLC category. Because the majority of the field devices are located a good distance from the CPU, a PLC with remote I/O is desirable. The I/O requirements by locations are as follows: Process Area: Total of 390 inputs and outputs, of which 230 are 24 V (discrete DC inputs), 24 are 4–20 mA analog inputs, and 136 are 24 V DC discrete outputs. Tank Farm #1: Total of 98 I/O, of which 62 are 120 VAC discrete inputs (DIs) and 36 are 120 VAC discrete outputs. Tank Farm #2: Total of 86 I/O, of which 52 are 120 VAC discrete inputs and 34 are 120 VAC discrete outputs. Loading Station: Total of 190 I/O, of which 68 are 120 VAC discrete inputs and 122 are discrete outputs (of which 24 are 120 VAC and 98 are 240 VAC). Let us assume that the PLC system being considered has the following features: (1) No constraints on input and output mixture; (2) the I/O modules are available in two formats, 16 points per module and 8 points per module; and (3) 10% spare I/O is required. For the sake of illustration, we will use the 16 points per module I/O structure in the process area and the 8 points per module structure in the tank farms and loading station. The I/O distribution (including spares) per location would now be as follows: Process Area: Total of 390 I/O points, which require the following modules: • 230 + 10% = 253 24 V DC inputs with 16 points/ module = 15.8 modules; use 16 modules • 24 + 10% = 26.4 4–20 mA analog inputs at 16 points per module = 1.6; use 2 modules • 136 + 10% = 149.6 24 V DC discrete outputs at 16 points per module = 9.35; use 10 modules Tank Farm #1: Total of 98 I/O points, which require the following modules: • 62 + 10% = 68.2 are 120 VAC discrete inputs at 8 points per module = 8.5; use 9 modules • 36 + 10% = 39.6 are 120 VAC discrete outputs at 8 points per module = 4.9; use 5 modules Tank Farm #2: Total of 86 I/O points, which require the following modules: • 52 + 10% = 57.2 are 120 VAC discrete inputs at 8 points per module = 7.2; use 8 modules • 34 + 10% = 37.4 are 120 VAC discrete outputs at 8 points per module = 4.7; use 5 modules

5.4 PLCs: Programmable Logic Controllers

927

TABLE 5.4s I/O Matrix

Plant Area

Analog

In

Process 1 area

24

4–20 mA

Tank farm 3 #1

0

Tank farm 3 #2

0

Loading 3 station

0

Model No.2 Qty

Analog Out

Model No.2 Qty

0 2 0

0

0

Discrete In Voltage

Model No.2 Qty

Discrete Out Voltage

Model No. Qty

230 24 VDC

16

136 24 VDC

10

62 120 VAC

9

36 120 VAC

5

52 120 VAC

8

34 120 VAC

5

68 120 VAC

10

24 120 VAC

4

98 240 VAC

14

Notes: (1) Discrete in 16 pts/card Discrete out 16 pts/card Analog in 16 pts/card Analog out (2) Add model numbers after award of contract. (3) DI and DO are 8 points per card

Loading Station: Total of 190 I/O points, which require the following modules: • 68 + 10% = 74.8 are 120 VAC discrete inputs at 8 points per module = 9.4; use 10 modules • 24 + 10% = 26.4 are 120 VAC discrete outputs at 8 points per module = 3.3; use 4 modules • 98 + 10% = 107.8 are 240 VAC discrete outputs at 8 points per module = 13.5; use 14 modules If we assume that one remote communications channel can service up to 128 I/O in groups of sixteen 8-point modules or eight 16-point modules, the system becomes: • • • •

Process Area—390 I/O; 28 16-point modules; four remote channels Tank Farm #1—98 I/O; 14 8-point modules; one remote channel Tank Farm #2—86 I/O; 13 8-point modules; one remote channel Loading Station—190 I/O; 28 8-point modules; two remote channels

Remote I/O vs. Distributed Control A unique feature of the PLC is the multiplexed nature of the I/O bus. This can be used to great advantage to reduce overall wiring cost. If I/O racks are centralized in logical clusters, plant wiring requirements

© 2006 by Béla Lipták

can be greatly reduced. Wiring between racks and the CPU can be reduced to a few twisted pairs of wires or a single cable. The tremendous cost savings that result can be realized without a compromise of control accuracy or capability. A system configuration diagram (such as that shown in Figure 5.4q), when used in conjunction with the I/O matrix in Table 5.4s, aids in keeping track of the overall system configuration. It is important to remember the major weakness of remote I/O systems. If the bus is cut or interrupted, the effects of I/O failure will be relatively unpredictable. One must consider the effect of a possible system failure on each step in the sequence. Some users install a redundant version of remote I/O communications to guard against the loss of remote I/O communications. For this reason, duplication of smaller CPUs at each remote location is often considered preferable to a large central CPU. This is actually an extension of distributed control within the network of the PLC itself. This approach can be very costeffective, because requirements for the central unit size can be reduced. Serious consideration should be given to distributed versus centralized architecture in remote I/O systems in which control system integrity is important. Memory Quantity and Type The type and quantity of PLC memory used depends on the controller’s size and the company that manufactured it. Most small PLCs come with

928

PLCs and Other Logic Devices

a fixed quantity of RAM. Although this is usually 2 K to 4 K of memory, the actual number of memory locations is not as important as the average size application program the PLC can be expected to handle. (In this case, size refers to the number of I/O points that are to be controlled and the average number of logic, timer, counter, and mathematics operations that are to be performed.) Some manufacturers may provide an extra-expense option of EEPROM or Flash memory with their small PLCs. Midsize and large PLCs provide users an option for almost any type of memory desired. This includes various types of nonvolatile memory. Quantity limits imposed by the PLC will exceed most application demands. When this is not the case, it usually suggests that a more efficient control scheme is in order or that the application really does not belong on a PLC in the first place. Total memory, as stated in the manufacturer’s literature, does not necessarily mean the entire content is available to the user. Some manufacturers reserve large blocks for the PLC executive. A system with 4 K of 16-bit words of user memory may comfortably accommodate a program, whereas another system with 8 K of 8-bit words may have too little memory for the same program. Special programming language features are an important aspect of memory sizing, especially in process control. The PID algorithm is a perfect example: One manufacturer requires 33 words of user-available memory, whereas another may need in excess of 1000 words. Obviously, the memory sizing for a loop control program would vary in these two systems. Another example is the use of special functions, such as shift registers. An alternative way of developing a shift register in ladder logic is to use a special function shift register or handling data to require less user memory. Word (or register) moves are also powerful in terms of memory efficiency. Programming languages, which can be binary- or octal-based or alphanumeric Boolean, affect memory use. The closer the language is to a machine code (binary-based), the more user memory is required to perform the more complex functions. The closer the language is to alphanumeric Boolean, the less memory will be required for complex functions. The best way to determine program memory prerequisites is to write a representative sample program reflecting some actual project requirements and to request information about user memory size from the various manufacturers. If the manufacturer’s suggestions are followed, the user can be reasonably assured that the memory will not be undersized. The final area of caution about memory size concerns the consideration of data storage. Data tables, scratch pads, and historical data retrieval requirements can inflate the size of the PLC memory. It should be remembered that the primary task of a PLC is control of the process. If data requirements are large, connection to auxiliary devices, such as mini- and microcomputers, should be given serious consideration. Many of these devices are currently available and are of an industrial grade; furthermore, the price of these systems is coming down rapidly. It is not good engineering

© 2006 by Béla Lipták

practice to degrade control capabilities by burdening the PLC with excessive data acquisition functions. As a plant goes online, operational requirements for data generally increase astronomically. These will be easily accommodated by a mini- or microcomputer but not by the PLC memory. PLC Installation and Panel Design Installation of PLC systems is not a difficult or mysterious procedure, but the following general rules will save time and trouble for the systems designer or installer. The basic principles of PLC installation are the same as those for the installation of relay or other control systems. Safety rules and practices governing proper use of electrical control equipment in general should be observed. These include correct grounding techniques, placement of disconnect devices, proper selection of wire gauge, fusing, and logical layout of the device. PLCs can often be retrofitted into existing hardwired relay enclosures because they are designed to withstand the typical plant environment. PLC vendors provide installation manuals upon request. After the PLC equipment is selected, the support equipment will need to be identified. Some panel shops that build PLC panels can assist or perform this additional design. At the panel level this includes terminal blocks, wireway, wire type and size both for discrete and analog, loop power supply (usually 24 V DC), circuit breakers and fuses, isolation relays, intrinsic safety barriers (if I/O wiring enters flammable or explosive environments as defined by national electric code), main isolation transformer, pilot lights, pushbuttons and switches, internal panel work lights, and receptacle. Also included are any door-mounted equipment like chart recorders, digital panel meters, and operator interface panels. A UPS may be required. Separate isolated grounding is sometimes used for loop shields. Motor starters and small variable frequency drives may also be in the same enclosure. After all the equipment in the panel is determined, a heat calculation should be done for the ambient extremes expected, particularly if the cabinet is outdoors, to verify the internal temperature is well below the maximum temperature of all components. Generally the PLC is not the limiting factor here, but other electronics and power supplies may limit the maximum allowable temperature. If the interior temperature is too high, a heat exchanger or air conditioner may be required. If the panel is installed in a cold area, a heater may be needed to prevent condensation, which can ruin electronic equipment. Safety Considerations Perhaps the most important safety feature, which is often neglected in PLC system design, is emergency stop and master control relays. This feature must be included whenever a hardwired device is used in order to ensure operator protection against the unwanted application of power. Emergency stop functions should be completely hardwired (Figure 5.4t). In no way should any software functions

5.4 PLCs: Programmable Logic Controllers

Disc. L1

Suppressor1

1 FU

L1

2 FU

Incoming L2 AC L3

929

L2

3 FU H1 H2

Enclosure wall

L3

H4 H3

To motor starters

Back-panel ground bus

Step-down2 transformer Grounded conductor

Fuse

X1

Multiple E-stop switch

X2 Start CRM

Equipmentgrounding conductors

Grounding-electrode conductor to grounding-electrode system

Suppressor1 CRM Controller L1 power supply The I/O circuits form a net inductive load switched by the CRM contacts. Therefore, a suppressor is needed across the line at the load side of the CRM contacts.

GND

Connect when applicable

N or L2 User DC supply

CRM Suppressor3 Input module wiring arm

Output actuator

Output module wiring arm

Input sensor

CRM + − To DC I/O actuators/ sensors

FIG. 5.4t Grounded AC power-distribution system with master-control relay. Notes: 1. To minimize EMI generation, connect a suppressor across an inductive load. 2. In many applications, a second transformer provides power to the input circuits and power supplies for isolation from the output circuits. 3. Connect a suppressor here to minimize EMI generation from the net inductive load switched by the CRM contacts. In some installations, a 1 µf 220 ohm suppressor or 2 µf 100 ohm suppressor has been effective. (Courtesy of Allen-Bradley)

be relied upon to shut off the process or the machine. Disconnect switches and master control relays should be hardwired to cut off power to the output supply of the PLC. This is necessary because most PLC manufacturers use triacs for their output switching devices, and triacs are just as likely to fail on as off. This feature is often required by local or national codes. In the United States, NFPA 79, “Electrical Standard 39,40,41,42 for Industrial Machinery,” covers this subject. Implementation Planning ahead is every bit as important in designing a complete PLC system as in laying out a relay logic panel. Care in counting I/O points in the beginning— and leaving a safety factor—will save headaches in the panel fabrication stage. Panels should always have plenty of expansion room left over, because I/O is invariably added as the job progresses and the operators see the advantages of PLCs. The designer should refer to the layout considerations provided by the manufacturer. Extra space should be left to provide access to the boards and connectors of the PLC. The diagnostic and status indicators should all be visible. The

© 2006 by Béla Lipták

designer should leave room between I/O racks for wireways and large hands. One good technique for ensuring efficient panel layouts is to involve maintenance personnel in the design procedure. This not only optimizes the layout but also introduces the staff to the hardware (Figure 5.4u). In general, the best defense against creating a tangled mess when designing a PLC system is to follow proper documentation techniques. A little more time spent documenting panel layout, I/O counts, and wiring diagrams results in a lot less time spent starting up the system. PLCs can handle large amounts of I/O points with varying electrical characteristics, so things can get pretty confusing in a hurry. Cable requirements between hardware boxes vary from one type of PLC to another, so this is an important consideration in panel layout. Enclosure Enclosures should nearly always be provided for the PLCs themselves. This protects the electronics from moisture, oil, dust particles, and unwanted tampering. Most

930

PLCs and Other Logic Devices

Area reserved for disconnect transformer, control relays, motor starters, or other devices.

51 mm 153 mm (2'') (6'') 102 mm (4'')

120 mm (4'')

153 mm (6'')

51 mm (2'')

Wiring duct

manufacturers recommend a NEMA 12 enclosure for the standard industrial environment or a NEMA 4X for outdoor or corrosive environments. A NEMA 3R is not recommended because it is not sealed against dust and moisture. This type of enclosure is readily available in a variety of sizes and, in fact, may be already included with a new system. PLCs are designed to be located close to the machine or the process under control. This keeps the wiring runs short and aids in the troubleshooting procedure. At times, however, mounting the PLC directly on the machine or too close to the process is not advisable, such as in cases of vibration inherent in the machine, electrical noise interference, or excessive heat problems. In these situations, the PLC must be either moved away or successfully protected against these environmental conditions. Temperature Considerations Installing any solid-state device requires paying attention to ambient temperatures, radiant heat bombardment, and the heat generated by the device itself. PLCs are typically designed for operation over a broad range

13081

FIG. 5.4u Typical enclosure layout. (Courtesy of Allen-Bradley.)

Back wall of enclosure

Back panel

Mounting bracket or ground bus

Back panel Welded stud

Flat washer

Welded stud

Scrape paint Nut

Nut Flat washer If the mounting bracket is coated with a non-conductive material (anodized, painted, etc.), scrape the material around the mounting hole.

Star washer

Stud mounting of a ground bus or chassis to the back panel 17666 Back panel Tapped hole

Ground bus or mounting bracket

Use a wire brush to remove paint from threads to allow a ground connection. Scrape paint on panel and use a star washer. Stud mounting of the back panel to the enclosure back wall 17664

Mounting bracket Flat washer

Bolt

Nut

Tapped hole

Star washer

Flat washer Nut

Flat washer Star washer

Scrape paint on panel and use star washers.

If the mounting bracket is coated with a non-conductive material (anodized, painted, etc.), scrape the material around the mounting hole.

Bolt mounting of a ground bus or chassis to the back panel 17665

FIG. 5.4v Ground connection details. (Courtesy of Allen-Bradley.)

© 2006 by Béla Lipták

Back panel

Scrape paint Flat washer Bolt

If the mounting bracket is coated with a non-conductive material (anodized, painted, etc.), scrape the material around the mounting hole.

Alternative bolt mounting of chassis to the back panel 12342-1

5.4 PLCs: Programmable Logic Controllers

of temperatures, usually from 0 to 60°C. When analyzing the proposed PLC environment, however, one should remember that enclosure temperatures usually run a few degrees higher than ambient temperatures. Radiant heat on an enclosure from surrounding tanks can raise the internal temperature beyond that specified by the manufacturer. Heat generated by the PLC is a key issue when the device is placed in ambient temperatures close to the extreme mentioned in the specifications. The temperature rise caused by the power consumption of the PLC itself is not hard to estimate. In addition, most manufacturers will provide a notation of the power consumption of the triacs driving field loads. When designing the hardware layout within the panel, one should adhere to the manufacturer’s suggestions regarding ways to minimize heating problems. Most PLCs use convection over fins to take heat away from particular areas within the hardware. Care must be taken to ensure that no obstruction to air flow over these fins is introduced by placement of the PLC in the enclosure. Wireways are typically provided with holes to allow air to pass through. Generally, one can avoid problems with PLC enclosures by simply leaving plenty of air space around the heat producers. Should all of these factors combine to cause a temperature problem, the panel can be vented, air conditioned, or moved to another location. Usually, simply blowing filtered

931

air through the enclosure will resolve minor difficulties. If air conditioning is required, small units that are designed for cooling electronic enclosures are readily available. Noise Noise or unwanted electrical signals can generate problems for all solid-state circuits, particularly microprocessors. Each PLC manufacturer suggests methods for designing a noise-immune system. These guidelines should be strictly followed in the design and installation phases, because noise problems can be very difficult to isolate after the system is up and running. I/O systems are isolated from the field, but voltage spikes can still appear within the low-voltage environment of the PLC if proper grounding practices are not followed. A well-grounded enclosure can provide a barrier to noise bombardment from outside. Metal-to-metal contact between the PLC and the panel is a must, as is a good connection from the panel to the ground (see Figure 5.4v). Noise producers within the panel should be noted during the panel design phase, and the PLC must not be located too close to these devices. Wiring within the panel should also be diverted around noise producers to avoid picking up any stray signals. Often, it is necessary to keep AC and DC wiring bundles apart, particularly when high-voltage AC is used at the same time that low-level analog signals are present. Refer to Tables 5.4w and 5.4x and Figure 5.4y for recommendations.

TABLE 5.4w Follow These Guidelines for Grouping Conductors with Respect to Noise (Courtesy of Allen-Bradley) Group Conductor Cables Fitting This Description

Into This Category:

Examples:

Category 1

AC power lines for power supplies and I/O circuits. High-power digital AC I/O lines—to connect AC I/O modules rated for high power and high noise immunity. High-power digital DC I/O lines — to connect DC I/O modules rated for high power or with input circuits with long timeconstant filters for high noise rejection. They typically connect devices such as hard-contact switches, relays, and solenoids.

Signal and communications—Low-power conductors that are less tolerant of electrical noise than category 1 conductors and should also cause less noise to be picked up by adjacent conductors (they connect to sensors and actuators relatively close to the I/O modules) Corresponds to IEEE levels 1 (high susceptibility) and 2 (medium susceptibility)

Category 2

Analog I/O lines and DC power lines for analog circuits. Low-power digital AC/DC I/O lines — to connect to I/O modules that are rated for low power such as low-power contact-output modules. Low-power digital DC I/O lines — to connect to DC I/O modules that are rated for low power and have input circuits with short time-constant filters to detect short pulses. They typically connect to devices such as proximity switches, photoelectric sensors, TTL devices, and encoders. Communications cables (ControlNet, DeviceNet, Universal remote I/O, extended-local I/O, DH+, DH-485, RS-232-C, RS422, RS-423 cables) — to connect between processors or to I/O adapter modules, programming terminals, computers, or data terminals.

Intra-enclosure — Interconnect the system components within an enclosure Corresponds to IEEE levels 1 (high susceptibility) and 2 (medium susceptibility)

Category 3

Low-voltage DC power cables — to provide backplane power to the system components. Communications cables — to connect between system components within the same enclosure.

Control and AC power-High-power conductors that are more tolerant of electrical noise than category 2 conductors and may also cause more noise to be picked up by adjacent conductors Corresponds to IEEE levels 3 (low susceptibility) and 4 (power)

© 2006 by Béla Lipták

932

PLCs and Other Logic Devices

TABLE 5.4x Follow These Guidelines for Routing Cables to Guard against Noise (Courtesy of Allen-Bradley) Route This Category of Conductor Cables:

According to These Guidelines

Category 1

These conductors can be routed in the same cable tray or raceway with machine power conductors of up to 600 VAC (feeding up to 100 hp devices).

Category 2

If it must cross power feed lines, it should do so at right angles. Route at least 5 ft from high-voltage enclosures, or sources of RF/microwave radiation. If the conductor is in a metal wireway or conduit, each segment of that wireway or conduit must be bonded to each adjacent segment so that it has electrical continuity along its entire length, and must be bonded to the enclosure at the entry point. Properly shield (where applicable) and route in a raceway separate from category 1 conductors. If in a contiguous metallic wireway or conduit, route at least 0.08 m (3 in) from category 1 conductors of less than 20 A; 0.15 m (6 in) from AC power lines of 20 A or more; but only up to 100 kVA; 0.3 m (1 ft) from AC power lines of greater than 100 kVA. If not in a contiguous metallic wireway or conduit, route at least 0.15 m (6 in) from category 1 conductors of less than 20 A; 0.3 m (1 ft) from AC power lines of 20 A or more; but only up to 100 kVA; 0.6 m (2 ft) from AC power lines of greater than 100 kVA.

Category 3

Route conductors external to all raceways in the enclosure or in a raceway separate from any category 1 conductors with the same spacing listed for category 2 conductors, where possible.

Line voltage variations can cause hard-to-trace problems in the operation of any computer-based system. PLCs are no exception, even though they are designed to operate over a much larger variation in supply voltage. Large spikes or brownout conditions can cause errors in program execution. Most manufacturers protect against this, enabling the controller to come up running after a brownout, but these measures may not be acceptable in all applications. The designer may wish to add an isolation transformer to a proposed PLC system, sized for twice the anticipated load. This is cheap insurance, and PLC manufacturers will help determine the required load. Triac outputs require some special attention that will be new to relay users. Triacs used for AC loads typically leak a small amount of current. In the case of triac outputs from a PLC, this leakage may be enough to keep panel lamps glowing or small relays energized. When a triac is used to switch the input on a PLC, the leakage may be enough to make the PLCs “think” the input is on. A dummy load (shown in Figure 5.4z) can be used to drain this leakage when the input should be off. Whenever a mechanical contact is used in series with a load energized by a triac (as shown in Figure 5.4aa), a resistancecapacitance (RC) network should be used as shown to protect the triac from inductive kickback. A varistor should be provided in parallel with a load whenever the load can be “hot-wired” around the triac (Figure 5.4bb). The user should check with the PLC manufacturer for the suggested RC and metal oxide varistor (MOV) types for the particular application. Triacs cannot directly drive large motor starters and similar devices. PLC manufacturers provide surge specifications for the various I/O cards. Sometimes an interposing relay or dry contacts will be required for large loads. PLCs are similar to most electrical control systems. To be sure, solid-state devices, microprocessors, and triacs require some special considerations during the design, installation, and start-up phases of a project, but these concepts are not too

© 2006 by Béla Lipták

complex or difficult to assimilate. As always, good design habits in the beginning will ensure a safe and reliable control system. Hookup PLC panels can be very neat and orderly if all the terminals are arranged in a logical fashion. The actual result is a direct function of the time spent during the design process. Interposing terminal blocks between the PLC I/O structure and the field is suggested, because the terminations provided by PLC manufacturers are shrinking in the race to provide higher-density I/O. This also gives the panel designer the ability to place the field termination points where they are easily accessed. Wiring ducts keep the panel neat and protect the wire from mishap. Following good wiring practices can avert many noise problems. Low-voltage signal wiring should be kept away from noise sources. Analog signals should be shielded, with the shield terminated at an isolated ground in the panel only (to prevent shield ground loops). Again, these analog signals should be separated from power wiring. Software (Program) Development The I/O list mentioned previously will be used to begin the program development. Basic control philosophy decisions need to be made at this point. Should valves fail open or closed? What fail-safe provisions are necessary for analog control? These philosophical decisions should be documented and included with the process operational descrip15 tions. Often this document will be referred to as the software functional specification. Its purpose is to define, as precisely 43 as possible, the operation of the controls. It also has several other functions: 1. It communicates the functional requirements of the control system to those writing the PLC code.

5.4 PLCs: Programmable Logic Controllers

Category-1 conductors Category-2 conductors (AC power lines)

L1

933

Input R

N

Common

Conduit Tighter spacing allowed with conduit

Enclosure wall

Conduit Use greater spacing without conduit

Transformer

Tighter spacing allowed where forced by spacing of connection points

Category-2 conductors

I/O block

1771 I/O chassis

Place modules to comply with spacing guidelines if possible

FIG. 5.4y Mounting and wiring details. (Courtesy of Allen-Bradley.)

2. It records the thought process (regarding control) of the system designer to be used in the event of a per44 sonnel change. Such information can be invaluable. 3. It provides a review document for personnel working in other capacities (mechanical, process, and project management) to ensure that they understand the operation of the controls. 4. It provides a guide for developing the operational description for the operator’s manual. After the functional specification has been reviewed and approved, a detailed operational sequence chart, timing

© 2006 by Béla Lipták

FIG. 5.4z Dummy load for leakage. If a “leaky” triac, such as a proximity switch, is used to switch the hot side of the line, then a pull-down resistor (R) is required to counteract the leakage.

diagram, logic diagram, flowchart, or electrical schematic is developed from it. This schematic is translated or coded into the appropriate PLC language, cross-referencing I/O with PLC designator tags. The piping and instrument diagram is also cross-referenced with PLC designators. In this way, future cross-referencing of system drawings and PLC codes is facilitated. As the code is entered, a memory map or register index is kept by the programmer (Table 5.4cc). This map is useful for organizing program data in logical arrangements and will prove invaluable during start-up, when the programmer may need to locate available blocks of memory quickly for program revisions. Most PLC programming software can generate a cross-reference; however, certain types of instructions are difficult for the program to cross-reference, so a list is still desirable. The use and understanding of PLC programming depends on knowledge of the process to be controlled, an understanding of electrical schematics, and an appreciation for logic operations and for various types of logic and relay devices. Other sections of this chapter provide information on each of these topics. A review of those topics might be useful at this point. Although the programming style and language used is, to some extent, dictated by the size of the PLC used, there are fundamental programming elements, including logic operations, timers, counters, and arithmetic capabilities, that are provided in all models. Some of the characteristics of these important elements are briefly discussed below (see Sections 5.5 and 5.6 for more information). Ladder logic continues to be popular because it was purposely created to look like hardwired relay logic drawings already in use. It is this similarity between ladder diagrams used for relays and the programming version that eased the change from using relays to using PLCs. In addition, ladder logic is relatively 9,45 easy to learn. Boolean Logic Relay type instructions are the most basic of all PLC instructions. Boolean logic functions (AND, OR, and NOT) are diagrammed as combinations of normally open and normally closed contacts. A coil symbol represents the result of the logic function. In ladder logic, contacts can be shown in series or parallel to achieve the “AND” or “OR” functions, respectively. A normally closed contact represents 45 a “NOT” function.

PLCs and Other Logic Devices

AC output module

L1

L2

1MS L1

1MS

Solid-state switch

Suppressor

1MS L2

Suppressor

1MS Although the motor starter is an inductive load, it does not need a suppressor because it is switched by a solid-state device.

AC output module

L1

L2

The motor needs supressors because it is an inductive load switched by hard contacts.

L2

L1 1CR

Suppressor

L1

Pilot light with built-in step-down transformer

Suppressor

1S

Example 2: An AC output module controls an interposing relay, but the circuit can be opened by hard contacts. The relay contacts control a solenoid.

Suppressor The solenoid needs a suppressor because it is an inductive load switched by hard contacts.

The interposing relay needs a suppressor because it is an inductive load switched by hard contacts.

Contact output module

1M

Example 1: An AC output module controls a motor starter whose contacts control the motor.

L1

1CR

Solid-state switch

Suppressor

934

L2

Example 3: A contact output module controls an inductive load.

The pilot light needs a suppressor because it is an inductive load switched by hard contacts.

FIG. 5.4aa Examples of where to use suppression. (Courtesy of Allen-Bradley.)

One popular programming technique involves defining the sequential logic in electrical schematic format, using actual tag numbers, and then translating this diagram into the appropriate programming language. Figure 5.4dd shows the translation of some examples of typical circuits to ladder diagrams, Boolean algebra, and mnemonics. Because this translation is relatively simple, maintenance and engineering personnel have accepted PLCs, although they have not accepted computers as readily. The unknown has been replaced with the familiar. Timing and Counting Figure 5.4ee is a schematic representation of a timer and a counter. Although their formats

Output device

Output device

Output device

Varistor

RC Network

Diode (A surge suppressor can also be used.)

FIG. 5.4bb Surge suppression for inductive AC load devices. (Courtesy of AllenBradley.)

© 2006 by Béla Lipták

differ, the principles are the same. The legs of the timer represent start/stop and reset. Timers can be on-delay or offdelay and can be cascaded (that is, linked together in series). Counters can be up or down and have a count leg (in which the number of switch closures is the count) and an up/down leg (in which the position of the switch determines up count or down count). A PLC with arithmetic capability can use a combination timer and counter as an integrator. Figure 5.4ff shows a turbine meter pulse counter turned into a low-cost integrator within the PLC. Obviously, the scan rate of the PLC (scans per second) must be twice the pulse rate of the turbine (pulses per second). Arithmetic Capabilities Figure 5.4ff shows an arithmetic program that permits the rapid addition of pulse counts from two counters hooked to two electric meters. The resulting sum is displayed through a panel meter. This logical addition is performed using integer mathematics (that is, no decimal calculations can be performed). Most PLCs use an approximation technique called “double-precision integer mathematics” to do calculations of greater complexity (such as PID). Some PLCs have true floating-point mathematics capability. Floating-point mathematics is a powerful tool for process applications. For example, in the integrator example in

5.4 PLCs: Programmable Logic Controllers

935

TABLE 5.4cc Example of Memory Map for Milling Machine Coil

Definition

Used in Rung(s)

CR0

R.H. Head

Retract

13

15

19

– 20

– 33

– 46

CR1

L.H. Head

Retract

14

15

21

– 33

– 38

– 47

CR2

Clamp

Part

4

5

– 34

CR3

Cycle

Part

Unclamp

2

2

25

25

CR4

Shot

Pins

Out

5

5

6

27

– 28

CR5

Machine

Slide Adv

Milling

6

6

7

22

24

30

32

35

29

CR6

Machine

Slide

Retract

7

7

8

– 22

39

CR7

Milling

Spindles

Off

9

9

10

– 24

– 24

– 32

CR8

Start

Boring

Spindles

10

10

11

12

20

23

R.H. Bore

Complete

11 31

11 33

13 38

13

46

Swing

Clamps

15

15

16

– 23

28

– 30

– 31

– 31

CR9 CR11

CR12

Unclamp

Unclamp

CR13 CR15

Milling

CR17 CR18

Unclamp

CR19 CR20

Unclamp

CR29

Pull

Clamps

–3

16

16

17

26

Hold

Light On

3

3

4

4

– 26

Complete

Shot Pins In

8

8

9

– 27

– 39

Pump #1

Pressure

25

26

28

52

Pull

Clamp

26

49

Retract

Shot Pins

27

50

Swing

Clamps

28

51

L.H. Bore

Complete

12

12

14

14

18

18

–29

34

47

CR31

Pressure Off

Pump Time

Start

17

17

CR32

Pressure

Off

Pump #1

18

– 52

Auto Lube

Cycle

36 – 43

36 48

40

40

41

41

Lube Off

41

42

42

– 43

– 44

45

42

CR101 CR102

– 48 CR103 CR104

– 41

– 41

43

44

Lube Start/

Disable

– 40

45

Contin.

Lube

Restart

40

44

CR105 CR106

Lube On Restart

60 Min.

45

Source: Xcel

Figure 5.4gg, the division of pulses by elapsed time can be expressed as a decimal number rather than as a truncated integer. Feedforward calculations and PID can be performed in double-precision integer mathematics but are more memoryintense than in floating-point mathematics. Floating-point mathematics may require the use of a separate microprocessor within the CPU and usually involves two adjacent memory locations to store the mantissa and the abscissa in a form of scientific notation. The programmer automatically translates when the memory location is followed by a period (.), indicating a floating point number.

© 2006 by Béla Lipták

Programming Documentation The following technique can be used for PLC programming applications. There are many advantages to this approach. 1. Develop detailed I/O lists. Table 5.4p shows an I/O cross-reference relating tag numbers to I/O points. This list should be used extensively; starting without it will cause confusion and errors resulting from inevitable changes. 2. Develop a detailed descriptive operational sequence of events. Figure 5.4ii shows a sample sequence using a process batch application.

936

PLCs and Other Logic Devices

1 PB

Relay ladder diagram 2 CR 4 CR

SOL A

5 CR

Rung 10 @ 52

3 LS Free format equivalent PLC diagram 2 CR 4 CR 5 CR 1 PB 3 LS

Rung 11 @ 57

Code or mnemonic language Load 1PB And 2CR Or 3LS And 4CR Nand 5CR Store SOL A

Horizontal Current Preset time Reset Start/stop

Counter: Preset

Current time

Reset Count/signal

Output

Start/ stop

Preset

Reset

Current time

Count/ signal

Preset

Reset

Current count

Output 1 Output 2 Output 1 Output 2

FIG. 5.4ee Timer/counter schematic. A key part of any PLC programming is its capability to do timer/counter functions. The instructions are entered either horizontally or vertically, depending on the make. 54 Horizontal programming, however, is more commonly used.

Meter pulse

@0 X5 CTR X7

Meter pulse

CTR

ADD V101 V102 V103

FIG. 5.4ff Pulse counter totalizer.

© 2006 by Béla Lipták

Count meter 2 pulses

Left bore slide RET L. S. 8 X8

Rung 13 @ 65

R. H. bore complete CR9 13 46

L. H. bore complete CR29 12 14

14 47

R. H. head retract CR0

2 2

15 −20 −46

19 −33

L. H. head retract CR1

L. H. bore complete CR29 : 12 TMR 2 2

15 −33 −47

21 −38

CR1

CR2

Rung 15 @ 77

L. H. head retract CR1 : 14 Unclamp swing clamps CR11 : 15

Totalize pulses

Start boring spindles CR8 : 10

11 20 31 38

TMR R. H. bore complete CR9 : 11

Rung 14 @ 71

Start boring spindles CR8

11 13

R. H. bore complete CR9 : 11

L. H. bore complete CR29 : 12

C101 V102

@12 X5 X6

Count meter 1 pulses

Start boring spindles CR8 : 10

L. H. bore complete CR29 : 12

C100 V101

@6 X6 X7

Rung 12 @ 61

Vertical Output

Rt. bore slide RET L. S. 7 X7

Milling spindles off CR7 : 9

10 12 23 33

R. H. bore complete CR9 : 11

FIG. 5.4dd Ladder translation. Here is a comparison of programming languages that are used with various PLCs. The most popular is still the relay 54 ladder diagram because plant personnel are more familiar with it. Timer:

Rt. mill spindle DV15A Y15 : 32

Start boring spindles CR8 : 10

SOL A

Boolean Statement ((1PB • 2CR) + 3LS) • 4CR • 5CR = SOL A

Left mill spindle DV5B Y6 : 24

CR3

RT. bore slide ADV L. S. 9 X9

Unclamp Left bore slide ADV R. H. head swing clamps retract L. S. 10 CR11 CR0 : 13 X10 15 −23 −29 −31

FIG. 5.4gg Sample ladder diagram—annotated. (Courtesy of Xcel.)

16 28 −30 −31

5.4 PLCs: Programmable Logic Controllers

@0 X10

Count turbine meter pulses

CR10

CTR V200 V201

CR12 @6 X12

Time pulse integrating period

Y10

TMR V202 V203

CR12 @12 Y10

CR12

Latch on calculation request

CR11

CR11 @16 CR11

Calculate gallons/min

CR12

SF V400

Special function user math Start address: V400 Next address : V406 Error output ? . . . . . . . . . . . . . . . . . . . . . . . N Error output designator . . . . . . . . . . . . . . . . . Entry format: (Math term: operator, math term: operator, . . . = result) V201 V202 C200 =V205 No. time const. gal/min Pulses period

FIG. 5.4hh Floating-point integrator.

3. Develop electrical schematics or ladder diagrams for sequential control. 4. Develop piping and instrumentation drawings (or a logic diagram) for process control. Figure 5.4jj shows a diagram that will allow maintenance personnel to find important activities quickly. Note the I/O matrix index, showing what happens inside the PLC software, and the cross-referenced I/O memory locations and tag numbers. 5. Translate the drawings in steps 3 and 4 to the PLC language. 6. Enter the program code using a memory map (see Table 5.4cc). 7. Debug the program at the programmer’s facility. Use a simulator to debug the program. Run through the operational sequence defined in step 2. If it has changed, be sure to ascertain how that change has affected other parts of the program. Rewrite the sequence description to reflect current operations, if necessary. 8. Save and document the program. Reproduce the program on transportable media, such as floppy disks. (Do this daily.) Document programming changes using printouts.

© 2006 by Béla Lipták

937

9. Enter and debug the program in the field. It is essential to note all changes made on the documentation. Some of the biggest problems with relay systems are undocumented field modifications. 14,21,46,47 10. Redocument and reproduce the final program. The final documentation package should include the following: I/O list and cross-reference, descriptive operational sequence, electrical schematics, process schematics, program listing (see Figure 5.4gg for annotated final document), memory maps (showing the memory areas that have been used and those that are available), and notes for future program changes or additions. One important word about the documentation package: A major advantage of the PLC is its ability to be reprogrammed as plant requirements change. Without proper documentation, previous programming efforts will have to be reproduced in order to make the changes that are required. Poor documentation results in wasteful efforts at reconstruction. The PLC, like all engineering tools, requires good control systems engineering practices in order for its full potential to be realized. Good documentation is an essential 22,48 element of any PLC project. Programming and Documentation Tools Both PLC and aftermarket parties offer programming and documentation tools for the system designer or user. Programming software is typically provided by the PLC manufacturer and is designed to program a specific machine or family of machines. Some third parties are offering universal programming software. These software packages vary greatly in price and capabilities but offer on- and off-line programming to many different types of PLCs, realtime status, and some very sophisticated annotation. Communications to different PLCs are usually supported by different software packages. Each vendor’s product offers different types and amounts of ladder and contact comments. Again, many types of cross-references are available to be printed out. Often, other PLC design documentation problems may be solved, such as the generation of panel configuration drawings, point-topoint wiring diagrams, and I/O layout. One system even prints out the wire labels. HMI Software (Program) Configuration The operator interface needs to be designed and implemented. Generally, the same process is followed whether the interface is a local panel or the SCADA server in the control room. Sketches of the displays should be made and reviewed with operations staff. These should emphasize operator-friendly graphics for the 49 plant operators, who will spend the most time with them. Most of the time, operators need to view an operations-oriented view of the process. Only when an abnormal event occurs will 50 they go to the detail screens to find the cause. Once a consensus is reached on how the system should be operated, the screens can be configured on the interface equipment. “Linking” is the term used for defining how the screen will change based on the contents of PLC memory locations.

PLCs and Other Logic Devices

Valve 1

−1 −2 −3 Recipe selector

Temperature sensor Level switch 2

Outputs Input conditions to advance

Step Description

Steam valve

Level switch 1 Level switch 3 Level switch 4

(A)

Output table

Valve 4

Pump

Valve 2

Agitator

D

M Auto A select Start Manual step

Valve 3

Home

Start

Auto select and start

1

Fill

Tank full (Level switch 1)

2

Heat

Temperature setpoint or timer

3

Cool

Timer

4

Agitate

Timer

5

Empty

6

End

Tank empty (Level switch 2) Automatic reset

Input table

Input no. Description 001 Auto select switch 002 Start pushbutton 003 Level switch 1 004 Temperature sensor 005 Level switch 2 006 Valve 1 open limit switch 007 Valve 2 open limit switch 008 Valve 3 open limit switch 009 Valve 4 open limit switch

Input no. 010 011 012 013 014 015

Description Recipe 1 select Recipe 2 select Recipe 3 select Level switch 3 Level switch 4 Manual step pushbutton

(C)

Conditional interlocks:

X

X

X

X

X X

X

X X

Valve 2 open and Valve 1 or 4 open Temperature not at setpoint or tank not empty Tank not empty (Level switch 2 not set)

M

Valve 1 300 Valve 2 301 Valve 3 302 Pump 303 Steam 304 Agitate 305 Valve 4 306

938

X = Output energized (B)

FIG. 5.4ii Batch sequence. (A) Graphic representation of a simple batch process reactor vessel, with inputs and outputs. (B) Outputs for each step in the process are described in the “Output Table.” The advance conditions for each step are shown along with input interlocks (bottom), 29 which affect certain outputs. (C) The “Input Table” correlates the connection terminal number with the word description of each input.

Reports Configuration Some simple reports can be directly set up in the operator interface software. More extensive reports usually require separate reporting or database software. These reports should be set up early so that they can be checked before installation of the equipment. Software/Hardware Integration Once the program is entered, a simulation is recommended, and the program checkout process begins “on the bench.” This process uses the functional specification to prove the software is acceptable. A large percentage of the program can be proved in this manner. Program debugging can be completed before field installation. Field corrections will then be minimized, and high-salaried electrical and installation personnel will not be standing around waiting. The savings that can be realized 51 are quite significant. In addition, it’s important to keep in mind that there’s no substitute for a bench-simulated program check. The software simulation proves the program and allows acceptance by the customer. The program should be reproduced and documented after it has been checked. Once the panels are built, and all configuration and programming are complete, as much of the system as possible should be set up in a staging area for a complete checkout. Final control elements (valves, motor starters) function can

© 2006 by Béla Lipták

be checked for proper outputs. Analog sensors (pressure, level, flow, and so on) are usually simulated with a 4–20 mA calibrator. Using the PLC and programming aids, the panel wiring can be “rung out” (that is, checked point by point) through the PLC. Each I/O point should be activated separately to the terminal block or from the panel controls (buttons, lights, switches). In this manner, the electrical integrity of the panel from the terminal blocks inward is ensured. If any continuity problems exist thereafter, they will be located in the field wiring. All remote I/O should be connected. The data highway or Ethernet networks should be temporarily connected. All displays should also be checked to make sure that the I/O points trigger the correct part of the screen or activate the correct alarm. Some organizations prefer to perform a simulated operation checkout at this time. This is a highly useful approach and can be implemented if the simulators and the I/O point arrangement are organized to simulate the process outside the panel. Some I/O points may need to be jumpered for simulation. For instance, if run contacts are required to close a few seconds after the motor is called to run, they can often be temporarily connected to the output for the test. It is generally felt that each hour spent troubleshooting at this point will save two or three hours during system start-up. Occasionally, operations personnel are brought in

5.4 PLCs: Programmable Logic Controllers

System Checkout and Start-Up

HS-101-2 In stop position

R

G

HS-101-2 In run position Level OR greater 1001 40 than 6 ft. (1.8 m) A, 2 LSL-103-2 Level 1002 greater than 3 ft. (0.9 m) LSLL-103-1 No. 1 pump in auto 1005 position HS-101-1 No. 1 pump in manual position 1006 HS-101-1

* A

HS-101-2 In auto position

No. 1 pump run M-101

* OR

A 40 OR 41

17 DT 2 Sec

* A

5 Y

R

2 Level UAHH greater 1003 100-1 than 12 ft. (3.6 m) alarm LSHH-103-4

6

After electrical interconnections are made and point-to-point wiring is completed (mechanical completion), the system is ready for start-up. The ability of the PLC to operate step by step through the start-up becomes very useful at this stage. Experienced PLC personnel may provide temporary switches in the back of the panel in order to facilitate the startup procedures. These switches can be key-locked, softwarelocked, or disconnected for normal operation. They are also very useful as future maintenance and troubleshooting tools to diagnose future problems. Unanticipated circumstances are always a factor during start-up. Wiring errors, program errors, and mismatches between PLC and HMI databases are common problems at this stage. For this reason it is not uncommon to have electrical and programming personnel available at this time for implementation of any changes that might be necessary. Quite often, program changes can be accomplished over long-distance telephone lines using modems. These changes are not easily implemented without adequate documentation. After successful start-up, the plant is signed off. After Start-Up

B, 2

Symbols defined for programmable logic controller logic diagram 1004 , 1008 etc. indicates PLC input 5 , 7 , 17 , 41 etc. indicates PLC output * OR

Indicates field wired “OR” gate

A 40

Indicates “AND” gate in PLC line 40

FIG. 5.4jj 40 Process and logic diagrams. This logic diagram is for a sump pump.

to demonstrate this process. This is an effective way for the operations personnel to become familiar with the new system, especially in new automation projects in which there may be some “fear of the unknown” to overcome. Occasionally, operations personnel find operational flaws or make suggestions for improvements that can be easily implemented in the panel shop but would be difficult or impossible in the field. Test software intelligently by trying to break it. Testing all aspects of the project during start-up will save time and money in the long run. Also it is recommended to wait until after major milestones in the project to perform software and hardware upgrades. This makes upgrade troubleshooting eas49 ier. At the conclusion of this exercise the panel is accepted by the customer and is shipped to the job site.

© 2006 by Béla Lipták

939

Once again, it is imperative for future successful plant operation that complete, current documentation be available. This documentation should include the items discussed previously. Especially useful for future changes or additions are the startup notes and notes pertaining to future modifications. Training of operations, maintenance, and engineering personnel should be timely and “hands-on.” It is useful to videotape these training sessions for future reference (e.g., for training of new personnel). Suggested programs for PLC training can be obtained from the PLC vendor. This is an important function provided locally at the job site, at a nearby metropolitan area, or at the PLC vendor factory. Troubleshooting When troubleshooting a PLC system it is good to remember that almost 80% of the time the problem is either outside the PLC entirely or in a broken I/O module. Program errors and wiring errors and mismatch of PLC/HMI databases can also cause these problems, but these are usually resolved during start-up. Some simple troubleshooting tips can be followed to decide if a problem is in PLC or elsewhere. Discrete Inputs: Because DIs are usually high impedance, check the input voltages with a high impedance multimeter. Using a low impedance solenoid voltage checker on digital inputs can sometimes cause confusing results. For a discrete input, an indicator on the module shows the state of the input. This should match what is observed on the HMI screen or PLC programmer monitor. The commons for the DI card may be grouped or individual. Check the voltage between common for that point on the I/O card terminal block (or swing arm) and the point in question. If possible actuate the field device and verify that the PLC logic status and

940

PLCs and Other Logic Devices

voltage change together. If the module shows the correct I/O status, but the PLC monitor or HMI does not, the I/O module or its configuration is suspect and may need replacing. Discrete Outputs: Because triacs-type outputs “leak” a small amount of current, they may show a voltage on a multimeter if they are not connected to a load. For discrete outputs, an indicator on the module shows the state of the output. This should match what is observed on the HMI screen or PLC programmer monitor. The power to the DO card may be grouped or individual. Check the voltage for that point on the I/O card terminal block (or swing arm). Then check the voltage for the point in question. If possible cause the output to actuate and verify that the PLC logic status and output voltage change together. If the module shows the correct I/O status, but the measured output voltage does not, the I/O module or its configuration is suspect and may need replacing. Analog 4–20 mA Inputs: For analog I/O, the input values are not displayed on the module. Temporarily remove field wiring and place a 4–20 mA calibrator directly on the point and select either passive or sourced as appropriate for the input configuration. Verify that 4 mA gives the minimum value, that 20 mA gives the maximum value, and that 12 mA produces the value exactly between the min and the max values at the HMI or the PLC. If this works, then the problem is outside the PLC hardware. Analog 4–20 mA Outputs: For analog I/O, the output values are not displayed on the module. Some modules require an external loop power supply. Verify its operation. Put a multimeter in current mode in series with the point in question. Have an operator set the output to 0%, 100%, and 50%. This should produce readings of 4 mA, 20 mA, 12 mA, respectively. If this works, then the problem is outside of the PLC hardware. Erratic Problems: To troubleshoot erratic PLC operations that affect more than a single I/O module, check PLC grounding, power to PLC power supply, DC power output of the power supply, and batteries. Electromagnetic interference (EMI) or radio frequency interference (RFI) generated by large motors starting, arc welding, lightning strikes, handheld radios, or transmitters (a common issue) can produce erratic operation. Improvements in power conditioning, grounding, and shielding can usually resolve these issues. If the program 52 has been affected, it may need to be reloaded.

The sheer number of PLC applications is enormous. According to a recent Control Engineering magazine poll, “The major applications for PLCs include machine control (87%), process control (58%), motion control (40%), batch 53 control (26%), diagnostic (18%), and other (3%).” The results don’t add up to 100% because a single control system generally has multiple applications. Many sources documenting various PLC applications are listed in the Bibliography of this section.

References 1. 2. 3.

4. 5. 6. 7. 8. 9. 10. 11. 12.

13. 14. 15. 16. 17. 18. 19.

CONCLUSION PLCs are durable, delivering real-time control in a rugged 7 and dependable package with no moving parts. They can be installed on either the factory floor or outdoors, withstanding temperature swings up to 60°C PLCs have the critical ability to process sequential logic without experiencing faults in the operating system. Moreover, users continue to use PLCs because they know how to support them and understand the 10 simple ladder logic language they use.

© 2006 by Béla Lipták

20.

21.

22.

23.

Dummermuth, E., “A Bit Twiddler’s History of the PLC,” A-B Journal, November 2002. Strothman, J., “More than a Century of Measuring and Controlling Industrial Processes,” InTech, June 1995. “The History of the PLC as Told to Howard Hendricks by Dick Morley,” R. Morley Inc., 2002, http://www.barn.org/FILES/historyofplc. html. Morley, R., “PLCs According to Morley,” Industry.Net Report, September 27, 1995. Strothman, J., “Leaders of the Pack,” InTech, August 2003. Hart, D., “The PLC-5, The Evolution of an Industry-Leading Solution,” A-B Journal, November 2001. “PLCs Provide Plenty of Possibilities,” Control Magazine, November 2000. Mintchell, G. A., “Distributed Control Goes Discrete,” Control Engineering, October 2000. Johnson, D., “Nano Devices Lead Assault on Traditional PLC Applications,” Control Engineering, August 2002. Merritt, R., “PLCs Persist and Prosper,” Control Magazine, April 2001. Cleaveland, P., “PLC Manufacturers Make Their Solutions a Lot More Open,” Instruments and Control Systems, April 1999. Korarek, L. A., “Sizing Criteria for the Evaluation of Programmable Controllers,” Instruments and Control Systems Seminar Workshop (available from Allen-Bradley). Hordeski, M. F., Microprocessor Cookbook, Blue Ridge Summit: Tab Books Inc., 1979. Intel Corporation, “2816 E2PROM Data Sheet,” Santa Clara, CA, 1981. “The PC User Buyer’s Guide,” PC User. “Fast Growing PC Market Encourages Wide Range of Product Offerings,” Control Engineering, January 1983. Waterbury, B., “Distributed Intelligence Goes to Work,” Control Magazine, August 2000. Eckard, M., “Tackling the Interconnect Dilemma,” Instruments and Control Systems, May 1982. ESD Vendor Workshop, “Control Networks vs. Data Acquisition (A Case for Dividing the Tasks),” 12th Annual Conference and Equipment Display, ESD, March 1983 (available from ISSC). Hoag, D. S., “Programmable Controllers in Distributed Process Control Systems,” International Conference on Power Transmissions, Houston, TX, June 1982 (sponsored by Power Magazine). Jannotta, K. L., “Factory Communications: How to Talk to the Machines,” International Conference on Power Transmissions, Houston, TX, June 1982 (sponsored by Power Magazine). Whitehouse, R. A., “The Future of Programmable Controllers,” ISA 1976 Annual Conference, Advances in Instrumentation, Vol. 33, Part I, Instrument Society of America, October 15–19, 1976. Wallace, D., “How to Put SCADA on the Internet,” Control Engineering, September 2003.

5.4 PLCs: Programmable Logic Controllers

24. 25. 26. 27.

28. 29. 30. 31.

32.

33.

34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44.

45. 46. 47.

48. 49. 50. 51.

52. 53. 54.

Laduminsky, A. J., “Peripherals Enhance PC Performance,” Control Engineering, January 1983. Lutz-Nagy, R., “The Dawn of Intelligent Motion,” Power Transmission Design, February 1980. “PC Users Guide,” Instruments and Control Systems. Londerville, S., “Programmable Controllers in Boiler Control Applications,” Instrument Society of America, Northern California Section, ISA Days, June 2, 1982. Bennett, L. E. and Lockert, C. F., “Evaluating Controls for Batch Processing,” InTech, July 1976. Dietz, R. O., “Programmable Controllers in Batch Processing,” InTech, May 1975. Larsen, G. R., “A Distributed Programmable Controller System for Batch Control,” InTech, March 1983. Melville, H. J., “PLC Applications in Batch Digester Control,” ISA 1980 Annual Conference, Advances in Instrumentation, Vol. 35, Part II, Instrument Society of America, October 20–23, 1980. Hawkinson, G. M., “Selecting a Programmable Controller for a Retrofit,” 9th Annual Programmable Controllers Conference Proceedings, ESD, March 1980. King, J. and Ptak, J., “Toothpaste Processing Using a PC Mini Microcomputer Network,” 12th Annual Conference and Equipment Display Proceedings, ESD, March 1983. Harrold, D., “Controllers —Heartbeat of Production,” Control Engineering, January 2002. Larson, K., “The Shifting Sands of DCS, PLC, & PC Technology,” Control, May 1995. Stafford, T., “Taking Back Control,” InTech, July 2002. Keskar, P., “Sailing to the Islands —Islands of Automation among Goals in Budget-Strapped Upgrades,” InTech, February 2003. Harrold, D., “Figure Out When Enough Is Enough,” Control Engineering, June 2002. Bryant, J. A., “Is Your Plant’s Control System Safe?” Power, August 1979. Klostermeyer, W. H. and Thurston, C. W., “PCs Prove Reliable in Chemicals and Plastics,” Control Engineering, April 1976. Hoffman, E. L., “Redundant Control Systems,” 10th Annual Conference and Equipment Display Proceedings, ESD, March 1981. Sykora, M. R., “The Design and Application of Redundant Programmable Controllers,” Control Engineering, July 1982. Penz, D. A., “Organizing PC Software Development,” Instruments and Control Systems, February 1982 and March 1982. Heider, R. L., “The Programmable Controller as a Process Link to a Distributed Computer Network,” ISA 1980 Annual Conference, Advances in Instrumentation, Vol. 35, Part II, Instrument Society of America, October 20–23, 1980. Rosandich, R. G., “What to Know About PLC Ladder Diagram Programming,” EC&M, June 1996. Conrad, W., “Document Your PC Design,” 9th Annual Programmable Controllers Conference Proceedings, ESD, March 1980. Stockweather, J. W., “Proper PC Documentation for the User,” 11th Annual Conference and Equipment Display Proceedings, ESD, March 1982. Langhans, J. D., “The Programmable Controller in a Continuous Process,” Control Engineering, July 1972. Dunlap, R. A., “8 Ways to Improve Control System Projects,” Control Engineering, April 2003. Harrold, D., “Find the Right Engineering Tools,” Control Engineering, September 2001. Kraemer, W. P., “Testing and Start-up of Programmable Controller Systems,” Paper PC 179–14, IEEE Transactions on Industry Applications, Vol. 1A-16, No. 5, September/October 1980. Rosandich, R. G., “Troubleshooting PLCs,” EC&M, May 1996. McBride, A. E., “Programmable Logic Controllers—Get More than What You See,” Control Engineering, February 2001. Programmable Controller Course, Instruments and Control Systems, Radnor, PA: Chilton Co., 1981.

© 2006 by Béla Lipták

941

Bibliography Albert, C. L. and Coggan, D. A., Fundamentals of Industrial Control, Research Triangle Park, NC: ISA, 1992. Amy, L. T., Automation Systems for Control and Data Acquisition, Research Triangle Park, NC: ISA, 1992. Asfahl, C. R., Robots and Manufacturing Automation, 2nd edition, New York: John Wiley, 1992. Baille, N. B., “The Application of Programmable Controllers to Compressor Systems for Offshore Applications,” Measurement and Control: Journal of the Institute of Measurement and Control, England, Vol. 14, No. 9, September 1981. Baker, A. T. and Rahoi, R. J., “Programmable Controller Applications for Power Plant Waste Water Treatment Facility,” ISA Power Instrumentation Symposium, Chicago, May 14–16, 1980. Barrett, L. E. and Lemmon, R. H., “Use of Programmable Controllers to Control Series Slurry Pumping Systems,” 10th Annual Programmable Control Conference and Equipment Display Proceedings, ESD, March 10–12, 1981. Bartlett, P. G., Jr., “Installing a PC,” Instruments and Control Systems, August 1980. Batten, G. L., Programmable Controllers: Hardware, Software and Applications, 2nd edition, New York: McGraw-Hill Companies, 1994. Bauman, D. E. and Mellott, M. T., “Automatic Small Refinery Blending Operations,” Hydrocarbon Processing, November 1981. Bedworth, D. D., Henderson, M. R., and Wolfp, P. M., Computer Integrated Design and Manufacturing, New York: McGraw-Hill, 1991. Bergwall Productions Inc., Introduction to Programmable Logic Controller: E19, Albany, NY: Delmar Publishers, 1992. Bertrand, R. M., Programmable Controller Circuits, 1st edition, Clifton Park, NY: Delmar Learning, 1995. Boehm, B. W., Software Risk Management, Piscataway, NJ: IEEE (Computer Science), 1990. Bolton, W., Programmable Logic Controllers, 3rd edition, Burlington, MA: Newnes, 2003. Booty, D. J., “So You’re Buying a Programmable Controller,” InTech, September 1980. Boyer, S. A., SCADA: Supervisory Control and Data Acquisition, 2nd edition, Research Triangle Park, NC: ISA, 1993. Bryan, E. A. et al., Programmable Controllers: Workbook and Study Guide, 2nd edition, Atlanta: Industrial Text & Video, 1997. Bryan, L. A. and Bryan, E. A., Programmable Controllers—Theory and Implementation, Atlanta: Industrial Text Company, 1997. Burr, J., “Smart Programmable Controller: Key to Pipeline Pump Station Control” (available from Gould Modicon). Campbell, A., The Allen-Bradley SLC 5/01-2 Programmable Controller, New York: McGraw-Hill/Glencoe, 1998. Carlisle, B. H., “More Power for Programmable Controllers,” Machine Design, March 6, 1980. Cherba, D. M., “Redundancy in Programmable Control Systems,” Instruments and Control Systems, April 1983. Clare, W. and Wilson, G., “Programmable Controllers Application to Water Treating Plants: What, Why, When, Where, How,” 7th Annual Joint Instrumentation Conference and Workshop ISA and AWWA, Santa Ana College, CA, August 20, 1980. Cleaveland, P., “Programmable Controllers: A Technology Update,” Instruments and Control Systems, May 1983. Coelho, W. A., “Putting Programmable Controllers to Work on Material Handling,” Instrumentation Technology, March 1974. Collins, D. and Lane, E., Programmable Controllers, New York: McGrawHill Book Co. Ltd., 1995. Cooke, E. F., Halajko, J. S. et al., “Supervisory Programmable and Setpoint Control for Automating a Batch Plant,” InTech, July 1980. Costanzo, M., Programmable Logic Controllers, London: Hodder & Stoughton, 1997. Crispin, A. J., Programmable Logic Controllers and Their Engineering Applications, 2nd Edition, New York: McGraw-Hill, 1996.

942

PLCs and Other Logic Devices

Daiker, J., “Operator Interface: Link-up of a Color-Graphic CRT and PLC,” 9th Annual Conference and Equipment Display Proceedings, ESD, March 1980. Dechont, G. R. and Ware, W. E., “Performing PID with a Programmable Controller on an Extrusion Line,” 11th Annual Conference and Equipment Display Proceedings, ESD, March 1982. Deltano, D., “Programming Your PC,” Instruments and Control Systems, July 1980. Dropka, E., Toshiba Medium PLC Primer, book and disk edition, Oxford: Newnes, 1995. Dunning, G., Introduction to Programmable Logic Controllers, 2nd edition, Clifton Park, NY: Delmar Learning, 2001. Ellis, R., “Color Graphics CRTs Provide ‘Window’ into Factory Operations,” Instruments and Control Systems, February 1983. Farrar, L., “Discrete Control Products for Reliable Automation,” Instruments and Control Systems, April 1982. Farrar, L., “Programmable Controllers in the Factory,” Instruments and Control Systems, July 1983. Filer, R. F. and Leinonen, G., Programmable Controllers and Designing Sequential Logic (Saunders College Publishing Series in Electronics Technology), Boston: International Thomson Publishing, 1997. Filer, R. F. and Leinonen, G., Programmable Controllers Using AllenBradley SLC500 and Control-Logix, 1st edition, New York: Prentice Hall, 2001. Fischer, G. I., “Use of PCs for Energy Management,” 9th Annual Programmable Controllers Conference Proceedings, ESD, March 1980. Franck, D. T., “Programmable Controllers Today and Tomorrow,” Electrical Consultant, 1974. Frost, H. C., “New Processes Improve Food Quality, Yields Help Energy Efficiency, Labor Utilization,” Food Product Development, April 1980. Geller, D. A., Programmable Controllers Using the Allen Bradley SLC-500 Family, New York: Prentice Hall, 1999. Gilbert, R. A. and Llewellyn, J. A., Programmable Controllers: Practices and Concepts, Industrial Training Co., 1985. Girard, B., Programmable Logic Controllers: Architecture and Application, New York: Wiley & Sons, 1990. Hackworth, F.D., Programmable Logic Controllers: Programming Methods and Applications, book and CD edition, New York: Prentice Hall, 2003. Harold, R. A., “Designing Automated Systems for High Reliability and Maintainability,” 12th Annual Conference and Equipment Display Proceedings, ESD, March 1983. Hasenfuss, F. C., “Programmable Controllers Control Natural Gas Underground Storage,” 10th Annual Programmable Controller Conference and Equipment Display Proceedings, ESD, March 10–12, 1981. Henry, D., “PC Input/Output Consideration,” Instruments and Control Systems, June 1980. Herb, S.M., Understanding Distributed Processor Systems for Control, Research Triangle Park, NC: ISA, 1999. Herndor, W., “Advantages of Digital Control in Small Process Loop Applications,” ISA 1980 Annual Conference, Advances in Instrumentation, Vol. 35, Part I, October 20–23, 1980. Hickey, J., “Programmable Controller Update,” Instruments and Control Systems, July 1979. Hill, C., “Microprocessors Simplify an Adaptive Gain Problem,” ISA 1980 Annual Conference, Advances in Instrumentation, Vol. 35, Part I, October 20–23, 1980. Hollopeter, W. C., “Man/Machine Interfaces: Yesterday, Today, and Tomorrow,” ISA Regional Show 1979, Los Angeles, CA, Andover, MA: Gould Modicon. Huber, R. F., “Programmable Controls: Where the Action Is,” Production, September 1971. Hughes, T. A., Programmable Controllers, 3rd edition, Research Triangle Park, NC: ISA, 2000. Hyde, J. F., “Sophisticated PCs: The Right Direction but Don’t Stop Now,” 11th Annual Conference and Equipment Display Proceedings, ESD, March 1982.

© 2006 by Béla Lipták

Institution of Electrical Engineers, Semsplc Guidelines: Safety-Related Application Software for Programmable Logic Controllers, Stevenage, UK: IEE 1999. Jeffcoat, W. and Clements-Jewery, K., The PLC Workbook: Programmable Logic Controllers Made Easy, New York: Prentice Hall, 1996. Kalpakjian, S., Manufacturing Engineering and Technology, 2d edition, Reading, MA: Addison-Wesley, 1992. Kirchof, G., FX Cascading Logic: A Machine Control Methodology for Programmable Logic Controllers, Research Triangle Park, NC: ISA, 2002. Kissell, T.E., Industrial Electronics: Applications for Programmable Controllers, Instrumentation and Process Control, and Electrical Machines and Motor Controls, 3rd edition, New York: Prentice Hall, 2002. Larson, K., “The Great DCS vs. PLC Debate,” Control, January 1993. Mandado, E. et al., Programmable Logic Devices and Logic Controllers, 1st edition, New York: Prentice Hall, 1996. Martin, P.G., Bottom-Line Automation, Research Triangle Park, NC: ISA, 2001. Michel, G. et al., Programmable Logic Controllers: Architecture and Application, New York: John Wiley & Sons, 1990. Morriss, S.B., Programmable Logic Controllers, 1st edition, New York: Prentice Hall, 1999. Nelson, J. E. and Menefee, W. F., “Application of Programmable Controllers in the Loop Supervisory Control and Monitoring System” (detailed paper available from Gould Modicon). NFPA 79, Electrical Standard for Industrial Machinery, Quincy, MA: National Fire Protection Association, Inc., 1997. Obert, P., “The 12 Most Often Asked Questions About PLCs,” Instruments and Control Systems, August 1976. Otter, J. D., Programmable Logic Controllers: Operation, Interfacing and Programming, New York: Prentice Hall, 1988. Owens, D. R., “A Case for Custom Software,” Instruments and Control Systems, November 1981. Palko, E. (Ed.), “The Solid State Industrial Programmable Controller,” Plant Engineering, April 1973. Parkin, T. O., “How Cost-Effective Are PCs?” Instruments and Control Systems, April 1980. Parr, E.A., Programmable Controllers: An Engineer’s Guide, 3rd edition, Boston: Newnes, 2003. Persson, N. C., “Programmable Controllers,” Design News, April 1978. Petruzella, F. D., Programmable Logic Controllers, 2nd edition, New York: McGraw-Hill Science/Engineering/Math, 1997. Petruzella, F. D., Programmable Logic Controllers, Activities Manual, 2nd edition, New York: McGraw-Hill Science/Engineering/Math, 1996. PLC-5 Programming Software, Allen-Bradley, 1991. Poisson, N. A. and Anderson, R., “Batch Process Control with Programmable Controllers,” (available from Gould Modicon). Programmable Controller Handbook, Lebanon, OH: Cincinnati Milacron Inc., Electronics Systems Division, 1972. “Programmable Controllers,” Measurements and Control, September 1993. Quatse, J. T., “Programmable Controllers of the Future,” Control Engineering, Vol. 33, No. 1, January 1986. Rabiee, M., Programmable Logic Controllers: Hardware and Programming, Teacher edition, South Holland, IL: Goodheart-Willcox Co., 2002. Ridley, J., Introduction to Programmable Logic Controllers: The Mitsubishi FX, Oxford: Butterworth-Heinemann, 2001. Rohner, P., PLC: Automation With Programmable Logic Controllers, Seattle, WA: University of Washington Press, 1996. Rosandich, R. G., Fundamentals of Programmable Logic Controllers, Overland Park, KS: EC&M Books, 1997. Saitta, G. N., “PC Manages Vapor Recovery System at Alaska Pipeline Terminal,” InTech, May 1978. Sampson, W. H., “Controlling Electric Demand with a Programmable Controller,” 11th Annual Conference and Equipment Display Proceedings, ESD, March 1982. Savelyev, M. K., “How to Use PCs for Energy Management Systems,” Control Engineering, February 1979.

5.4 PLCs: Programmable Logic Controllers

Simpson, C.D., Programmable Logic Controllers, 1st edition, New York: Prentice Hall, 1998. Standard ICS3-1978, “Industrial Systems,” National Electrical Manufacturers Association, 1978. Stenerson, J., Fundamentals of Programmable Logic Controllers, Sensors, and Communications, 2nd edition, New York: Prentice Hall, 1998. Stenerson, J., Programming PLCs Using Rockwell Automation Controllers, book and CD-ROM edition, New York: Prentice Hall, 2003. Stockweather, J. L., “Suppliers to Users: What Is Their Role?” PC User, March 1982. SYMAX 650 Programming Manual, Square D, 1991. Taebel, T. A., “An Introduction to Programmable Controllers,” presented at the ESD PC Conference, May 1977. Thumann, A., “For Greater Control Sequence Flexibility, Use the Programmable Controller,” Electrical Consultant, 1974. Treseler, M., Designing State Machine Controllers Using Programmable Logic (Prentice Hall Series in Innovative Technology), New York: Prentice Hall, 1991. Urmie, M., “Programmable Controllers for Batch Processing,” Measurements and Control, December 1982.

© 2006 by Béla Lipták

943

Waite, R., “PC Study Reveals User Wants and Needs,” Instruments and Control Systems, February 1983. Walker, F. H., “Use of Programmable Controllers for Industrial Power Distribution System Monitoring, Control and Protection,” IEEE Proceedings Conference Record 79CH1423-3 1A, Paper Number PCI-79-25, 1979. Ward, P. T. and Mellor, S. J., Structured Development for Real-Time Systems, Yourdon Press, 1991. Webb, J. W. and Reis, R. A., Programmable Logic Controllers: Principles and Applications, 5th edition, New York: Prentice Hall, 2002. Whitehouse, R. A., “Programmable Controllers: Cost and Maintenance,” 1979 Plant Engineering and Maintenance Conference, Chicago, May 8, 1979. Wiktorowicz, A. C. and Jeffreys, J., “Boiler Combustion Control with Programmable Controllers,” International Conference on Power Transmission, Houston, TX, June 1982 (sponsored by Power Magazine). Williams, R. I., “Fundamentals of Pipeline Instrumentation, Automation and Supervisory Control,” ISA 1981 Annual Conference, Advances in Instrumentation, Vol. 36, Part I, March 23–26, 1981.