To Plcs
To Plcs
To Plcs
to
PLCs
Introduction
to
PLCs
SECOND EDITION
Jay F. Hooper
ISBN 1-59460-331-6
LCCN 2006932360
Preface ix
Foreword xi
1 Overview 3
An Origin Story 3
The Four Parts of a PLC 5
PLC Symbols 7
PLC Terminal Numbers 7
PLC Logic Symbols 8
2 Hardware 13
Input Rack 13
Output Rack 15
Different Voltage Levels 15
Current Drains 16
Terminal Diagrams 16
Seven General Rules 18
General Rule #1 18
General Rule #2 19
3 Programming Basics 23
Inputs and Outputs 23
The IO Scan 24
General Rule #3 25
Branching 26
General Rule #4 27
Gates 27
Symbols on Terminal Diagrams 28
4 Basic Logic 29
AND and OR 29
NOT 31
OUT 31
v
vi Contents
5 Ladder Logic 37
Control Relays 37
Contactors and Motor Starters 38
Two-Wire (Automatic) Control Circuits 38
Three-Wire (No-Voltage Protection)
Control Circuits 39
Open vs. NO and Closed vs. NC 40
Photo Eyes and Proximity Detectors 42
Mechanically Interconnected Switches 43
6 Counters 45
Count Up and Count Down Counters 45
General Rule #6 45
Preset, Reset, and Accumulated Values 45
Enable and Done Bits 47
Example of a Light Chaser Circuit 48
7 Timers 55
Timer On Delay (TON) 55
Timer Off Delay (TOF) 55
One-Shot Timer 56
Preset, Reset, Accumulated Values,
and Time Units 58
One-Shot Timed Contact 60
8 Sequencers 61
Sequencer Symbol (SQO) 61
Sequencer Output Table 62
File, Mask, Destination, Control, Length,
and Position Values 64
Example of a Light Chasing Circuit 66
Appendix A 79
Symbols in the Electrician World 79
Symbols in the Electronic World 90
Logic 92
Appendix B 95
Exercises 99
Jay F. Hooper
Greensboro, NC
ix
Foreword
This introductory book on PLCs is oriented to the
line mechanic and the electrician working on the fac-
tory floor. It is directed to their world view (series and
parallel). However, I have included logic circuit equiv-
alents from the computer world and the e lectronic
world (AND, OR, NOT, NOR NAND, etc.) in an Ap-
pendix for Chapter 4.
The book does not go into the design of PLCs or the
design of PLC systems as this would be beyond the
scope of an introductory book.
The material presented would be most useful as a
text for community college courses (both curriculum
and continuing education) for electrical programs, in-
dustrial systems programs, or industrial maintenance
programs. It would also be highly useful as a lab man-
ual for four year college or university electrical, elec-
tronic, or systems courses.
Trouble shooting of PLC programs and problems is
usually acc omplished in labs. Software glitches are
usually handled on a vendor specific basis and hard-
ware glitches (using volt-ohm meters, etc.) is usually
covered in a prerequisite course such as motor controls
or during on the job training.
The various aspects of this approach ha ve been
thoroughly tested over a wide range of audiences over
the past dozen years.
Jay F. Hooper
Greensboro, NC
xi