0% found this document useful (0 votes)
286 views287 pages

Basic PLC Programming Book

Uploaded by

ferish2712
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
286 views287 pages

Basic PLC Programming Book

Uploaded by

ferish2712
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 287

Introduction to

Industrial Automation
http://taylorandfrancis.com
Introduction to
Industrial Automation

Stamatios Manesis
George Nikolakopoulos
CRC Press
Taylor & Francis Group
6000 Broken Sound Parkway NW, Suite 300
Boca Raton, FL 33487-2742

© 2018 by Taylor & Francis Group, LLC


CRC Press is an imprint of Taylor & Francis Group, an Informa business

No claim to original U.S. Government works

Printed on acid-free paper

International Standard Book Number-13: 978-1-4987-0540-0 (Hardback)


International Standard Book Number-13: 978-1-3510-6908-3 (eBook)

This book contains information obtained from authentic and highly regarded sources. Reasonable efforts have been made to
publish reliable data and information, but the author and publisher cannot assume responsibility for the validity of all materi-
als or the consequences of their use. The authors and publishers have attempted to trace the copyright holders of all material
reproduced in this publication and apologize to copyright holders if permission to publish in this form has not been obtained.
If any copyright material has not been acknowledged please write and let us know so we may rectify in any future reprint.

Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmitted, or utilized in
any form by any electronic, mechanical, or other means, now known or hereafter invented, including photocopying, micro-
filming, and recording, or in any information storage or retrieval system, without written permission from the publishers.

For permission to photocopy or use material electronically from this work, please access www.copyright.com (http://www​
.copyright.com/) or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers, MA 01923, 978-750-
8400. CCC is a not-for-profit organization that provides licenses and registration for a variety of users. For organizations that
have been granted a photocopy license by the CCC, a separate system of payment has been arranged.

Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and are used only for identifi-
cation and explanation without intent to infringe.

Visit the Taylor & Francis Web site at


http://www.taylorandfrancis.com

and the CRC Press Web site at


http://www.crcpress.com
To my wife, Lena.

Stamatios Manesis
To my father, Nestoras.

George Nikolakopoulos
http://taylorandfrancis.com
Contents

Preface..................................................................................................................................... xiii
Authors......................................................................................................................................xv
1 Industrial Automation...................................................................................................1
1.1 The Industrial Control System.................................................................................. 1
1.2 Automation and Process Control.............................................................................. 6
1.3 Purpose of Industrial Automation.............................................................................. 9
1.4 Industrial Automation Circuits................................................................................10
1.5 Computer-Based Industrial Control and Automation..............................................13
Review Questions...............................................................................................................18
2 Hardware Components for Automation and Process Control....................................19
2.1 Actuators...............................................................................................................19
2.1.1 Electric Motors.................................................................................................20
2.1.2 Pneumatic Actuators.................................................................................. 24
2.1.3 Micro-Electro-Mechanical Systems............................................................ 24
2.1.4 Relays..........................................................................................................25
2.1.4.1 Relays’ Operation Principle.........................................................25
2.1.5 Power Relays...................................................................................................... 27
2.1.6 General Purpose Relays.............................................................................. 29
2.1.7 Latching Relays.......................................................................................... 30
2.1.8 Pulse Bistable Relays.....................................................................................31
2.1.9 Solid State Relays......................................................................................... 32
2.1.10 Electric Contact Classification.....................................................................33
2.1.11 Solenoid Linear Actuators.............................................................................35
2.2 Sensors................................................................................................................... 37
2.2.1 Thermal Overload Relay............................................................................ 38
2.2.2 Proximity Switches..................................................................................... 40
2.2.3 Photoelectric Switches.................................................................................47
2.2.4 Limit Switches.................................................................................................... 50
2.2.5 Level Switches.............................................................................................52
2.2.6 Flow Switches..................................................................................................... 57
2.2.7 Temperature and Pressure Switches.............................................................59
2.3 Timers, Drum Switches, and Special Components................................................. 64
2.3.1 Timers.......................................................................................................... 64
2.3.2 Cam Timers................................................................................................67

vii
viii ◾ Contents

2.3.3 Three-Phase Monitoring Relays................................................................. 69


2.3.4 Reed Relays................................................................................................ 70
2.3.5 Specific Solenoid Actuators.......................................................................... 71
2.3.6 Counters and Hour Meters.......................................................................... 72
2.3.7 Encoders..............................................................................................73
Review Questions.............................................................................................................. 75
3 Industrial Automation Synthesis.................................................................................79
3.1 Introductory Principles in Designing Automation Circuits.......................................79
3.1.1 The Latch Principle...................................................................................... 79
3.1.2 The Principle of “Command”......................................................................81
3.2 Step-by-Step Basic Automation Examples Synthesis............................................... 82
3.2.1 Motor Operation with Thermal Overload Protection................................. 82
3.2.2 Operation and Fault Indication................................................................... 83
3.2.3 Machine Operation with Starting Delay.................................................... 84
3.2.4 Machine Operation with Stopping Delay................................................... 87
3.2.5 Periodic Operation of Machine with Two Time Constants........................ 88
3.2.6 Machine Operation with Automatic or Manual Control.............................88
3.2.7 Operation of Two Machines with a Common Manual Command
or Separate Automatic Commands............................................................ 89
3.2.8 Operation of Two Machines with a Common Automatic Command
or Separate Manual Commands................................................................ 90
3.2.9 Operation of a Machine from Two or More Points.................................... 90
3.2.10 Control Panel for Operating n Machines....................................................91
3.3 The Meaning of the Electrical and Mechanical Latch..............................................91
3.3.1 Sequential Start—Latch of Machines (Chain Latch)................................. 93
3.3.2 Motor Operation with Power Supply from Two Different Networks......... 94
3.4 Automation Circuits for Motors............................................................................. 95
3.4.1 Motor with Inversion in Rotation................................................................ 95
3.4.2 Motor with a Star-Delta (Y-Δ) Start........................................................... 96
3.4.3 Automation of Various Motor Types.......................................................... 97
3.5 Automation Circuits with Sensors............................................................................ 98
3.5.1 Starting a Machine with Cancelling Ability............................................... 98
3.5.2 Pump Operation Based on Level Control................................................ 100
3.5.3 Operation of Two Pumps According to Demand..................................... 100
3.5.4 Automation of a Garage Door...................................................................101
3.6 Automation Circuit Design Regulations................................................................102
3.7 Implementation of Automation Circuits................................................................105
3.8 Applications...........................................................................................................107
3.8.1 Machine Operation Control from Multiple Positions.................................107
3.8.2 Operation Control of a Power Transformer...............................................108
3.8.3 Operation of Two Pumps with a Cyclic Alteration, Based
on a Low-High Demand........................................................................ 109
3.8.4 Operation of Three Air Compressors with Predefined Combinations.......112
Problems..........................................................................................................................113
Contents ◾ ix

4 Logical Design of Automation Circuits........................................................................117


4.1 Introduction to Logical Design of Automation Circuits........................................117
4.2 Boolean Logic Components...................................................................................118
4.2.1 Postulates and Theorems of Boolean Algebra........................................... 120
4.3 State Diagrams......................................................................................................121
4.3.1 Classical State Diagrams...........................................................................121
4.3.2 State Diagrams with Sensors.................................................................... 124
4.3.3 Step-by-Step Transition due to a Discrete Successive Signal..................... 128
4.3.4 State Diagrams with Time Relays............................................................133
4.3.5 Components’ State Diagram Method.......................................................135
4.3.6 State Diagrams and Minimum Realizations.............................................137
4.3.7 Sequential Automation Systems..................................................................142
4.4 Applications...........................................................................................................145
4.4.1 Bidirectional Lead Screw Movable Worktable with Two Speeds...............146
4.4.2 Palindromic Movement of a Worktable with Memory...............................148
4.4.3 Operation of N Machines with Pause under Specific Conditions.............. 151
Problems.......................................................................................................................... 155
5 Elements of Electro-Pneumatic Components............................................................159
5.1 Introduction to Electro-Pneumatic Components...................................................159
5.2 Pressurized Air.........................................................................................................159
5.3 Production of Pressurized Air................................................................................160
5.4 Distribution of Pressurized Air..............................................................................161
5.5 Pneumatic Devices................................................................................................163
5.5.1 Single-Acting Cylinders..............................................................................163
5.5.2 Double-Acting Cylinders..........................................................................164
5.6 Calculations in the Case of Pneumatic Cylinders..................................................166
5.6.1 Length of Piston Stroke..............................................................................167
5.6.2 Speed of Piston’s Translation.....................................................................167
5.7 Pressurized Air Flow Control Valves......................................................................167
5.7.1 Directional Valves.....................................................................................167
5.7.2 Manual Actuation of a Valve.....................................................................168
5.7.3 Mechanical Actuation of a Valve...............................................................170
5.7.4 Electrical Actuation of a Valve....................................................................170
5.7.5 Pneumatic Actuation of a Valve................................................................174
5.8 Circuits for Electro-Pneumatic Automation............................................................175
5.9 Electro-Pneumatic Applications............................................................................178
5.9.1 Industrial Automation of an Arrangement for Separating Similar Balls....178
5.9.2 Industrial Automation of an Object Stamping Machine...........................179
5.9.3 Industrial Automation of a Conveyor Arrangement for Objects Shorting....181
Problems..........................................................................................................................183
6 Basic Operating Principles of PLCs..........................................................................193
6.1 Introduction to PLCs.................................................................................................... 193
6.2 Modular Construction of a PLC........................................................................... 200
x ◾ Contents

6.3 PLC I/O Components.......................................................................................... 202


6.4 Digital Input Modules.......................................................................................... 204
6.5 Digital Output Modules....................................................................................... 209
6.5.1 Technical Specifications for Digital Input/Output Modules.....................212
6.6 Analog Input/Output Modules..............................................................................216
6.6.1 Analog Input Modules..............................................................................216
6.6.2 Accuracy in the Conversion of Analog Signals..........................................219
6.6.3 Analog Output Modules.......................................................................... 220
6.7 Special Purpose Input/Output Modules................................................................ 222
6.7.1 Fast Input Response Modules.................................................................... 223
6.7.2 Stepper Motor Control Modules.............................................................. 223
6.7.3 Three Terms (PID) Control Modules....................................................... 224
6.7.4 Communication Modules......................................................................... 225
6.8 Central Processing Unit........................................................................................ 225
6.8.1 Memory Organization............................................................................. 227
6.8.2 Memory Types..........................................................................................231
6.8.2.1 Read Only Memory (ROM)......................................................231
6.8.2.2 Random Access Memory (RAM)...............................................231
6.8.2.3 Erasable Programmable Read Only Memory (EPROM)............231
6.8.2.4 Electrically Erasable Programmable Read Only Memory
(EEPROM)............................................................................... 232
6.8.3 Addressing I/Os and Other Internal Elements............................................232
6.9 PLC Expansion and I/O Configuration.................................................................233
6.9.1 Local and Peripheral I/O System.............................................................. 234
6.9.2 I/O System Design................................................................................... 236
6.10 On the Installation of PLCs................................................................................. 243
6.10.1 Electrical Enclosure for the PLC Installation...............................................243
6.10.2 Electromagnetic Interference....................................................................245
6.10.3 Grounding................................................................................................249
6.10.4 Electromagnetic Shielding of Cables.........................................................251
6.10.5 Lightning Protection.................................................................................252
6.10.6 Input Devices with Leakage Current—Impedance Adjustment of I/Os.....253
6.10.7 Input Impedance Adjustment...................................................................256
6.10.8 Output Impedance Adjustment................................................................257
6.10.9 Parallelizing Digital Outputs of PLCs—Transitional Protection of I/Os....259
6.10.10 Starting the Operation of a PLC and Fault Detection...............................261
Review Questions and Problems..................................................................................... 264
7 Basic Programming Principles of PLCs....................................................................271
7.1 Introduction to Programming of PLCs..................................................................271
7.2 The IEC 61131 Standard.............................................................................................273
7.3 Structural Programming...................................................................................... 278
7.4 Basic Programming Instructions.............................................................................281
7.4.1 The Result of an Instruction Execution.................................................... 284
7.4.2 Boolean Logic Instructions...................................................................... 287
7.4.3 Activation Instructions............................................................................ 288
7.4.4 Complementary Instructions................................................................... 290
Contents ◾ xi

7.5 Programming According to the IEC 61131-3 Standard...........................................292


7.5.1 General Highlights and Restrictions in PLC Programming..................... 292
7.5.2 Programming with Boolean Logic and Activation Instructions............... 300
7.5.3 Programming with Timers and Counters................................................. 315
7.5.4 Using Structural Programming................................................................ 323
7.5.5 Programming Mathematical Operations...................................................327
7.5.6 Applications of PLC Programming..........................................................329
Problems......................................................................................................................... 347
8 Industrial Networks of PLCs.....................................................................................355
8.1 Topology of a Network..........................................................................................357
8.1.1 Star Topology............................................................................................357
8.1.2 Ring Topology..............................................................................................358
8.1.3 Bus Topology............................................................................................359
8.2 Communication Protocols.....................................................................................359
8.2.1 Master/Slave Method of Access................................................................ 360
8.2.2 Carrier Sense with Collision Detection Method of Access........................ 360
8.2.3 Token Passing Method of Access..............................................................361
8.3 Implementation of Industrial Networks............................................................... 362
8.3.1 Data Transmission Media........................................................................ 362
8.3.2 The ISO/OSI Model.................................................................................... 363
8.3.3 Network Devices......................................................................................... 364
8.3.4 The Communication Task of PLCs...........................................................365
8.3.5 The Actuator-Sensor Interface (AS-I) Network.........................................367
8.3.6 The Profibus Network.............................................................................. 368
8.3.7 SCADA Systems...................................................................................... 368
Review Questions.............................................................................................................370
9 PID Control in the Industry............................................................................................ 373
9.1 PID Control..........................................................................................................373
9.2 PID Control in PLCs............................................................................................376
10 Industrial Applications.............................................................................................381
10.1 Cyclic Operation of Traffic Lights.........................................................................381
10.2 Conveyor System for an Assortment of Objects by Pairs........................................381
10.3 Packaging System of Different Balls..................................................................... 383
10.4 Conveyor System for Transferring Granular Material with Weight Control......... 384
10.5 The Food Industry: A Machine for Production of Tzatziki Salad..........................385
10.6 Retentive Reciprocating Movement of a Worktable.............................................. 387
10.7 Wooden Plate Stacking, Painting and Transferring Process.................................. 388
10.8 An Automated Billiard Table Controlled by a PLC.............................................. 388
10.9 Automated Filling of Two Milk Tanks................................................................. 389
10.10 Modular Programming for a Set of Processing and Repairing Stations................. 390
10.11 Traffic Light Control of a Complex Intersection....................................................391
10.12 Combined Operation of Two Conveyor Belts........................................................392
10.13 A Machine with Three Operational States and an Acknowledgement Signal.........392
10.14 Chemical Cleaning Process of Metallic Objects....................................................392
10.15 Driving a Step Motor Through a PLC....................................................................393
xii ◾ Contents

10.16 Stacking Machine of Light Objects........................................................................ 394


10.17 A Simple Robotic Arm for Pickup and Placement of Light Objects.......................395
10.18 Heat Treatment Process in a Chamber Furnace.................................................... 396
10.19 Working Time Monitoring of a Machine under a Three-Shift Schedule............... 397
10.20 Feeding an Assembly Machine with Components in Bulk................................... 398
10.21 A Roller Conveyor System for Wrapping Plastic Membrane................................. 399
10.22 Color-Based Separation of Plastic Balls................................................................. 399
10.23 The Shearing Machine of an Unfolded Aluminum Sheet........................................401
10.24 Inlet and Outlet Rate Monitoring of Transferred Objects In and Out
of a Process Machine............................................................................................ 402
10.25 A Metal Plate Rolling Mill Machine and Control of Their Thickness................... 402
10.26 An Object Painting and Transporting System...................................................... 403
10.27 A Multiple Bottle Packing Station.......................................................................... 404
10.28 A Barrel-Filling System for Dry Bulk Material....................................................405
10.29 An Electro-Pneumatic System for Pickup and Lay Down of Plastic Containers...... 406

Appendix A: Arithmetic Systems....................................................................................... 409


Appendix B: Analog I/O Values Scaling..............................................................................419
Further Reading.................................................................................................................421
Index.......................................................................................................................................... 425
Preface

The book that you are holding is the result of many efforts in teaching the concept of industrial
automation to young and promising engineers during the last few decades in academia. The authors
aimed to create a system so that engineers will have a full and in-depth overview of the industrial
automation field, with a strong connection to real-life applications and that will provide a con-
stant inspiration for the problems that are commonly found in an industrial environment. In the
adopted teaching approach, one of the fundamental learning outcomes was to enable independent
and outside-the-box creative thinking for automation engineers, in order to produce functional
solutions to difficult problems. In all these years, the authors have identified that there has not been
a book in the existing literature that provides all the necessary learning directions for students and
with a full focus on real-life demands, a book that could prepare them immediately and with the
fundamental deep knowledge to deal with the field of industrial automation. Thus, the book that
you are holding now is the outcome of a writing and integration process that lasted more than
three years, a book that we hope to be a constant reference in the field of industrial automation.
Industrial automation is a multidisciplinary subject that requires knowledge and expertise
from various engineering sectors, such as electrical, electronics, chemical, mechanical, commu-
nications, process, and software engineering. Nowadays, the application of industrial automation
has been transformed into an ubiquitous infrastructure that automates and improves everyday
life. Characteristic examples of industrial automation systems can be found in the car industry,
the aviation sector, the marine industry, healthcare industry, rail transportation, electrical power
production and distribution, the pulp and paper industry, and numerous other applications. Our
society has become so dependent on automation, that it is difficult to imagine what life would be
like without automation engineering. With the current developments in the field of Industry 4.0,
industrial automation is unified with the concept of the Internet of things, embedded systems,
and Cyber-Physical systems, in order to create an integrated ecosystem with the vision to enable
pure automation for all aspects of life, a future in which everything will be connected, integrated,
and automated.
Nowadays, the concept of automation in an industrial production process is a very attractive
subject for electrical engineers, because it perfectly combines all the principles and methods of
classic automatic control with microcomputer or microprocessor technology. The introduction
of microcomputer technology in the field of industrial production, coupled with development in
the area of robotics, resulted in the creation of a special scientific field known as “automation and
robotics”. Although this field appears to be separated from “automatic control”, this is mainly due
to its great extent and not to the differentiation of its theoretical principles. The rapid development
of automation and robotics in today’s technological world has made it necessary for some time to
introduce industrial automation and robotics courses in the curriculum of various electrical and
computer engineering departments.

xiii
xiv ◾ Preface

Each industrial production process consists of a series of simple or complex machines through
which the raw material undergoes a sequential treatment in order to achieve the production of
an end product, while satisfying the goal of increased production, improving product quality,
lowering costs, and increasing production flexibility. Initially, industrial automation systems
were implemented in a conventional way, i.e., with independent specific devices (timers, coun-
ters, auxiliary relays, etc.), and wiring them according to the desired operating mode. Today, the
implementation of an industrial automation system takes place in specific digital devices called
programmable logic controllers (PLCs). The key feature of PLC technology is the need for pro-
gramming (versus wiring) the control logic of the industrial system. The multiple advantages of
PLCs have made them the leading tool for controlling an industrial system, but also for other
non-industrial systems that we encounter in our everyday lives, such as traffic control for a street
intersection, a tower elevator, an automated car wash, etc.
The first part of the book, including Chapters 1, 2, 3, 4, 5 and 6, presents the basic devices,
sensors, and actuators, in which the aid of an automation system is implemented, as well as the
heuristic composition of automation arrangements and the methodical design of automation cir-
cuits. Also, the basic elements of electro-pneumatic technology are introduced. The second part
of the book, including Chapters 6, 7, 8, 9 and 10, presents the extended subject of PLCs, whose
hardware and software are both described in detail. The basic concepts of industrial networks for
networking PLCs or other controllers and the applied use of the Proportional-Integral-Derivative
(PID) control law in the industry are also presented. Appendix A presents briefly the arithmetic
systems required for PLC programming, while Appendix B introduces the subject of analog input
and output values scaling. This book was written based on the assumption that the reader has no
prior experience in industrial automation systems, but should be easy to understand if they have
any background knowledge related to motor control, digital logic, and digital electronics.
The projected learning outcomes after reading this book will be to understand the function-
ality of the basic elements of automated systems and the fundamental principles of operation;
analyze real-life problems from an industrial automation perspective and understand what is effec-
tive and what is not, based on engineering and cost-oriented thinking; identify and select proper
sensory and actuation equipment for synthesizing and integrating industrial automation tasks;
integrate and synthesize a classical relay-based industrial automation; integrate, synthesize, and
program a PLC based on industrial automation; and gain fundamental knowledge in the field of
electro-pneumatic automation, industrial networks, and PID control in the industry.
Authors

Stamatios Manesis earned his PhD from the School of Engineering, University of Patras, Rio,
Greece, in 1986. He is a professor of industrial automation with the Division of Systems and
Control, Electrical and Computer Engineering Department, University of Patras. In 1998–1999, he
was with the Industrial Control Centre, Strathclyde University, Glasgow, U.K. In 2008, he was an
academic visitor with Eidgenössische Technische Hochschule (ETH) Zurich, Zurich, Switzerland.
He has designed various industrial automation systems for Hellenic industries. He has published
more than 100 conference and journal papers and has written 5 textbooks. His main research
interests include industrial control, industrial automation, industrial networks, expert fuzzy con-
trol systems, intelligent controllers, and supervisory control and data acquisition (SCADA) sys-
tems. His research has been funded by several national projects (Program for Development of
Industrial Enterprises [PDIE], National Program for Energy [NPE], and Karatheodori program).
He has participated in various European Union projects such as Science and Technology for
Regional Innovation and Development in Europe (STRIDE), European Strategic Program on
Research in Information Technology (ESPRIT), and European Social Fund (ESF).

George Nikolakopoulos is a professor of robotics and automation in the Department of Computer


Science, Electrical and Space Engineering at Luleå University of Technology, Luleå, Sweden. His
work focuses in the area of robotics, control applications, and cyberphysical systems, while he has
extensive experience in creating and managing European and national research projects. Previously,
he has worked as a project manager and principal investigator in several R&D&I projects funded
by the European Union (EU), European Space Agency (ESA), and Swedish and the Greek National
Ministry of Research, on projects such as: (a) EU-funded projects: AEROWORKS, DISIRE,
Compinnova, FLEXA (IP), C@R (IP), NANOMA (STREP), SYMBIOSIS-EU (STREP),
CONFIDENCE (STREP), PROMOVEO (STREP), and CommRob (STREP); (b) ARTEMIS-
funded projects: R5-COP; and (c) Swedish-funded projects: Mine Patrolling Rovers, Pneumatic
Muscle Dancer, etc. In 2014, he was the coordinator of the H2020-ICT AEROWORKS proj-
ect in the field of collaborative unmanned aerial vehicles (UAVs) and the H2020-SPIRE project
DISIRE in the field of integrated process control with a total budget of 12M Euros. In 2013, he
has received a grant of 220K Euros for establishing the largest outdoor motion capture system in
Sweden and most probably in Europe as part of the FROST Field Robotics Lab at Luleå University
of Technology. In 2014, Prof. Nikolakopoulos was nominated as Luleå University of Technology
(LTU’s) Wallenberg candidate, one of three nominees from the university and 16 in total engi-
neering nominees in Sweden. In 2003, he received the Information Societies Technologies (IST)
Prize Award for best paper that promotes the scope of the European IST (currently known as
Information and Communication Technologies [ICT]) sector. Prof. Nikolakopoulos’ publications
in the field of UAVs have received top recognition from the related scientific community, and these

xv
xvi ◾ Authors

publications have been listed several times in the TOP 25 most popular publications in control
engineering practice from Elsevier. In 2014, he has received the 2014 Premium Award for Best
Paper in IET Control Theory and Applications, Elsevier for research work in the area of UAVs. This
premium award recognizes the best research papers published during the past two years in this
journal. Finally, his published scientific work includes more than 150 published international
journals and conferences in the fields of his interest.
Chapter 1

Industrial Automation

1.1 The Industrial Control System


Every industrial production process consists of a series of simple or complicated machines
that, through the combination of raw materials, undergo a sequential transformation and
integration in order to produce a final product. The term “machine” denotes every kind of
electromechanical device on the industrial floor, e.g., from a simple motor (such as a drilling
or a cutting machine) up to a complicated chemical machine (e.g., a chemical combustion
machine). The whole set of machines (namely non-homogeneous machines), which are being
integrated and combined in an industrial production process, will be referred to as an “inte-
grated machine”.
As an example of an integrated machine, Figure 1.1 depicts the typical production line of
an integrated paper machine, where the initial raw pulp is undergoing the sequential processes
of pretreatment and grinding, refining, pulp bleaching, and pulp pressing and drying, until it
is transformed into the final paper of predefined quality. Figure 1.2 shows the various stages
of the papermaking process. During the pretreatment and grinding, in the first stage of the
papermaking process, debarked and washed wood logs are preheated in order to become easier
to grind and are inserted into large wood log grinders, which produce wood chips. Refining
is the second stage of the paper manufacturing process, when the quality of the final product
is highly dependent on that specific subprocess. During that stage, the wood chips are being
received and transformed into pulp via high energy consumption, water infusion, and addition
of chemical compounds. During the next stage of pulp bleaching, the pulp produced by the
refining system is fed to the machine that is responsible for the discoloration of the mixture.
Bleaching is a chemical process applied to cellulosic materials in order to increase their bright-
ness. The last stage of the paper manufacturing process is the drying and pressing process.
During this stage, bleached pulp is dried and pressed in order to form the desired production
paper.
In the case of an integrated machine, the whole sequence of operations for all the involved
machines, the exact transformations and integrations of the raw materials, as well as the
overall operational requirements, are a priori detailed and clearly defined for the industrial
automation engineer, who is in charge of designing and implementing the desired process
automation. For a specific production line, the sequence of operations and transformations,

1
2 ◾ Introduction to Industrial Automation

Figure 1.1 Schematic of a pulp and paper industrial process.

Head-box Forming section Press section Dryer section Calender stack Reel-up
Pulp suspension

Evaporation

Reel

Press
Dry line

Steam-heated cylinder Roll nips Sensor array


Forming wire
Head-box Drainer water Basic weight
slice actuators sensors Control
Control system
system

Figure 1.2 Simplified visualization of the pulp processing stages.

applied to the products, are generated from the production process itself and it is not pos-
sible, due to simplifications, these process stages to be altered. For example, in the case of
an integrated machine of producing biscuits, it has been already defined from the process of
production (the total manual and human-based processes) that in the mixture chamber, first
the milk should be inserted and in a certain quantity, while in the sequence, the flour should
be inserted at specific feeding rates and quantities. In this example, it is not possible, in order
to simplify the overall automation process, to override this procedure by either designing an
automation system that will either inverse the previous sequence of operations (e.g., first the
flour will be inserted and then the milk) or completely ignore the predescribed sequence by
allowing both materials to be inserted at the same time in the mixture chamber. Overall, and
for all the produced industrial automations, the automated procedure should always satisfy
the rules and sequences of the manual produced product, independently of the related com-
plexity in the automation solution.
From the beginning of the industrial era, the main aim of every production process was the
achievement of a higher possible level of automation. Reducing the number of personnel involved
was also a common aim from the factory owners, as well as the machine suppliers, in order to fol-
low the significantly increasing trend in automation, while the overall development of the indus-
trial processes has taken place in parallel with the technological breakthroughs at the beginning of
the nineteenth century and especially when human labor began to be replaced by machines. The
transition of the production model, from the initially multi-interrupted form to the continuous
form, required the development of specific methodologies and tools that would allow the cen-
tral coordination of all the various procedures with minimal human intervention in the overall
process.
Industrial Automation ◾ 3

Before analyzing the procedures needed for automating an industrial production line, it is of
paramount importance to initially define in detail the various components that the automation
and their specific functionalities and properties consist of. In an industrial production line, the
“movement” is the fundamental and generalized characteristic of the overall process, since it is
impossible to consider an industrial process without the existence of a linear, circular, or any other
form of movement. Even in the case of a chemical reaction, where the existence of motion is not
obvious, the movement also exists in this case and more specifically in the form of an electrovalve
control, which opens in order to supply the reactor with the necessary amount of the reacted
components. Furthermore, the existence of the need for movement is significantly evident, either in
the cases where the product should be transferred to the various process points of the production
line, or in the cases of integrated machines, where parts of the machines should be moved in order
to produce the desired processing of the developing product. The machines that can be utilized for
the creation of the movement can be categorized into two large categories, as displayed in Figure 1.3.
The first category includes the different types of motors, independently of the operating principle
(e.g., one-phase motors, three-phase motors, motors with short-circuit rotors, motors with direct
start, motors that start in a Y/Δ mode, etc.) that creates a primary rotational movement, which
can be further transformed by the utilization of appropriate mechanisms in a linear or other type
of movements. The second category includes all the actuators, where a linear movement is created
as the result of the attraction generated by an electromagnet (coil) on a ferromagnetic core, such
as the various forms of electro-vanes, electrovalves, etc. The common characteristic of motors and
actuators is the fact that they have only two possible states of operation. For expressing these states,

Actuators

(On-Off )
ce

Motors Sensors
en

nd
epe
Interd

(On-Off ) Industrial
system (On-Off )

Handling C
Interd
epe R + E
G
devices nd – B
en H Continuous
c(t)
ce

control unit
(On-Off ) r(t)

(On-Off )

Indicators

Figure 1.3 Basic kinds of industrial-type equipment composing an “industrial system”.


4 ◾ Introduction to Industrial Automation

usually we refer to them as “the motor is in operation”, “the motor is not operating”, “the electrovalve
is energized”, “the electrovalve is not energized”, “the coil is under voltage”, and “the coil is not under
voltage”. In general, there are two states of operation that can be defined as the ON and the OFF
operation, which can be further associated directly with the digital logic symbols of 1 and 0.
If one motor has, for example, two rotation directions or two rotational speeds and thus two
states of operation, ON1 and ON2, then this consideration is not in conflict with the previous
association. Actually, it can be considered as the case of having two motors, where one motor
has the two states OFF-ON1 and the other one has the states OFF-ON2. The operation of the
two motors, and more specifically the supply of the motors with the required electrical power, is
achieved by the power relays that also have two states of operation, the ON and the OFF state.
The control of the motors is achieved through the proper control of the relays, and thus the
desired control system is applied on the corresponding relays controlling the electrical supply to
the motors and it is not applied directly on the motors.
After the definition of the control action being applied directly on the relays, the previous situ-
ation with the existence of multiple ON states for a machine will be explained more, through the
following example. A three-phase motor is being considered with two directions of rotation. For the
operation of the motor, two power relays are needed, which will be denoted by C1 and C2, as shown
in Figure 1.4. When the C1 relay is energized (relay C2 is not energized), the motor’s coil ends are
connected to the phases R, S, and T of the power network and thus the motor has a certain direc-
tion of rotation. When the power relay C2 is energized (relay C1 is not energized), the same motor’s
coil ends are connected to the phases T, S, and R of the power network and thus the motor has the
opposite direction of rotation. As has been explained before, due to the fact that the control system is
being applied on the power relays, the two states ON1 and ON2, of the same motor, correspond to
the states of ON and OFF of two different devices, which are the power relays C1 and C2. As a result,
the control system, instead of the states OFF-ON1-ON2 of a motor, with two directions of rotation,
is being equivalently applied on the OFF-ON states of two different power relays.
To control the operation of an integrated machine, a set of specific operation control devices
needs to be incorporated in the overall automation, like a simple push button, a rotational selector

C1 C2 C1=ON
M Motor turns CW
C2 C1
C2=OFF

C1 C2 C1=OFF
M Motor turns CCW
C2 C1 C2=ON
Control device for
controlling only the 4
relays and not directly
C1 C2 C1=OFF the multi-states of the
M Motor stops H-bridge
C2 C1 C2=OFF

3-State machine 2-State devices


(ON-CW, ON-CCW, OFF) (ON, OFF)

Figure 1.4 Multi-state electric motors are controlled by two state power relays.
Industrial Automation ◾ 5

switch (knob), etc. In the case that the operation of the integrated machine is set in the “manual”
mode, the operator is utilizing the operation devices for turning on the desired motors or the
actuators and in the proper sequence. In the case that the integrated machine is set in the “auto”
mode, the operator is again utilizing the operation devices, either for initiating the operation
mode, or for instructing the integrating machine to change the operational state. As an example,
in an integrating machine for chocolate production, the operator is capable, by the press of a but-
ton, to order the control system to alter the current recipe production for another one. In this
case, the control system should allow the integrated machine to complete the current operation
and afterwards, ensuring the prerequisite quantities for executing the ordered recipe change, to
command the integrated machine in executing it. In most cases, the automation system of an inte-
grated machine provides both the functionalities of an automatic or manual mode of operation,
especially for dealing with the emergency fault situations, where direct manual control of all the
provided automatic functionalities of the integrated machine is needed.
The operation control devices have also two states of operation, OFF and ON, similar to the
cases of the motors and the actuators. As presented in Figure 1.5, a pressed button is energized
and thus is in the ON state, while a non-pressed button is not energized and is in the OFF state.
The ON state is independent of the time duration that the button is pressed and of the switching
contact type (open or closed) in the not-energized state.
The next category of the machines presented in Figure 1.3 are very commonly installed in
industrial environments, and are the indication devices that are utilized for transmitting process
information from the integrated machine to the operator. In most cases, the industrial process is
widely geographically distributed, and thus the operator that is in charge of the whole process has no
direct visual or audio feedback from the process and the overall operation of the multiple integrated
machines. However, even in the case that a visual or audio feedback is available, for safety reasons
human senses are considered unreliable, and these monitoring, displaying, and visualizing devices are
still needed to track the performance and state of operation of the industrial process. Especially in the
cases of measuring variables without a direct visual or audio effect (like the variables of pressure, tem-
perature, flow of a liquid in a non-transparent tube, etc.), such monitoring devices are of paramount
importance. In most cases, this information is transmitted to the operators through the utilization
of light or audio indicators, which can be again considered as devices with an ON and OFF state.
In a large set of integrated machines, specialized sensors for performing specific measuring of
quantities are utilized extensively. For example, such sensors can be utilized to sense if there is a
flow of a liquid in an opaque tube, if the level of a tank has reached a certain height, if the moving
part of a machine has reached the desired place, if the temperature of a reactor has been set to the
nominal one, etc. In general, these sensors can be categorized in digital and analog sensors. The
digital sensors are characterized by two states of operation, namely ON and OFF or 1 and 0, cor-
respondingly. The analog sensors are able to produce an analog (continuous) measurement of the
quantity under study and thus more complicated hardware and software is needed to incorporate
the industrial automation for utilizing this information.

Rest state Rest state

OFF ON OFF ON

Figure 1.5 Manually operated control devices that have two operational states.
6 ◾ Introduction to Industrial Automation

R B
Red color Blue color

ON

OFF

VR VB

M0

SL
M1 M2
VE
Yarn-dye tank

Figure 1.6 Schematic of a simplified batch-dyeing process for textile materials.

The operation of an industrial automation device in an industrial process is not independent


of the operation of the rest of the devices in the same process. In all cases, there is a strong depen-
dence among all the utilized devices in the automation, as is also highlighted in the following
example. Consider an industrial process of adding color to textile products like fibers or yarns,
called “dyeing”, where (as shown in Figure 1.6) it is desired to have the following operation:

… IF the selector switch is in the “R” position AND by pressing the push button “ON”,
the electric valve V R opens AND motors M1 and M2 operate AND when the level sensor
SL produces an output signal the electric valve V R closes AND simultaneously the motor
M0 starts to operate AND IF, due to a fault, the motor M1 stops, THEN the motor M2
also stops AND …

All the previous demands, which are being produced from the type of the industrial process,
constitute a set of dependencies that, without their formal satisfaction, the production of the final
product is not feasible. The devices from these five categories, which are indicated in Figure 1.3,
with their dependencies and the rest of the purely mechanical parts of the integrated machines or
processes constitute the overall industrial system. This industrial system needs proper automation
in order for the whole operation to be executed with a minimization of human intervention. The
control of the devices that are characterized as ON and OFF states is denoted as automation, and
is being carried out by the utilization of automation circuits; while the control of the devices that
are analog is denoted as process control, and is being carried out by the utilization of automatic
control systems.

1.2 Automation and Process Control


Following this introduction to the field of industrial control systems and automation, special
attention should be focused on the differences in the fundamental meanings among the con-
cepts of automatic control and industrial automation. Automatic control can be defined as the
Industrial Automation ◾ 7

continuous control of a physical analog variable through the utilization of any kind of actuators,
while industrial automation refers to the sequential or digital ON-OFF control of the two-state
devices. As has been presented in Figure 1.3, among the discrete devices, a continuous time con-
trol device has also been included in the industrial system, in order to present the overall concept
that in an industrial control system, multiple continuous time control units can be integrated and
act in a cooperative way with the rest of the automation control units.
In the case of industrial control processes (batch processes), there are multiple process vari-
ables that, although we would like to have them set at constant values, show random variations,
mainly due to multiple external disturbances during the production phases. The reduction and
elimination of these variations can be achieved through the proper application of automatic
control principles. In many cases, it is also desirable for a process variable to alter the set value
from an existing converged one into another operating point, while certain specifications usu-
ally are amended to achieve this transition, e.g., a fast or slow transition time, a minimum con-
trol effort change, a low overshoot during the alteration of the set point, a fast convergence, etc.
This problem can also be addressed by the theory of automatic control and by applying existing
theoretical and applied approaches e.g., the theory of Proportional-Integral-Differential (PID)
control, which is presented in Chapter 9.
In contrast to the automatic control principles, the theory of industrial automation focuses on
physical variables and machines that are in one of two states, e.g., “a liquid flow exists or not”, “the
pressure has reached the desired value or not”, or “the compressed air piston has been extended or
not”. Moreover, industrial automation refers to devices, machines, and circuits; and, in general,
electronic, electromechanical, and electro-pneumatic integrated machines, where their operational
principle is described from the Boolean logic and the corresponding sequential interconnections
among the production stages. In the automation field, the action of control is restricted by being
applied by two state actuators, and therefore the applied control action can only have the specific
values of either ON or OFF.
In Figure 1.7, a simple process of controlling the level of a liquid in a tank is presented. In this
process, it is assumed that the supply of the liquid in the tank is provided by an uncontrollable
variable, while a valve is controlling the liquid’s output flow from the tank. In the described setup,
it is desired that the level of the tank be kept at a specific height h0, independent of the liquid
supply. To solve this problem, after the initial achievement of the specified height h0, the output
flow should be equal to the input flow. To implement this control law, due to the fact that in this
example the input flow is not directly measured, the control scheme should be able to measure the

Controller
Level
Servomotor
sensor
S

Flow control
valve

Figure 1.7 Example of an automatic control system.


8 ◾ Introduction to Industrial Automation

level of the liquid in the tank by a level sensor and, subsequently, appropriately tune the outflow
valve. In this case, the outflow valve has not only two states “Fully Open—Qmax flow” and “Fully
Closed—0 flow”, but it can take any kind of desired state value, thus allowing for a flow within
the (0, Qmax) continuous space. In the era of classical industrial automation, this control scheme
would have been implemented by analog circuits, whereas now it is commonly implemented by
the utilization of computers and, more specifically, programmable logic controllers (PLCs), which
are computational devices designed and configured for operating in industrial environments.
In Figure 1.8, a lead screw setup is presented, where the worktable can be translated by the
proper connection and rotation of the lead screw into two directions (left and right). For this rea-
son, the motor generating the rotation of the lead screw has two directions of rotation. Moreover,
the motor has two rotation speeds, which means that the worktable can be translated in two speed
profiles. With the help of the indicated position sensors (limit switches) and the provided motor,
we can design an industrial automation with the following desired operation. As shown in Figure
1.8, the worktable should be continuously moving between the final positions A and D, while
in the translation space from B to C the table should move at the fast speed and at the low speed
for the remaining ones. In this setup, there is no continuous variable that needs to be controlled,
while all the devices have two states of operation, ON and OFF. In this case, the controller is an
automation circuit, which is responsible for implementing the described sequential (or Boolean)
control logic, e.g., partially described in the following form:

….When sensor B is energized, the motor should be set (start operating) and remain in
the fast speed. When sensor C is energized, the motor should be set and remain in the slow
speed. When the sensor D is energized the motor’s direction of rotation should be inversed,
without changing the speed of translation….

At this point, it should be mentioned that the aforementioned translational system is not
described by a specific transfer function, as in the case of automatic control systems, but from a
Boolean function that expresses the desired operational logic.
Many books in the field of automatic control refer to the sequential control of two states as
the fundamental form of industrial control, while providing minimum reference to this topic and
concentrating on the analog and continuous time closed-loop control (feedback control). On the
contrary, this book will focus on the methods needed for designing and implementing industrial
automation systems, which cover a significantly larger set of the current trends in the area of
industrial control systems.
After defining that, in an industrial system, both continuous and sequential control setups
exist, the term “industrial automation” now has a wider meaning, which includes every kind of
system being designed for implementing an automatic operation of an industrial process.

Worktable Work screw


Motor
(n1, n2, )

Limit
switch A B C D

Figure 1.8 Example of an automation system.


Industrial Automation ◾ 9

1.3 Purpose of Industrial Automation


The industrial era was initiated by the efforts to automate existing industrial setups as a way to
improve the quality of the produced products and the overall production volumes. Contrary to
what is generally understood, industrial automation is not a discovery of the recent past, but it
is rather as old as industry itself. From the beginning, the designer of an industrial production
system has attempted to achieve an operation as autonomous as possible, always based on the
available instrumental tools. The initial industrial production processes have based their operation
on the workers’ eyes, hands, and brain, as alternatives to contemporary sensors, actuators, and
computational units. All of the current automated operations of industrial processes are based
on these three factors. Through the sensors, the necessary signals and measurements are being
gathered from the controlled process, as presented in Figure 1.9. Subsequently, this information
is being analyzed by the control logic, running in a computational unit and, in the final step, the
control actions are interacting with the controlled process, through proper control of the provided
actuators.
In the beginning, efforts to automate industrial processes were focused on the replacement
of human labor by independent machines, each one being able to accomplish a specific task
and in a limited surrounding space, under the premise that you feed the machine with the raw
material, and as an output you are receiving the complete product. The automatic operation of
those machines were initially independent of each other, and thus there was a constant need for a
human-centric coordination of these machines. Subsequently, through the evolution of multiple,
related technologies and through the developments in the field of analog and discrete control in
the era of microprocessors and PLCs, a transition took place from having small-scale, centralized,
industrial automation, to a decentralized and large-scale one, fully controlled by numerous dis-
tributed PLCs, able to synchronize multiple industrial processes. The decentralization of industrial
automation took place through the introduction of industrial networks, which are discussed in
Chapter 8.

Process
Actuators Sensors

Power

Control system

Computer
Programs of
instructions
PLC

Figure 1.9 Basic elements of an automated system.


10 ◾ Introduction to Industrial Automation

A fundamental motivation for the automation of an industrial process is that the viabil-
ity of the enterprise, and particularly business profit, can be achieved through the following
objectives:

◾◾ Production increase
◾◾ Cost reduction, mainly due to the reduction of human-related cost
◾◾ Improvement of the product’s quality
◾◾ Improvement of the raw material utilization (reduced loss in materials)
◾◾ Reduction of energy consumption

Many other secondary benefits may be derived from the automation of an industrial process,
i.e., plant safety, environmental pollution reduction, etc. The aims of industrial automation are
frequently difficult to achieve for several reasons, such as inherent limitations of the plant, imple-
mentation costs and general situations in the marketplace. Regardless of these difficulties, there
has been continual development of industrial automation from a control tools and methods point
of view. Consequently, advancements in automation and control made possible the development of
larger and more complex processes of various kinds (e.g., oil and gas refining, chemical, pharma-
ceutical, food and beverage, water and wastewater, pulp and paper, mining, iron and steel, cement,
etc.), thus bringing numerous new technological and economic benefits.

1.4 Industrial Automation Circuits


In Section 1.1 it has been mentioned that the automation of an industrial system is being achieved
through the utilization of automation circuits. These automation circuits will be analyzed in detail
in Chapters 3 and 4, where their design principles and operations will be presented and through
the utilization of numerous realistic examples. In Chapter 7, which focuses on PLCs, the main
effort will be in transforming these automation circuits into proper software programs for PLCs.
The design of the automation circuits, from the perspective of a functional design, consists of
fundamental knowledge for all industrial automation engineers in order to understand the indus-
trial operation; identify the needs; design and simulate the solution to the industrial automation
problem; and, of course, produce the optimal solution from a cost-related perspective, either in the
form of classical industrial automation or in the form of software for PLCs. In Chapter 1, we will
refer only to the scope of automation circuits, their general form, and their alteration from other
types of industrial circuits.
In the broad discipline of electrical engineering, many types of electrical circuits are involved,
such as, for example, the electrical circuits of basic electrical components (R, L, and C), electronic
circuits, power circuits, telephone circuits, integrated circuits, and many more. However, the elec-
trical circuits being utilized for the study and implementation of an industrial manufacturing
plant can be divided into the following categories:

◾◾ Power circuits
◾◾ Automation circuits
◾◾ Wiring diagrams

Power circuits (also called “main circuits”) indicate the type of power supply for the utilized
motors and all other related power devices. As an example, Figure 1.10 depicts: (a) the single-line,
Industrial Automation ◾ 11

50 Hz 380 V 50 Hz 380 V
R R
3~ 50 Hz 280 V
S S
T T
Switch

Fuse

Contactor

Overload
relay

M M M
Motor
3~ 3~ 3~
(a) (b) (c)

Figure 1.10 Examples of power circuits: (a) Single-line, three-phase circuit design, (b) complete
multi-line design of circuit, and (c) circuit design of a direct starting motor.

three-phase circuit of a motor with two directions of rotation; (b) the complete multi-line circuit of
the same motor; and (c) the power circuit of a direct starting motor. More details on the different
types of motor starting, rotation inversion, etc., will be presented in Chapter 3.
Automation circuits (which can also be referred to as control circuits, auxiliary circuits, sec-
ondary circuits, or schematic circuits) represent the operational logic and control of the power
devices, as indicated in Figure 1.11, for a start/stop operation of the previously depicted motor in
Figure 1.10c.
Wiring diagrams are circuits representing both the power circuit and the automation circuit
while, at the same time, representing the actual positioning of all the devices and components
in the industrial installation, which is ideal information for the technician executing the wiring
and overall installation. In Figure 1.12, the wiring diagram which is produced from the synthesis
of the power circuit shown in Figure 1.10c, and the automation circuit shown in Figure 1.11, is
displayed.

50 Hz 230 V
R
Overload relay
contact

Stop button

Start button Relay


contact

Relay
N

Figure 1.11 Example of a simple automation circuit.


12 ◾ Introduction to Industrial Automation

50 Hz 380 V
R
S
T
N

Start
Stop
M
3~

Figure 1.12 The actual wiring diagram of a direct start-up motor, including both power and
automation circuits.

It should be noted that in the wiring diagram of Figure 1.12, the wires can intersect among
each other and thus it is very difficult to follow the route of each wire and the overall functional-
ity of the design, even in this very simple case, where we have only four devices (one relay, two
buttons, and one overload protection). Having this in mind, it can be easily generalized how this
complexity will grow in cases with more intersections, e.g., in wirings with 50 devices. In contrast
to this, in the automation circuit of Figure 1.11, there are no wiring intersections and thus it is
very easy to follow and understand the overall operation logic. For this reason, automation circuits
provide an overview of the automation functionalities are most commonly utilized during the
development, installation, and operation of an automation system.
Automation circuits are being developed in branches (sectors), which are presented in
Figure 1.13. Each branch denotes the operational function of a corresponding relay, solenoid,

50 Hz 230 V
R

RS1 RS2 RSn

Relay Relay Relay


1 2 n

Figure 1.13 The simplest form of an automation circuit which is equivalent to a full manual
operation.
Industrial Automation ◾ 13

or actuator, while the whole automation circuit denotes the operational logic of the overall
industrial process automation. Each branch in the automation circuit can have multiple paral-
lel sub-branches, depending on the complexity of the logical function being implemented. In
Figure 1.13, the indicating branches have the simplest form. Each one implements the logic “If
the rotary switch RSi is closed, then the corresponding i motor will be in operation”. An indus-
trial system with an automation circuit of the form presented in Figure 1.13 has a full manual
operation. In reality, this is not common, since the start and stop operations of an industrial
process with similar machines are executed in an automated manner, based on the sequence
of the sensing signals and the corresponding status of the machines. In these cases, which are
dominant in industrial automation, automation circuits are becoming more complex and thus
a proper methodology for designing such automation circuits is needed. Nowadays, industrial
automation circuits have been transformed, as has been mentioned before, into a set of software
programs for PLCs. However, it is of paramount importance to note that although the final
implementation of the industrial circuits has been changed from a hardwire approach to a soft
approach, the need for understanding and designing the electrical drawings for solving an auto-
mation problem cannot be replaced, except for cases where the focus is on very simple and small
automation problems. Chapter 7 will present that the first step in writing the PLC program is to
solve the problem, based on the methodologies that will be discussed subsequently, independent
of the selected PLC or software language for the program implementation.
At this point, it should be mentioned that it was the authors’ aim, when writing this book, to
present all the necessary steps to the interested engineers or automation students for understand-
ing the concepts of an industrial automation, mastering the procedures and the methodologies
for developing the automation circuits, mastering the design methodologies for more compli-
cated automations based on state machines, and understanding and mastering the principles of
PLC programming and PLC networking. However, it should be highlighted at this stage that an
industrial automation engineer is not a software programmer of a PLC, which is a mistake usually
reproduced by lots of books in the field. The implementation of a fully functional and optimal
industrial automation, as will be described subsequently, involves the understanding of funda-
mental principles in the area of sensors, actuators, electrical wiring, electrical machines, electrical
circuits, process control, programming, and networking. However, conversely, a good program-
mer is not an industrial automation engineer, and thus programming of PLCs is just a small subset
of the capabilities found in an experienced and professional automation engineer.

1.5 Computer-Based Industrial Control and Automation


The task of controlling an industrial process has evolved a lot over recent years, starting from a
complete manual operation, continuing in the analog control and low-level automation era, and
recently reaching a totally computer-based control and automation approach. Prior to the intro-
duction of solid-state electronics, the designer of an industrial production process was attempting
to make the automation operate as automatically as possible, based on the various instrumental
tools. To enable the vision of a full automation technology and after the appearance of various
digital processors, a rapid increase in process control computers and minicomputers took place,
especially in small plants, which changed radically the situation in the field of industrial process
control and automation.
Nowadays, an industrial control and automation system, from a hardware point of view,
is a general term that encompasses several types of digital devices, such as industrial personal
14 ◾ Introduction to Industrial Automation

computers (I-PCs), programmable logic controllers (PLCs), programmable automation controllers


(PACs), embedded PLCs, and other specific digital controllers. Furthermore, the larger control and
automation system configurations include software and hardware platforms, such as supervisory
control and data acquisition (SCADA) subsystems, distributed control subsystems (DCS), and
industrial communication subsystems. At this point, it should be highlighted that the utilization
of all of the aforementioned technologies in the industrial sector is of critical importance in order
to achieve the desired performance and quality, while a proper mixture of all these computer-based
solutions should always be considered.
After the introduction of the first powerful personal computers and PLCs, automation engi-
neers have been divided into two groups. The first group was in favor of utilizing the PCs, equipped
with proper input/output (I/O) hardware in order to accomplish a proper industrial automation
functionality; while the second group rejected the PCs as inappropriate computational devices
in an industrial environment, while promoting PLCs for the same purpose. However, these two
categories have specific characteristics with certain advantages and disadvantages. PCs provide the
user with the ability to utilize various software sets, spanning from simplified to extremely compli-
cated software applications for implementing advanced control laws and industrial automations,
providing extended graphical user interfaces and advanced interaction capabilities, increased com-
putational power, and, in general, a simpler and more flexible programming environment for the
user. From the other side, PCs are generally not suitable for a pure industrial environment. Even
if the PCs can be equipped with the proper I/O hardware, they have the general disadvantage of
not having been designed for installation in rugged industrial environments, and thus are char-
acterized with generally reduced operational stability and durability. In contrast, PLCs have been
designed specifically for industrial control and automation applications, are characterized by a
high operational durability, and are equipped with a reconfigurable digital and analog I/O hard-
ware that could be specifically tuned to the needs of the current application. Finally, PLCs provide
fully optimized software for the exact needs of the industrial automation and process control,
and nowadays this technology is considered as a standard solution in the industry. It could be left
unattended and in continuous full operation for decades without operational errors or faults. For
these reasons, PLCs are considered as the first choice of automation engineers, especially when
compared with the classical PCs targeting a more home-based operation. From another point of
view, PLCs are unable to support advanced control algorithms, are dedicated platforms for devel-
oping automation algorithms and have no support for other types of software. As a disadvantage,
PLCs don’t have a universal, standardized, and widely accepted way of communication with other
types of devices from other vendors, thus restricting automation engineers in integrating products
from specific vendors. Furthermore, after the finalization of the automation programming (the
hardware connection to the I/O field devices and the initialization of the run state), a PLC oper-
ates as a “black box”, without the ability to provide to the user any kind of online information,
except for elementary information via optical light-emitting diodes, which indicate only the states
of the digital I/Os. Regardless of these disadvantages, the PLC is still a very effective solution for
general-purpose industrial control and digital I/O automation, mainly because of its reliability
and transparent scope for which it has been developed.
The natural and acceptable competition among PLC vendors and the aforementioned indus-
trial engineering groups, and the prevailing analogous situation in the marketplace of industrial
controllers, were the reasons for various vendors to develop ways to remove boundaries between
these two hardware technologies and add advanced functionalities, one of which has been the
“industrial PCs”. During the last few years, industrial PCs have been significantly expanded and
improved in order to cover the existing gap between PCs and PLCs, but this category still has
Industrial Automation ◾ 15

not replaced PLCs, nor has it been widely accepted and installed to a large extent. Additionally,
industrial PCs have introduced multiple integration issues to engineers, due to the included multi-
vendor hardware and software and the missing compatibility across different platforms.
The vendors of industrial automation systems for supporting the increased demands of the
current industrial applications have developed industrial automation devices that could combine
the advantages of PLCs for classical control and automation of a complex machine or of a process,
with the advantages of the PC-based systems that provide the user with significantly high flex-
ibility in configuring and integrating them into the industrial enterprise. Such a digital device
has been established in the industrial world with the term programmable automation control-
ler (PAC). A PAC is generally a multifunctional industrial controller, which can simultaneously
monitor and control digital, analog, and serial I/O signals from multiple sources based on a single
platform, while supporting multiple, built-in communication protocols and data acquisition capa-
bilities. Although PACs represent the latest proposal in the programmable controllers’ world at
this time, the authors are not able to predict the future and the overall applicability of this technol-
ogy. However, it is commonly agreed that PACs are an efficient and promising solution for com-
plex industrial control and automation applications. In Figure 1.14, an overview of the available
fundamental computational components for the implementation of industrial automation and
control systems is presented.
In parallel with the developments in computational power in the control and automation
devices, their ability to communicate, interact, and exchange information has also been developed
in recent decades, thus leading to the introduction of industrial networks. Starting from a small
number of industrial networks, and being introduced by three or four large vendors of industrial

Stop Run Exit

Operator
interface

PLC
Analog I/O Digital I/O

PAC

iPC

P
SCADA Σ I
D

PID loops

Network

Figure 1.14 PLCs, iPCs, and PACs support control, communication, and other tasks.
16 ◾ Introduction to Industrial Automation

automation equipment, there exist more than 20 industrial networks today, addressing all lev-
els of industrial production, which are examined in Chapter 8. Industrial networks differ quite
significantly from traditional enterprise networks due to their specific operational requirements.
More specifically, industrial networking concerns the implementation of communication proto-
cols between field equipment, digital controllers, various software suites, external systems, and
graphical user interfaces. In general, by allowing the connection of digital industrial controllers,
the industrial network offers mainly the possibility of sensing messages and control commands
through a decentralized approach, which can be geographically spanned. Thus, today the control-
ler of a specific production process could sample the information from another part of the factory
automation or control the operation of a machine in a remote part of the industrial field. Since
this concept can be fully generalized on the full automation floor, the ability to control the whole
industrial process and to have a complete overview of the ongoing sub-processes has been made
more achievable than ever before, and thus the concept of supervisory control and data acquisition
(SCADA) has been introduced. Furthermore, today’s industrial networks can interconnect indus-
trial controllers from different producers, converging in a similar way as the well-known “open
communications” demand.
The SCADA concept has been introduced from the real need to gather data and supervision-
like control subsystems on a large industrial process plant in real time. Regardless of its initial
definition, the term SCADA today represents a combined hardware and software system, includ-
ing the remote field devices, the network, the central station equipment and the software platform.
This software platform, in the case of SCADA, offers the user all the functionality required to
receive or send data, represent data graphically, manage alarm signals, perform statistic calcula-
tions, communicate with other databases or software applications, schedule control actions, print
various reports, and many other user facilities. Although the focus of SCADA systems is data
acquisition and presentation on a centralized human machine interface (HMI), it also allows for
high-level commands to be sent through the network to the control hardware, for example, for the
command to start a motor or change a set point in a remote place. A characteristic example of a
SCADA system is presented in Figure 1.15.
Similar to SCADA systems are distributed control systems (DCS), even if these systems existed
before the era of SCADA systems, especially in the cases of the oil and gas refiners’ industries. The
DCS system consists of a strong dedicated network and advanced process controllers, often with
very powerful processors, while implementing multiple, closed-loop controls of critical importance.
In general, it should be highlighted that there is some confusion about the differences between
these two types of automation systems, mainly due to the numerous common characteristics that
these systems possess. A basic difference is the fact that the DCS is process-oriented, as opposed to a
general-purpose software suite, and generally focused on presenting a steady stream of process infor-
mation. This means that although the two systems appear similar, their internal operations may be
quite different. SCADA systems, on the other hand, does not have the control of processes as a pri-
mary role, even if they have all the capabilities to apply limited closed-loop control and automation.
The main focus of the SCADA system is the monitoring and the supervision of a process, which has
been geographically distributed, most commonly through a multi-network communication struc-
ture. In contrast, the DCS is not concerned with determining the quality of data and visualization
approaches, as communication with the corresponding control hardware is much more reliable. Even
if the boundaries between these systems seem to be more blurred as time goes by, the computer and
network technologies have become an intimate part of control and automation system engineering.
Based on the technology of industrial networks and the powerful computational automation
units, the optimal implementation of the concept of computer integrated manufacturing (CIM)
Industrial Automation ◾ 17

EXIT
Environment
25,6 Recipes Repeat 04:58:38
temperature production 24/11/2014 CE1
Humidity A1 65,0 Vehicles New CE2
Humidity A2 45,2 Settings production 235,00
545,00

34,00

Water

12,00

780,00 P1

A1 A2 A3 A4 A5
1800 1600 2300 3200 1990 62,00
12,00

∆ P2

12,00

∆ P3
10 890 40 60
20 80
0 100
AMПEPOMETPO

START M. T.
Sfalma Sfalma Sfalma Sfalma Sfalma Sfalma

Plotting Reset
TainieV Adranh
Mixer door graphs balances
DonhteV 1,2,3 Valve1 Tamper Koxlias1 Koxlias2 Antlia Mixer Antlia Antlia Antlia
Nerou Chm1 Chm2 Chm3 Alarm

Figure 1.15 Typical example of a SCADA screen for process visualization.

Web
ERP
SCADA
Info level

Info critical-data network


Control level

Time and control critical-control network


Field level

Time critical-field network

Figure 1.16 The CIM model integrates all levels of industrial production.
18 ◾ Introduction to Industrial Automation

has been achieved, a concept that was initially introduced in the early 1970s. With respect to the
CIM model, an industrial process can be organized in a three-layer hierarchical structure, where
the lowest layer is comprised of sensors, actuators, and embedded micro-controllers. The middle
layer is the control layer where the industrial controllers, industrial PCs, and industrial PACs
are connected. The highest layer is the management level, where the mainframe computers for
SCADA and resources planning functionalities are located. This three-layer generic structure is
presented in Figure 1.16. Every level of the CIM model has its own dedicated network, with its
own technical characteristics for the network speed, the number of nodes, etc., due to different
operational goals. As an example, it could be desirable to have a real-time control loop in the lowest
field level and a periodic supervisor control loop in the highest level. It should also be apparent that
the networks in the various levels are interconnected among themselves in order to allow for the
transfer of information from the bottom layer to the top ones, and vice versa. Consequently, the
target of CIM in the industry process is the integration and utilization of the overall information.

Review Questions
1.1. Define the term “industrial system” from the automation point of view. Give important
considerations concerning either the industrial equipment or its characteristics.
1.2. What is the “dominant variable” of an industrial production procedure? Give some exam-
ples of the dominant variable in concrete industrial applications.
1.3. In your opinion, what is an automation system? Indicate the difference between an automa-
tion system and an automatic control system.
1.4. What is the purpose of using sensors in an industrial system? Explain the difference between
the information derived by sensors and that provided by indication devices.
1.5. What is the role of handling devices in an industrial system when this system has been
automated?
1.6. The control terms utilized in the operation of an automated industrial system may include
the following:
a. Sequential control
b. ON-OFF control
c. Logic control
d. Digital control
Indicate which of these terms primarily refer to control based on Boolean theory.
1.7. Explain the differences between an automation circuit and a wiring diagram. Which of
them expresses better the “logic” of system operation?
1.8. In your opinion, does the automation of an industrial production process increase or decrease
unemployment? Explain substantially.
Chapter 2

Hardware Components
for Automation and
Process Control

2.1 Actuators
An actuator is a device that uses some type of energy and produces the required force, either
providing motion to an object or actuating something. Actuators (independently of their shape,
form, and size) produce the mechanical movements required in any physical process in a factory.
It should be highlighted that in any industrial production line, if the actuators are removed, what
will remain are only the “passive” metallic and plastic components, while the whole automa-
tion will lose its ability to alter or produce something meaningful. All actuators are controllable
devices for performing the desired manufacturing operations, in order to have a well-controlled
and automated production process. In general, there are various kinds of actuators that can be
categorized based on the operation principle, such as thermal, electric, hydraulic, pneumatic, and
micro-electro-mechanical (MEMS) ones. Figure 2.1 illustrates a number of different types of
actuators.
Thermal actuators convert the thermal energy into movement based on various physical prin-
ciples. As an example, a bimetallic strip is one type of thermal actuator made from two different
metals, such as steel and copper. In this specific case, it is known that the two metals have differ-
ent temperature coefficients, and when they are heated, their expansion occurs at different rates.
Therefore, two similar strips from different metals, jointed together along their entire length, may
generate motion at their free end. When heat is applied, the bimetallic strip bends in the direc-
tion of the metal with the smallest thermal coefficient, and deflects enough to energize an electric
contact, for example. Such a bimetallic strip actuator is used in thermal overload relays, which are
described in detail in Section 2.2.1.

19
20 ◾ Introduction to Industrial Automation

(a) (b) (c)

(d) (e) (f)

Figure 2.1 Various types of actuators in industrial automation, (a) servo motor, (b) DC motor,
(c) stepper motor, (d) linear motor, (e) pneumatic cylinder, (f) solenoid actuator.

2.1.1 Electric Motors
Furthermore, electric actuators include the category of electric motors of all kinds, such as the
stepper motors, servomotors, linear motors, and solenoids. However, in the industrial world, the
term “actuator” is usually connected to low-power actuating devices and not to high-power elec-
tric motors. For an industrial engineer, the motor is a separate category itself and is not always
straightforwardly connected to the actuators, although its definition includes them. Thus, the rest
of this book will adopt the following approach: separate the electric motors for high mechanical
power production from other types of actuators. In general, electric motors have the capability to
convert the electrical energy into mechanical or kinetic energy. All electric motors*, AC (alternate
current) or DC (direct current), use the principle of electromagnetic induction and the subsequent
interaction of two magnetic fields to generate torque on a rotational element called a “rotor” inside
a stationary housing called a “stator”. In Figure 2.2, an indicative internal construction for the case
of AC and step motors is provided, where the existence of the coils gives a first impression of the
generated magnetic forces that are responsible for achieving motor rotation.
More analytically, most DC motors operate by electric current flowing through a number of
coils at the rotor (depending on the number of poles in the motor), which are positioned between
the poles of a permanent magnet or electromagnet of the stator. The interaction of the two mag-
netic fields, one created by the rotor and the second one due to the stator, causes the rotor-shaft
to rotate. To reverse the motor, it is needed to change the polarity of the supply voltage to either
field winding or armature winding, but not both, since this will cause no change in the direction
of rotation.
In the case of AC induction motors, only the stator has coils by means of a three-phase wind-
ing circuit, which produce a rotating magnetic field. This field induces an alternating current in
the rotor, which consists of a cylindrical laminated core with slots that can carry conductors from

* P. Vas, Electrical Machines and Drives: Space Vector Theory Approach, Oxford Science Publications.
Hardware Components for Automation and Process Control ◾ 21

Teethed north and


Stator south magnetic rotor
Coils Motor shaft

N
S
S

N N
S

Stator poles Motor


and coils casing
Rotor
(a) (b)

Figure 2.2 Internal view of an AC motor (a) and step motor (b).

copper or aluminum bars. Since these conductors are directly shorted by an end ring, they form
the rotor winding, which cuts the stator rotating magnetic field, causing the flow of electric cur-
rent through them. The attraction and repulsion between these two magnetic fields, according to
Lenz’s law, causes the rotation of the rotor. For the case of a three-phase induction motor, switch-
ing two out of the three input voltage lines causes motor rotation in the opposite direction, as
indicated in Figure 2.3. At this point, it should be highlighted that the alteration of three phases at
the same time will result in no alteration of the magnetic flux, and thus the rotation of the motor
will not change.
In both types of motors, the rotational movement of the rotor is transferred to a shaft and,
subsequently, to a series of spindles, gears, pulleys, and smaller shafts in order to increase the
output torque or to transform the rotary motion to a linear or reciprocating one. For example, the

R S T R S T

Three-phase Three-phase
motor motor

Forward rotation Reverse rotation

Figure 2.3 Forward-reverse rotation of a three-phase motor.


22 ◾ Introduction to Industrial Automation

rotary motion of an electric motor can be converted to a linear one by using a ball screw pair and
guide rails. The AC induction motors are the most widely used motors in the automation industry
compared with the DC ones, mainly because of their efficiency and less maintenance required. It
is the simpler solution in applications such as machine tools, fans, pumps, compressors, conveyors,
extruders, and various other complex machines.
Stepper motors base their operation on a working principle similar to that of DC motors and
can rotate in very small discrete steps. The steps of a stepper motor represent discrete angular move-
ments in the vicinity of 2° or 1° or even less, which are performed successively due to a series of
digital impulses. It is obvious that a stepper motor can perform any number of rotation steps with
the same precision by applying an equal number of electrical pulses to its phases. Regarding their
internal structure, there are many types of stepper motors (such as unipolar, bipolar, single-phase,
two-phase, multi-phase, etc.) which usually have multiple coils that are organized in groups called
“phases”. Stepper motors are controlled by a driver electronic circuit accepting four different pulse
digital control signals and applying the required electric pulses to the motor windings. The one-step
function signal defines the direction of rotation, a second one defines the enable or disable state
of the motor operation, and a third signal defines the half-step or full-step rotation of the motor.
Finally, a pulse train signal causes the rotation of the motor. Each control pulse causes the motor to
rotate by one step, while the speed of the rotation is determined by the frequency of the pulse train.
These control signals may be produced by a programmable logic controller that will be described
in Chapter 10, where step motor applications will be examined. In general, stepper motors provide
precise speed, position, and direction control in an open-loop fashion, without requiring encoders
or other types of sensors which conventional electric motors require. A stepper motor does not lose
steps under normal conditions of mechanical load, while the final position of the stepper motor’s
rotor is determined by the number of performed steps and expresses the total angular displacement.
This position is kept until a new pulse train is applied. These properties make the stepper motor
an excellent actuator for open-loop control applications, for low to medium power requirements.
When higher torque demands precise control, servomotors are then the best solution to be
used. Servomotors are not a specific class of motors and the term “servomotor” is often used to
refer to a motor suitable for use in a closed-loop control system. A servomotor consists of an AC or
DC electric motor, a feedback device, and an electronic controller. In the case of a DC motor, this
can be either a brushed or brushless type. Typically, the feedback device of a servomotor is some
type of encoder built into the motor frame to provide position and speed feedback of the angular
or linear motion. The electronic controller is a driver, supplying only the required power to the
motor, in the simplest case. A more sophisticated controller generates motion profiles and uses the
feedback signal to precisely control the rotary position of the motor and generally to control its
motion and final position, thus accomplishing the closed-loop operation. Since the servo motors
are driven through their electronic controllers, it is quite easily interfaced with microprocessors or
other high level programmable controllers.
Figure 2.4 provides some fundamental torque-speed curves regarding the selection of the AC
(a) and stepper (b) motors, characteristics that can be found in each motor’s manual and contrib-
ute also in the comprehension of its respective operation. For AC motors, at rest the motor can
appear just like a short-circuited transformer and, if connected to a full supply voltage, draw a
very high current known as a locked rotor current (LRC). The motors also produce torque that
is known as locked rotor torque (LRT). As the motor accelerates, both the torque and the cur-
rent will tend to alter with the rotor speed if the voltage is kept constant. The starting current of
a motor with a fixed voltage will drop very slowly as the motor accelerates, and will only begin to
fall significantly when the motor has reached at least 80% of the full speed. The actual curves for
Hardware Components for Automation and Process Control ◾ 23
Current (% of motor full-load-current)

Torque (% of motor full-load-torque)


Full voltage Pull-out torque

Torque
Holding
7×FLC Stator current Pull-out torque
torque

2×FLT
6×FLC Pull-in torque
5×FLC
Full voltage
4×FLC Start torque
3×FLC

1×FLT
Pull-up torque
2×FLC Start/stop Slew range
1×FLC region
Speed

0% 25% 50% 75% 100% Max. no load Max. running


Rotor speed (% of full speed) starting speed speed
(a) (b)

Figure 2.4 Torque-speed curves facilitate the selection of (a) an AC or (b) stepper motor.

induction motors can vary considerably between different types of motors, but the general trend is
for a high current, until the motor has almost reached full speed. The LRC of a motor can range
from 500% of full-load current (FLC) to as high as 1400% of FLC. Typically, good motors fall in
the range of 550% to 750% of FLC. The starting torque of an induction motor with a fixed voltage
will drop a little to the minimum torque, known as the pull-up torque; when the motor accelerates
it will then rise to a maximum torque, known as the breakdown or pull-out torque, at almost full
speed; and then it will drop to zero at the synchronous speed. The curve of the start torque against
the rotor speed is dependent on the terminal voltage and the rotor design. In the case that the load
curve is added, the intersection of the load curve with the torque and voltage curves will define the
operational point of the motor.
For the case of a stepper motor, the characteristic torque speed curves are the following ones.
The pull-out torque curve is the curve that represents the maximum torque that the stepper motor
can supply to a load at any given speed. Any torque or speed required that exceeds this curve will
cause the motor to lose synchronism. Holding torque is the torque that the motor will produce
when the motor is at rest and rated current is applied to the windings. Slew range is the region
where the stepper motors are usually operated. A stepper motor cannot be started directly in the
slew range. After starting the motor somewhere in the self-start range, the motor can be acceler-
ated or loaded while remaining within the slew range. The motor should then be decelerated or the
load should be reduced back into the self-start range before the motor can be stopped. As in the
previous case, the intersection of the motor’s characteristic curves with the load curve will indicate
if the size of the selected motor is sufficient for the envisioned application.
At this point, it should be highlighted that it is beyond the scope of this textbook to present
the details of any type of electric motors, since the objective is to get an understanding of the
basic principles of operation of the various actuators and to study their use in automation systems.
Therefore, the objective of this chapter is to provide an overview of the basics of other common
actuators (particularly the non-electrical ones) such as pneumatic actuators. Finally, regarding
electric motors, we will need to distinguish their control task from their automation task. The con-
trol task refers to a closed-loop control scheme for the regulation of their speed, angular position,
and torque output. The automation task refers to the sequential steps of power relays (energizing
or de-energizing) in order for an electric motor to change the direction of rotation or to startup
according to a star-delta configuration.
24 ◾ Introduction to Industrial Automation

2.1.2 Pneumatic Actuators
A pneumatic actuator converts and transmits pneumatic energy derived from a central, pres-
surized air source into mechanical movement energy. The most common type of pneumatic
actuator is the simple piston-cylinder assembly connected to a supply tube of compressed air, as
depicted in Figure 2.5. The air pressure acts on the piston producing a direct linear motion of
the piston rod’s free end. Since air is highly compressible, pneumatic actuators are usually used
for the movement of small and lights objects and are not suitable for accurate position control.
Many operations on automated production lines require actions like pushing an object on a
conveyor, transporting a machine component between several closely placed assembly stations,
feeding adhesive across a straight path on a surface, etc. For such or similar manufacturing tasks,
pneumatic actuators are ideally suited, since they can be easily implemented and also require a
simple, discrete control logic. Since the pneumatic equipment and its use in automation processes
is an extended subject, it will be presented separately in Chapter 5. In general, hydraulic actua-
tors are operated by a pressurized fluid that usually is oil. Their operation logic is similar to that
of the pneumatic ones, but different in terms of construction. Since fluids are non-compressible,
hydraulic systems are generally used when high forces and accurate control are required. Finally,
it should also be highlighted that an engineer, who possesses the technology of the pneumatic
systems, will assuredly be able to face up to any issue in automation applications using hydraulic
actuators.

2.1.3 Micro-Electro-Mechanical Systems
Micro-electro-mechanical systems (MEMS) are a process technology based on techniques of
microfabrication, and are used to create devices that have the ability to sense, control, and actuate
on the micro scale, while generating effects on the macro scale. Over the past few decades various
micromechanical actuators (or microactuators) began appearing in numerous industrial products
and applications. These miniaturized actuators are MEMS devices, which range in size from a few
micrometers to millimeters, that convert one form of signal or energy into another form. MEMS
microactuators have a wide variety of actuation mechanisms producing very small forces or dis-
placements, and can be categorized in four basic groups: electrostatic, piezoelectric, magnetic, and
thermal. MEMS microactuators are used in various industries, such as the automotive, electronics,
medical, and communications. Some typical examples of microactuators are micro-valves for con-
trol of gas and liquid flows, micro-grippers for robotic surgery, and focusing micro-mechanisms
for cameras in mobile devices.

Pressurized
air champer Piston Piston rod

Actuator
effective end
Pneumatic cylinder
Compressor

Figure 2.5 The pneumatic cylinder as linear motion actuator.


Hardware Components for Automation and Process Control ◾ 25

2.1.4 Relays
Since electric motors are supplied with electric power through the utilization of relays or contac-
tors, their operational principles and characteristics are presented in this chapter as a specific kind
of actuator. Another reason for describing relays in this chapter is the need to know their structure
and operation in order to utilize them in designing and synthesizing automation circuits, which
will be presented in Chapter 3.
In general, a relay is a binary actuator as it has two stable states, either energized and latched
or de-energized and unlatched, while a servomotor, for example, is a continuous actuator because
it can rotate through a full 360° of motion.
Some synonymous terms, such as “magnetic contactor”, “relay”, “remote operated switch”, and
“tele-operated switch” are used for an electromechanical device that opens and closes electrical
contacts, and should not create confusion to the reader, since all of these terms refer to an electri-
cally operated switch that has the same principle of operation, and these terms are often used inter-
changeably. A soft distinguishing between the terms “relay” and “contactor” is that the second one
is used for powering large electric motors. In the rest of the book, the term “relay” will be adopted
as it is the most widely used one. There are many types and categories of relays, each one developed
to satisfy the various specific needs of several applications. From a construction point of view there
are two types of relays, the power relays and the general purpose or control relays, both having the
same principle of operation described below.

2.1.4.1 Relays’ Operation Principle


Relays consist of two parts; a first one containing the various main or auxiliary electric contacts,
and a second one containing the electromagnet-based mechanism that creates the motion required
for the operation of the electric contacts. Figure 2.6 shows a simplified form of a relay, including
the coil-core electromagnet, the movable arm, the electric contact consisting of two parts (the
fixed and the movable one), and the return spring. The relay’s contacts are electrically conductive

Auxiliary circuit Power circuit

Return
spring 230 V
Core IP
Coil

F Insulation

Remote Electric contact 1-phase motor


control IC
distance Wire terminal
230 V

RS

Figure 2.6 A simplified structure of a relay.


26 ◾ Introduction to Industrial Automation

pieces of metal that, when contacted together, complete a circuit and allow the circuit’s current to
flow, just like a simple switch. The operation of the relay is achieved by forming two independent
and isolated circuits, the power circuit and the auxiliary or the control one. The power circuit
refers always to the electrical device usually called “load”, which is powered through the relay
contact, while the auxiliary circuit refers always to the coil of the relay. Since the auxiliary circuit,
which is explained in Chapters 3 and 4, performs the automated operation of a machine, it is also
called the “automation circuit”. The very simple form of the auxiliary circuit shown in Figure 2.6
should not lead the reader to false conclusions. As is explained in Chapter 3, the complicated and
interdependent operation of many relays in a complex machine requires usually very complicated
automation circuits. As a kind of definition, the auxiliary circuits of a large number of relays in a
complex industrial machine or production line, embedded all in one common circuit, constitute
the automation circuit.
The power circuit consists of the relay’s electric contact, the electric source that provides the
electric power and the load. Generally, in the considered industrial applications, the electric source
will be always the public electric power network and the powered load a motor that, in this case,
is a single-phase motor. The auxiliary circuit consists of the coil, the electric power source (usu-
ally different and independent from the corresponding source of the power circuit), and the hand
switch RS. When the switch RS closes, 230 V is applied on the coil and the generated magnetic
field attracts the movable arm due to the generated force F to the direction shown in Figure 2.6.
The movable arm carrying on the insulation material and the movable contact part, causes the
closing of the electric contact, thus permitting the electric current to flow in the power circuit
and hence the motor to operate. If the hand switch RS opens, the magnetic field is nulled and the
attraction of the movable arm stops. The return spring then brings back the movable arm, the
relay’s electric contact opens and the motor stops. The main result is briefly summarized as follows:

RS is closed → Relay is energized → Motor operates

RS is open → Relay is de-energized → Motor does not operate

Therefore, the possible operational states of the relay are two: the first one corresponds to the
voltage applied on the relay coil; then it is said that the relay is energized or simply the relay is ON;
and the second one corresponds to the voltage not applied on the relay coil, then it is said the relay
is de-energized or simply the relay is OFF. These two states of the relay operation ON and OFF
can be corresponded to the digital logic signals 1 and 0, a property that will be invoked later in
Chapter 4 concerning the logic design of the automation circuits.
The current IC in the auxiliary circuit is generally low, of the order of a few tens of mA. Instead,
the current IP of the power circuit may be very high, depending on the durability of the electric
contact and is the basic parameter that determines the size of the relay. Various types of power
relays exist in the market where their electric contacts have the ability to rate up to 2000 A. In
general, the hand switch RS could be far from the physical position of the relay, even at a distance
of a few tens of meters, while the distance limit is introduced by the permitted voltage drop across
the lines of the auxiliary circuit. This voltage drop, and hence the maximum permitted remote
control distance, depends on the characteristics of the wires of the auxiliary circuit, the nominal
coil voltage, and the kind of supplied voltage (AC or DC). The nominal coil voltage of a relay is
selected from a set of standardized voltages that are the most usual in the market, as shown in
Table 2.1. The power absorbed by a coil (self-consumed power of a relay) depends on the relay size
Hardware Components for Automation and Process Control ◾ 27

Table 2.1 Standardized Values for Nominal


Voltage Selection of a Relay Coil
Values of Relay Coil Nominal Voltage

AC 50 Hz 24, 42, 48, 60, 110, 230, 380 V

DC 12, 24, 36, 48, 110, 230 V

and is usually of the order of a few watts. This absorbed power is greater during the activation of
the relay, when the inertia torque of the movable arm should be overcome and is reduced when the
activated state of the relay has been achieved. The time required for the activation and deactiva-
tion phases of the relay depends on the type of relay and is usually rated up to 10–50 msec. Since
the described relays include mechanical and electrical components, they are also called “electro-
mechanical relays” in order to be distinguished from the “solid state relays” consisting only of
electronic and semiconductor components (transistors, thyristors, and triacs) and circuits.

2.1.5 Power Relays
Power relays are made in order to feed the various kinds of electric motors with the required
electric power. In proportion to the typical motors’ powers, these power relays are made in sev-
eral sizes, from the smallest of nominal power 5.5 KW, to the largest of 500 KW under 660 V,
while it is obvious that the power relays and particularly their electric contacts must withstand a
“switching under load”. This means simply that an electric contact of a power relay should have
the mechanical strength required in order to open while the nominal current is passing through
it. The reason that causes damage to the contact material is that an electric arc is created during
the opening or closing of the electric contact. Thus, it is obvious that the electric contact consist-
ing of two thin metallic plates, as shown in Figure 2.6, does not have the strength to break a high
electric current. Therefore, the construction of a power relay leads to the increase of the contact
surface and subsequently to larger dimensions of the metallic plates. This, in turn, leads to the
need for stronger attraction of the movable arm and hence to larger dimensions in the coil and
the corresponding coil’s core. In conclusion, a power relay has the same principle of operation as
the one described in Section 2.1.1, but the higher its nominal power, the larger its size is.
Power relays are characterized from both the nominal current of its electric contacts and the
nominal power of the electric motor that supplies it. These magnitudes are different for the vari-
ous categories of power relay use, such as for example AC1, AC2, etc. (IEC 158-1, BS 5424, and
VDE 0660). Figure 2.7 shows the side cross section of a large size power relay, while the internal
structure of the power relay includes all the components described in the “principle of operation”
(Figure 2.6), which are the coil, the fixed iron core, the movable iron core or arm, the electric
contacts, and the arc chamber for protection. It should be noted that the rotary motion of the
movable contact found on small relays, shown in Figure 2.6, is replaced in the case of power relays
with parallel motion, resulting in the realization of the electric contact at two different points and
the so-called double-break contact. To reduce the effects of contact arcing, modern contact tips
are made of, or coated with, a variety of silver-based alloys (silver-copper, silver-cadmium-oxide,
silver-nickel, etc.) to extend their life span. Since power relays switch their rated loads, their electric
contacts are characterized by an electrical and mechanical life, expressed in thousands or millions
of operations, while the usual values of electrical or mechanical life expectancy may be one mil-
lion, 10 million, or even 100 million operations. The electrical life is usually lower in comparison
28 ◾ Introduction to Industrial Automation

Moving Arc
On-state contact Metal or alloy chamber
indicator contact area
Fixed
contact

Cable
Moving termina
terminals
core

Return
spring

Insulation material Fixed core Coil cross section

Figure 2.7 Typical internal structure of power relay.

to the mechanical one because the contact life is application-dependent, such as when a set of
contacts switches a load of less than rated value.
The power relays, except for their three main power-contacts (one for each phase of the three-
phase network), may be equipped with one or more pairs of auxiliary contacts, which are used in
the implementation of the automation circuit. Figure 2.8 shows a typical form of a power relay

Figure 2.8 Typical external view of a power relay by Siemens.


Hardware Components for Automation and Process Control ◾ 29

with power contacts and a block of auxiliary contacts on its right side. Usually, two to four maxi-
mum blocks of auxiliary contacts, whose supply is optional, can be adapted to the body of a relay,
in order for the required mechanical coupling to be achieved. The auxiliary contacts of power
relays are rated up to 15 A, because they are used only in automation circuits and don’t supply any
kind of load.
The possibility of selecting the coil’s nominal voltage is also valid for the case of the power
relays. The coil nominal voltage should be the same as the operation voltage of the whole automa-
tion circuit. It should be also noted again that the coil nominal voltage is quite independent of the
power circuit voltage. Therefore, it is possible with a coil of a nominal voltage (e.g., 24 V DC) to
control the operation of a power circuit (electric motor of a machine) of a nominal voltage (e.g.,
660 V AC).

2.1.6 General Purpose Relays


General purpose relays are usually miniature relays, used either as auxiliary components for the
implementation of automation circuits, or as switches for supplying very small electric loads, such
as electric valves, micromotors, small fans, alarm sirens, etc. Their use as auxiliary relays or as aux-
iliary contacts of a power relay means they are necessary components for the implementation of
the Boolean logic functions described in the automation circuit. This issue will be further analyzed
in Chapter 4, where the logical design of the automation circuits is presented.
In general, there is a huge variety of general purpose relays regarding their size, shape, number
of contacts, coil voltage, and mounting methods. All of the relays of this type have the same opera-
tion principle as that of power relays and an example of their typical form is shown in Figure 2.9.
These relays are mounted either on a specific base for accepting electric wires (easy replacement
of a relay), or directly on a PCB board as a component of an electronic circuit. Figure 2.10 shows
the two side views of a general purpose relay in its physical dimensions, where the basic parts of
this relay are evident as are the coil, the movable armature and contacts, the double fixed contacts,
and the return spring. General purpose relays are protected by a plastic case to protect the mecha-
nisms from dusty and corrosive environments. The movable contact arm, called common terminal
(C), has two contact tips and it is located between two fixed contacts, which forms a normally

(a) (b)

Figure 2.9 Typical form of a general purpose relay without (a) and with (b) a mounting base.
30 ◾ Introduction to Industrial Automation

C NC NO

Figure 2.10 Two internal side views of a general purpose relay.

closed contact (NC) and a normally open one (NO). This type of electric contact is usually called
“changeover two-way contact”, and all these types of electric contacts and their nomenclature are
presented in Section 2.1.10.
The number of two-way contacts varies and depends on the type of the general purpose relay.
For example, the relay in Figure 2.10 has three sets of changeover two-way contacts. The electric
contacts of a general purpose relay are passing a current rated up to 15 A approximately, except
from the very small ones (with dimensions of 1 × 1 × 2 cm for PCB boards) that have a nominal
current of 1 A. The operation of a relay is normal and stable when the coil voltage is exactly the
nominal one. Therefore, care is required to apply the correct coil voltage because if it is larger or
smaller than the nominal one, the temperature rise of the coil or the insufficient holding force
of the movable contact or other electromechanical malfunctions may be caused. Such situations
reduce the relay contact life expectancy and tend to cause fusing of the contacts.

2.1.7 Latching Relays
A latching relay, after its activation, maintains its contact position although the coil power supply
has been removed, and therefore has two relaxed states as an electronic, bistable flip-flop. As we have
seen from the description above, the classical relay should have a coil voltage applied to it at all times
that it is required to stay energized. Such a situation is not necessary in latching relays, where their
contacts are mechanically or magnetically locked in the ON state until the relay is reset manually
or electrically. Mechanical latching relays use a locking mechanism to hold their contacts in their
last set position until commanded to change state, usually by means of energizing a second coil.
Figure 2.11 shows a simplified schematic of a latching relay operated by two coils, each one with a
corresponding control button. The relay is energized or “set” by pressing the ON button and deacti-
vated or “tripped” by pressing the OFF button. Due to the mechanical latching, the locking strength
will not be reduced over time and the self-consumed power of the relay is null. Some conventional
power relays (contactors) can be converted into latched contactors by adding a block containing the
mechanical latching device with electromagnetic impulse unlatching or manual unlatching.
Magnetic latching relays are typically designed to be voltage polarity sensitive and hence can be
driven directly from a reversible power supply. They require one short pulse of coil power to close
their NO contacts, and another redirected short pulse to open them again. Repeated pulses from the
same input have no effect. Magnetic latching relays can have either single or dual coils. On a single
coil device, a permanent magnet is designed to hold the contacts in the energized position, while the
Hardware Components for Automation and Process Control ◾ 31

ON button ON button

R R
Set coil Set coil
OFF button Release OFF button Latch
state state
Power Power
contact contact

Reset Reset
coil Pivot coil Pivot
N N
(a) (b)

Figure 2.11 Schematic diagram of latching relay: (a) relay tripped and power circuit open, and
(b) relay set-latched and power circuit closed.

relay will operate in one direction when power is applied with one polarity, and will reset when the
polarity is reversed, thus overcoming the holding effect of the permanent magnet. On a dual coil
device, when polarized voltage is applied to the reset coil, the contacts will return to their rest state.
Latching relays are used in situations where the energized status is held for a long period or when the
relay condition should be held invariant during a breakdown or power supply interruption.

2.1.8 Pulse Bistable Relays


Pulse bistable relays are small electromechanical devices, which have the ability to open and close
their contacts in a preset sequence. Although they are called “relays”, their operation principle, con-
struction, external form, and dimensions are quite different from that of the standard relays described
in Section 2.1.1. Their use in automation systems is limited, but in the cases where this is required,
it facilitates immensely the implementation of an application. A pulse bistable relay consists of a cam
mechanism, an electromagnet, and the electric contacts as shown in Figure 2.12. The cam is a double
Surface A
Surface B Dual disk
Rotation
steps

Electromagnet

NO contact

(a) (b)

Figure 2.12 Typical internal structure of a pulse bistable relay in its two possible states: (a) a
movable contact in front of type-A disk surface, and (b) after one pulse, the movable contact
comes in front of the type-B disk surface and the electric contact closes.
32 ◾ Introduction to Industrial Automation

Power ON
Vin
supply OFF
t

NO contact Closed
Open
t

Figure 2.13 Time behavior of an electric contact of a pulse bistable relay due to a series of four
successive pulses.

plate disk, one tooth plate for step-by-step rotation of the disk and a second plate for setting the posi-
tion of the movable contact. The electromagnet causes the step-by-step rotation of the disk at each
positive rising edge of the supplied voltage pulse. The contact status depends on the position of the
second plate, particularly if the surface A or surface B is in front of the movable contact. When the
coil is pulsed, the relay armature moves a lever that, in turn, rotates the disk to position B stepwise in
the sequence, closing the NO contact. This position will remain independent of the pulse duration
and as long as another pulse is not supplied to the coil. Figure 2.13 shows the behavior of the electric
contact due to a series of successive pulses. The first pulse closes the contact, the next opens it, and so
on, back and forth. It is obvious that this relay has two discrete states, which can be retained without
the existence of a coil voltage, justifying the term “bistable”. A typical use of the pulse bistable relay
is remotely starting and stopping a machine from a single momentary push button.

2.1.9 Solid State Relays


Solid state relays (SSRs), like the one presented in Figure 2.14, are electronic devices with no
mechanical contacts capable of switching various AC or DC loads, such as heating elements,

Figure 2.14 Typical external view of a solid-state relay by Siemens.


Hardware Components for Automation and Process Control ◾ 33

Solid state relay


Triac
Optocoupler

Power
source

suppressor
Control

Surge
signal
Load

Figure 2.15 Simplified circuit of a photo-coupled solid-state relay.

motors, and transformers. SSRs perform the same switching function as the electromechanical
relays, however their structure is quite different, consisting of semiconductor switching elements,
such as thyristors, triacs, transistors, and diodes. Also, SSRs include a semiconductor-type opto-
coupler to separate the input circuit from the output circuit, offering complete isolation of the
input and output signals. As shown in Figure 2.15, the control signal (which corresponds to the
coil voltage of the electromechanical relays) is applied to a light-emitting diode (LED). The light,
or infrared radiation, is detected from a phototransistor that triggers the triac, which switches
on the load current supplied from an external source. In order to avoid temperature rise in the
triac junction, SSRs are usually equipped with a heat sink made by a heat-conductive metal and
integrated in their body in order to dissipate the heat to the surrounding air. Because of their elec-
tronic structure, SSRs provide high-speed or high-frequency ON-OFF switching operations and
generate low noise. Furthermore, due to the absence of movable contacts, they do not produce
electric arcs and hence are suitable for use in hazardous areas. In chemical, petrochemical, min-
ing, and many other industries where combustible materials are transported, stored, or processed,
potentially explosive atmospheres are inevitable. In such cases, the use of SSRs as load switches is
mandatory, according to national laws and regulations, since they ensure reliable operation and
safety for personnel and machinery, even in extremely explosive environments.

2.1.10 Electric Contact Classification


An electric contact of a relay may be open or closed when the relay is de-energized, i.e., no sup-
ply voltage connected to the relay coil. Such a status of an electric contact, when the relay is not
energized, is called “normal” and hence may be “normally open” or “normally closed”, abbreviated
as NO or NC correspondingly. The same relay of any kind may contain NO and NC contacts
simultaneously, independent of one another. When the relay is energized, all the NC contacts
open and all the NO contacts close. The automation circuits are always designed for the normal
status of the relays and other devices that participate in the automation system. Table 2.2 shows
the possible states of an electric contact in relation to the energized or NO state of the relay and
the corresponding possible current flow.
The electric contacts shown in Table 2.2 (and Figures 2.6 and 2.7) permit the current to flow
only one way or “throw”, as this term is widely accepted and utilized in the field of industrial
automation. An electric contact of a relay or switch may have one or more throws. In other words,
the number of throws indicates how many different output connections each electric contact can
connect its input to, which is called a “common terminal”. For example, if an electric contact has
two throws, the common terminal can be connected to one of two possible terminals. The two
most common types are the single-throw and the double-throw contacts. A double-throw contact
34 ◾ Introduction to Industrial Automation

Table 2.2 Contact States and Current Flow with Regard to Relay State
Relay
Contact Non-Energized Energized

Normally closed (NC) NC

I I

Normally open (NO) NO


I

is also called a “changeover contact”. On the other hand, relays or hand switches can be made up
of one or more individual electric contacts with each “contact” being referred to as a “pole”. The
number of poles refers actually to the number of separate circuits that the relay contact or the
switch may control, while a single-pole relay or switch controls just one circuit. A double-pole relay
or switch controls two separate circuits. Relays, hand switches or even sensors may have electric
contacts with various combinations of poles and throws defined as “single-pole, single-throw”,
“single-pole, double-throw”, “three-pole, double-throw”, “four-pole, double-throw”, and so on,
which are abbreviated as SPST, SPDT, 3PDT, and 4PDT, respectively. Table 2.3 shows the pos-
sible states of the simplest changeover contacts (SPDT and DPDT) in relation to the energized
or non-energize state of the relay, with Figure 2.16 presenting the most basic electric contacts and
their abbreviations. The electric contacts of the relays are numbered on convenient locations of the
relay body, according to a standard numbering system, the basic rules of which are:

1. The power contacts are numbered with one-digit numbers (1, 2), (3, 4), and (5, 6) for the
three phases R, S, and T, respectively.
2. The auxiliary NC contacts are numbered with two-digit numbers (X1, X2), where X=0–9.
3. The auxiliary NO contacts are numbered with two-digit numbers (X3, X4) where X=0–9.

Table 2.3 Possible States of Two Simple Changeover Two-Way


Contacts
Relay
Contact Non-Energized Energized

SPDT NC I I
I
I
NO

DPDT NC I1 I1
I1
I1
NO
NC I2 I2
I2
I2
NO
Hardware Components for Automation and Process Control ◾ 35

SPST SPDT

DPDT
DPST

3PDT
3PST

Figure 2.16 Single-throw and double-throw electric contacts for several numbers of poles.

The issue of selecting the suitable relay for an application depends on many parameters that
concern the kind of construction; operation principle; size; and electrical characteristics, such as
coil nominal voltage, the contact’s rated current, the number of contacts, and many others. The
manufacturers of relays offer detailed catalogs containing tables with all mechanical and electrical
characteristics of the relays to customers, as shown in Figure 2.17, which summarizes the required
information for general purpose relays of plug-in socket, or PCB mounting type. For power
relays, the same technical characteristics are available, but their selection is mainly based on the
rated current of the main contacts. Furthermore, the power relays are also characterized by the
power being able to feed to the electric motors.
We will close the section on relays with some general conclusions:

◾◾ Relays are used either as power switches or as auxiliary logic components.


◾◾ Relays permit a low-voltage circuit to control another high one or in general different volt-
age one.
◾◾ Relays can be used as current “amplifiers”.
◾◾ Relays provide complete electric isolation between the control signal and the power signal,
that is between the auxiliary control circuit and the power circuit.
◾◾ By using relays with multiple poles of contacts, it is possible with one low-voltage signal to
control the operation of many loads, each one with a different voltage.

2.1.11 Solenoid Linear Actuators


A general purpose solenoid actuator is an electromagnetic device that converts electric energy
into a mechanical pushing or pulling force or motion. Most solenoid actuators produce a linear
motion called therefore “linear solenoid actuators”; however, rotational solenoids are also available.
The linear solenoid actuator works on the same basic principle as the electromagnet of the elec-
tromechanical relays that causes the required movement of contacts. Usually, the general purpose
linear solenoid actuators produce small movements and apply low-range forces, capable though of
opening or closing valves, activating latches or similar mechanisms, and generally moving light
mechanical elements. The linear solenoid actuators, as shown in Figure 2.18, consist of an electric
36 ◾ Introduction to Industrial Automation

Plug-in socket mounting Plug-in socket mounting PCB mounting


A1 12 11 14

A2 12 21 24

Technical information for general purpose relay type 55.32 by finder, (above left)
Contact specification
Contact configuration 2 CO (DPDT)
Rated current/maximum peak current A 10/20
Rated voltage/maximum switching voltage V AC 250/400
Rated load AC1 VA 2500
Rated load AC15 (230 V AC) VA 500
Single phase motor rating (230 V AC) kW 0.37
Breaking capacity DC1: 30/110/220 V A 10/0.25/0.12
Minimum switching load W (V/mA) 300 (5/5)
Standard contact material AgNi
Coil specification
Nominal voltage (UN) V AC (50/60 Hz) 6-12-24-48-60-110-120-230-240
V DC 6-12-24-48-60-110-125-220
Rated power AC/DC VA (50 Hz)/W 1.5/1
Operating range AC/DC (0.8 ... 1.1)UN/(0.8 ... 1.1)UN
Holding voltage AC/DC 0.8 UN/0.5 UN
Must drop-out voltage AC/DC 0.2 UN/0.1 UN
Technical data
Several other technical data, such as mechanical life, electrical life, operate/release time,
dielectric strength, ambient temperature range, etc., are also given by manufacturers of
general purpose relays.

Figure 2.17 An indicative table with technical characteristics of general purpose relays.

coil winding around a cylindrical tube, a ferromagnetic “plunger” that is free to move or slide IN
and OUT of the coil’s body and optionally a return spring. In the case of the absence of a return
spring, an external return action is necessary. In general, solenoid actuators may be used either as a
holding mechanism under continuously supplied voltage or as a latching mechanism under pulse-
type (ON-OFF) supplied voltage. Linear solenoid actuators are available in a variety of types,
forms, applied forces, voltages of operation, and other attributes, while the selection of the most
suitable and efficient types is dependent on the kind and the specific characteristics of the applica-
tion. Some linear solenoid actuators, designed to perform a specific task in circuit breakers, will
be presented in the section on specific industrial equipment.
Hardware Components for Automation and Process Control ◾ 37

Electrical Electrical
connection wires connection wires

External
return action

Plunger
Return Actuator case Coil winding
Coil winding
spring

Figure 2.18 General purpose solenoid actuators with/without a return spring.

2.2 Sensors
Almost any industrial automation system includes sensors for the detection of the various “states”
of the controlled manufacturing process and actuators as outputs for real-time acting and achiev-
ing the desired behavior of the production procedure. Following the presentation of actuators in
the previous section, sensors (by means of their kinds, properties, implementation and the basic
theory behind them) are described in this subsection. Sensors are devices that, when exposed
to a physical phenomenon (temperature, pressure, displacement, force, etc.), produce an output
signal capable of being processed by the automation system. The terms “transducer” and “meter”
are often used synonymously with sensors, while simultaneously some sensors are combined with
the term “switch”, causing confusion about the correct terminology. Furthermore, some writers
consider that “sensor” is only the sensing element that detects the physical magnitude and not the
whole device that, together with the sensing element, transforms the physical variable into a form
of electrical signal. Let’s define the meaning of these terms as they will be used in this textbook.
In general, sensors transform the variation of a physical quantity into an electrical output
signal, which may be an analog or digital one. In the first case, the sensor produces a continuous
output signal that is proportionally varied to the sensed parameter. For example, a pressure sensor
may produce a 4–20 mA DC, or 0–10 V DC output signal for a 0–725 psi pressure variation. In
the second case, the sensor produces a discrete output signal in the form of an ON or OFF, usually
causing a SPDT contact to change state when the physical quantity gets over a predefined value.
Sensors with analog output may also be called transducers, while sensors with discrete (or binary
or digital) output are called switches, e.g., “proximity sensor or switch”. When transducers include
an analog-to-digital converter (ADC), then they are called digital transducers, since their output
can be directly fitted to a digital controller, and should not be confused with the binary or digital
sensors of a switch operation type.
A conventional automation circuit cannot manipulate the output of transducers because of its
analog form, and thus it may be combined only with sensors of a switch-type output. On the other
hand, the modern automation systems are realized by programmable logic controllers, which can
accept both digital type signals (ON-OFF) and analog type current or voltage signals, varied into
some standard ranges. It is obvious that for the same physical variable (e.g., temperature), there are
in the marketplace both sensors with switch-type output and transducers with analog-type output,
while the selection between them depends on the kind of application. It should also be noted that
some transducers, including a signal-conditioning unit, might offer a second switch-type output,
except those from an analog-type output, responding to a manually defined value of the detected
38 ◾ Introduction to Industrial Automation

physical quantity. In this sense, digital sensors with discrete outputs will be mainly covered in this
section, but some transducers will also be included.

2.2.1 Thermal Overload Relay


Thermal overload relays are devices for protecting motors from overcurrent situations that may
cause them damage. Before proceeding to their detailed description, let’s discriminate some issues
regarding their operation. Unlike their widely used name, these devices are not relays like the ones
described in Section 2.1.1, but sensors detecting electric current. Furthermore, these relays could
be considered or called “switches”, but are not switches although they perform indirectly the action
of switching. In fact, thermal overload relays can interrupt the auxiliary or control circuit of a
power relay—that is, the real switch—causing its deactivation. From this point of view, a thermal
overload relay is an integral part of any power relay supplying an electric motor. It is mechanically
and electrically coupled with the power relay, and both of them constitute together a unified power
device that is inserted in the power circuit of an electric motor. The relay acts then as a switching
mechanism and the overload relay as a sensor detecting the motor current. For this reason, all the
power relays manufacturers produce also the corresponding thermal overload relays.
Every motor is characterized by the nominal current Inominal absorbed during the motor’s opera-
tion and under normal conditions. The thermal overload relay detects the possible overloading
situation of the motor, expressed by the condition Ireal > Inominal, where Ireal is the actual current of
the motor. If the motor draws more current than Inominal for an extended period of time, then it will
be damaged. In order to avoid such a fault, the thermal overload relay protects the operation of the
motor indirectly by deactivating the power relay or the contactor, as is described subsequently. The
output of the thermal overload relay is, in most cases, a DPST contact, as shown in Figure 2.19,
which helps stop the motor operation.
The principle of the thermal overload relay operation is based on the known behavior of the
bimetallic strip, which consists of two dissimilar metals by means of two oblong metallic pieces
bonded together. The two metals have different thermal expansion characteristics, as for example
the brass and the nickel-iron alloy, and therefore the bimetallic strip bends at a given rate when
heated. In Figure 2.20a the simplified form of a bimetallic strip is shown, where the motor current
flows through it and hence it is directly heated, while in Figure 2.20b the strip is indirectly heated
through insulation winding around the strip. When the motor current has its nominal value
or lower, the bimetallic strip doesn’t bend, and the contacts have their normal status. As motor
current rises for any reason, the bimetallic strip bends, pushes the trip lever, and mechanically
changes the state of the two contacts, as presented in Figure 2.20c. The NC contact is inserted
in the control circuit of the power relay supplying the motor and, in such an overload condition,

Thermal overload DPST output of


relay symbol thermal overload relay

L1 L2 L3

Power lines Control lines

Figure 2.19 Schematic symbol of a thermal overload relay.


Hardware Components for Automation and Process Control ◾ 39

Ireal<Inominal Ireal<Inominal Ireal>Inominal

Wire Bimetallic
strip

Auxiliary

Closed
contacts

Open
NO NC NO NC Trip
lever

(a) (b) (c)

Figure 2.20 Operation principle of the thermal overload relay with bimetallic strip, (a) during
normal operation (direct heating), (b) during normal operation (indirect heating), and (c) during
fault case operation.

causes the deactivation of the power relay and hence the overall stopping of the motor. The cor-
responding automation circuit, with a thermal overload protection of a motor, was given in Figure
1.11 as an example of control circuits. Its operation explanation and other examples are described
in more detail in Chapter 3. The NO contact of the thermal overload relay is used to activate the
fault indication of the condition “overload relay tripped”.
Furthermore, Figure 2.20 shows a single bimetallic strip, while the thermal overload protection
relays are of a three-pole type, and hence it contains three bimetal strips mounted together with a
uniform tripping mechanism in a housing made of insulating material, as shown in Figure 2.21.
Each bimetallic strip detects the motor current of the corresponding phase, making the overload
relay also sensitive to the phase imbalance or losses. Each thermal overload relay covers a standard
range of the motor current, e.g., 4–6 A or 6–8 A (there are about 20 such ranges), and is equipped
with a small dial for the ampere constraint setting into the standard range by the displacement of
the trip mechanism relative to the bimetal strips. After an overload situation, the bimetallic strip

Reset button
Selector automatic
or manual reset Auxiliary
contacts
Adjustable
current setting Trip test
button
Terminals for
connection to
the contactor
Supply terminals

Bimetallic strip To motor

Figure 2.21 Typical external view of a thermal overload protection relay.


40 ◾ Introduction to Industrial Automation

cools and returns to its initial position either manually by a reset button or automatically by a self-
resetting mechanism, the last being selectable from a corresponding switch. A manual test button
is also provided for testing the operation of the overload relay’s auxiliary contacts in the automa-
tion circuit. For motor rated currents over approximately 80 A, the motor current is conducted
via current transformers, and in this case, the thermal overload relay is heated by the secondary
current of the current transformer.

2.2.2 Proximity Switches
Proximity switches are, in general, sensors for the non-contact detection of the presence of various
objects, whether metallic or not, in front of the switches’ effective area, while the form of a typi-
cal proximity switch is shown in Figure 2.22. There are three basic types of proximity switches
with respect to their operating principles: inductive, capacitive, and magnetic. The operation of
inductive proximity switches is based on the variation of the magnetic inductance. The capacitive
proximity switches base their operation on the variation of capacitance and the magnetic proxim-
ity switches on the variation of the magnetic flow. The most widely-used proximity switches in
industrial applications are the inductive and the capacitive ones. The substantial advantages of
using proximity switches over other detectors (e.g., limit switches) are as follows:

◾◾ Long electrical life


◾◾ Durability to vibrations, accelerated motion, and toxic environments
◾◾ Operation under DC or AC voltage
◾◾ Effective response in objects’ high speed approaching and high frequency excitation
◾◾ Absence of any kind of movable elements

The basic parameters of the proximity switches on the basis of which their selection is per-
formed are the following:

Detection or sensing distance is the maximum detection distance between the target object and
the effective area of the switch, as shown in Figure 2.23. The presence of an object in front
of the effective area of the switch is detected when the distance between the object and the
effective area is not larger than the detection distance.

Figure 2.22 Typical external view of a proximity sensor.


Hardware Components for Automation and Process Control ◾ 41

Boundary curve of
effective area
Proximity sensor
Switch OFF
area
Switch ON
area

Detected
object
Object placement
distance
(a) Perpendicular to sensor’s axis movement

Proximity sensor
Detected

Sensing
surface
object

Switch OFF Switch ON

Sensing
distance
(b) Parallel to sensor’s axis movement

Figure 2.23 Object movement in front of the sensing area of a proximity sensor perpendicular
to the sensor’s longitudinal axis (a), and parallel to the sensor’s longitudinal axis (b).

Object placement distance: The motion of an object in front of the effective area of the proxim-
ity switch may be perpendicular to the switch axis, as shown in Figure 2.23a, or parallel,
as shown in Figure 2.23b. The object placement distance has meaning only in the first case
and is defined as the constant distance between the passing object and the effective area of
the proximity switch. The object placement distance should always be less than the detection
distance. Usually, the object placement distance must be precisely adjusted during mount-
ing of the switch. For this reason, the cylindrical type proximity switches have a threaded
cylindrical surface for micro-adjusting their location.
Power supply is the supplied voltage range that the proximity switch will operate at. This volt-
age should not be confused with the operating voltage of the automation circuit where the
output of the proximity switch, usually a SPDT contact, is inserted.
Response time is the time elapsed between the object detection instant and the switch output
activation.
Operating frequency is the maximum number of ON/OFF changes per second that the proxim-
ity switch, and particularly its SPDT output, is able to perform.
Residual current is the current that flows through the proximity switch when it is not activated
by an object. The residual current has a particular importance when the proximity switch
is connected in series with the load and, furthermore, when it is connected as input in a
programmable logic controller, as is explained in Chapter 6.
42 ◾ Introduction to Industrial Automation

The main types of proximity switches, with respect to their external form and shape, are the
cylindrical, rectangular, and the slot ones, as shown in Figure 2.24. The double cycle area in all
of them is the effective area for the detection of an object’s presence. From the internal structure
point of view and the used operating principle, the proximity switches include three basic stages,
the LC oscillator, the Schmitt trigger unit, and the amplifier-output switching circuit, as shown
in Figure 2.25.
Inductive proximity switch is where the LC oscillator creates, through the projected coil, a high
frequency electromagnetic field which is extended in front of the whole effective area. If a metal-
lic object enters inside the zone of the electromagnetic field, then eddy currents are generated
in the object’s body. These eddy currents generate their own electromagnetic field that opposes
the field of the proximity switch and draws energy from the oscillating circuit, reducing thus
the oscillation amplitude. The rise or fall of the circuit oscillation triggers the amplifier and the
output switching circuit, where the oscillation change is converted to a SPDT contact-output
change.
Capacitive proximity switches are similar to inductive proximity switches, since they have the
same external form and size but a different operating principle. In general, the capacitive switch
produces an electrostatic field instead of an electromagnetic field, and can detect metal as well as
nonmetallic materials such as paper, glass, wood, liquids, and granular materials. In the capaci-
tive proximity switch, the capacitor of the LC oscillator, shown in Figure 2.25, takes the place of
the coil, just behind the effective surface of the cylindrical switch. The capacitor is formed by two
concentrically shaped metal electrodes like two circular sectors (plates) as shown in Figure 2.26.
It is known that the capacitance is proportional to the surface area of the electrode plates and the

Figure 2.24 Basic exterior forms of proximity sensors for various applications.

Induced eddy currents


oppose field LC oscillator Schmitt Amplifier and
electronics trigger output switching
Inductive coil circuit
Sensing metal object

L C

Electromagnetic Inductive proximity switch


detection field

Figure 2.25 Internal elements of an inductive proximity sensor and object-electromagnetic


field interaction.
Hardware Components for Automation and Process Control ◾ 43

Amplifier and
RC oscillator Schmitt
Ground electrode output switching
electronics trigger
Ground electrode Main electrode circuit
Main electrode

Plastic object
19
R
C

Effective area Capacitive proximity switch


Electrostatic field
front view

Figure 2.26 Internal elements of a capacitive proximity sensor and object-affecting dielectric
constant.

dielectric constant of the material between them, while it is inversely proportional to the distance
between electrodes. When an object approaches the sensing surface, it enters the electrostatic field
of the electrodes and changes the capacitance of the LC oscillator circuit, since the object plays the
role of a new dielectric material. As a result, the oscillator begins oscillating and continues until
the object is removed. The existence or absence of the oscillation is subsequently converted to the
SPDT contact-output change, in a similar way to the case of the inductive proximity switch.
Electric connection of proximity sensors: Inductive and capacitive proximity switches can be
­connected to an AC or DC power supply source in a series or separately with a load, the so-called
two-wire or three-wire connections. The connected load may be the coil of a power relay, the elec-
tronic circuit of a control unit, or the digital input of a programmable logic controller. The two-
wire connection of a proximity switch is shown in Figure 2.27a, where the load is connected in
series under a 24 V DC power supply. In the two-wire connection of an electronic-type proximity
sensor, a residual current flows through the load, even when the sensor is in the non-activated
state. Due to the residual current, a rotary switch (RS) is necessary for the load isolation during
the rest period. When the sensor is in the activated state, a voltage drop occurs among it and the
flowing current increases to a level that is being determined by the load. Attention should be paid

+24 V DC +24 V DC

RS RS

Proximity sensor Proximity sensor


Sensing
Sensing

surface
surface

Load
Load
N N
(a) (b)

Figure 2.27 Electric circuit of a proximity switch with (a) a two-wire connection, and (b) a
three-wire connection.
44 ◾ Introduction to Industrial Automation

to the residual current, when the proximity sensor is connected to an electronic circuit, since it
may activate the electronic-type load spuriously, although the sensor does not detect any object.
In Figure 2.27b the three-wire connection of a proximity sensor is shown, where the load is
driven by an SPST independent contact output of the sensor and hence the load is not affected in
any way by the residual current.
Effects of the target size and the metallic environment: When the detected object has an uneven­
surface, while it is approaching an inductive proximity switch, a part of the surface participates in the
activation, as depicted in Figure 2.28a. In such a case, the maximum detection distance is reduced
proportionally to the surface curvature. The sensing distance (SD) of an inductive proximity switch
is also affected by the dimensions of the detected object, while the maximum detection distance,
provided by the manufacturer, is valid when the object surface covers the whole effective area of the
proximity switch. In general, smaller dimensions of the detecting object lead to the reduction of the
corresponding sensing distance, as shown in Figures 2.28b and 2.28c correspondingly. The material of
the object also affects the maximum detection distance of a proximity switch. Particularly, for the case
of inductive proximity switches, the sensing distance is usually given for carbon steel St37 material.
In general, the inductive proximity switch may be shielded or not. The non-shielded inductive
switches are affected by the presence of a metallic environment, due to the electromagnetic field
scattering as shown in Figure 2.29a. This means that the switch may be activated by the metal-
lic environment and not by the target object. In such a case, the mounting of the non-shielded
inductive switch should satisfy some safety distances, provided by the manufacturer from the adja-
cent surfaces, as presented in Figure 2.29b. The shielded inductive proximity switches create an
electromagnetic field that is restricted just in front of the sensing area, as shown in Figure 2.29c.
Therefore, these types of proximity switches can be mounted in a metallic environment without
risk of pseudo activation.
Magnetic proximity switches have a different and simpler operating principle from that of the
inductive and capacitive ones. They consist of a permanent magnet with a projected pole piece,
a pick-up coil around a pole-piece, and its required housing. When the magnetic flow through
the coil is varied, then a current by induction is produced, and thus a voltage output appears at
the coil terminals, as shown in Figure 2.30. The variation of the magnetic flow may be caused by
any ferrous material moved through the magnetic field. The magnetic proximity switch usually
works with a ferrous gear, while its rotation produces a series of pulse-type voltages. If the gear is

Object
detected area
Sensor SDmax SD<SDmax
effective area
Proximity sensor

(a) (b) (c)

Figure 2.28 The sensing distance (SD) of a proximity switch that is affected by the form and the
dimensions of the detected object: (a) spherical object in front of the sensing surface, (b) the object
covers the whole of the effective area, and (c) the object has smaller dimensions than needed.
Hardware Components for Automation and Process Control ◾ 45

Field >3d
scattering d Coil

Metallic
base

Metallic
base
Metallic
base
b Metal
shield

(a) (b) (c)

Figure 2.29 The metallic environment affects the operation of a non-shielded inductive prox-
imity switch: (a) non-shielded switch presenting field scattering, (b) safety distance for field
scattering avoidance, (c) shielded switch in metallic environment without scattering.

Ferrous gear Pickup coil


wheel Pole piece
Permanent magnet

N S Vcoil

Vcoil

Magnetic proximity switch


t

N S Vcoil

Figure 2.30 Typical variable reluctance magnetic proximity switch.

mounted on the shaft of a rotated machine, then the magnetic proximity switch can act as pulse
generator, exactly synchronized with the rotation of the machine.
Magnetoresistive proximity switch: Another kind of proximity switch that bases its operation on
magnetic field sensing technology is called magnetoresistive, because of the low or high resistance
in a specialized chip element, depending on the existence or not of a magnetic field correspond-
ingly. The magnetoresistive element (MR) is just behind the effective surface of the proximity
switch, as shown in Figure 2.31, and is combined with a trigger circuit and an amplifier for out-
putting a digital signal. Magnetoresistive proximity switches usually detect the magnetic field of
a permanent magnet and are able to detect very weak magnetic fields. Since the magnetic fields
are able to pass through many non-ferromagnetic materials, the detection process can be triggered
without the need for direct exposure to the target object. Magnetoresistive sensors react to both
axially and radially magnetized magnets, have significantly smaller physical size, are vibration
resistant, and have superior noise immunity.
46 ◾ Introduction to Industrial Automation

Magnetoresistive Trigger Amplifier and


element stage output switching
Permanent magnet circuit

N S
MR

Non-ferromagnetic
objects don’t affect Magnetoresistive proximity switch
switch operation

Figure 2.31 Magnetic proximity switch based on magnetoresistive detection.

Various other types of proximity switches exist in the market and may give the industrial
engineer a better solution, depending on the distinctiveness of the application. For example, there
are ultrasonic proximity sensors which use reflected or transmitted ultrasonic waves to detect the
presence or absence of a target object. A deep knowledge of the available equipment in the market
is a fundamental path toward the optimal solution to each application. In this case, optimality
should be considered not only as a correct solution, but it should also be given with respect to the
corresponding cost.
Applications of proximity switches: Proximity switches are used in manufacturing processes, e.g.,
to detect the position of machine components, to count objects on a conveyor, to monitor normal
operation of a machine, and numerous other industrial applications. They are also used in robot-
ics in order to monitor the distance of a robot from the surrounding objects and in safety systems,
where a simple application can detect the opening of an access door in an industrial cell. The most
common industrial applications of proximity switches are shown in Figure 2.32. Some of the most

Position control Pulses generation synchronized Object counting


with the rotation of the shaft

Slot type proximity switch for Detection of faulty Controlling fill level
monitoring of production continuity objects for rejection of granular solids

Figure 2.32 Typical applications of proximity switch usage.


Hardware Components for Automation and Process Control ◾ 47

typical applications of proximity switches are the precise position detection of a moving object in a
machine tool; the number of produced objects as they are traveling on a conveyor belt; and the pulse
generation for synchronizing purposes, which are also performed by suitable proximity switches. A
slot type proximity switch can monitor reliably the continuity of production of lightly connected
objects. As an example, the utilization of a proximity switch could also check the presence of the clo-
sures on boxes, in order to reject the faulty boxes from the production line. Furthermore, capacitive
proximity switches can be used in specific applications, as in the case of level detection of a granular
solid in a tank. The market offers a wide range of proximity sensors to meet different types of appli-
cations and many others. Finally, it should be noted that the lack of physical contact with the target
object and the absence of mechanical parts increase the life of a proximity sensor and make it more
reliable in comparison to other mechanical proximity sensors, such as “limit switches”.

2.2.3 Photoelectric Switches
Photoelectric switches, called also photocells, are solid-state sensors that are able to detect the
presence of an object at long ranges and use an output transistor to change the state of their SPDT-
type digital output. The non-contact detection is performed by a beam of light, visible or infrared,
which can be interrupted or ignored by the detected object. In general, the interruption of the
light beam emitted by the emitter component, due to the presence of an object, is detected by the
corresponding receiver and causes the activation of the sensor output. A typical exterior form of a
photoelectric switch is presented in Figure 2.33. In general, there are three basic types of photo-
electric switches, regarding the utilized reflection type of the beam, which can be categorized as
the “through-beam”, “retro-reflective”, and “diffuse”.
Through-beam photoelectric switches: Any photoelectric switch consists of an emitter and a
receiver of the light beam. In a through-beam type of photoelectric switch, the emitter and the
receiver are separate units, contained in different housings and positioned opposite each other, as

Figure 2.33 Typical exterior view of a photoelectric sensor.


48 ◾ Introduction to Industrial Automation

shown in Figure 2.34. When an object breaks, the light beam causes the receiver to change the state
of the output contacts, which have been inserted in the automation circuit. The sensing distance is
the maximum operating distance between the emitter and receiver, and is achieved when the two
units have perfect alignment and hence the maximum amount of the emitted energy reaches the
receiver. This means that the placement angle of the emitter that is relative to the receiver must
not exceed a predefined value given by the constructor. This type of photoelectric switch has the
advantage of a longer sensing distance, in comparison to other types of photoelectric switches.
Retro-reflective photoelectric switches: In this type of photoelectric switch, the emitter and
receiver are embedded in the same housing unit, and a reflector is used for the reflection of the
light beam, as shown in Figure 2.35. Any object situated between the sensor and the reflector,
interrupting the light beam from reaching the receiver, activates the output of the photoelectric
switch, such as in the case of the through-beam mode of sensing. Reflectors are usually made up of
many small, corner-cube prisms that reflect the beam back to the receiver, almost in parallel to the
entering beam. A simple mirror can also be used as reflector, but precise positioning of it is needed
in order for the emitted beam to strike almost perpendicular to the mirror surface, while reflec-
tors may have a small deviation angle. When the detected object is opaque with a highly reflective

Effective
placement
angle
Top view
Emission beam

Sensing distance

Side view

Emitter Receiver
Detecting
object

Figure 2.34 Through-beam photoelectric switch.

Sensing distance
Emitter
Transmitted beam Reflector
beam
Reflected

Receiver

Detecting
object

Figure 2.35 Retro-reflective photoelectric switch.


Hardware Components for Automation and Process Control ◾ 49

surface, it is possible to play the role of an artificial false reflector which is normally an unwanted
faulty situation. In such a case, polarizing filters can be placed in the light beam in order to prevent
the sensor from false triggering due to non-polarized light signals.
Diffuse-reflective photoelectric switches, which base their operation on the reflection of the
light beam directly on the surface of the detected object, are also called “direct reflection”
photoelectric switches for this reason. Obviously, in this case the emitter and the receiver are
embedded together in one housing unit, as in the retro-reflective type. The emitter emits a beam
of light that is not returned by reflection to the receiver. When the target object is inserted in
the light beam trajectory, the beam is diffused in many directions, one of which is reflected back
to the receiver, as shown in Figure 2.36. Since the reflection of the beam is performed on the
detected object, the color and the type of its surface affects the operation of the sensor. Light
colors usually have a better behavior, offering the maximum of sensing distance, while shiny
opaque objects affect the reflection of the beam by type and quality of the surface rather than
by color.
Photoelectric switches come in a variety of designs, sizes, and technical characteristics, each
type being suitable for a specific application. The terminology that has been presented for prox-
imity switches is also used in the case of photoelectric switches in a similar way. The detection
distance for the through-beam and retro-reflective types of photoelectric switches is defined as
the maximum distance between the emitter and receiver, or between the emitter and reflector
correspondingly. In the case of diffuse reflection types, it is the maximum distance between the
photoelectric switch and the detected object. The detection distance varies with the type, size,
and model of the photoelectric switch and ranges usually from less than 10 cm up to 1500 cm.
Photoelectric switches have a residual current, which is necessary to power the sensor, while their
frequency or ON-OFF output cycles per second depend on the AC or DC voltage of operation
and may range from a few Hz to 700 Hz or more. A new term, used only in photoelectric switches,
refers to their “Dark On” or “Light On” operations. The “Dark On” operation means that the
photoelectric switch is energized when the beam of light is interrupted, or simply when the switch
is “in the dark”. Instead, the “Light On” operation means that the switch is energized when the
beam of light reaches the receiver or simply when the switch is “in the light”. All cases for the three
basic types of photoelectric switches are presented in Table 2.4.
The photoelectric switches can be connected to an AC or DC power supply source through a
two-wire or three-wire connection, similarly to the proximity ones. The output of photoelectric
switches is usually an SPDT contact that changes state when the switch is energized. The NO or
NC contact change is transformed into a digital signal that can be sampled by an external control
unit (e.g., a motion controller, PLC or an automation circuit) in order to trigger a variation in
the operation of the overall controlled system. In addition to the above-described photoelectric
switches, various other types, such as fiber optics types or laser types, may be used for specific
applications.

Emitter
Transmitted beam
Reflected beam

Receiver Detecting
object

Figure 2.36 Diffuse-reflective photoelectric switch.


50 ◾ Introduction to Industrial Automation

Table 2.4 The Dark-on and Light-on Operation of a Photoelectric Switch


Photoelectric Switch
Type Light ON Dark ON

Through beam

Target

Retro-reflective

Reflector

Diffuse reflective

Target

2.2.4 Limit Switches
Limit switches are purely mechanical constructions, where the only electrical parts they have are
their electric contacts. These types of switches have the ability to detect the “end or limit of a
motion” through the rectilinear movement and force of a plunger that is transferred to the inter-
nal mechanism and converted to open or closed electric contacts, as shown in Figure 2.37a. The
return spring resets the switch to its initial normal position, when the cause of the plunger move-
ment is eliminated. The switch housing may be made from aluminum or plastic material, but in
all cases, it protects the internal mechanism with superior electrical insulation and mechanical
strength. Figure 2.37a shows the manual actuation of the limit switch by hand in a similar way
as a push button switch, but in reality, limit switches are mechanically actuated by a movable
object, e.g., a piston rod or a movable shaft. Whereas the movement of the plunger during actua-
tion is possible in only one direction, the motion of the object actuating the switch may have
any direction with respect to the plunger. From a practical point of view, it is very difficult for
the two movements, of the plunger and the actuating object, to be identified. For this reason, an
actuator head is adapted to the body of the limit switch, as shown in Figure 2.37b, in order for a

Fixed contacts Return


spring Switch body Actuator head
NC NO
Switch
housing

Operation
Movable plunger
contacts
(a) (b)

Figure 2.37 Typical form of a limit switch with (a) an interior view of switch body, and (b) a
switch body equipped with an actuator head.
Hardware Components for Automation and Process Control ◾ 51

specific motion of the actuating object to be acceptable with safety from the limit switch. A wide
range of limit switches, with various actuator heads, exist in the market, thus being able to detect
the motion of any kind of moving objects. In all these types, the switch body is the same, with
the only difference being the type of sensor head. Some basic types of limit switches are shown
indicatively in Figure 2.38.
Limit switches are cheaper in comparison to proximity or photoelectric switches, and thus may
be preferred in any application where noncontact actuation is not required. There is also a wide
range of limit switches regarding their size, from subminiature size for use inside small machines
to heavy-duty ones for large mechanical systems. Furthermore, limit switches are available in a variety
of rotary arm styles, operating forces, reset forces, over-travel distances, operation requirements, and
environmental factors (including moisture, contamination, temperature, shock, and vibration).
Limit switches have contacts with electrical ratings that are usually around 250 V AC and between
10 and 15 A. Some manufacturers of plug-in style limit switches offer switch bodies that have
a LED or neon lamp status indicator. As with all other sensors, the actuation of a limit switch

Actuator

Operating
head

Switch
body

(a) (b) (c) (d)

(e) (f) (g)


Object motion with overtravel of the actuator
Object motion without overtravel of the actuator
Adjustable lever length (h)

Figure 2.38 Various types of actuator head for transmitting the external force to the change-
over mechanism suitably and thereby engaging the movable contact’s (a) push plunger, (b) roller
plunger, (c) roller lever plunger (motion from the front or side), (d) roller lever plunger (motion
from the back or side), (e) fork type, (f) adjustable roller arm, (g) adjustable rod, and (h) spring
flexible rod.
52 ◾ Introduction to Industrial Automation

provides an electrical digital signal (change of contact state) that causes an appropriate control
system response.

2.2.5 Level Switches
Level switches or level sensors are devices of various kinds, from fully electronic to purely mechan-
ical types, with a general usage in detecting if the level of a liquid has a definite height. The detec-
tion of the liquid level inside a tank is a common need in any industrial process, large or small.
For example, from large tanks in a petrochemicals refinery to small tanks in a brewery or water
treatment plant, it is quite necessary to know if the liquid level has reached a high or low limit
(level switches) or to measure continuously the value of the liquid level (level transducers). The
same need exists for various granular materials of any kind inside a silo in many industrial appli-
cations, while in the following, the most representative basic types of level switches or sensors are
described.
Electronic level switches for conductive liquids: These are electronic devices that can, by using
immersed electrodes, detect if the level of a conductive liquid is between two certain levels that
the engineer can define according to the application needs. There are many examples of electri-
cally conductive liquids encountered in industry applications, such as water, fruit juices, milk,
beer, sewage, acids, alkaline solutions, etc. The main device consists of the power supply circuitry
(230 V AC, 50 Hz) including the voltage reduction to the required low voltages, the electronic
circuit, the electrodes’ terminals, and the SPDT contact output, as shown in Figure 2.39. Its
operation requires the use of three rod electrodes, where one rod (E3) represents the earth connec-
tion and the other two electrodes (E1, E2) represent the upper and lower limits of the liquid level
respectively. If the liquid tank is metallic, the earth electrode can be connected to any point of the
metallic construction, and therefore does not necessarily need to be immersed. The voltage applied
to electrodes is an alternating one to avoid any possible electrolytic effect and very low for safety
purposes. The electronic circuit can detect if there is a current flow between electrodes through
the liquid. The existence or absence of a current flow between the electrodes is converted by the
electronic circuit, using a measuring amplifier and an electronic self-holding unit, to a switching
contact alteration. Thus, the current detection is equivalent to the detection if the liquid level is
at the upper or lower level. It should also be noted that the behavior of the SPDT contact output
is different during the level’s rise versus fall. As shown in Figure 2.40, when the level is rising and

Electronic level switch


R
High level
Power supply

24 V
230 V AC

Electronic
circuit

Low level
8V

E1
N

Earth E2

E3

SPDT switch output

Figure 2.39 Electronic level switch with immersed electrodes for conductive liquids.
Hardware Components for Automation and Process Control ◾ 53

Level Level
Level
rise fall
height
ELS

Clos.
E1

Closed
Pump
E2

Open

Open
E3
Level switch contact
ELS = electronic level switch

Figure 2.40 Differential behavior of an electronic level switch output during level rising and
falling.

reaches the upper electrode (E1), then the contact output is activated. If the liquid level starts to
fall, the output remains activated and will be deactivated only when the liquid level falls just below
the lower electrode (E2). When the electronic level switch is combined with a pump, either filling
or emptying a tank automatically with its so-called “differential” behavior, the frequent and rapid
start-stop repeated operation due to ripples on the surface of the liquid is avoided. Because of this
differential behavior between the two-level limits and their electronic structure, the electronic
level switches are sometimes called “level controllers”. Since the conductivity of the liquids can
differ considerably, the response sensitivity of the electronic circuit detecting the current through
the liquid is usually adjustable.
Capacitive level switches: It is obvious that the electronic level switches described in the previ-
ous section cannot be used for the case of non-conductive liquids or solid materials. The measuring
system of level switches is capable of detecting liquids, as well as bulk solid materials, and is based
on the capacitance measuring method. The capacitive level switch is a unified device that is side-
mounted entirely on the tank walls, exactly at the ideal point the level should reach. As shown
in Figure 2.41, the device body is on the outside of the tank, while the projected set of the two
capacitive electrodes is on the interior of the tank. The first electrode is the sensitive one, meaning
that it senses the presence of material, while the second electrode is called insensitive and usually
is permanently connected to the earth (tank wall). The two electrodes are electrically isolated from
one another by a suitable polyacetal material and form a capacitor with dielectric material, the
air. The operation principle of the capacitive level switch is based on the variation of the capaci-
tance due to the presence of liquid or bulk solid material around the electrodes. In general, the

Tank wall Earth electrode


(insensitive) Main electrode Bulk solid
(sensitive)
Switch body
(electronics)
Insulation

D
K2
K1 (air) C(K1) C´(K2)

Figure 2.41 Capacitance type level switch for direct contact with bulk solids and liquids.
54 ◾ Introduction to Industrial Automation

capacitance C is directly dependent on the electrodes areas (A), their distance apart (D) and the
dielectric constant (K) of the material between the electrodes, defined as:

C = KA/D

When the tank is empty, then the capacitance (air dielectric) is C(K1). When the level switch
is covered by material that plays the role of a dielectric substance filling the gap between the elec-
trodes, the capacitance gets multiplied by the dielectric constant of this material (K 2) and specifi-
cally varies to C´(K 2) = e C(K1), where e is a constant expressing the difference of two dielectric
constants. Its value is directly dependent on the material to be detected and indicatively has the
value 2–3 approximately for corn and 70–80 for water.
The variation in capacitance is subsequently translated into a switching output by an oscillat-
ing circuit, the frequency of which is dependent on the value of capacitance. The oscillation or
stabilization of the circuit corresponds to the two states of the SPDT contact output and hence
to the existence or absence of a material in the tank. The rod-type electrodes of a capacitive level
switch are strong against the buried situation, and therefore are suitable not only for fine powder
but also for bulk solid materials. Since the temperature, moisture content, humidity, and density
of the process material can change its dielectric constant, the capacitive level switches are equipped
with a sensitivity regulating mechanism for calibration. If more than one capacitive level sensor
needs to be mounted in the same tank, a minimum distance between them should be provided
by the manufacturer in order to avoid interference of their electromagnetic fields. Capacitive level
switches can be used for level detection in silos, tanks, and bunkers in all areas of industry for
conductive or non-conductive liquids, as well as for bulk solid material with a dielectric constant
greater than that of air.
Ultrasonic level sensors: Ultrasonic level switches and transducers work both on the same basic
principle of generating and receiving after a target reflection of ultrasonic waves, but are differ-
ent in their output type. Ultrasonic level switches have a digital output signal of a SPDT contact
type, while ultrasonic level transducers are capable of non-contact measuring of the level through
a microprocessor-based circuit and producing an analog output signal, usually 4–20 mA. Some
ultrasonic level transducers offer both switch and current outputs, which means they can be used
either as a level switch or as a level meter. Ultrasonic level sensors can detect liquids, sludge, and
solid materials.
An ultrasonic wave is a high-frequency acoustic wave that cannot be heard by someone. In
general, people can hear an acoustic wave or sound if it is within the range 20 Hz to 20 KHz. The
transmitter of an ultrasonic level sensor emits acoustic waves usually within the range 30 KHz to
200 KHz. The emitted ultrasonic waves hit the liquid, sludge, or solid surface and are reflected
back to the sensor, as shown in Figure 2.42a. The level is then calculated from the time lag
between the emission and the reflection of the ultrasonic wave, and is converted to a digital or
analog signal accordingly. Ultrasonic level switches and sensors are sensitive to temperature, pres-
sure, and humidity conditions, and for this reason they are equipped with compensation units for
reducing measuring errors. On the other hand, ultrasonic level sensors have some basic advantages
over other technologies of level detection. For example, they can detect various materials that are
quite far away, even more than 15 m. Also, the ultrasonic waves are not affected by the color of the
target surface and its possible changes.
The ultrasonic switch shown in Figure 2.42b uses a slightly different method to detect the
presence or absence of a liquid at a designated point. It contains two piezoelectric crystals, one
transmitting a high-frequency (about 2 MHz) sound and one receiving the previous sound, which
Hardware Components for Automation and Process Control ◾ 55

Ultrasonic Switch output Switch output


switch
Ultrasonic
sensor
Transmitting
crystal

Emitted and
returning waves
Receiving
crystal

Tank

(a) (b)

Figure 2.42 Ultrasonic sensor for non-contact level measurement (a), and ultrasonic switch for
contact level detection (b).

are mounted opposite each other at a small distance of a few millimeters. The ultrasonic switch
uses the different behavior of sound transmission in air and liquid to detect the liquid presence.
When there is no liquid in the gap between the two crystals, the receiver accepts a weak signal,
due to the sound transmission in air which presents attenuation. When liquid is present, the sound
retains almost all of its signal strength and the receiver accepts a strong signal. Subsequently, the
electronics detect this difference and switch an SPDT contact output accordingly.
Radar-type level sensor: Since it is difficult for the lag time-based method described in the previ-
ous section to give very accurate measurements for such small time intervals, the frequency modu-
lated continuous wave method is used in radar-type level sensors. A radar signal that is emitted via
an antenna toward the liquid surface is a microwave signal with a continuously varying frequency.
When the reflected signal returns to the receiver, it is compared with the outgoing signal. Since
the transmitter continuously changes the frequency of the emitted signal, there will be a differ-
ence in the frequency between the transmitted and the reflected signals. The distance of the level
from the sensor location (taking into account the dead zone) is then calculated by measuring the
proportional frequency difference, as illustrated in Figure 2.43.

Frequency Transmitted wave Radar level sensor


(GHz) Reflected wave
fmax
f1
Δf
f0 Dead
Δf ~ Δt ~ d zone
fmin

f1 f0
d
t0 t1 Time

Δt

Figure 2.43 Radar level sensor operation principle.


56 ◾ Introduction to Industrial Automation

Float level switches: The simplest level switches from a construction point of view are the float-based
level switches. In Figure 2.44 some basic types of float switches are shown. The float switch shown in
Figure 2.44a requires sidewall mounting, while a similar one shown in Figure 2.44b is suitable for a
vertical placement. Both types use a sealed-in-glass magnetic switch (called “reed relay”, which is pre-
sented in Section 2.3.4) and a floating part that contains a permanent magnet. When the liquid level is
low, the permanent magnet is far from the magnetic switch, and thus its SPST contact is open. When
the liquid level increases, the floating magnet is moved toward the magnetic switch. Once the mag-
netic switch is reached, the floating magnet activates the SPST contact, which subsequently closes.
Therefore, the floating magnet follows the changes of the liquid level, and at a designated height, the
contact output changes status and remains there as long as the level height does not change.
Another type of a float level switch is shown in Figure 2.44c where the two metallic plates play
the role of an electric contact, and the metallic ball consists of the medium closing the contact.
All the mentioned components are inside a plastic floating box, the orientation of which, up or
down, depends on the liquid level height and determines the status, closed or open, of the contact.

Float Reed switch Liquid up-level


(contact closed)

Reed
switch
Permanent magnet

Float
cylinder

Magnet
ring
Liquid down-level
(contact open)
Level switch for
Side-mounted level switch vertical installation
(b)
(a)
Switch
housing

Liquid down-level
(contact open)

Metallic
plates
Metallic
ball Liquid up-level
(contact closed)

(c) Silver alloy-contact float switch

Figure 2.44 Various types of float-based level switches: Magnet–reed relay float level switch
for (a) sidewall mounting, (b) vertical placement, and (c) metallic plate–ball float level switch
in two possible states.
Hardware Components for Automation and Process Control ◾ 57

Switch case
and Photodiode
electronics Prism type
cover

Ph i
Phototransistor
(a) (b)

Figure 2.45 Optical level switch is non-refraction state (a), and refraction through the liquid
state (b).

Optical level switch: The optical level switch can detect the level of transparent liquids, while its
operation principle is based on the refraction of infrared light through the liquid. Due to its very small
dimensions, it is suitable for mounting in small devices for general use or containing small vessels of water
or any other transparent liquid. Typical examples include switches used in drink vending machines,
medical machines and devices, in motor vehicle technology, etc. As shown in Figure 2.45a, the optical
level switch consists of plastic housing, a transparent hollow hemisphere, an infrared diode, and a light-
sensitive semiconductor. The infrared diode acts as a transmitter of a light beam and the semiconductor
as a receiver of the light beam. When the switch is not covered by liquid, the infrared light beam is fully
reflected on the surface of the hemisphere and is guided to the receiver. When the switch is covered
with a transparent liquid, the infrared light is mostly refracted into the liquid and less light reaches the
receiver, as shown in Figure 2.45b. The incidence or irregularity of the infrared beam on the receiver is
then converted to a switching output that can be used suitably in an automation system.

2.2.6 Flow Switches
In many industrial applications, it is necessary to detect if there is liquid flow inside a pipe. For
example, the cooling system of the bearings of a heavy-duty machine requires flow monitoring for
ensuring water circulation. When the cooling fails due to malfunction of the water pumps, the
switching signal of the water flow detector causes the machine to be switched off, first protect-
ing the machine, and second, saving the water pumps from possible catastrophic dry running.
Furthermore, it enables a simple light or visualized indication of the fault location. The flow
switches can detect a minimum of flow rate, while remaining unresponsive below their cutoff
value. Although the following description of two flow switch types will refer to liquid flow detec-
tion, in general, flow monitors can be used in both liquids and gases.
Paddle-type liquid flow switches are purely a mechanical construction, while the only electrical
part relies on its electric contacts. As shown in Figure 2.46, the switch operates with the use of
a paddle made from stainless steel or brass that is inserted in a pipe. When the liquid flow being
detected pushes against the paddle, the paddle-arm system swings away. This movement changes
the position of a stick tangent to the paddle cam, and thus activates the SPDT contact output.
When the flow is interrupted, the paddle moves back to its initial rest position. Some types of
flow switches use a permanent magnet for actuating and a magnetic switch as contact output.
Paddle-type flow switches can be mounted on both horizontal and vertical pipe lines. The same
flow switch of some manufacturers can accept paddles of various sizes according to the pipe size.
The thermal dispersion flow switch operates based on the principle of thermal conductivity. The
term “calorimetric” flow switch is also used as a detector of the thermal energy that is removed
58 ◾ Introduction to Industrial Automation

SPDT output
terminals NO
NC

Spring return
rotation

Paddle

Flow switch
(pipe cross view)

Side view Side view

No flow Flow

Figure 2.46 Paddle-type liquid flow switch.

from a heating source due to a medium flow. This sensing technology can be reliably applied
almost in any liquid or gas. As shown in Figure 2.47a, the flow switch consists of two resistor tem-
perature detectors (RTD) acting as temperature sensors and the required housing with electronics.
The unheated RTD 1 sensor measures the temperature of the fluid where the probe is immersed.
The RTD 2 sensor is heated from an embedded, constant, low-power heater and hence measures the
temperature of the heater. This creates a temperature difference between the two sensors, which
varies according to the existence or absence of flow, since the flowing medium cools the heated
sensor. Particularly at high flow rates, the temperature difference is lower as flow removes more
heat; at low flow rates, the temperature difference is higher, since flow removes less heat. The

Calorimetric flow switch Thermal dispersion


housing and electronics around heater

No flow Flow

RTD 1
RTD 2 and heater
(a) (b) (c)

Figure 2.47 Calorimetric flow switch mounted on a pipe (a) and thermal dispersion around its
heater probe for fluid at rest (b) and for existence of flow (c).
Hardware Components for Automation and Process Control ◾ 59

thermography around the sensor RTD 2 when the flowing medium is at rest or the medium is
flowing is shown in Figures 2.47b and 2.47c correspondingly, and illustrates the heat dispersion
principle. Therefore, the temperature difference is inversely proportional to the flow rate and pro-
vides a primary signal that is converted to an SPDT relay switching output.
A basic advantage of the thermal dispersion flow switch is that it has no mechanical moving
parts providing precise and fast detection of flow and no flow. Compared to the traditional paddle
type flow switch, thermal dispersion flow switches offer higher sensitivity and no limitation of
installing locations, while are capable of responding under low flow rates.

2.2.7 Temperature and Pressure Switches


Temperature detection in an industrial process (and by extension, its monitoring and control)
is a very common problem for an engineer of automatic control systems and automation. The
production of heat is described in the industry either as a positive (desirable) phenomenon or as a
negative (undesirable) phenomenon. In the first case, electric energy is converted into heat through
resistors; for example, in an industry producing plastic objects, where the raw material is heated
in order to be fluidized, hence it is suitable for processing. In the second case, mechanical friction
(or the Joule phenomenon) results in rising temperatures; for example, in the case of a heavy-duty
gearing mechanism or in the interior of a power transformer. In both cases, independently of the
causation, it is necessary to check the temperature continuously; when it rises over a predefined
limit, a proper control action needs to be triggered. The temperature detection may be very simple,
in the form of an ON-OFF thermostatic signal (temperature switches), or a precise measurement
in the form of an analog variable (temperature sensors).
There are many different types of temperature sensors, all with different characteristics,
depending upon their actual application and principle of operation. The methods used for temper-
ature measuring can be subdivided into contact and non-contact temperature detection methods.
In contact temperature detection techniques, it is required that the sensor and the part containing
the temperature-sensitive element are in physical contact with the object being sensed, while the
thermal conduction property is used to detect changes in the temperature. In non-contact detec-
tion techniques, heat radiation and convection properties are used to detect changes in tempera-
ture via the energy exchanged between the detected object and the sensor. These two basic types
of temperature sensors can be further subdivided into many other categories of sensors, according
to the applied principle of physics. Due to many principles of physics that have been used for
temperature detection, there is a wide variety of temperature sensors and switches on the market
today, including thermocouples, resistance temperature detectors, thermistors, infrared, and semi-
conductor sensors or switches. Due to the large number of these sensors, it is not possible to give a
detailed overview of all of them and thus, subsequently, the most widely used types of temperature
switches only will be presented, keeping in mind that the use of switching contact outputs in an
automated system has a similar principal of operation across the board.
Bimetal temperature switch (thermostat): The bimetal temperature switch is a contact type elec-
tromechanical temperature detector whose operation is based on a bimetallic strip described in
Section 2.2.1. The bimetallic strip of the temperature switch, as shown in Figure 2.48a, consists of
two different and similar bonded metals, usually made from nickel, copper aluminum, or tungsten.
Simultaneously, the bimetallic strip constitutes an electric contact in a closed status under a normal
temperature condition. When the strip is subjected to heat, as shown in Figure 2.48b, a mechanical
bending movement is produced, opening the electric contact. Therefore, the bimetallic electric contact
inserted in an automation circuit can interrupt the operation of a machine when the temperature rises.
60 ◾ Introduction to Industrial Automation

Electric contact
Bimetallic strip Wire
opens due to heat

Electric
contact
Base Heat
Wire
(a) (b)

Figure 2.48 Bimetal temperature switch: (a) electric contact is closed at normal temperature,
and (b) electric contact opens at high temperature.

With additional mechanical or electrical equipment, such as a regulator of the temperature


interruption set-point or a pre-interruption switching signal, more complex control actions can
be facilitated. Due to their simple and inexpensive detection mechanism, bimetal temperature
switches are suitable and preferable for many industrial applications.
Thermocouple: The thermocouple is a type of temperature sensor or switch that is made by
joining two dissimilar metals or alloys at their one end, as shown in Figure 2.49. The two dis-
jointed ends of these dissimilar metals represent a junction that is kept at a constant temperature
called a “cold junction”, while the other junction, called a “hot junction”, constitutes the sensing
or measuring element that is in contact with the object being detected. The operating principle of
the thermocouple is based on the well-known “Seebeck phenomenon” according to which a small
voltage (few millivolts) is created between the two terminals of the cold junction when there is a
temperature difference between the two junctions (cold and hot). If both junctions are at the same
temperature, the potential voltage across them is zero. Since the resulting voltage is very small, an
amplification is created by an operational amplifier (A) in order for the thermocouple output to
produce anything more, such as an On-Off switching circuit.
Various combinations of metals are used in thermocouples according to the desired, detected
temperature range. For example, the nickel chromium–nickel aluminum combination (Type K) is
suitable for a −200 °C to 1250 °C temperature range to be detected. Two other types of widely used
thermocouple materials are the iron-constantan (Type J) and copper-constantan (Type T) that
have been recognized internationally as standards. One noticeable advantage of thermocouples
used in temperature switches as sensing elements is their very small size, allowing thermocouples
to be inserted into very narrow spaces.
Resistance temperature detectors (RTD): A well-known physical law of electricity is the resistance
variation (to the flow of an electric current) with temperature in metallic materials. Its operation
is based on this effect, and the resistance temperature detector is constructed from high-purity

Heated +NiCr R
surface +
Vout
Thermocouple mV~ΔΤ A
_
Hot junction –NiAl R
(measuring temperature) Cold junction

Figure 2.49 Thermocouple as a sensing element in a thermal sensor or switch.


Hardware Components for Automation and Process Control ◾ 61

conducting metals, such as platinum, copper, or nickel. The corresponding temperature switch uses
an RTD as a sensing element, characterized by a linear positive change in resistance with respect
to temperature. There are two common forms of construction for RTD sensing elements: Wire-
wound RTD elements are manufactured by winding a small diameter of wire on a ceramic bobbin,
as shown in Figure 2.50a. Another form is the thin-film RTD sensing element, which consists of a
very thin layer of metal deposited onto a flat ceramic substrate, as shown in Figure 2.50b.
From the above-mentioned conducting metals, platinum is the most commonly used in RTD
manufacturing, and the PT100 temperature detector is widely available in the market. It has a
standard resistance value of 100 Ω at 0 °C and about 140 Ω at 100 °C, and it can cover a tem-
perature range from −200 °C to 850 °C. There are also PT500 and PT1000 RTDs for higher
measuring resistances.
Since the RTD elements are constrainedly connected to lead wires for extension purposes,
their line resistances add errors, due to the increased total resistance value. On the other hand,
since RTD is a resistive element, an electric current is needed to pass through it in order to detect
the resulting voltage and to have the corresponding temperature. This creates self-heating of the
resistive wires, causing additional errors. To avoid these errors, the RTD element is connected to a
Wheatstone bridge, the other branches of which have a compensation action, as shown in Figure
2.50c. A voltage source excites the bridge, and the indicative voltage across the bridge output is
proportional to the resistance of the RTD. This circuit is called a “two-wire connection” of the
RTD sensing element. Better results from an accuracy point of view are given by the “three-wire”
and “four-wire” connections in combination with a constant current source, connections that are
not going to be considered further in this chapter. Figure 2.51 shows an external typical form of
an RTD temperature sensor or switch, whose probe is inserted in the space where the temperature
is being detected.
There are many other types of temperature sensors and switches, some of which will be men-
tioned briefly here.
The thermistor is similar to the RTD temperature sensor, whose resistance changes with tem-
perature, having either a negative or positive temperature coefficient. The thermistor is made from
ceramic type semiconductor materials and presents a large resistance variation for a small tem-
perature change.
The infrared temperature sensor is a non-contact electronic detector of thermal radiation. It
measures the infrared energy emitted by a stationary or moving object as a result of its thermal
state.

Ceramic bobbin Lead wires Platinum thin-film layer


on a ceramic substrate R RTD

Platinum wire R R

Wire-wound Thin-film Wheatstone bridge


RTD element RTD element with one RTD branch
(a) (b) (c)

Figure 2.50 Resistive temperature detectors and their incorporation in a Wheatstone bridge
circuit: (a) wire-wound RTD element, (b) thin-film RTD element, and (c) RTD element connected
to a Wheatstone bridge.
62 ◾ Introduction to Industrial Automation

Electronics and
terminal box
Cable Sensor
socket body

Fixing nut
Gland
Sealant

Lead wires Sensor


probe
Stainless steel sheath

RTD bulb

Figure 2.51 Typical form of an RTD temperature sensor or switch.

The semiconductor sensor of temperature is an integrated circuit fabricated in a similar way as


all others. These sensors are classified into different types like voltage, current, digital, diode, and
resistance silicon. The most common semiconductor temperature sensor is based on the funda-
mental temperature and current characteristics of the transistor. If two identical transistors are
operated at different, but constant collector current densities, then the difference in their base-
emitter voltages is proportional to the absolute temperature of the transistors.
Pressure and temperature are the two most commonly measured or simply detected quantities
in industrial processes. As happens for temperature, there are many ways of sensing fluid pressure.
Pressure sensors and switches consist of a mechanical part sensitive to pressure and an electrical
part producing the output signal, analog (measurement) sensors, or digital (switching contact)
switches. In general, there are different sensing elements, each of which prescribes the design of
the mechanical part. The goal of all the pressure sensing elements is to produce a movement as
a result of the presence of fluid pressure, while the most common of them base their operation
on a diaphragm and piston configuration, as presented in Figure 2.52. The air or liquid pressure
at the inlet port acts on a movable surface (e.g., a flexible membrane or piston base surface). The
force applied to the movable surface depends on the area of the membrane or piston base and the
pressure of the compressed air or liquid. Since the area is constant, the produced force is directly
proportional to the pressure. Therefore, the resulting movement is proportional to the pressure,
and is converted either to an analog voltage, current signal, or to a contact switching signal, when
movement is greater than a predefined limit. In the second case, which concerns a pressure switch,

Pressure Pressure Pressure


inlet Motion inlet Motion inlet Motion

(a) (b) (c)

Figure 2.52 Pressure sensing elements for motion production: (a) Bellow, (b) Diaphragm, and
(c) Piston.
Hardware Components for Automation and Process Control ◾ 63

the pressure set-point at which the switch is activated may be constant or adjustable. The above-
described relation between the movement and the pressure is valid when the pressure on the other
side of the membrane is the atmospheric pressure. In the case that the pressure switch accepts two
different pressures, it is called a “differential-pressure switch” and the movement is proportional
to the difference between the two pressures. The term “differential” should not be confused with
the differential behavior of the pressure switch output during rising and falling of the pressure, as
shown in Figure 2.53a. The difference between the switch operating point on rising pressure (Pmax)
and the switch operating point on falling pressure (Pmin) is called the “dead band”, and may be
adjustable either independently in the setting points or as a fixed range.
A pressure switch with a piston as a sensing element is shown in Figure 2.53b. This is the
simplest form of a pressure switch that is able to activate the SPDT contact, when a hydraulic or
pneumatic system has reached a defined pressure value. In this case, the pressure enters through
the connection inlet port and acts on the piston base. If the force resulting from the inlet pressure
is greater than the downward force of the pre-loaded spring, then the piston is moving upward.
The piston rod is also moving upward and the lever changes the state of the electric contacts. The
trip-setting regulator is a nut that compresses the spring in order to increase the pressure set-point
value where the switch is activated.

Block of Trip setting


contacts regulator

Piston
rod

NO NC Switch
C
case

Cable socket
Range
spring

Piston

P
Pmax

Pmin
t
NC Open
contact Closed
t
Pressure inlet
(a) (b)

Figure 2.53 Random pressure variation and NC switch-contact differential behavior of a pres-
sure switch (a) and a non-differential piston type pressure switch (b).
64 ◾ Introduction to Industrial Automation

It should be clear to the reader that, concerning the characteristics of various industrial sen-
sors, a minimum representative set of sensor types and detecting methods have been covered in
Chapter 2, since there are hundreds of other kinds and types of sensors for all physical quantities
and it is beyond the scope of this book to provide a complete list of these sensors (e.g., optical
laser sensors for the detection of very small objects, fiber optic sensors using optical fiber as
sensing element, linear position sensors based on the magnetostrictive technology, piezoelectric
accelerometers for sensing vibration, inclination sensors, and vibrating level switches). Even with
this huge variety in industrial sensors, all of them participate in an automation system in exactly
the same way, which is the insertion of their digital or analog output into the process controller,
which is described in Chapters 3 and 4. The industrial engineer should be in a position to have
a comprehensive overview of the sensing elements, as well as be aware of the current trends and
new, upcoming sensing devices, in order to select the best sensing technologies for a specific
application; a selection that should satisfy both the performance requirements, as well as the cost
constraints.

2.3 Timers, Drum Switches, and Special Components


This chapter is completed with the description of a series of specific devices used in industrial
automation and control applications. Timer switches, drum switches, electric-network monitor-
ing switches, reed relays, solenoid actuators, counters, hour meters, and encoders are basic devices,
usually of small size, performing metering, protection, actuation, and time-based processing in an
industrial automation system. Although some of these devices (such as timers and drum switches)
are contained in multiple numbers within a programmable logic controller (PLC), they are still
available as autonomous devices because they can facilitate the development of either a small or
economical automation system.

2.3.1 Timers
A time delay relay or simply a “timer” is called an electronic or an electromechanical switch,
where its SPDT contact output is activated with delay with respect either to the start or stop of the
switching operation. In general, there are two basic types of timers from the time-function point
of view: the ON-Delay and the OFF-Delay timer. Also, there are three basic kinds of timers from
the operation principle point of view, the electronic, motorized, and pneumatic timers, which are
presented next.
Electronic timers are pure electronic circuits with an operation that is based on a solid state,
integrated circuit of timer type and a number of other electronic components that control the
operation of a micro-relay, which is the timer’s output. A printed circuit board of such an elec-
tronic timer is shown in Figure 2.54. Some low-cost and low-accuracy timers base their operation
on an RC circuit and use the initially linear behavior of capacitor charging as a time meter.
The more common time-function of an electronic timer is the ON-Delay response of its out-
put. When the input voltage Vin is applied to the terminals A1 and A 2, a timing delay T begins
while the output contacts remain in their initial state, as shown in Figure 2.55. When the preset
time delay has expired, output contacts change state and remain there as long as the input volt-
age is applied. The output contacts return to their initial state when the input voltage is no longer
applied. Of course, this output response or timer behavior is repeatable as many times as desired.
Hardware Components for Automation and Process Control ◾ 65

Figure 2.54 Printed circuit board of an electronic switch timer.

ON
SPDT Power
output supply Vin
OFF
A1 11 t
Vin Output signal Closed
13
(time delay NO
12
A2 contact 11–13) T
Open
t

Timer connection diagram Time ON-delay (T) operation

Figure 2.55 Connection diagram and ON-delay response of an electronic timer.

An electronic timer is able to cover a large time range, and the time delay is adjustable within
this range. There are various types of electronic timers with several time ranges (for example,
1–10 s, 1–30 s, 1–6 min, etc.), offering a broad choice of timing ranges from a second or even
less to several minutes, hours, or days. Also, there are several ways of timing adjustment from
external knobs, dual in-line (DIP) switches, and thumbwheel switches to recessed potentiometers.
Electronic timers can accept a variety of input voltages from 12 to 230 V AC or DC, while the
switching capability of the output contacts is usually up to 12 A.
Pneumatic timers: The most common pneumatic timers are designed to operate in conjunction
with a power relay or a contactor. They are mounted on top of a relay of the same manufacturer
and base their operation on restricting the flow of air through an orifice to a rubber bellow, dia-
phragm, or small air cylinder. Figure 2.56a illustrates the principle of operation of a simple air
cylinder timer versus the construction design. When the relay is activated, the piston is moved
downwards, overcoming the spring force; the air enters into the cylinder, while the check valve
and the output contacts remain in their initial state. At the end of this movement, the piston rod is
released from the relay and the piston is allowed to return back, due to the spring force. The check
valve is then closed, forcing the air to escape through the orifice, the size of which is adjustable
via a suitably mounted knob. The rate at which the air is permitted to be exhausted (adjusted by
knob) is proportional to the time interval (time delay) needed for the piston to return to its initial
66 ◾ Introduction to Industrial Automation

Air exhaust Check One direction


adjustment knob valve gearing mechanism

Controlled SPDT
air exhaust output

Piston

Cylinder Relay ON
Timer power
housing supply OFF
Spring t
Closed
Actuator assembly Output signal
T Open
mounted on movable Relay NO contact
t
core of the relay
Pneumatic (air) timer block Time OFF-Delay (T) operation
(a) (b)

Figure 2.56 Pneumatic timer simplified internal view (a), and an OFF-Delay timer response (b).

position. At the end of the piston’s back movement, the projected part of the rod piston causes
the output contacts to change state. The output contacts remain in this state until the relay is de-
energized, when another mechanism (not shown in the figure) returns the contacts to their normal
state. The described behavior of the pneumatic timer corresponds to the ON-Delay time function
of the electronic timers. In a similar mode of operation, pneumatic timers can offer an OFF-Delay
time function of output contacts. With an OFF-Delay pneumatic timer, timing begins when the
relay is de-energized, as shown in Figure 2.56b. The output contacts change state immediately
after the relay activation and return to their normal state after the time delay T has expired.
Some pneumatic timers are designed to offer both time functions (ON-Delay and OFF-Delay)
and permit the timer to be changed from one to the other by a simple mechanical micro-switch.
Electronic timers with an OFF-Delay time function are also available, but they need one more
input signal for triggering the off-event time instant and an uninterrupted power supply.
Pneumatic timers are popular throughout the industry because they have some basic advan-
tages. For example, they are unaffected by variations in ambient temperature or atmospheric pres-
sure, they are adjustable over multiple time ranges, they have a single turn time-adjustment knob,
and they are simply convertible from ON- to OFF-Delay and vice versa. But the most significant
advantage, in the authors’ opinion, is that the pneumatic timer is the only device that can produce
a kind of electric signal (electric contact change) with a time delay after the general failure of the
central power supply system. In such case, the electric contact can be combined with a battery
bank to activate with time delay, or a siren or a flashing light for indicating the existence of a fault,
a functionality that cannot be achieved with other types of timers.
Motorized or electromechanical timers are motor driven timers with single or multiple time
ranges, accurate and quick recurring operations, and instantaneous and/or delayed contacts. They
use either a clock quartz motor or a synchronous motor to rotate a set of gears through which a
mechanical activation of the electric contacts is achieved. If an electromechanical timer has mul-
tiple time ranges, the selection is performed by changing the gear ratio through a small recessed
switch and a friction-clutch mechanism. Figure 2.57 shows two electromechanical timers from
different manufacturers, on the front of which the time adjusting knob is visible. In timers with
motors, the adjusting knob is back-rotated during timing, thus offering a moving pointer function.
Hardware Components for Automation and Process Control ◾ 67

Figure 2.57 Motorized electromechanical timers from Panasonic Corporation and A.G.
Engineering Enterprise.

Several additional types of timers are available from the time-function point of view. For
example, the delay-on with pulse activation timer, the flasher-type with an ON-OFF alternate
change timer and the two-time-constants timer (T1 for ON and T2 for OFF) are some of them.
More types of timers are described in Chapter 7, where PLCs contain multiple sets of timers each
with multiple time functions. The use of timers in an automation system will be clear in Chapters
3 and 4, where the synthesis of automation circuits including timers is presented.

2.3.2 Cam Timers
Cam timers, or motorized drum switches, are electromechanical sequencers used in industrial
applications with repetitive processes of a finite number of steps. They are considered an old-
fashioned type of timer, due to the current PLCs where such timers can be easily programmed,
but for small automation applications they are an appropriate solution, even today. Furthermore,
their operation knowledge helps students to better understand the industrial processes, including
a sequence of successive and interrelated ON-OFF operations of different machines. Figure 2.58
shows a general view of a multiple cam timer consisting of a motor, a gearbox, a setting disk,
dual cams, and limit micro-switches. Details of its construction are shown in Figure 2.59 for a
five-cam timer. The synchronous motor rotates the camshaft continuously through a gearbox
with a constant cycle time period, usually of 1 min. This means that a full rotation (360°) of
the camshaft takes 1 min. Several other cycle times, from 12 s to 24 hrs, are available from
manufacturers.
The camshaft carries a number of fix-mounted dual cams with the ability to adjust their initial
position. The number of dual cams may vary from 1 to 12 or even more, according to the applica-
tion needs. Each dual cam has two separated sides, each of which can slide concentrically with
respect to the other. The periphery region of each cam-side is properly formatted in order to form
a groove angle in each cam by sliding, as shown in Figure 2.59. Obviously, the value of the groove
angle corresponds to a defined constant time interval per cycle of operation. In front of dual cams
there are an equal number of leaf-spring-mounted limit micro-switches, each with DPST elec-
tric contacts that are wired to devices on a machine for ON-OFF control. Therefore, adjustable
hand cams can turn the micro-switches on and off, and the switches can be adjusted at specific
times within an operation cycle, hence they can “program” any sequence of operations that will
be continuously repeated. Multiple cam timers are often referred to as time-step programmers,
68 ◾ Introduction to Industrial Automation

Motor Gearbox Dual cam

Micro-switch in Setting disk


front of the socket
where it is placed

Limit
micro-switches

Figure 2.58 Electromechanical switch cam timer-programmer.

Motor and Cam timer


Camsaft Setting disk
gearbox housing

30

20

10

350

340

330

Limit
Dual cam
micro-switches

Groove
angle

Figure 2.59 Details of cam timer programmer components.


Hardware Components for Automation and Process Control ◾ 69

Time bar chart


0° 90° 180° 270° 360°
Contact position Cam 1 135°
Cam 2 135°
Cam 3 135°
Cam 4 90° 90°
Cam 5 90° 90°
Time (depending ton timing cycle)

=The NO contact of the ith cam-operated switch is closed

Figure 2.60 Timing bar chart of a five-cam timer.

sequentially energizing and de-energizing various electrical devices. A setting disk, calibrated in
degrees, facilitates the user to adjust the groove angles and the relative position between them.
In order to denote the groove angle for each cam with clarity and present the contact status with
respect to the cycle time, a time bar chart should be designed, such as in the example of a five-cam
timer shown in Figure 2.60. As mentioned above, the various cam angles correspond to equivalent
time durations depending on the cycle time. For example, in the case of a 1 min cycle time, the
groove angles of the first three cams correspond to a time duration of 22.5 s, while the closed status
of the NO contacts creates an overlapping of 2.5 s with each other.

2.3.3 Three-Phase Monitoring Relays


Three-phase monitoring relays are electronic devices that monitor various basic electrical quanti-
ties of the three-phase power network. A typical utilization is for the measurement of the current
values of the electrical quantities and their deviations from the nominal values, where the monitor-
ing relay is able to activate their output(s) when these deviations exceed a predefined limit. Their
output is usually an SPDT contact, suitably inserted in the automation circuit in order to cause
the interruption of the load operation, as shown in Figure 2.61a. The interruption of the operation

R
S
T
N

C
Electronic
circuit
Three-phase
monitoring relay Load

(a) (b)

Figure 2.61 Connection diagram of a three-phase monitoring relay (a), and a single phase
monitoring relay from ABB Ltd. (b).
70 ◾ Introduction to Industrial Automation

is a protective action, since it is known that all electric devices can be damaged when they operate
continuously under abnormal electrical conditions. As a load, it can be considered either a simple
machine with one motor (this case corresponds to Figure 2.61a) or an entire department of an
industrial production factory. In the second case, the relay shown in Figure 2.61a is substituted
by the electromagnetic three-pole circuit breaker feeding the department, and particularly by
the trip coil of the circuit breaker. When the three-phase monitoring relay is connected to the
side of a power network, as shown in Figure 2.61a, then it is referred to as “network monitor-
ing”. Otherwise, it may be connected to the side of the load (three-phase line feeding the load)
and in this case it is referred to as “load monitoring”. Obviously, an eventual interruption, due to
the monitoring-relay activation in the case of “network monitoring”, will be global for the entire
department, while in case of “load monitoring”, it will concern only the monitored load.
Several important parameters of a three-phase power network can be monitored reliably and
continuously by a three-phase monitoring relay. For example, it can monitor a phase failure, a
phase sequence, a phase imbalance, over- and under-voltage conditions, over- and under-current
conditions, a power factor, a frequency deviation, a broken neutral wire, and combinations of
them. Therefore, there is a wide variety of monitoring-relay types in the market, mainly depend-
ing on the number and kind of monitored electric parameters. In general, the utilization of such a
multifunctional three-phase monitoring relay ensures a trouble-free production procedure, while a
single-phase voltage monitoring relay is shown in Figure 2.61b used for the protection of sensitive
equipment and critical control systems.

2.3.4 Reed Relays
Despite their widely used name “relay”, reed relays are switches that are simple in structure and
magnetically actuated. As shown in Figure 2.62a, where a reed relay is depicted, it has a quite dif-
ferent form from the relay. Reed relays or switches are manufactured with two ferromagnetic reeds
that actually are electric contact blades, partially enclosed in a hermetically sealed glass capsule.

Glass
Reed blade capsule Inert gas Reed blade

Contact point
(a)
Magnet
N S

Contact gap S pole N pole S pole N pole

(b) (c)

Figure 2.62 A simple no-cased form of a reed switch (a), NO status of the reed switch contact
(b), and the permanent magnet that closes the contact (c).
Hardware Components for Automation and Process Control ◾ 71

Reed switches

Magnet

Figure 2.63 Example of reed switches used as position sensors.

The two opposing blades are overlapped at their free ends inside a capsule with a gap between
them, as shown in Figure 2.62b, while the other two ends are the terminals of the reed switch that
are able to be soldered. The contact area of the two nickel-iron blades is coated with special met-
als, such as ruthenium for protection from arcs. The glass capsule either has an internal vacuum
(for high voltage switching) or is filled with an inert gas to exclude contaminants and to prevent
oxidation of the contacts.
When the magnetic field from a permanent magnet or a wire coil is close to the reed relay,
then poles of opposite polarity are created among the blades and the contact closes, as shown in
Figure 2.62c. Obviously, the field strength must be suitable so that the magnetic force exceeds
the self-spring force of the reed blades. When the permanent magnet is moved away and the force
between the blades is less than the restoring force, the contact opens. An electromagnetic coil
for the creation of the required magnetic field (instead of a permanent magnet) may be part of a
unified construction together with the reed switch. From the above description, it is advisable to
distinguish the reed switch from the reed relay in order to remove any confusion. A reed switch is
only the glass encapsulated two-blade contact, while a reed relay is a reed switch with an embed-
ded electromagnetic coil.
Reed relays and switches have several advantages, for example their low cost, long life (billions
of switching operations), simple construction, fast switching time, absence of moving parts except
for the elementary motion of blades, etc. But they also have some disadvantages; for example,
the low current rate, sensitivity to other magnetic fields, sensitivity to vibrations, etc. However,
both devices are ideally used for switching and sensing applications in industry, instrumentation,
security installations, vehicle manufacturing, and many others. In fact, a reed switch is the sim-
plest sensor of a magnetic field and, in combination with a permanent magnet, it can be used for
liquid level detection, position detection, and counting. For example, a double-action pneumatic
cylinder usually has two piston position states (in or out) that may be equipped with an internal
permanent magnet for reed switch activation, as shown in Figure 2.63. Then, by installing a num-
ber of reed switches outside the cylinder, it is possible to stop the piston in intermediate positions
corresponding with the reed switches.

2.3.5 Specific Solenoid Actuators


General purpose solenoid actuators were described in Section 2.1.11, where their operation prin-
ciple was explained. These actuators are able to convert electric energy into a mechanical pulling
force able to open or close valves or similar devices. In this section, solenoid actuators of the
same operation principle and produced force are presented, but for specific use in power circuit
breakers. Circuit breakers for industrial use are automatic, three-phase switches that can interrupt
load currents under fault conditions. They are equipped with a complex over-toggle mechanism,
operating either manually (handle) or remotely (motor and gear train) for closing or opening their
contacts. In both cases, a strong spring is compressed and stores energy that can be released during
72 ◾ Introduction to Industrial Automation

(a) (b)

Figure 2.64 Solenoid actuators for current breaker operation, shunt trip coil (a) and under-
voltage release coil (b).

the opening of the circuit breaker. In order to enable this action, a solenoid-produced force with
the capacity to open a circuit breaker is needed. Such a solenoid is called a “shunt trip coil” and is
shown in Figure 2.64a. It is mounted inside a circuit breaker to perform the trip operation. There
are many reasons why a trip operation or disconnection is desirable. Any abnormal occurrence or
critical fault may cause more destruction if the circuit breaker remains closed. For example, in the
case of a factory fire, the automation circuit detecting fire via a corresponding sensor must activate
the trip coil in order for a general power interruption to take place. In such a case, the automation
circuit should be powered by a remote separate source, such as a battery.
The under-voltage release coil, shown in Figure 2.64b, is also a solenoid actuator that performs
a similar trip to the circuit breaker, due to the low voltage of the supply network. It is known
that a low voltage may destroy all electrical devices (mainly electric motors) if operated for a long
period of time. The under-voltage release coil monitors the voltage of the supplying power line
and automatically trips the circuit breaker when the voltage falls below 70% of its nominal range.
If the under-voltage coil mechanism is not energized, it is impossible to close the circuit breaker,
either manually or electrically. Both trip coils may have an additional break-make contact for
signaling purposes in the automation circuit. In Chapters 3 and 4 dealing with the automation
circuits’ design, how the automation circuit of a power transformer activates the trip coil of a cir-
cuit breaker is demonstrated.

2.3.6 Counters and Hour Meters


In many industrial applications, it is necessary to count pulse-type events such as strokes, rotations,
“product passing”, ON-OFF changes of devices, etc. The simplest way to achieve this is to use an
electromechanical counter, like the one shown in Figure 2.65a. Counting only has an indication
purpose, unlike counting-value processing. Conventional automation systems are unable to pro-
cess counting values. However, in the case of PLCs that contain many digital counters, it is pos-
sible to both indicate and process counting values. Electromechanical counters are often referred
as “totalizing” counters, since they display a total quantity. For example, in counting bottles, the
Hardware Components for Automation and Process Control ◾ 73

(a) (b)

Figure 2.65 Typical view of an electromechanical counter from General Industrial Controls
Private Limited (GIC) (a), and hour meter from Camsco Electric Co. Ltd. (b).

counter value will express the total number of passed bottles in front of a photocell application.
Electromechanical counters accept pulse input signals from sensors, switches, and relay contacts.
When the output contact of a sensor closes, the automation circuit supplies the nominal voltage to
the counter input, causing one increment per voltage pulse. The counters usually have a 3–6 digit
display, which may have presetting capabilities and accept manual or electric reset.
Hour meters are used in applications where time duration is critical. To make a process more
effective and safe, hour meters are used to determine how long a machine has been running in
order to schedule machine maintenance or to start another process at a predetermined point in
time. Electromechanical hour meters are designed for the determination and monitoring of the
operating time of electrically driven machines, and are therefore connected in parallel to corre-
sponding relay coils. Obviously, an hour meter will only work during the operation of a machine
or device. In Figure 2.65b, a panel-mount hour meter for industrial use is shown. In general, there
are a wide range of electromechanical hour meters in all common voltages (AC or DC) and in
various mounting styles.

2.3.7 Encoders
Encoders are specific sensors that generate square pulses in response to a wide range of motion
tasks. In many manufacturing and production processes, there is a need for precise shaft rotation
positioning or linear motion position measuring. For this purpose, there are shaft or hollow shaft
encoders that respond to rotation (rotary encoders) and linear encoders that respond to a linear
movement along a straight-line motion. As electromechanical devices, encoders are able to follow
the detected motion through mechanical coupling and provide a motion control system with
feedback information, concerning position or distance, rotation speed or velocity, and direction.
Linear and rotary encoders are both available with two main types of output interpretation: the
absolute encoder and the incremental encoder.
The output of absolute encoders is a multi-bit digital code that indicates the actual position
of the moving mechanical object directly. This means that an absolute encoder has a reference
position. Even in the event of a power outage, it has the ability to maintain a record of its absolute
position. After restarting, the motion system can resume motion immediately without the need
for rehoming. On the other hand, the output of incremental encoders generates a series of pulses
proportional to the rotation of the shaft (rotary encoder) or distance traveled (linear encoder).
By counting the number of pulses per a desired period of motion and based on the resolution
of the encoder—i.e., the number of pulses per revolution or millimeters per unit travel given by
74 ◾ Introduction to Industrial Automation

the manufacturer—the angular or linear position can be determined. This operation is presented
in Figure 2.66 for the case of an encoder with three digits of accuracy. In the left part of this
figure the encoding of the encoder is presented, marked with black and white regions that can
be detected by proper photodiodes, while in the right part, the resulting encoding and the cor-
responding rotation measurements are indicated. For example, in the case of an “ON-OFF-OFF”
measurement that corresponds to line 4, a rotation between 180° and 225° has been achieved. If
more accuracy in the positioning task is needed, alternative types of encoders with more digits of
accuracy should be utilized.
An incremental encoder may have one or more outputs of pulses called “channels”. A single-
channel output can give only the position, and hence is not used in applications where direction
of movement is required. A two-channel encoder produces two pulse trains that are 90° out of
phase with each other. Then, the direction of movement can be determined through the phase
relationship between them. Depending on the number of the rising and falling points of the
two pulse trains that are counted, the counting resolution may be single, double, or quadruple.
Single resolution corresponds to rising edges of one channel only. Double resolution is obtained
when both rising and falling edges of one channel only are counted. Quadruple resolution, the
most precise motion detection, is achieved when both rising and falling edges are counted from
both channels. Some incremental encoders can also include an additional channel known as the
“0-index pulse” or “Z channel”, producing one pulse per rotation for a rotary encoder or at spe-
cific, precisely-known positions for a linear encoder. Since, the incremental encoders don’t have a
constant reference point (as absolute encoders do), the 0-index signal can be used for the homing
procedure at startup; for example, the operation of an incremental encoder, shown in Figure 2.67,
for the case of an encoder with dual channel and zero index output. From this figure, the resulting
pulse trains for the channels A and B are also depicted, that are also different for different rota-
tion directions and the resulting coding for the clockwise and the counter-clockwise operation.
Based on the accuracy of the encoder and the number of district pulses per rotation, the rotation
achieved can be measured. The bottom part of this figure also indicates a 2D representation of the
pulse trains, and a zero index in the case of a quadrature encoder.
Absolute and incremental encoders can base their operation on optical, magnetic, or laser
technology. Independently of their operation principle and kind (which is beyond the scope of
this book to analyze), encoders are used in industrial applications in exactly the same way. It is

Standard binary encoding


Sector Contact 1 Contact 2 Contact 3 Angle
0 OFF OFF OFF 0–45
1 OFF OFF ON 45–90
2 OFF ON OFF 90–135
3 OFF ON ON 135–180
4 ON OFF OFF 180–225
5 ON OFF ON 225–270
6 ON ON OFF 270–315
7 ON ON ON 315–360

Figure 2.66 Binary encoded output for a full rotation of an encoder.


Hardware Components for Automation and Process Control ◾ 75

Shaft
B

Rotating
code disk Stationary disk

Coding track on disk


Coding for Coding for
A
clockwise counterclockwise
rotation rotation B
Z
Phase A B Phase A B
Encoder output
1 0 0 1 1 0 A
2 0 1 2 1 1
B
3 1 1 3 0 1
Z 90 degrees
4 1 0 4 0 0

Figure 2.67 Pulse trains of a two-channel encoder and zero index for resulting coding data.

noticeable that encoders cannot be used with a conventional automation circuit, except if a specific
electronic unit accepts the pulses and produces some digital contact-type outputs inserted in the
automation circuit. On the contrary, they can be easily used with PLCs equipped with suitable
counting modules for positioning tasks. Such applications are met in robotics for controlling and
positioning joints, in computer numerical control (CNC) machines, drilling machines, assembly
machines, cutting machines with a measuring wheel-encoder, and many others.

Review Questions
2.1. What kind of materials can detect an inductive proximity switch and why?
2.2. How many categories of relays exist regarding to their use in industry? Explain each one of them.
2.3. Is a thermal overload relay really a switch breaking a load circuit?
2.4. Can a latching relay be considered as an electromechanical type of memory? If yes, how
many bits of data can be stored in it?
2.5. In your opinion, can the electronic level switch with immersed electrodes be used for detect-
ing the level of a tank containing kerosene?
2.6. Explain if capacitive type proximity switches can detect metallic objects or not.
2.7. Describe two different ways to detect the end position of a pneumatic cylinder.
2.8. What is the role of auxiliary relays in an automation system and what are the corresponding
power relays?
76 ◾ Introduction to Industrial Automation

2.9. What kind of level switch should you select in order to detect the level of barleycorn inside
a silo?
2.10. Explain the operation principle of a thermal overload relay and the role of its electric contacts.
2.11. What kind of sensor is shown in the figure? What does it detect and how does it operate?

2.12. A pump is automatically filling a tank via an electronic level switch with immersed elec-
trodes. The tank is emptying from an unpredictable consumer. At a random time interval,
you are informed that the level is at height L. Based on this information only, can you con-
clude if the pump is operating at this time instance?

ELS

E1 Pump
L
E2

2.13. A production machine produces metallic objects slightly connected to each other in the
form of a chain. What kind of sensor you would use to monitor the continuity of chain and
where exactly you would position the sensor?

Produced
objects
Hardware Components for Automation and Process Control ◾ 77

2.14. Give the time function response of the SPDT output of an On-Delay type and Off-Delay type
of timer, both adjusted at 30 s in relation to the supply voltage Vin shown in the figure.

Vin
60 s

2.15. Give the time function of operation of relay C for the continuous operation of the cam
switch the time constant of which is ½ rpm. The time diagram must contain two complete
rotations of the cam.

Cam switch
T

90°

C T ON-delay timer
adjusted at 20 s

2.16. Suppose that you have a power relay with a coil of nominal voltage 24 V DC and a proxim-
ity switch of nominal operation voltage 230 V AC with an output of SPDT type. Explain if
it is possible to combine the two devices, relay and sensor, in order to achieve an automatic
operation of a machine which is fitted via the relay.
2.17. In the three applications in the figure, we want to detect if the corresponding objects A, B, and
C have reached the imaginary line XY. What kind of sensors you would select in each case?

X
B X
A C
Y
Y
X
Y

2.18. The same voltage Vin is applied to the coil of a common general purpose relay and a pulse
bi-stable relay. Complete the state-behavior of their NO contacts in the diagram.

Vin
0 t
Common
Closed
relay
Open t
Closed Pulse bi-stable
relay t
Open
78 ◾ Introduction to Industrial Automation

2.19. The figure shows a sensor or switch for industrial use. Identify the type of the sensor and its
possible features, and give the connection circuit of a load.

R
N

Load

2.20. What kind of sensor would you select in order to detect the lack of label on the bottle?
Chapter 3

Industrial Automation
Synthesis

3.1 Introductory Principles in Designing Automation Circuits


3.1.1 The Latch Principle
Let’s consider a machine operating with the help of an electric motor. The motor is a direct start
type and is being controlled by the utilization of a relay C. In Section 1.1 it has been analyzed that
the automation circuits are actuating on the power relays, supplying subsequently the motors or
other industrial devices with the appropriate electrical power. In this case, the automation problem
can be stated as follows: What automation circuit can we select to energize or de-energize the relay C
and thus directly control the operation or non-operation of the motor?
A straightforward solution to this problem is the electrical circuit in Figure 3.1a. In this design,
with the help of the RS switch having two switching positions, we can achieve the permanent
operation of the motor in position 1 and the permanent non-operation in position 0. The term
“permanent” means that if the operator leaves this control panel, the motor will continue to oper-
ate or shut down according to the selected state. This does not happen in the case of the automation
circuits shown in Figure 3.1b and 3.1c, where the pressing of a button energizes the relay C. In the
case that an NO button is utilized (Figure 3.1b), there is the option of a permanent stop but instant
operation of the motor, as long as the button is pressed. In contrast, if an NC button is utilized
(Figure 3.1c) there is the option of a permanent operation, but with an instant stop, as long as the
button is pressed. The term “instant operation” does not only mean a moment in time but also con-
tains the meaning of the time duration. This property comes from the construction of the button
and the mechanism of the (spring based) automatic return in the relaxation position and depends
on how long the operator keeps pressing the button. In the most common cases, the buttons are
being pressed instantly and for a very short time interval. If for any reason the button (e.g., the NO
button in Figure 3.1b) remains pressed for a long time interval, then the operation of the motor
will last for a corresponding amount of time, but for simplicity this is characterized as “instant”.
Therefore, the circuits in Figures 3.1b and 3.1c are not suitable for the usual and practical cases
of machine operation in general. As a result, the following problem is formulated: Is it possible to

79
80 ◾ Introduction to Industrial Automation

230 V 230 V 230 V 230 V


R R R R
Self-latching
STOP contact
b b
RS
START C

C C C C
N N N N

(a) (b) (c) (d)

The two circuits are not identical

Figure 3.1 Elementary manual ON-OFF control of a machine. (a) Permanent stop or operation
of a machine (C), (b) Permanent stop, instantaneous operation of a machine (C), (c) Permanent
operation, instantaneous stop of a machine (C), and (d) Permanent stop or operation of a
machine (C).

utilize only buttons to achieve the same operation depicted in Figure 3.1a, which means the potential of
a permanent stop or permanent operation of a machine in general?
The solution to this problem is provided by the automation circuit in Figure 3.1d, which oper-
ates as follows. When the circuit is idle (there is no voltage among the power lines R and N), the
relay C is de-energized. By pressing the START button, the voltage R-N is applied on the relay’s
coil, and thus the relay C is energized. After this, the NO contact of relay C (which is connected
parallel to the START button) closes, and thus an alternative route to the current is provided. In
this way, when the START button has been released and its contact is open again; the relay C
still continues to be energized, based on the previously formulated alternative route of the current.
Due to the fact that the relay C remains constantly energized from the flow of current through
its own contact, this situation is called as “self-latch” for relay C, while the NO contact of C is
called a “self-latching contact”. In this energized state, the relay C remains as long as it is desired
from the automation specifications. By pressing the button STOP, the application of voltage to
the relay’s coil is interrupted, and thus the relay is de-energized. After releasing the button STOP,
the relay C is not energized again, since the contact of the button START and the self-latching
contact remain open. Thus, the electric circuit shown in Figure 3.1d is able to provide a permanent
STOP or START operation of the machine. However, it should be highlighted that the electric
circuits in Figure 3.1a and 3.1d do not have the same operation, since they are characterized by a
very important difference, which is going to be explained in the following.
Let’s assume the switch RS in Figure 3.1a is in the 1 position, which means that the machine
is operating. If a general shutdown of the power supply network is assumed, then the automation
circuit (and the power circuit also) will be de-energized and the machine will stop. In the case that
the power supply network is restored, the machine will operate by itself, without any intervention
by a human operator, which is a case that could be totally catastrophic or dangerous for specific
kinds of machines or industrial processes. For example, the smashing machines of various materials
are not supposed to start when filled with the materials for smashing. In this case, these machines
should initially start operating and subsequently the materials to be smashed should be supplied
to the machine, otherwise the machine will be blocked and may be destroyed by the overload. In
another case, it could be assumed that the multiple machines are operating sequentially due to
Industrial Automation Synthesis ◾ 81

corresponding commands from a human operator. In this case, after the event of a power loss, all
the sequential operations of the machines will be terminated. After the restoration of the power
loss, and for the case of the circuit shown in Figure 3.1a, all the machines will start operating
exactly at the same time instant, an issue that could be totally catastrophic for the industrial pro-
cess under consideration. In contrast to this undesirable operation, the automation circuit shown
in Figure 3.1d does not allow the automatic re-operation of the machine after an impermanent
power loss. In order for the machine to be able to operate again, the human operator should press
the START button, which would provide full control of the machine’s operations, while allowing
the operator to consider specific safety actions in the case of a fault, e.g., the considered power loss.
Like in the circuits shown in Figure 3.1, two horizontal lines will represent the electrical supply
of the automation circuit. In more detail, the power line marked by R will indicate the wire that is
carrying the voltage (phase), while the wire marked by N will indicate the neutral phase. Between
wires R and N we assume a voltage of 230 V, but this can be any kind of standardized AC or DC
operation voltages for the relay’s coils. For example, in the case that the coils of the relays have a
nominal operation voltage of 24 V DC, then the upper horizontal power line will be marked as
the positive pole (+24 V) and the lower horizontal power line as the ground pole.
For all cases of automation circuits, the following remarks should always be considered:

◾◾ Every automation circuit, simple or complex, is secured by a general safety fuse, especially in
the cases where the automation includes control panels for human operators.
◾◾ In the case of control panels for human operators, all the automation circuits should be of
low voltage in order to ensure the operator’s safety in case of a short circuit, current leakage,
faulty wires, etc.
◾◾ The automation circuits are being designed in parallel branches between the R and N lines,
while there is no restriction in their “length”, meaning the total number of branches.
◾◾ Every branch of an automation circuit can be simple or complex, which means that it can
consist of a series, parallel, or a mixed type combination of switching contacts.
◾◾ Every branch of an automation circuit can contain an unlimited number of switching con-
tacts, but always only one coil should be able to get energized.
◾◾ It is never permissible to have serial connections of relay coils in the same branch, while it is
permissible to have a parallel connection of two or multiple coils in the same branch.

3.1.2 The Principle of “Command”


In the wiring diagram of Figure 3.1a, the operation of the machine “C” is controlled by the
human-based actions on the switch RS, while this operation is presented more clearly in Figure
3.2a. However, it is possible that the operation of the machine is controlled in an autonomous
manner, not from a human-based operation, but through the utilization of a switching contact,
e.g., a contact of a light sensor, as presented in Figure 3.2b. In this example, when the photocell
is not detecting an object, it has its internal contact open and thus the machine cannot operate.
When the photocell detects an object, the previously open contact closes and thus the operation
of the machine is allowed. In this case and in all other similar ones, the operation of the machine
is based on the “command” from the utilized sensor. In both cases depicted in Figure 3.2, the
machine is being operated through a contact, either by the switch RS or the sensor switch. In
the second case, the definition of “command” is describing the absence of a human operator. An
additional difference in the described cases is the meaning of the distance. In the first case, in
Figure 3.2a, the operating switch is usually very close to the rest of the automation circuit, either
82 ◾ Introduction to Industrial Automation

Control
panel
50 Hz 230 V 50 Hz 230 V
R R Sensor

RS Command

Hand operation
C C Automatic operation
N N
(a) (b)

Figure 3.2 Machine operation (a) manually or (b) automatically via sensor command.

in the same electrical cabinet containing the automation circuit or in a nearby control panel. In
the second case, in Figure 3.2b, the sensor cannot be placed inside or close to the cabinet with the
automation circuit, since this device is placed in the environment needing the measurement of a
specific quantity and thus proper wiring should be performed from the sensor to the automation
cabinet. Hence, the definition of “command” also includes the meaning of the distance or the
meaning of a control command from a distance.
From an automation circuit design perspective, it should be mentioned that the points in a cir-
cuit, where the “command” from a sensor is being utilized, are denoted by “∅”. In most cases, we
are not designing the sensor device in the automation circuit, but we are simply notating the kind
of the command and switching contact as it will be analyzed subsequently. Finally, the machine
operation control through a sensor with an SPST output switching contact is commonly referred
as a “two-wire command”.

3.2 Step-by-Step Basic Automation Examples Synthesis


3.2.1 Motor Operation with Thermal Overload Protection
In Section 2.2.1, the thermal overload relay has been described, which has a specific utilization in
protecting the motor form an overcurrent. As has been explained, the thermal overload relay is not
directly breaking the power circuit, but it is happening indirectly and through the utilization of a
supporting switching contact in the automation circuit. Today, all the motors are being supplied
through an overcurrent thermal protection relay and thus the utilization of the corresponding
thermal protection auxiliary contact in the automation circuit will be considered an obligatory
component. The corresponding automation circuits shown in Figures 3.1a and 3.1d with thermal
overload protection are depicted in Figure 3.3. The NC contact of the thermal relay is always
included in the automation circuit. As long as the motor is consuming the nominal current (in
which the thermal relay has been tuned), the automation circuit allows the operation of the motor.
In the case that the consuming current becomes bigger than the nominal one, the thermal over-
load protection relay will react and will open the contact “e”. Since contact “e” is connected in
series to the coil of the power relay, its opening will cause the deactivation of the relay and thus it
will lead to the overall stop of the motor.
Industrial Automation Synthesis ◾ 83

230 V 50 Hz 230 V 50 Hz
R R
e NC contact of e
overload relay
Stop

RS
Start
C

C C
N N

Figure 3.3 Motor operation with thermal overload protection.

3.2.2 Operation and Fault Indication


The indication that a machine is in operation can be achieved simply either by the sound produced
from the operated machine or by a visual inspection of its moving parts. However, it is straight-
forward that both ways for indicating the operation of the machine are not accepted, not only
because they are old-fashioned but also because these approaches are ineffective, e.g., in the case
that the operator is away from the operating machine. As a design regulation, the operation of
the machine is indicated through the utilization of indicative lamps that are placed on the control
panel. This control panel can be located either on the machine or at a distance from it.
A lighted indicator is able to inform the operator that the corresponding machine is in opera-
tion. However, in reality, the exact information that the light indication is providing is that “the
power relay in energized”, as displayed in Figure 3.4. For example, in a case where the power cable
from the power relay to the motor is cut, independently of the fact that the light indication will
be on, the motor will not be in operation. In the majority of applications, the light indications of
the machines’ operation are implemented in the form of Figure 3.4. In special cases, where the

230 V 50 Hz
R

e Temperature
e sensor contact
Stop

Start
C C

Overload fault
indicator
C C
N
Machine Temperature
operation fault siren
indicator

Figure 3.4 Signaling of machine operation or faults.


84 ◾ Introduction to Industrial Automation

operation information is needed directly from the motor itself, special sensors can be utilized to
provide this.
Different types of light indicators can also display the various faults in the operation of a
machine. The most common indication of a fault is the activation of a thermal overload relay due
to an overcurrent situation for an extended period of time (Figure 3.4), which is called a “thermal
overload trip”. In cases where the fault is of a high risk or very dangerous, the light indication can
be accompanied by proper sound indications (sound alarms) through the utilization of a horn or
a buzzer.

3.2.3 Machine Operation with Starting Delay


The most common cases of starting a machine take place directly after the application of the
START signal in the automation circuit. This START signal can be provided in the automation
circuit by a human, either through the pressing of a button or with the activation of a switch.
Moreover, this command can be provided based on a sensing device, through the closing of an
NO contact, when the sensing requirements are being met. However, there are specific cases where
it is ideal that the machine starts after the elapse of a specific time delay T, from the time instant
of applying the START command. At this point it should be mentioned that the logical question:
“Instead of using the overall operation mentioned, the reason why someone cannot apply the com-
mand and signal START after the same time delay (T)” is justifiable but not correct. To clearly
understand the importance of starting a machine with a time delay after the provided starting
command, the following two examples will be presented.
Example 1: A specific category of pumps, called “hydro-lubricated”, need to be filled with
water through a supporting tank before starting. The water filling of the tank can be completed
in a short time interval of 1–4 minutes. In the case that an automatic operation of the pump is
needed, the following procedure should be followed:

1. In the beginning, the pump water filling mechanism should be set in operation, without the
pump needing to be in operation. Let’s define “T” as the required time interval for complet-
ing this process.
2. After the elapse of time T, the pump should be set in operation.
3. In parallel with (2), the operation of the water filling mechanism is terminated.

An alternative implementation of this operation can also be assumed, where in the beginning a
command can be provided to start the water filling mechanism and afterwards, when we identify
that the pump is full of water and ready to start, to give the second command for starting the
pump and terminating the water filling process. In this implementation, it should be noted that
there is no automatic operation of the pump but a fully manual one.
Example 2: Let’s consider a parts processing station. The parts are being transported to the
station through a conveyor belt. During the part processing, a proper initialization of the station
(before) and the conveyor belt (after) can start. The initialization of the station could include the
heating of specific area, the reception of complementary parts, and specific initialization tasks that
are required to prepare the station for accepting the upcoming parts. This preliminary process of
station preparation lasts a time interval T. It is more than straightforward that the start of the con-
veyor belt should be made automatic and, of course, after the elapse of the T time interval, from
the moment that the station has been put in operation.
Industrial Automation Synthesis ◾ 85

In both these examples, the problem of starting a machine with a time delay, after the start of
the operation command, is evident. In these cases, where the time is included in the automation
as a parameter of the physical process for implementing the automation circuit, the utilization of
timers (time relays) is needed. A simple automation circuit that achieves the starting of a machine
with a time delay is presented in Figure 3.5. In this case, the timer T is an electronic type time
relay, which can be set at the desired delay time T, while the relay C corresponds to the machine
that we would like to control. For a better understanding of the overall automation circuit and the
utilization of the time relay, the time response of the automation circuit components (T, C) is also
presented in Figure 3.5.
The characteristics of the presented automation circuit are the ability to offer a permanent
operation of the machine with a time delay in starting; a permanent stop through the switch RS;
the ability of repeating the operational sequence as many times as desired; the re-operation; and
the permanent supply of voltage to the time relay during the whole operation. The last character-
istic is of paramount importance, especially if it is considered that the time relay is an electronic
device that should not be under voltage, in case that it is not utilized. Moreover, the time relay
after the elapse of time T is no longer utilized in the automation circuit and thus it is desirable
to have a redesigned automation circuit where, after the elapse of time T, the time relay will no
longer be under voltage. Such a circuit is presented in Figure 3.6, where the time response of the
voltage V T at the terminals of the timer is also presented for a better understanding of the overall

Circuit features:
50 Hz 230 V •Permanent operation or stop of machine C
R •Reoperation
•Timer continuously under voltage during operation
RS
CLOSED
T RS
OPEN t
T C T ON
C
OFF t
N

Figure 3.5 Machine operation with a start-up delay (circuit No.1).

Circuit features:
•Permanent operation or stop of machine C
•Reoperation

50 Hz 230 V CLOSED
R
RS
RS OPEN t

VT
C T C t

T C T ON
C
OFF t
N

Figure 3.6 Machine operation with a start-up delay (circuit No.2).


86 ◾ Introduction to Industrial Automation

functionality. As can be observed, in this case, the voltage V T is set to zero after the elapse of
time T.
The automation circuit shown in Figure 3.6 contains a generic potential problematic situation,
which can be found in many cases, which we will consider subsequently. This problem consists
of the synchronization of two or more switching contacts of the same relay, during the change of
their state. For further comprehension of this problem, let’s consider that the NO contact of C
delays to change its switching state, when compared with the NC contact of C. This means that
the NC contact will open first and before the closing of the NO contact. In this case, the timer will
be deactivated, the opening of the timer’s contact T will happen before the creation of the alterna-
tive current route, through the NO contact of C, and finally this will result in the de-energizing of
relay C. Such an operation of the automation circuit is wrong, and thus a proper redesign should
be provided for dealing with this issue. In normal operations, such as a problematic delay of one
contact with respect to the others does not exist. However, the problem still remains, even in the
cases of simple automation circuits with usual relays and thus the question “will the NO contact
of a relay close before the opening of the corresponding NC contact?” arises. In this question, a
clear and generic answer cannot be provided. Due to the inertia of the relay’s mechanical parts
and their acceleration during the relay operation, usually the synchronization of the contacts’
state change is satisfied. In the general purpose miniature relays, the printed circuit board (PCB)
relays, or in the case of low-cost relays where the moving parts are of a low mass and with a short
translation of the movable contacts, this problematic synchronization might be evident. In these
cases, the automation circuit should be redesigned in order to satisfy the proper sequential logic
of instances and states.
In the case that it is desirable that the automation circuits of Figures 3.5 and 3.6 do not pres-
ent the feature of reoperation, the switch RS must be replaced by a couple of START and STOP
buttons. The corresponding automation circuits are presented in Figure 3.7.

50 Hz 230 V 50 Hz 230 V
R R
e e

Stop Stop

Start d Start d C

T C T

T d C T d C
N N
Features of the two circuits:
•Permanent operation or stop of machine C •Permanent operation or stop of machine C
•Non reoperation •Non reoperation
•Timer continuously under voltage during operation

Figure 3.7 Machine operation with a start-up delay (circuits No.3 and No.4).
Industrial Automation Synthesis ◾ 87

3.2.4 Machine Operation with Stopping Delay


Let’s assume a complex machine is receiving parts in a continuous manner, processing them for
a certain time, and subsequently, placing them on a conveyor belt. If we would like to stop the
machine, there are three possible ways to do so:

1. By pressing the STOP button, the machine will stop independently of the processing stage
that it currently is in. In this case the most likely result would be to have an unfinished part
inside the complex machine.
2. By monitoring the operation of the machine and detecting the termination of a processing
cycle for a part, the STOP button can again be pressed quickly before the start of the next
part.
3. The automation circuit can be designed in a way that the pressing of the STOP button does
not stop the machine directly but will allow the operation to continue until the finalization
of the processing of the current part.

The first two solutions describe unwanted automation operations, since in the first case problem-
atic parts can be produced, while in the second case there is no automation. The third solution
indicates the exact case of a machine operation with a stopping delay, or a delay in stopping after
the application of the STOP command. For a constant delay time T, the proper automation circuit
is presented in Figure 3.8. It should be highlighted that stopping the machine is performed by
the NO button, while the termination until now had been achieved with the pressing of an NC
button. Since the time relays are equipped only with “delayed” contacts, the auxiliary relay d has
been utilized for providing the latch contact d. The NO contact C in the branch of the time relay
T is being utilized in order to avoid the energizing of d and T when the machine is not in operation
and someone is pressing the button STOP.

50 Hz 230 V Closed
R
Start Open
e Stop t
d

C T
Start C C C t

Stop
T t
ON
C T d T, d
OFF
N t

Circuit features:
•Permanent operation or stop of machine C
•Non reoperation

Figure 3.8 Machine operation with a stop delay.


88 ◾ Introduction to Industrial Automation

Circuit features:
50 Hz 230 V •Periodic operation of machine C
R
•Reoperation
e
2
RS1-0-2 RS1-0-2
0
t
1 0 2

T1 T2 T1

ON
C T1 T2 C T2
OFF T1
N t

Figure 3.9 Periodic operation of a machine.

3.2.5 Periodic Operation of Machine with Two Time Constants


In Section 2.3, basic time relays (also called timers) were presented, while, apart from those, there is
a big variation of more specific time relays. One of them is the time relay with two time constants T1
and T2, which can be utilized for achieving the periodic operation of a machine, where the machine
will continuously operate for a T1 time interval and will stop for a T2 time interval. The same func-
tionality can also be achieved through the utilization of two simple time relays of ON-Delay type.
The corresponding automation circuit and the time response of the relay C, which controls the
machine, are indicated in Figure 3.9. The selective switch RS1-0-2 allows the normal operation of the
machine without pauses in position 1. In position 2, the machine is operated for a time interval T1
and stops for T2 repetitively, while in position 0 the machine stops. The second pole of switching
contacts of the selective switch have been introduced in order to isolate properly the time relays and
to avoid their unwanted operation, while the machine is in normal operation.

3.2.6 Machine Operation with Automatic or Manual Control


Let’s consider a machine, as part of a production line, which operates through a command from
a sensor (e.g., a pump being controlled by a level sensor, or a conveyor belt being controlled by a
limit switch). For the time that the corresponding sensor operates properly, there is no problem
with the existing automation. If we assume the sensor has an unwanted fault, then the machine is
not able to operate, which causes a problem in the production line (most likely the whole produc-
tion line will be stopped). A solution to this problem would be to replace the faulty sensor as soon
as possible assuming such additional sensor exists; however, a delay in the production line may still
occur, which on occasion might generate a significant profit loss.
To avoid such problematic time delays, and until the restoration of the fault, it is acceptable that
the machine will operate manually via an operator action overriding the faulty sensor. The ability
to control the operation of a machine in an automatic manner is denoted as “A” (based on a sensor)
or through the classical START-STOP commands is denoted as “H”, indicated in the automation
circuit shown in Figure 3.10a. Moreover, there are plenty of cases where the overriding of the sensor
command is desired, for example in Figure 3.10b, where in the corresponding circuit a time relay
with a 24-hour period is being utilized instead of a sensor. With the switch RS1-0-2 in the A position,
the machine will operate automatically in the time periods that we have initially programmed.
Industrial Automation Synthesis ◾ 89

50 Hz 230 V 50 Hz 230 V
R R

e e

RS1-0-2 RS1-0-2
‘H’ 1 2 ‘A’ ‘H’ 1 2 ‘A’

Stop Automatic
Stop
operation T
command
Start Start
C C

C C T
24 h
N N
24-hour
timer switch
(a) (b)

Figure 3.10 Machine operation with: (a) a selectable auto-manual mode, and (b) with a time relay.

3.2.7 Operation of Two Machines with a Common Manual


Command or Separate Automatic Commands
In an industrial environment, there are a lot of cases where the same process is supported by two
machines. For example, consider a liquid extracted from a tank by the utilization of two pumps,
parts that are being forwarded from one station to another through a double conveyor belt system
and two machines that are packaging parts that are coming from a process station at the same
time. In the case of an automatic operation of two such machines, it is straightforward that these
machines will operate through commands provided by the utilization of sensors. Moreover, in case
of faults, it is ideal to have the ability to operate these machines in a manual mode, overriding the
sensory commands. In this particular case, we will also assume that there is a demand for having
the two machines operate each other with a separate automatic command or both with the same
manual command, after an initial selection of the desired state. In Figure 3.11, the corresponding
50 Hz 230 V 50 Hz 230 V
R R
RS1-2 RS1-2
‘H’ 1 2 ‘A’ ‘H’ 1 2 ‘A’

Stop Command 2 Stop


Command 1 Command 1 Command 2

Start Start d
C1 or 2 C1 or 2
1 2

e1 e2 e1 e2
C1 C2 C1 C2 d
N N
(a) (b)

Figure 3.11 Operation of two machines with selectable common manual commands or sepa-
rate automatic commands. (a) Automation based on additional contacts of a switch, (b) automa-
tion based on an auxiliary relay.
90 ◾ Introduction to Industrial Automation

automation circuit is presented in two versions: with a double pole selective switch and with a
single pole switch and an auxiliary relay.

3.2.8 Operation of Two Machines with a Common Automatic


Command or Separate Manual Commands
For the proper understanding of this operation, we will refer to a non-industrial example. Let’s
assume that we have the case of two farms equipped with one common watering pump station.
For both of the farms, it is ideal to operate the common watering pumps on a daily (24 h) repeti-
tive schedule. At the same time, we would like to have the ability to operate the water pumps
independently and exclusively for each farm with a corresponding charge, based on the individual
consumption (or hours of operation). The required automation circuit for the operation of the
watering pumps with a common automatic command or two separate manual commands is pre-
sented in Figure 3.12.

3.2.9 Operation of a Machine from Two or More Points


The need for operating a machine from two or more control points is commonly found in indus-
trial automation, especially in cases where the machine is being dimensionally extended or if
there is a central control station. The automation circuit for the control (START and STOP) of
one machine from N control points is presented in Figure 3.13. In the installation of such an
automation circuit, the number of wires needed from one control position to another should be
mentioned. In the control points of Figure 3.13, there is no operation indication, and thus three
wires are needed for the electrical installation. In case that the operation indication is needed, then
an extra wire is required.

50 Hz 230 V
R
RS1-2
‘H’ 1 2 ‘A’

Command
Stop1 Stop2

Start1 Start2
C1 C2

d d
e1 e2

C1 h C2 h d
N
Hour meter

Figure 3.12 Operation of two machines with selectable common automatic commands or sep-
arate manual commands.
Industrial Automation Synthesis ◾ 91

50 Hz 230 V
R
Control e Control Control Control
panel 1 panel 2 panel 3 panel n

Stop Stop Stop Stop

Start Start Start Start


C

C
3 wires
N

Figure 3.13 Machine manipulation from multiple control panels (without operation signaling).

3.2.10 Control Panel for Operating n Machines


It is generally acceptable in the most ideal cases to have multiple independent machines controlled
from the same control station or, as it is commonly stated, to have a common control panel. This
control panel can be physically located on the complex machine, placed somewhere in the area of
the machines, or even placed remotely in a special area for control and supervision. Figures 3.14a
and 3.14b indicate the concept of having a decentralized installation of the control panel (control
buttons and switches) far from the switchgear with power relays, thermal overload switches, etc.
The desired automation circuit for the n machines is presented in Figure 3.14c, while in this circuit
it is worth studying the number of the desired wires for completing the automation. It is straight-
forward for this implementation that three n wires are needed, as shown in Figure 3.14d. This
number can be reduced to 2n+1 if the contacts of the thermal overload relays are placed between
the relays Ci and Neutral. In both cases, the number of wires is increased by 1 if a visual indication
is desired in the control panel, which is the common practice in most automation installations.
This additional wire is needed for connecting the neutral phase, while the terminals 3, 6, 9, …,
3n will supply the corresponding light indications.

3.3 The Meaning of the Electrical and Mechanical Latch


Many times, the operation of a motor prevents the operation of another one, mainly due to the fact
that the executed physical operations can be in contrast. For example, in the case that a motor creates
the insertion of a robotic arm in the interior of a car during a car assembly production line, then the
operation of the corresponding motor for the movement of the cars in the production line should be
prevented. In these cases, the automation circuit should mutually exclude the operation of the second
motor, even if such an operation is commanded by mistake. This functionality is achieved through
the insertion of an NC contact of a power relay in the activation branch of the other power relay, in
which the mutual exclusion should be achieved, as indicated in Figure 3.15. This action is called “elec-
trical latch”. Through the electrical latch, the activation of the relay is prevented based on an electrical
approach, without determining that it is impossible to have a mechanical activation of both relays.
92 ◾ Introduction to Industrial Automation

50 Hz 230 V 50 Hz 230 V
R R
e e
Stop
Stop

Start
Start
C C

C C
N N
(a) (b)
50 Hz 230 V
R
e1 e2 en Console

1 4 3n-2 1 4 3n-2
Stop1 Stop1 Stop1
2 5 3n-1 3n wires
2 5 3n-1
3 Start2 Start2 Start2
C1 6 C2 3n Cn

C1 C2 Cn 3 6 3n
N
(c) (d)

Figure 3.14 Control panel for n machines. (a) Centralized control panel for 1 machine,
(b) decentralized control panel for 1 machine, (c) decentralized automation for n-machines, and
(d) console for the decentralized automation of n-machines.

50 Hz 230 V
R
e1 e2

Stop Stop

Start Start
C1 C2

C2 C1 Contact interlocking
C2 by C1
C1 C2
N

Mechanical interlock symbol

Figure 3.15 Automation circuit with relays under electric and mechanic latching.
Industrial Automation Synthesis ◾ 93

In cases of expensive and large motors with inversion, as presented in Section 3.4.1, the power
circuit contains two relays for the change of phases (change of rotation), the electrical latch is not
sufficient. Due to the catastrophic results that would result from an unwanted potential mechani-
cal energizing of those two relays, a “mechanical latch” is added in the automation. The mechani-
cal latch is a mechanism adapted on two relays and the activation of one relay is not allowed in any
way when the other relay has been energized. The operation is called mutual exclusion.
A different kind of latch could happen when energizing a relay before another one which should
have already been energized. It is straightforward that this latching is achieved through the utiliza-
tion of an NO contact of one relay in the activation branch of the other relay. The combined opera-
tion of this form, for two or more machines, is generated from the way that the physical process is
being carried through the utilized machines. Such an application will be examined subsequently.

3.3.1 Sequential Start—Latch of Machines (Chain Latch)


In industrial production lines where multiple machines are lined up one after another and are
functionally cooperative for the completion of a physical production procedure, it is common to
cancel the operation of a machine just in case the previous machine has not been set in operation.
With this exception, it is ideal that the machines should start progressively (like a chain), with
only one operational command. The desired automation circuit for four machines is presented in
Figure 3.16, and the number of utilized machines can be generalized independently.
The circuit of Figure 3.16 presents a special functionality, which is desirable in many cases.
Let’s assume that during the operation of the four machines, a fault takes place and the thermal
relay e2 is energized, and thus machines C2, C3, and C4 stop operating, which is likely to happen
(the breaking of the operational chain). If machine C1 continues to operate, the thermal relay is
de-energized, and then the three machines will start operating again, a situation that could be
forbidden for some specific physical processes. In these cases, after the de-energizing of the ther-
mal relay, we don’t want the machines to restart, instead we need a new command (the press of a
START button). This functionality can also be considered as an indirect way of forcing the opera-
tor to notice the break in operation in the machines. The characteristics of this desired automation
are achieved through the automation circuit shown in Figure 3.17.

50 Hz 230 V
R
Stop
C1 C2 C3

Start

C1

e1 e2 e3 e4

C1 C2 C3 C4
N

Figure 3.16 Sequential start-up of four machines with chain electric latching.
94 ◾ Introduction to Industrial Automation

50 Hz 230 V
R
Stop

Start C1 C2 C3
d1
d1 C1 d1 C2 d1 C3 d1 C4

C4
e1 e2 e3 e4
d1 C1 C2 C3 C4
N

Figure 3.17 Sequential start-up of four machines with chain electric latching without reopera-
tion in case of overload relay trip-reset.

3.3.2 Motor Operation with Power Supply from Two Different Networks


In large industrial units it is possible, for safety and cost reasons, to have the ability to select the supply
from a different power network, instead of the one commonly provided. In this case, switching to a
different power network is ideal. The automation circuit and power circuit needed for this application
and the safe transition from one network to the other is presented in Figure 3.18. It should be high-
lighted that the utilization of the double latch is achieved through the contacts of the relays and from
the utilization of the buttons. The utilized buttons have double contacts to allow initially one relay to
be de-energized and subsequently the second relay to be energized during the change in the supply.

50 Hz 230 V
R

R S T R΄ S΄ T΄ e1

e2

Stop

C1 C2 Start2

Start1
e1 e2
C1 C2

C2 C1
Μ
3~ C1 C2
N
(a) (b)

Figure 3.18 (a) Power and (b) automation circuits of a motor connected in two different supply
networks.
Industrial Automation Synthesis ◾ 95

3.4 Automation Circuits for Motors


3.4.1 Motor with Inversion in Rotation
For every kind of motor, the theory of electrical machines provides the schematics for both the
power circuit and the functional operation of the machine, or the operation sequence of the
relays that supply the electrical motor with power. For a motor with two rotation directions (with
inversion), the power circuit is presented in Figure 3.19. When the relay C1 is energized, the coils
of the motor are connected to the R, S, and T phases; while when the relay C2 is energized, the
coils are connected to the T, S, and R phases. In the first case, the motor is rotating clockwise,
while in the second case the motor is rotating counterclockwise. Additionally, in the presented
case, the motor is being protected by the thermal overload protection (e), while three buttons
are needed for the manual operation of the motor; one for the clockwise rotation, one for the
counterclockwise rotation, and one for pausing the motor operation (STOP). The energizing of
one of the power relays should have a mutual exclusion with the other relay, since synchronal
energizing of the two relays, even for a very short time, will cause a direct short circuit. All these
desired operations are satisfied through the automation circuit shown in Figure 3.20a, which
also includes a light indication for every direction of rotation and a mechanical latch. With this
circuit, it is not possible to change the motor’s direction of rotation, while it is in operation, since
it is needed initially to stop the motor and afterwards to press the button corresponding to the
desired direction of rotation. Moreover, the circuit provides the ability for constant operation. In
cases where an instant operation is needed (as long as the buttons are being pressed) e.g., in the
case of the cranes, a simpler automation circuit can be utilized, as shown in Figure 3.20b. The
buttons with double actuation contacts for latching during start could also be utilized for both
presented automation circuits.

R S T

C1 C2

T R
S S
R T

Μ
3~

Figure 3.19 Power circuit of a motor with two directions of rotation.


96 ◾ Introduction to Industrial Automation

50 Hz 230 V
R
e 50 Hz 230 V
R
Stop
e

bCW bCCW
Start C1 Start C2
CW CCW

C2 C1 C2 C1

“CW” “CCW” C1 C2
C1 C2
N N
(a) (b)

Figure 3.20 Automation circuits for (a) permanent or (b) instant operation of a motor with two
directions of rotation.

3.4.2 Motor with a Star-Delta (Y-Δ) Start


In order to reduce the starting current that deteriorates the effective life of certain types of motors
(especially in the larger, more powerful ones), a special starting procedure is usually followed,
which is called START in a Star-Delta (Y-Δ) configuration. This configuration refers to the con-
nections between the motor’s internal coils and the power supply phases that are able to achieve a
specific reduction of the startup currents in the Y configuration. However, since this Y coil con-
figuration also represents a lower torque for the motor, a proper connection back to the Δ (higher
nominal currents) is needed in order to allow the motor to handle bigger loads.
In the case that no automation is utilized, the coils of the motor can be directly wired in a Y
or a Δ configuration, indicated in Figure 3.21b. In these coil configurations, it should be noted
that the metallic bridges (gray dashed connections) represent constant connections, while in an
automatic operation, these connections should be achieved by the proper utilization of two relays
C2 and C3, as will be presented subsequently.
For every motor that starts with its coils connected in a Star (Y) and subsequently its coils are
connected in a Delta (Δ), as presented in Figure 3.21a, the automation circuit should satisfy the
following requirements. With the press of a START button, the relay C3 that creates the star junc-
tion should be energized. Subsequently and after the energizing of relay C3, the relay C1 should
also be energized. After the elapse of time T, the relay C3 should be de-energized, and without
de-energizing the relay C1, the relay C2 that implements the Delta connection should be energized.
The time duration of T is dependent on the size of the motor, which should be adjustable, thus the
utilization of a time relay is necessary.
The requested automation circuit is presented in Figure 3.21c. It should be noted that in this cir-
cuit, there is a contact with a time delay, but there is no time relay as an electrical device. This means
(as in all similar situations) that the time switch is pneumatic and placed in relay C1. The automation
circuit in Figure 3.21c is not the only circuit for the start of the motor in a Y/Δ configuration. On the
contrary, every automation vendor proposes its specific automation circuit for the same operation that,
in principle, has more contacts than the one indicated in Figure 3.21c, which is the minimum contact
implementation. Such a circuit with more contacts will be presented in Section 3.6.
Industrial Automation Synthesis ◾ 97

R S T 50 Hz 230 V
R
e
Δ
Stop
Y Ο
C1 C2 C3
Start C1

e
C3
Μ
3~
C1`
(a)
Equivalent connection of windings C3
C2
Δ: C1, C2 = ON Y: C1, C3 = ON
T T T C3 C1 C2
S S S N
R R R (c)
Μ Μ
T IΥ,Τ
T IΔ,Τ
IΥ,Τ < IΔ,Τ
S S Ο
R R
(b)

Figure 3.21 (a) Power circuit, (b) windings connection, and (c) automation circuit of a motor
with Y/Δ start-up.

3.4.3 Automation of Various Motor Types


In Sections 3.4.1 and 3.4.2, the automation circuits for the most basic types of electrical motors have
been presented in order to highlight the characteristics of these types of automations. In general,
there are a lot of types of electrical motors, while every type of motor has its specifically designed
automation circuit. These automation circuits are typical and standardized with respect to the manu-
facturing vendors, thus no more references to these circuits will be provided. Subsequently, the most
common types of electrical motor automations will be presented and, when needed, the engineer
can directly refer to the standardized circuits for automation and operation of these electrical motors:

1. With inversion and Y/Δ


2. With start through autotransformers
3. With start through resistors
4. With one direction of rotation and two speeds
5. With two directions of rotation and two speeds
6. Case (4) with an additional Y/Δ start
7. Case (5) with an additional Y/Δ start
8. With one direction of rotation, two speeds of rotation, and two internal coils
9. With one direction of rotation and three speeds of rotation (one internal coil in a Dahlander
connection and an internal simple coil)
10. With two directions of rotation and three speeds
11. With one direction of rotation and four speeds (two internal coils in a Dahlander connection)
98 ◾ Introduction to Industrial Automation

3.5 Automation Circuits with Sensors


The automation circuits that have been examined until now contained only relays (power or aux-
iliary ones), time relays, buttons or switches, and contacts as logical components. In cases where
an automatic command has been utilized, this took place in an abstract approach, with a refer-
ence to a hypothetical sensor. These circuits did not contain sensors, since we were not address-
ing physical operations needing the detection of specific physical quantities. Subsequently, more
automation circuits containing basic types of sensors will be examined. Finally, it should be noted
that the logic for the utilization and integration of additional different types of sensors than those
addressed here would be similar.

3.5.1 Starting a Machine with Canceling Ability


Every machine, when in operation, is performing specific actions and delivers a specific result.
However, there are cases of machines where their operation, after their start, are dependent spe-
cifically on a particular result. In cases of malfunction, where no specific results are produced, the
machine should stop, while in the normal operation the machine should continue to operate. The
involved time from the starting of the machine until the creation of the final result varies with
respect to the specific application. Subsequently, the operation of such a machine with canceling
ability is presented through the following example.
Let’s assume a pump that transfers a liquid from Tank A into Tank B, as indicated in Figure
3.22. Moreover, we assume that the pump is self-lubricated by the same liquid that is passing
through the tank (e.g., in the case of water, the pump is hydro-lubricated). In case that the pump is
in operation without being lubricated, which is equivalent to the situation that no liquid is passing
through the pump, it is more than likely that the pump will be destroyed (burnt). For this reason,
it is desirable to design an automation circuit for putting the pump in operation; if there is a flow
of the liquid in the pipe, the pump will continue to operate, while if there is no flow, the overall
operation will be canceled, which means that the operation of the pump should be stopped auto-
matically. Since the liquid needs some necessary time (T) sec to reach from Tank A to the pump,
the automation circuit should cancel the operation of the pump only after this specific time of T
plus some small-time tolerance (specifically T = distance from tank A to flow switch/flow velocity).
The existence of a liquid flow in the pipe is detected through the utilization of a flow switch, which
is placed closed to the pump. The case of no flow might be caused by various factors, including the

Flow switch

Pump

Figure 3.22 Example of a pump which stops if there is no fluid flow.


Industrial Automation Synthesis ◾ 99

fault of the pump itself, the absence of liquid, the blocking of pipe, etc. The necessary automation
circuit is presented in Figure 3.23a. The time responses of the most characteristic components are
presented in the same figure and correspond to the two potential cases of presence or absence of
flow in the pipes, after the operation of the pump. It should be additionally noted that this circuit
covers also the case where the flow will stop in an unforeseen time after a proper operation of the
pump.
In this specific case, the pump will stop operating after a time T from the time instance that
the flow has stopped. Thus, the operator would like to put the pump in operation again, without
being able to recognize the reason for the pump having stopped in order to resolve the previous
fault situation. For this reason, a more complete automation circuit should energize and retain
an indication of operation canceling due to a flow termination case, in order to be further dis-
tinguished from the case of stopping due to a thermal protection error. The automation circuit
shown in Figure 3.24 is fully equipped with all the necessary indications (operation, thermal fault,
50 Hz 230 V
R Closed Closed
e Start Open Start Open
t t
Stop Flow switch
NC contact ON ON
C C
OFF t OFF t
Start
C C T T T
t t
Flow
or Flow
T switch t switch
Open t
T T
C T Closed
t t
N
(a) (b) (c)

Figure 3.23 (a) Automation circuit for pump operation with cancellation possibility and time
graphs of basic components, without flow (b), and with flow (c).

50 Hz 230 V
R
e e

Stop Reset Flow switch


NC contact

Start
C C
d

T T
Overload Machine
fault operation
Cancellation
indicator indicator
C d indicator T
N

Figure 3.24 Automation circuit for pump operation with cancellation possibility and complete
signaling.
100 ◾ Introduction to Industrial Automation

canceling of operation) for a proper operation of the discussed application. In the case of cancella-
tion, the automation circuit will lock, while not allowing further operation of the pump. In order
to allow the further pump operation, the operator should have to press the “Reset” button, which
forces a notification of the reason that caused the cancellation of the operation.

3.5.2 Pump Operation Based on Level Control


One pump is utilized to transfer water from a watering channel to a tank A, which should be kept
continuously full, as presented in Figure 3.25. In this example, the operation of the pump should
be fully automatic. With the help of an electronic level switch (ELS) as a controller, it is possible to
keep the level of the tank between the levels E1 and E2 constantly without any human intervention.
This is achieved through the simple automation circuit also displayed in Figure 3.25.
For a full understanding of this operation, recall the operation of the ELS as presented in
Section 2.2.5, and more specifically the change of the output function of ELS (SPDT contact)
with respect to the level change. With a similar automation approach, we can understand a case
where a pump, through continuous operation, supplies water from a tank to a water network, as
long as the tank contains water.

3.5.3 Operation of Two Pumps According to Demand


Two pumps are supplying a water tank from a natural source of water, and subsequently, the tank
supplies a consumer with a random demand. Ideally, the automatic operation of the two pumps
is as follows:

1. If the level of the tank is below a certain level (E1), both pumps should be in operation.
2. If the level of the tank is between the levels E1 and E2, one pump should be in operation.
3. If the level is greater than level E2, none of the pumps should be in operation.

As indicated in Figure 3.26, two level controllers are utilized for detecting the levels E1 and E2. The
automation circuit is presented in Figure 3.26, along with the indicated contact status of ELS1 and
ELS2, for the case of an empty tank. Let’s assume that, in the beginning, the tank has a certain
amount of water. A big demand will indicate that the tank will get emptied quite fast, and thus
the level will drop below E1, and with respect for the desired automation, both pumps will be in

50 Hz 230 V
R
ELS e

A
RS0-1
Pump

NC contact
of ELS

ELS = electronic level switch C


N

Figure 3.25 Automated filling of a tank.


Industrial Automation Synthesis ◾ 101

50 Hz 230 V
R
ELS1 ELS2 e1 e2

E2 Pumps RS1 RS2

E1 NC NC
ELS1 ELS2

ELS = electronic level switch C1 C2


N

Figure 3.26 Automatic operation of two pumps according to the demand.

operation, while assuming that the water supply of those pumps covers the requested demand.
With the operation of the two pumps and a low demand, the tank will continue to fill up, thus
if the level becomes bigger than the E1 level, one pump will operate (relay C2). If the level of the
tank continuously increases and extends to level E2, none of the pumps will be in operation. If the
water level starts to drop again, then one pump will start operating again as soon as the level drops
below E2. Throughout the time where the level remains in between E1 and E2, the demand will be
equal to the provided supply, while only one pump will continue to operate. In this automation
approach, attention should be paid to the configuration of the level sensors’ electrodes, which in
this case, have been put approximately on the same level.

3.5.4 Automation of a Garage Door


In complex machines, where a recurrent operation takes place, this is commonly achieved through
the utilization of a motor with the capability of rotation inversion, as has been indicated in Section
3.4.1. In the current application, the recurrent component is a garage door, which is equipped with
a motor with reverse capability. As indicated in Figure 3.27, a combined operation of the door
is necessary through the utilization of two limit switches (b1, b2) and one photocell-sensor (u).
The limit switches stop the movement of the door automatically (safety switches) when it reaches
the corresponding motion limit. The photocell is utilized for the detection of humans, in order
to instantly terminate the movement of the door upon human detection. The operation of this

Photocell
Photocell-sensor (u)

b1 b2

Inversion
Limit switch motor

Figure 3.27 An electrically driven gate with sensors for automatic operation.
102 ◾ Introduction to Industrial Automation

50 Hz 230 V
R
e

Photocell

b1 b2

TC1 TC2
C1 C2

C2 C1

2 channel
transmitter C1 C2
N
Receiver Motion Motion
to close to open

Figure 3.28 Automation circuit of the electrically driven gate of Figure 3.27.

automation is achieved by the utilization of a remote control of two channels (two independent
signals), one for every direction of movement. The automation circuit is presented in Figure 3.28.
As long as a button from the remote control transmitter is being pressed, a corresponding contact
at the receiver (TC1 or TC2) remains closed, thus retaining the movement (more automatic opera-
tion) of the latch principle that needs to be utilized. A similar operation of the door can also be
achieved through a remote control transmitter of one channel. In this case, the automation circuit
is different and the utilization of a pulse relay is needed.

3.6 Automation Circuit Design Regulations


For the design of the automation circuits, multiple standards have been defined from national
and international regulations, such as NEMA, DIN, BS, ANSI, IEC, etc. These standardization
approaches from one point of view provide us with the freedom to select the best automation sym-
bols or design regulations, while on the other hand they can be considered problematic, in that
since there is not a unified standardization approach that would enable the direct comprehension
of various automated circuit designs.
Until now, there have been multiple automation symbols utilized progressively in the various
presented applications. In Table 3.1, all the basic automation symbols that have been utilized are
presented, while it should be noted that with this set of symbols, the majority of all of the indus-
trial automation could be designed. It is also obvious that these symbols are not the complete set
of symbols that could be utilized in industrial automations and there are many more that could be
referred to in the previously mentioned standardization automation manuals.
Except for the specific symbol that represents each device in an automation circuit, an Arabic
letter is additionally utilized. The different devices and the corresponding letters are presented in
Industrial Automation Synthesis ◾ 103

Table 3.1 Symbols of Switching Contacts and Automation Devices


a) NC contact of a relay Any kind of electromagnetic
b) NO contact of a relay contactor, relay and
electrically operated switch

a) Button with NC contact On-delay timer


b) Button with NO contact

Contact of a sensor e.g., limit Off-delay timer


switch
a) NC contact
b) NO contact

Hand-operated switch Pulse type relay


a) SPDT
b) SPST

Contacts of an On-delay timer Abbreviation symbol for a


a) NO contact Υ/ Δ Star-Delta automation
b) NC contact circuit

Contacts of an Off-delay timer Lamp indicator


a) NO contact
b) NC contact

Contacts of an overload thermal Siren alarm or horn


relay
a) NO contact
b) NC contact

Terminals for connecting a Solenoid valve coil


remote device (Klemens)

a) Low-voltage melt-type fuse Measuring instrument


b) Three melt-type fuses of a
3-phase network

Single-line symbol Main terminals of a thermal


a) 3-pole power relay overload relay
b) 3-pole power switch

Multi-line symbol of a 3-pole 3-phase motor


power relay

(Continued)
104 ◾ Introduction to Industrial Automation

Table 3.1 (Continued) Symbols of Switching Contacts and Automation Devices


R a) Multi-line symbol of 3-phase 3-pole switch and fuses
S power supply combination
T b) Single-line symbol of three
conductors

Table 3.2. In Chapters 3 and 4, and based on these two tables, the industrial automation design
will take place.
Another issue that arises with the design of large industrial automations is that of the relay’s
contact location definition, especially when distributed in a size automation circuit. As an exam-
ple, the automation circuit in Figure 3.29 is considered, which represents the starting automation
based on a Y/Δ configuration, which is still different from the one examined in Section 3.4.2.
Based on this automation circuit example, and in order to define the exact number and location of
the required relay contacts, the following procedure should be followed:

1. We number all the vertical branches of the automation circuit.


2. Under each relay, we create a small table with two columns, with the notations “O” and “C”
representing the number of open and closed contacts, respectively.

Table 3.2 Meaning of Letters in Automation Circuits


Device Letter Example

Power switch a Load isolation switch, motor protection switch,


etc.

Auxiliary switch b Selector switch, button, limit switch


rs Rotary switch

Power relay c Power relay for motor supply

Auxiliary relay d Relay used as logical component

Protection or safety devices e Melt fuses, automatic fuses, thermal overload


relay, etc.

Measurement transformers f Current and voltage transformers

Measuring instruments g Ampere meter, voltage meter, power meter, etc.

Indication devices h Lamp, siren, horn, etc.

Capacitors k Capacitor for power factor correction

Machines and power transformers m Motors of any type, power transformers

Rectifiers and batteries n Bridge rectifiers, batteries 24 V DC for


automation circuits supply

Resistors r Heat resistors, induction motor resistors, etc.

Special type devices u Any device not belonging to the above


categories
Industrial Automation Synthesis ◾ 105

50 Hz 230 V
R
e

Stop

Start

C1 C3 C3 C1 C1

C2 C3

C3 T C1 C2
N
1 2 3 4 5
O C O C O C O C
2 5 1 4 1 1
3 5

Figure 3.29 An alternative automation circuit for the Y/Δ start-up of a motor, and an example
of the localization manner of switching contacts and relays.

3. In every column, we denote the number of the branch where a closed or an open contact
exists, respectively, and this is happening for all the existing contacts of the relay.
4. We repeat step (3) for all of the remaining relays.

As an example, in the table of the C3 relay and in the column O, there are the numbers 2 and
3, which indicate that one open contact of C3 exists in branch 2 and one in branch 3. With this
approach, the numbering of all utilized NO and NC contacts that are needed for the correspond-
ing relay takes place. This procedure is extremely important, especially in the case of selecting the
necessary relays and implementing a specific automation circuit.

3.7 Implementation of Automation Circuits


After the initial stage of designing an automation circuit for satisfying specific operations or func-
tionalities for a machine, independently of their size and complexity, the next stage concerns the
implementation of this automation circuit and, in general, the appropriate manufacturing of the
whole automation system. In general, the implementation of the automation circuit cannot be
considered a different task from the implementation of the power circuit. Both circuits are imple-
mented and operate at the same time and inside (in most cases) the same industrial panel or rack.
In Figure 3.30, a representative implementation of the simple automation circuit for a motor of
direct start and with a START-STOP button (such as the one in Figure 3.3) is presented. Such
106 ◾ Introduction to Industrial Automation

Stop Start Power circuit


Automation circuit

Power relay
Fuses

Thermal
Power overload
switch relay
Motor

Power supply

Figure 3.30 Example of an industrial switchgear implementation including both power and
automation circuits.

real implemented circuits present some challenges, and show how difficult the checking of their
proper operation (or logic) is, especially when the full automation in the rack or a cabinet is not in
the electrical drawings. This difficulty increases in the case of large industrial circuits that can be
geographically spread over large areas, while containing a large number of buttons and switches on
the same rack or cabinet, or in a remote control panel. After manufacturing the industrial switch-
gear, the installation of the automation system in the production area takes place. If the industrial
automation design involves sensors, then the installation should also contain the placement of
sensors and their wiring with the switchgear or control panel.
Overall, it should be mentioned that the development of an industrial automation system
involves the following stages:

◾◾ Collection of the operational requirements for the complex machine or production line
◾◾ Design of the automation circuit based on the gathered regulations
◾◾ Calculation of the circuit components (e.g., power relays, thermal overload relays, auxiliary
relays, wires, power supplies, operating voltages, etc.)
◾◾ Manufacturing of the electrical industrial switchgear
◾◾ Installation of the industrial switchgear, which includes:
– Placement of the switchgear
– Power wirings (e.g., motors)
– Low-power wirings (e.g., sensors, actuators, signaling devices, control buttons and
switches in control panels, etc.)
– Testing of the whole system and tuning of sensors (e.g., position tuning of the limit
switches, photo cells, etc.)
◾◾ Implementing and programming, where the automation or parts of the automation in PLCs
are needed and perform the necessary wiring connections from and to the PLC and the rest
of the automation equipment, as described previously.
Industrial Automation Synthesis ◾ 107

3.8 Applications
Here, some practical real-life automation examples are considered in order to increase the knowl-
edge of designing automation circuits and applying the same principles in similar electromechani-
cal projects. Up to this point it has been assumed that the reader has a sufficient background in
designing automation circuits, and that we will only provide a general description of the automa-
tion design. In contrast, the automation problem will be briefly described with respect to the
operational requirements, and the full automation circuit will be provided.

3.8.1 Machine Operation Control from Multiple Positions


Let’s consider the problem of controlling a machine from multiple different locations, which
means that it is required to have the ability to start or stop the machine from every control posi-
tion. Let’s also consider that for this automation, there are only two available wires and there is
no possibility for installing more. As presented in Section 3.2.9, the classical automation circuit
for the operation of a machine from multiple positions requires three wires, without including the
wirings for the operation indication in every control position.
A solution to this problem is the utilization of a pulse relay and to apply the automation circuit
of Figure 3.31. It is obvious that the operation start and pause are achieved by pressing the same
button. This generates some problems, especially in the case of an operator who is not aware of the
double operation of this button, and tries to stop the machine, e.g., in an emergency. Moreover, it
should be noted that the automation circuit of Figure 3.31 has the characteristic of reoperation. If
such an operation is not desirable, then the automation circuit should be altered as is presented in
Figure 3.32 with the help of an additional auxiliary relay.

50 Hz 230 V
R

e Control Control Control


panel 1 panel 2 panel n

START/ START/ START/


STOP STOP STOP

C d
N

Figure 3.31 Use of pulse relay for the ON-OFF manual control of a machine from multiple
control panels with a two-wire interconnection.
108 ◾ Introduction to Industrial Automation

50 Hz 230 V
R

e Control Control Control


panel 1 panel 2 panel n

START/ START/ START/


STOP STOP STOP
d2

d1

C d1 d2

Figure 3.32 The automation circuit of Figure 3.31 in order not to present the reoperation feature.

3.8.2 Operation Control of a Power Transformer


Every three-phase power transformer contains a device for the level control of oil, which is denoted
as a Buchholz device, and a temperature sensor for controlling the temperature of the oil. Both
of these devices have two output contacts SPST configured in two levels, one warning and one
final level. This means that if the level of the oil is below a specific level, the SPST contact will
be energized, which subsequently will be properly utilized for signaling an alarm. If the level of
oil continuously decreases, or a bubble flow is being created, then the second SPST contact is
energized, which will be utilized for achieving an operation STOP. A similar functionality can
be considered for the other two contacts of the thermometer. As presented in Figure 3.33, the
power transformer is connected from one side to the high voltage network through the utiliza-
tion of a medium voltage disconnector switch and the automatic switch (oil or air based). From
the lower voltage side, the power transformer is connected to the low voltage main switch. The
medium voltage automatic switch, as well as the low voltage main switch is equipped with a trip
coil through which the transformer can be set out of operation, which means that each one breaks
the corresponding circuit. The trip coil is activated and causes the breaking when the voltage is
applied on its terminals.
At this point, we would like to design a proper automation circuit suitable for the indication
of operational faults as well as for the breaking operation in critical errors. More specifically, the
whole automation is desired to satisfy the following specifications:

1. For the four kinds of error types, a separate light indication should exist.
2. For the two alert signaling errors (SPST contacts) of the Buchholz device and the thermo­
meter, a sound signaling (horn) should exist.
Industrial Automation Synthesis ◾ 109

Aeration

Disconnector
switch

Insulators

Buchholz
relay

Conservator
Thermometer Low voltage
main switch

Cable
Medium XFMR
junction
voltage box
switch

Aeration channel

Figure 3.33 General view of a transformer power station.

3. The second error signal from the Buchholz device should create a breaking of the medium
power automatic switch.
4. The second error signal from the temperature sensor should create a breaking of the main
low voltage switch.
5. The horn should be able to be muted, while the fault continues to exist.
6. A testing capability of the proper operation (without fault) of the light indications and the
horn should be provided.
7. When the fault is created by any kind of operation breaking, the light indications should
exist even after the event of breaking.

The desired automation circuit is presented in Figure 3.34a. The nominal value for the operational
voltage of the circuit is 24 V DC in order to be compatible with the voltage of a battery. To satisfy
the seventh demand, after the event of the breaking, a proper transition in the supplying voltage
should take place. As presented in Figure 3.34b, this is achieved by the utilization of an additional
auxiliary relay, denoted by d1, which when de-energized connects the battery to the automation
circuit.

3.8.3 Operation of Two Pumps with a Cyclic Alteration,


Based on a Low-High Demand
Let’s consider a small watering network being supplied from two similar pumps according to the
demand. This demand is measured directly through the utilization of two pressure sensors, due
110 ◾

+24 V DC

Siren
Lamps test
test 1 3 5 7
d2 d2 d2 d2 d5 d6 d3 d4
2 4 6 8

Siren
d3 stop
d4 d5 d6
(a) d7 d7

9 11
d2 d3 h1 d4 h2 d5 h3 d7 h4
10 12 d7
0V
Introduction to Industrial Automation

Buchholz Thermometer Buchholz Thermometer 1–2 = Buchholz alarm signal


alarm alarm trip trip 3–4 = Thermometer alarm signal
5–6 = Buchholz trip signal
7–8 = Thermometer trip signal
d1 9–10 = Trip coil of medium voltage circuit breaker
Transformer Rectifier 11–12 = Trip coil of low voltage circuit breaker
Public R
power
supply N +
(b) 24 V DC

Battery Power supply of the


automation circuit

Figure 3.34 (a) Automation circuits for a transformer station safety operation, and (b) change over of power supply of the automation circuit.
Industrial Automation Synthesis ◾ 111

to the simple fact that a high demand will create a pressure drop. These two pressure sensors are
tuned into two different nominal pressures, which correspond to a low and a high demand. Since
the low demand usually lasts longer than the high one, within an operational cycle (e.g., 24 hrs),
the pump that covers the low demand is called a base pump. Based on a similar approach, the
pump that covers the high demand is called a peak pump and it is able to operate (in parallel to
the base pump) for smaller time durations and only for a few times within the operational cycle. If
the base and peak pumps were always the same, then after a large time window of operation (e.g.,
one year), the base pump would have completed a very large number of operating hours, especially
when compared to the peak pump. This is a situation that might result in a fault in the base pump
and thus should be properly avoided through cyclic operation of the base and peak pumps.
The operation circuit for these two pumps is desired to have the following functionalities:

1. The automation circuit should provide the ability to choose between the manual and the
automatic operation of each pump separately.
2. If the base pressure sensor is energized, the based pump should be activated.
3. If the base pump is in operation and the peak pressure sensor is energized, then the peak
pump should be set into operation. If the peak pressure sensor is de-activated, then the
operation of the peak pump should also be stopped.
4. If the base sensor pressure is de-activated, the based pump should stop. However, as soon
as the base pressure sensor is activated again, the peak pump should be put in operation
and considered as the new base pump, and the previously considered base pump should be
considered now as the new peak pump (cyclic operation). The same procedure of changing
the consideration among the current base and peak pumps should be followed for every
operational cycle, until the end of the overall operation where we would desire the complete
operation stop for both pumps.

The overall automation circuit is presented in Figure 3.35, and contains four auxiliary relays,
with the relay d3 responsible for the cyclic operation of the two pumps.

50 Hz 230 V
R

d1 d2 1 3
d1 d1 d3
d2
2 4
d4 d4
d2 d1 d2
d1 d2
‘A’ ‘H’ ‘A’ ‘H’
d3 d3
RS1 RS2
e1 e2

d1 d2 d3 d4
C1 C2
N
1–2 = SPST (NO) output contact of the low-pressure sensor
3–4 = SPST (NO) output contact of the high-pressure sensor

Figure 3.35 Automation circuit for a two pump operation with cyclic alternation.
112 ◾ Introduction to Industrial Automation

3.8.4 Operation of Three Air Compressors with Predefined Combinations


Air compressors are devices that consume large amounts of current, especially during their startup.
The motors of these large air compressors are usually motors with a Y/Δ start, while it is obvious
that significantly more current is consumed, especially in the case of having two or more compres-
sors starting up at the same time. In such cases, and in order to avoid significant voltage drop (that
could lead to the generation of faults for electrical devices), a time delay is inserted in the start of
their operation. If the demand for compressed air is varying, it is generally useful to have the abil-
ity to operate one, two, or more air compressors depending on the general demand. We would like
to have a semi-automatic operation starting ability for the air compressors in more detail, based
on the following specifications:

1. With the help of a rotational selector switch of eight positions, it is desired to pre-select the
operation of the air compressors, based on Table 3.3.
2. When more than one air compressors are started, the second one should start with a con-
stant time delay with respect to the first one (positions four, five, six, and seven). The same
feature of time delay should also exist in the starting of the third motor with respect to the
second one (position seven).
3. The motors of the three air compressors should all start in a Y/Δ configuration.

In Figure 3.36, the necessary automation circuit for the described automation is presented. In
the position of the blocks with the Y/Δ indication, a full automation circuit for the Y/Δ start-
ing of the motors is considered, with two wire commands (without buttons), that have been
omitted from this design in order to simplify the presentation and the comprehension of this
automation.

Table 3.3 Air Compressor Operation


According to Selector Switch Position
Selector Switch Air Compressors
Position in Operation

0 None

1 1st

2 2nd

3 3rd

4 1st and 2nd

5 2nd and 3rd

6 1st and 3rd

7 1st, 2nd, and 3rd


Industrial Automation Synthesis ◾ 113

50 Hz 230 V
R
RS0–1
RS0–7 7
7
0
6
1 6
5
2 5
3 4 4
3
2 d3
d3

d0 d1 d2

d0 d1 d2

d0 d1 d2

e1 e2 e3
d0 d1 d2 d3
Υ/Δ 1 Υ/Δ 2 Υ/Δ 3
N

Figure 3.36 Automation circuit for operation of three air-compressors with selectable
combinations.

Problems
3.1. Design two automation circuits corresponding to Figures 3.6 and 3.7a by utilizing pneu-
matic ON-Delay timers.
3.2. Design an automation circuit corresponding to Figure 3.7a by utilizing the pneumatic OFF-
Delay timer.
3.3. Design two automation circuits corresponding to Figure 3.8 by utilizing a pneumatic timer
for an ON-Delay and OFF-Delay type.
3.4. Redesign the automation circuit of Figure 3.13 in order to add an indicator of the machine’s
operation at each control panel.
3.5. Examine the operational difference of the following circuit in comparison with the circuit of
Figure 3.1d.
R

Stop Start

C
N
114 ◾ Introduction to Industrial Automation

3.6. Design an automation circuit for controlling the operation of a machine from multiple pan-
els (corresponding to that of Figure 3.13) by applying the logic of the circuit shown in
Problem 3.5.
3.7. Examine closely and explain the actual behavior of the following automation circuits:
R R R R

C C
C2 C1 C3 C1 C2 C3

C1 C2 C1 C2 C3
C C
N N N N

3.8. Explain the consequent behavior of the two pumps described in Section 3.5.3 if the electrode
probes of the two electronic level switches are mounted as shown in the following figure:

ELS1 ELS2

E2 Pumps

E1

ELS = electronic level switch

3.9. The sliding electric gate, described in Section 3.5.4, is controlled by the circuit of Figure 3.28.
Examine if it is possible for the moving gate to be stopped in an intermediate location by
normal mode and by an unconventional action. Design an automation circuit that will offer
to the user the possibility to stop the gate in any intermediate location, via an additive tele-
control signal (i.e., a 3-channel transmitter).
3.10. Design an automation circuit for a motor with two directions of rotation, which will permit
the direct change of rotation without the need to previously press the STOP button. Please
note that the circuit of Figure 3.19 does not have this feature.
3.11. Design an automation circuit so that the sliding electric gate, described in Section 3.5.4,
operates with only one tele-control signal (i.e., a 1-channel transmitter). Specifically, we
would like by pressing the transmitter button once, the gate will open. By pressing the same
button for a second time, the gate will close, and so on. During the gate movement, pressing
of the transmitter button will reverse the direction of its motion.
3.12. The automation circuit of Figure 3.9, for the periodic operation of a machine with two time
constants, presents the characteristics of reoperation. Design a similar automation circuit,
which will not reoperate after a power supply interruption or restoration.
3.13. A pump is going to empty a water tank continuously. The desired level of the water in this
tank is controlled by an electronic level switch with immersed electrode probes. Design the
required automation circuit and indicate the positioning of the electrodes into the tank for
the differential operation of the pump.
Industrial Automation Synthesis ◾ 115

3.14. Design an automation circuit for starting up a Star-Delta motor via an SPST output contact
of a sensor (2-wire command).
3.15. Some air-compressors have two electrovalves in their compression chamber as safety exhaust
outlets. In order for the air compression in the chamber to be feasible, the two electrovalves
must be closed. Furthermore, the two electrovalves are used for a step-by-step start-up of the
air compressor, in order to avoid percussive loading of either the compressor or the power
supply network. Design an automation circuit so that after the Star-Delta starts the motor,
the first valve closes with time delay T1 and the second one closes with time delay T2 > T1.
Both time constants T1 and T2 are measured from the changing time instant from the Star-
Delta connection.
3.16. Redesign the automation circuit of Problem 3.15 with only one timer (except the timer
needed for the Y/Δ transition) and with the following time constants T1 = T and T2 = 2T.
3.17. Which of the following circuits are operationally correct or not and for what reason? All the
relays and lamps have nominal operating voltage +24 V DC.

RS RS RS RS

+24 V +24 V +24 V +24 V “C=ON”


“C1 or C2=ON”
C
“C=ON” “C=ON”

C C C1 C2 C
0V 0V 0V 0V
a b c d

3.18. In an industrial process where a general shutdown of the power supply network took place,
is it possible to get some form of electrical signal 3 minutes after an interruption while the
shutdown occurs? If yes, explain how to achieve it and design the required automation
circuit.
3.19. Although we accept that the indicator lamp of the circuit informs us if the machine M oper-
ates or not, this is not strictly true. Describe three cases of fault due to which the machine
M does not rotate while the lamp is on. Show how to make the indication literal, i.e., for the
lamp to show whether the machine M really rotates or not.

50 Hz 230 V
R

RS
Motor
CM operation
Μ
N

3.20. After an instant START signal from an NO button, the heating resistor R is connected to a
nominal supply voltage. After a period of 10 minutes required to heat the viscous fluid, the
pump starts to operate, and simultaneously the electrovalve V1 opens in order to supply the
pipe network with the fluid. After an instant STOP signal from an NC button, the heating
resistor is disconnected, the electrovalve V1 closes, the electrovalve V2 opens, and the pump
operates for a period of 5 minutes. During this period, the pump supplies the pipe network
116 ◾ Introduction to Industrial Automation

with water for its cleaning. At the end of this period, the pump stops and the electrovalve V2
closes automatically. Design the required automation circuit.
Viscous
fluid
Water
R
Pipe
network
V2
V1
Pump

3.21. In a special machine tool, the carriage is equipped with a reversible motor, as shown in the
figure. Thus, the carriage can be moved between the two limit positions A and B, which
are detected by the two proximity sensors PS1 and PS2, correspondingly. The carriage lies
initially at the left position (A) and we want it to be moved according to the following
specifications:
a. By pressing instantly button b1 the carriage moves right to position B.
b. When the carriage reaches point B (with a signal from PS2), it stops moving.
c. With the carriage at position B, the instant pressing of button b1 causes it to move left.
When the carriage reaches position A (with a signal from PS1), it stops. The steps (a) and
(c) can be repeated as many times as we want.
d. If the button b2 is pressed during the carriage’s movement in any direction, then the
carriage stops at its current location. By pressing button b1 again, the carriage continues
moving in the same direction before it had been stopped.
Design an automation circuit to satisfy the described specifications.
Carriage
A B
M

PS1 PS2
b1 b2
Chapter 4

Logical Design of
Automation Circuits

4.1 Introduction to Logical Design of Automation Circuits


In Chapter 3, we investigated the design of automation circuits based on empirical methods, rely-
ing mainly on acquiring knowledge from simple to more complicated circuits that are commonly
utilized in the industry. In Chapter 4, the focus will be on a systematic method for the design of
automation circuits, especially for the cases of complicated automated demands, where principles
from Boolean logic can be adopted to simplify the overall design methodology.
In the Boolean logic approach, everything that is being utilized has two states, such as an ON
or an OFF state (for example, an electrical switching contact can be either open or closed) or a
relay can be energized or de-energized. In Section 1.1, where the industrial system was defined, it
has also been mentioned that various components participating in such a system have two states of
operation. Thus, since automation circuits are mainly considering devices with two states, they are
directly compatible with the Boolean logic. Furthermore, methods from Boolean logic design can
be adopted and applied in the design of automation circuits. In general, there are multiple, specific
methodologies for designing Boolean logic diagrams, e.g., the methods based on sequential step
diagrams, the cascade method, the Huffman method, and others that mainly consist of variations
of these methods. Each one of these methods has its own specific advantages and disadvantages
and can be applied to problems of a specific size, while they all have their own level of complexity
during application.
From all these methods, the most general approach which is not dependent on the specific
kind of automation and is based on the state diagrams, will be presented. The specific aim of
this chapter is to highlight these general methodologies that are directly applicable in industrial
automation, and not to confuse the reader by presenting numerous design approaches and fur-
ther extend theoretical analyses of them that will not be directly applicable in real-life industrial
problems. From this point of view, the presented state diagram approaches will act as a generally
valuable tool in designing automations for complex and large industrial processes.

117
118 ◾ Introduction to Industrial Automation

4.2 Boolean Logic Components


The binary system of numbers has only two values, 0 and 1, while it is utilized for the mathemati-
cal description of various physical systems characterized from a binary logic of two states. In elec-
trical systems, the condition “in operation” (ON) is indicated with a “1” and the condition “not in
operation” (OFF) is indicated with a “0”. Similarly, the values 0 and 1 represent correspondingly
the open and the closed state of an electrical switching contact (e.g., relay, hand switch, button,
etc.) as depicted in Figure 4.1a. Every switching component, with two possible values, is repre-
sented with a capital letter and constitutes a binary system variable, while the necessary tool for
the mathematical foundation of these principles is Boolean algebra.
Boolean algebra, first introduced by the English mathematician Boole, is an algebra of “logic”, har-
monized with a human-based way of thinking. Due to the fact that the variables of Boolean algebra can
have only two values (0 and 1), this type of algebra is ideal for the binary system, especially in the way
that the switches are operating. The Boolean values of 0 and 1 are not necessarily the arithmetical values
of an arithmetic system, but in this case, these can represent symbols of a certain state. As an example,
the values of a Boolean variable could be “white” or “black”, “low” or “high”, and “true” or “false”.
In its general form, Boolean algebra is defined as the set of the elements a, b, c, …, or B={a, b,
c, …} in which the equality, as well as the following operations, are valid:
1. The operation of the logical OR, which is represented by the (+) operator
2. The operation of the logical AND, which is represented by the (⋅) operator
3. The operation of the inversion or the complement (NOT), which is represented by the ( ) operator
In the previous definition, the elements a, b, c, … are not specifically defined, but in the case of
digital systems and digital logic, set B is the set of the utilized switches (switching algebra).
The application of Boolean algebra in digital systems initially took place in 1938 by C.
Shannon, who in “A Symbolic Analysis of Relay and Switching Circuits” introduced a way of
representing telecommunication circuits through mathematical expressions. With the help of the
mathematical modeling of these circuits, containing switches and relays, their methodological
design and calculation has been achieved.
In Figure 4.1b, two electrical switching contacts, one open and one closed, with different sym-
bols are displayed. If “A” is denoted as the open contact (A=0), then the complement A is a closed
contact, or A = 1. There are three other possible assignments of the Boolean variable A to the open
and closed contacts, shown in Figures 4.1c–e. Subsequently, the symbols and the corresponding
assignment of Figure 4.1c will be utilized as symbols for contacts, since these are closer in the
inversion operation from the design point of view, and because they are similar to the switching
symbols that are utilized in the programming of the PLCs.

Α=0 Α=0 Α=1 Α=1 Α=0

Α=1 Α=1 Α=0 Α=0 Α=1

(a) (b) (c) (d) (e)

Figure 4.1 Switching elements and possible assignments of binary variables: (a) binary repre-
sentation of NO and NC relay contacts, (b) open contact as A = 0, (c) open contact as A = 1,
(d) closed contact as A = 0, and (e) closed contact as A = 1.
Logical Design of Automation Circuits ◾ 119

In general, a Boolean variable represents the level of voltage in a wire of a digital electronic circuit.
Most commonly, the state with the high energy level is denoted as “1” or “high level” and the corre-
sponding one with the low energy level as “0” or as “low level”. In the typical digital electronic circuits
(transistor–transistor logic or TTL circuits), the electrical voltage can take only two values: 0 V and +5 V,
which are also presented in Figure 4.2 and, more especially, every electrical voltage below 0.4 V is
equivalent to a “logical 0”, while every voltage above 2.4 V is equivalent to a “logical 1”.
In electrical circuits, the electrical components can be connected only in two ways, which is
through series or parallel connections. The series connection of electrical components or switch-
ing contacts corresponds to the logical operation AND, while the parallel connection corresponds
to the logical operation OR. These two operations, as well as the inversion operation, are imple-
mented with the help of the related logical gates AND, OR, and NOT.
A logical function Z = f(A, B, C,…) is a function where the independent variables A, B, C, … as
well as the dependent variable Z all belong to the Boolean algebra. In a logical function, the three
operations of Boolean algebra can exist together in a simple or complex form, or with variations
of them. As we have seen in Chapter 3, automation circuits contain switching components that
are connected in series, parallel, or in mixed connections, as well as through coils and relays. It
can easily be concluded that these type of automation circuits can be straightforwardly described
from an equivalent logical function. For example, consider the pushbutton shown in Figure 4.3a,
where its contact is NO; the left connection terminal is considered to be under a voltage and thus
equivalent to a logical 1. The activation or inactivation of the button can be described by the
binary variable b, while the variable Z represents the voltage that exists in the right connection
terminal. In this case, the following relationships can be extracted:
If b=0 (the button is not pressed) then Z=0 (there is no voltage).
If b=1 (the button is pressed) then Z=1 (there is voltage).
Thus, these two statements can result in the function Z=b, that can be considered as the describ-
ing function for an NO button. In a similar way, for the NC button shown in Figure 4.3b, the
corresponding logical function is Z = b. Thus, all automation circuits can be approached indepen-
dently of their complexity. As a characteristic example, the circuit in Figure 3.1d, can be described
by the logical function:

C = STOP ⋅(START + C ),
where the STOP and the START labels can be considered as binary variables of the corresponding
buttons.
Voltage
5V High level or logical 1

Low level or logical 0


0V
t

Figure 4.2 Waveform of a digital signal.


b b
‘1’ Z ‘1’ Z
(a) (b)

Figure 4.3 The pushbutton as a binary variable: (a) NO button and (b) NC button.
120 ◾ Introduction to Industrial Automation

4.2.1 Postulates and Theorems of Boolean Algebra


Boolean algebra, as well as classical algebra, were founded on some basic postulates like those
of commutative and distributive property of the two logical operations of AND and OR, the
existence of the neutral elements 0 and 1, and many more. From these postulates, it is possible
to extract a series of theorems that can be utilized in the simplification of the logical functions.
In Figure 4.4, some of the most fundamental postulates and theorems are presented in graphical
(contact symbol) form as well as in Boolean form. The profound logic behind these theorems is
that they are not only useful in their mathematical form in the simplification of the logical func-
tions (i.e., during the logical design that is going to be described subsequently), but they are also
very useful in the empirical design of automation circuits.

A+1=1
Short circuit
Short circuit

Α Α
A•1=A
Short circuit

Α
A•0=0
Open circuit Open circuit

Α
Α
A+0=A

Open circuit

Α Α Α
A•A=A

Α
Α
A+A=A
Α

Α
A+A=1
Α Short circuit

Α Α
A•A=0
Open circuit

Α B Α
A+A•B=A
Α

Α A Α
A•(A+B)=A

Figure 4.4 Basic postulates and theorems of Boolean algebra.


Logical Design of Automation Circuits ◾ 121

In such an empirical design procedure, multiple automation drawings are created by erasing or
adding additional open or closed contacts or even whole automation branches, until they conclude
at the correct automation circuit. In this approach, it is very easy to make design mistakes, which
is the case in an automation circuit that contains unnecessary logical elements, like the ones pre-
sented in Figure 4.4. For this reason, knowledge of Boolean postulates and theorems will enable
the easy spotting of mistakes even in an empirical design procedure.
Finally, the De Morgan Theorem provides the equivalent complement of a complex logi-
cal function by replacing each of the containing variables with its complement, and each of the
operations with the corresponding dual one. The most simplified applications of the De Morgan
Theorem are as follows:

A + B = A ⋅B A ⋅B = A + B

In general, when the logical function has a complex form, simplification using the algebraic form
is quite difficult and time consuming, while in many cases it is not obvious if this function can
be further simplified. For this reason, various methods of simplification have been developed, the
Karnaugh method being the most popular. In this book, none of these methods will be examined
further, since in automation circuits the existence of additional and unnecessary contacts or sec-
ondary relays do not dramatically increase the implementation cost, which is happening in digital
circuits. However, if for any reason it is absolutely necessary that an automation circuit with mini-
mum realization be implemented, the designer should apply methodologies like the Karnaugh
method, which will not be analyzed in the contents of this book.

4.3 State Diagrams
4.3.1 Classical State Diagrams
The design methodology of a state diagram and its logical processing is based on a specific pro-
cedure, and is a graphical approach in designing automation circuits, with its main aim to sys-
tematically simplify the design procedure, especially in big, complicated industrial automations.
In general, the state diagram accurately represents the states of a complex industrial automation
system, e.g., a complex machine, as well as the electrical signals that force the automated system
to change from one operating state to another. After the proper design of the state diagram,
the extraction of Boolean logical expressions that describe each one of these states can be easily
derived, and thus the final automation circuit can be further extracted, as will be presented using
a more simplified approach. In this methodology, the most important thing is the identification of
the exact states and the transition signals, and not the design of the automation itself, as presented
in the previous chapters with ad-hoc methodology. Specifically, the methodology in design auto-
mation with the state diagram approach involves the following steps:

1. A detailed, extended description of the desired operation of the complex machine or the
industrial automation and definition of the operating states
2. Construction of the state diagram based on the design rules that will be described
subsequently
3. Extraction of logical Boolean expressions
4. Design of the industrial automation based on the derived logical expressions
122 ◾ Introduction to Industrial Automation

The state diagram itself is a direct method of modeling industrial systems that contain a set of
logical variables, where their number defines the order of the system. In general, the state of an
industrial system or a complex machine can be considered as a set of logical values that contains
these logical variables. For example, the state of a complex machine can be the following set of
logical values: “The first motor is in operation, the valve is energized, the second motor is not in
operation”; where in most cases and for simplification purposes it can be equivalently character-
ized by verbal terms like “the machine is getting ready”. The state diagram is constructed accord-
ing to the following rules:

1. We denote with circles the different states of the complex machine or industrial system. In
every circle, we define the corresponding state.
2. Every possible transition among different states is denoted by an arrow connecting the cor-
responding states. The arrow’s direction denotes the transition’s direction.
3. On every directed arrow, we denote the Boolean variable or the logical expression of the
Boolean variables that cause the change of state. We denote “Turn OFF” as the logical
expression of the variables that cause the change of the dual variable value, characterizing
the changed state, from 1 to 0, and “Turn ON” as the logical expression of variables that
cause the corresponding change of the same dual variable value from 0 to 1.
4. For all the dual variables of the state diagram we calculate the following expression:

X = Turn OFF ⋅(Turn ON + Present State of X variable ) (1)

The “Present State of X variable” is used as a memory type element that updates the cur-
rent value of the variable. As will be presented subsequently, this term has the same role as
the “self-latching contact” principle, which was presented in Section 3.1.1, describing the
empirical methodology of circuit design.
5. Based on the extracted and simplified logical expressions from Step 4, we design the indus-
trial automation circuit.

The described procedure for the logical design of the automation circuits, based on the state dia-
gram and logical expression (1), are explained and discussed further through the following appli-
cation examples.

Example 4.1: START/STOP Operation of a Motor


Let’s consider a machine operating with a direct on line starting motor. From the analysis in
Chapters 2 and 3, it was clear that the automation circuit will contain a power relay C, which will
control the power supply of the motor, and inherently has two states: C=0 where the motor is not
in operation and C=1 where the motor is in operation. These states, being the possible operating
states of the machine, can be represented by two corresponding circles, indicated in Figure 4.5.
It is also defined from the desired industrial application that the transition between these states
will take place through the utilization of two buttons b1 and b0 for the START and STOP opera-
tions, correspondingly. At this point it should be highlighted that the type of the devices causing
the transitions are completely dependent on our selections, e.g., it can be an SPDT contact of
a sensor, the contact of a button, a relay, etc. In these cases, even if we have selected the type of
the transition device, we do not need to define the type of the contacts (e.g., one contact will be
NO or NC), since this is something that will be produced from the logical design that we are
Logical Design of Automation Circuits ◾ 123

b1

C=0 C=1

b0

The power relay is not energized The power relay is energized


C=0 C=1
or the machine does not operate or the machine operates

Figure 4.5 State diagram for the direct on line starting motor.

R b0 b1 N
C

Figure 4.6 The automation circuit extracted from the state diagram of Figure 4.5.

introducing in Chapter 4 directly. Thus, for this example, we can define state C based on Step 3,
so that:

Turn OFF of C = b0 and Turn On of C = b1

Subsequently, the logical formula (1) of Step 4 should be calculated, in this case, for the C state as
follows:

C = b0 ⋅ (b1 + C )

where for this expression, the digital implementation is the one depicted in Figure 4.6.

Example 4.2: START/STOP Operation of a Motor with Thermal Overload Protection


In Example 4.1, the issue of thermal protection for the motor has not been taken under consider-
ation. If we would like the automation to consider this option (as we already know, the activation of
a thermal relay [e] will stop the motor) using the same approach so that the STOP button b0 would
stop the motor, only the logical expression for Turn OFF would change into:

Turn OFF of C = b0 + e

Subsequently, the START-STOP operation of the motor from a secondary control position will
need to be controlled through the buttons f 0 (for STOP) and f1 (for START). In this case, the state
diagram will be altered to the following one, presented in Figure 4.7, where we have:

Turn OFF of C = e + b0 + f 0 and Turn On of C = b1 + f1


124 ◾ Introduction to Industrial Automation

b1+f1

C=0 C=1

e+b0+f0

Figure 4.7 State diagram for the direct on line starting motor with thermal overload protection
and two START-STOP control positions.

R b0 f0 b1 N
e C

f1

Figure 4.8 The automation circuit extracted from the state diagram of Figure 4.7 for the direct
on line starting motor with thermal overload protection and two START-STOP control positions.

By applying the logical expression (1) according to Step 4 for the C variable, we obtain that:

C = e + b0 + f 0 ⋅ (b1 + f1 + C )

or

C = e ⋅ b0 ⋅ f 0 ⋅ (b1 + f1 + C )

where the automation circuit shown in Figure 4.8 can be extracted.

4.3.2 State Diagrams with Sensors


The introduction of the electrical latch and the related operation through sensors (two-wire com-
mand), via the state diagrams approach, will be presented in the following example. In general,
the electrical latch can be considered as a signal that “stops” the operation of a motor, identically
to a STOP button. On the other hand, the operation of a motor through a sensory command
means that as long as the corresponding NO contact of the sensor is closed, the motor will also be
in operation. Since this command signal is not instantaneous, it is not required to have a memory
element to store it, and thus this is equivalent to the fact that in the logical expression (1) of
Step 4, the last term of the current state has to be omitted.

Example 4.3: Machine Operation by Pushbuttons and Sensor


To investigate the previous remark further, let’s consider the case of a machine that contains two
direct on line starting motors being supplied by power through the relays C1 and C2. The first motor
(C1) is being controlled manually through the utilization of two pushbuttons, b0 for STOP and b1
for START. The second motor (C2) is being controlled from a sensor s. Moreover, in this automation
Logical Design of Automation Circuits ◾ 125

we would like to introduce the concept of mutual exclusion, which means that the operation of
one motor should exclude the operation of the other one. Thus, in this case, it means that for
C1 we will have that ‘Turn OFF’ = b0+C2 , as indicated in Figure 4.9. In the same approach, for the
C2 motor, the C1 operation signal will be equivalent to the stop of the C2 operation. If we apply
the logical expression (1) for both variables C1 and C2 we will get that:

C1 = b0 + C 2 ⋅ (b1 + C1 ) = b0 ⋅ C 2 ⋅ (b1 + C1 )

and

C 2 = C1 ⋅(s + C 2 )

The implementation of these logical expressions is displayed in Figure 4.10, where an error exists,
since the energizing of C2 and the operation of the corresponding motor cannot be altered. This is
due to the fact that, from the moment the relay C2 gets energized, this will be in a continuous latch,
independent of the operation of the sensor. Moreover, the energizing of C1 is not possible due to the
corresponding latch in the first branch of the automation circuit, and thus C2 will always be ener-
gized. If the C2 variable with the logical expression (1) is applied without the term of the “present
state of variable”, then we will obtain that:

C 2 = C1 ⋅ s

which can be implemented from the third correct branch, indicated in the same figure. Thus, as a
general design consequence, when the operation signal (or the Turn ON signal) for a state is not

b1 s

C1=0
C1=1 C2=1
C2=0

b0+C2 C1

Figure 4.9 A state diagram where the states constitute de-energizing signals (electrical latching).

R b0 b1 N
C1
C2
1

C1
C2
C1 s
2

C2
C2
C1 s
3

Figure 4.10 Logical design of an automation circuit including electrical latching and sensory
command.
126 ◾ Introduction to Industrial Automation

instantaneous but is of the general type “operation as long as the signal is ON”, then for the formula
(1) in Step 4, the last term of “current state of variable” should be omitted.

In the following example, the utilization of the state diagram method by means of a “state
machine” technique for the automation of an industrial process machine with multiple states
will be presented. In this case, the introduction of complementary auxiliary variables will also
be presented, which actually introduces the auxiliary relays in an industrial automation circuit.
Finally, it should be noted that the necessity of utilizing auxiliary relays for implementation of an
“automation logic” have also been presented in Chapter 3.

Example 4.4: A Three-Speed Machine Automation


One complex industrial machine is operating by utilizing a motor with three speeds. The operation
of the machine is achieved through four pushbuttons. The button b0 is for STOP, while the but-
tons b1, b2, b3 are for the slow, medium, and high speeds, correspondingly. Moreover, we would like
to have the medium speed to be commanded only if the motor is operating in slow speed before,
and the high speed to be commanded only if the motor is operating in the medium speed before.
The corresponding automation diagram for this problem (states S0, S1, S2, and S3) is indicated in
Figure 4.11. In cases of complex applications or equivalently of state diagrams with a lot of states,
the states should be coded through a binary code for the proper functionality of the presented
methodology, which will allow for the proper extraction of the logical expressions needed for the
design of the automation circuit. As an indicative guide to how many binary variables are needed
for state diagrams with n states, the code should contain m binary variables so that the relation
n ≤ 2m is valid. Issues such as the best coding selection, the multitude of possible binary assign-
ments, the absence of a systematic method for determining the required binary code, and others
can be looked up in the related literature. However, in this book, we will suggest a simple design
rule according to which “there should not be a synchronous value change of two Boolean variables
as we are moving from one state to another one” and thus the most appropriate coding for this
case is Gray coding.

b0 Low speed
AB
S0 S1

00 b1 01

b0 b2 b0

10 11
High S3 S2 Medium
speed speed
b3

Figure 4.11 State diagram of a machine operation with three speeds.


Logical Design of Automation Circuits ◾ 127

Thus, the state diagram shown in Figure 4.11 requires coding with two auxiliary variables A
and B, while their binary assignment coding for each state is also indicated in the same figure.
Subsequently, the procedure for extracting the logical functions remains similar to the one pre-
sented before. In the beginning, we apply the logical expression (1) for every one of the auxiliary
variables of the selected coding, after defining the logical expressions of the Turn ON and Turn
OFF transitions carefully. Moreover, we implement the logic for every state of the diagram, based
on the corresponding assigned code of the auxiliary variables. Thus, for this specific example we
have that:

 
Turn OFF of A = S2 S1 (b0 ) + S3 S0 ( b 0 ) = b0 B + b0 B = b0
B=1 B= 0


where Turn OFF of A = XY (Z ) means generally that the Turn OFF change from 1 to 0 of the
w
variable A is caused by the signal Z and through the transition from the X state to the Y state, under
the W condition (AND logic). In the same approach, we have that:


Turn ON of A = S1S2 (b2 ) = b2 B
B=1

 
Turn OFF of B = S1S0 (b0 ) + S 2 S3 ( b 3 ) = b0 A + b3 A
A =0 A =1


Turn ON of B = S0 S1 (b1 ) = b1 A
A =0

The application of the formula (1) for the A and B variables will result in:

A = b0 ( b 2 B + A )

B = b0 A + b3 A (b1 A + B) = (b0 + A )(b3 + A )(b1 A + B)

Moreover, for the three power relays C1, C2, and C3 (corresponding to three speeds and hence to
three states S1, S2, and S3) we will have, according to the states’ coding, that:

C1 = AB, C 2 = AB, C 3 = AB

The implementation of the previous logical expressions will result in the automation circuit depicted
in Figure 4.12.
128 ◾ Introduction to Industrial Automation

R b0 b2 N
B A

A
b3 b1
b0 A
B

A A Β
C1
Α Β Low speed

C2
Α Β Medium speed

C3
Α Β High speed

Figure 4.12 The automation circuit of a machine with a three-speed motor as extracted from
the state diagram of Figure 4.11.

4.3.3 Step-by-Step Transition due to a Discrete Successive Signal


Attempting to code the states of a state diagram according to the rule that “from one state to
another state, no simultaneous variation of two auxiliary variables must exist”, usually we prefer
an indirect transition of a state to another instead of a direct one. As shown in Figure 4.13, the
instant signal “x” causes the transition of a system from state S0 to state S2, through the state S1,
which is understood to a human observer as a one-step transition. In fact, the system first passes
through state S1 and then into state S2, due to an instant signal (an example would be the single
actuation of a pushbutton). In such a case, the state S0 has the code “00”, while the state S2 can
have the code “11”, which is impossible if a direct transition from S0 to S2 has been designed due
to the same signal.
On the other hand, there are applications where it is desirable for the same pushbutton to
cause different actions through its successive activations. For example, maybe it is desirable that
the first activation of a button causes the low speed rotation of a machine, the second activation of
the same button causes a medium speed rotation, the third activation of the same button a high
speed rotation, and so on. If we follow the Section 4.3.2 approach of state diagram design, the

x x
00 01 11

S0 S1 S2

Figure 4.13 Indirect transition from one state to another, for satisfaction of the “one-change
each time” rule of state diagram design.
Logical Design of Automation Circuits ◾ 129

state diagram will lead to a false automation circuit, which will cause the high speed rotation of
the machine directly, with only one activation of the pushbutton. Let us demonstrate this situation
through an example.

Example 4.5: Combined Operation of Two Machines


Two machines M and N operate through the action of a pushbutton b and two sensors s1 and s2,
according to the following specifications:

a. By pressing the push button b once, the machine M starts to operate.


b. By pressing button b for a second time, the machine N starts to operate, while the machine
M continues to operate.
c. If both machines operate and sensor s1 is energized, then the machine M stops, while the
machine N continues to operate. If instead of sensor S1, sensor S2 is energized nothing must
happen.
d. If only the machine N operates and sensor S2 is energized, then the machine N stops also.

The state diagram, shown in Figure 4.14, has been designed based on the assumption that the
first activation of the button b leads the system to the state S1 and it remains there for as long as time
is required. Similarly, the second activation of the same button b causes the transition from S1 to
S2, where both machines are in operation. The introduction of two auxiliary variables and the code
assignment, shown in Figure 4.14, give the following equations:

A = ( s2 + B)(bB + A)

B = ( s1 + A )(bA + B)

M = AB + AB = B

N = AB + AB = A

By converting these Boolean expressions into an automation circuit, the circuit shown in Figure
4.15 is obtained.

AB
b Μ=1 b
00 11
Ν=0
Μ=0 Μ=1
S0 S1 01 S2
Ν=0 Ν=1

Μ=0
Ν=1
s2 s1
S3

10

Figure 4.14 State diagram with double transition due to an instant signal b.
130 ◾ Introduction to Industrial Automation

R N
b A
s2 B

B
A

b B
1 s2 A

A
B

Β M

Α N

Figure 4.15 Automation circuit confirming the double transition of the state diagram, which
means the auxiliary relays A and B are energized both with only one press of the button b.

It is clear by inspection of this circuit logic that by pressing once the button b, both relays A and
B are energized (the first relay B is actuated and then immediately relay A is also actuated) leading
to the simultaneous start of the operation of both machines M and N. Therefore, the question is
“How can we succeed the desired step-by-step activation of different machines through the discrete
successive signal coming from the same device?” Such a device may be a sensor, a pushbutton, a
switch contact, etc. It must be noted that the two power relays M and N are identical to the auxil-
iary relays A and B from the logical point of view and hence the auxiliary relays are not necessary.
The introduction of the auxiliary variables are in order to follow exactly all the steps of the state
diagram design method.
The key action for the step-by-step transition to succeed is to introduce the signal b as condi-
tion for outputting from a state. This means that the operator who presses a button once to activate
a machine has to release the button b first and then press it again for a second time in order to
activate another machine. This state diagram designing procedure is applied to Example 4.5, as
follows.

Example 4.6: Different Design of the Example 4.5 State Diagram


The pair of two machines must start operating successively by pressing the same button b two
times. As shown in Figure 4.16, the system goes from the rest state S 0 to the state S1, where only
the machine M operates, through the pushbutton signal b. The system remains in this state for
as long as the pushbutton is not released. Just after releasing the pushbutton b, the condition
b is satisfied, and hence the system goes to state S2 , which is identical to the state S1, which
means that only the machine M operates. The second pressing of the pushbutton b similarly
causes the transition to state S3, and subsequently the releasing of the pushbutton b leads to
the state S 4, where both machines are in operation. The rest of the state diagram is similar to
that of Figure 4.14.
Logical Design of Automation Circuits ◾ 131

Μ=0
Ν=0

s2 S0 b

ABC
000 Μ=1
Μ=0
S5 001 100 S1
Ν=1 Ν=0

s1 b

Μ=1 Μ=1
S4 011 110 S2
Ν=1 Ν=0
010

S3 b
b
Μ=1
Ν=1

Figure 4.16 State diagram including the complement of a signal ( b ) as a condition for separat-
ing successive actuations.

The introduction of three auxiliary variables is necessary for the six states of the system. For the
code assignment shown in Figure 4.16, we obtain the following equations:

Turn ON of A = bBC, Turn OFF of A = bBC


Turn ON of B = bAC, Turn OFF of B = s1AC
Turn ON of C = bAB, Turn OFF of C = s 2 AB

Applying the formula (1) to the three auxiliary variables, we obtain,

A = ( b + B + C )(bBC + A )

B = ( s1 + A + C )( bAC + B)

C = ( s2 + A + B)( bAB + C )

For the operation of the two machines we have,

M = ABC + ABC + ABC + ABC = AC + AB

N = ABC + ABC + ABC = AB + ABC

Converting the above equations to an automation circuit, we obtain the circuit shown in Figure 4.17.
132 ◾ Introduction to Industrial Automation

R N
b A
b Β C

Β
A

B
s1 b Α C

A
B

C
s2 b A B

A
C

Α C M

Α Β

Α Β N

Α Β C

Figure 4.17 The automation circuit of the two machine Example 4.6 extracted from the state
diagram of Figure 4.16.

Example 4.7: Power Factor Correction by Manual Insertion of Capacitors


The manual correction of the power factor (cosφ) in an industrial electric AC power station is
performed by inserting successively capacitors to the power circuit until it reaches the desired
factor value. The insertion of capacitors is achieved by energizing an equal number of relays and
by pressing the same button several times. In a similar way, the technician who monitors and cor-
rects the power factor can subtract capacitors by pressing another button. The number of inserting
capacitors may be greater than 10 or 12 stages, but in this example, we will examine the case of
four capacitors and only the insertion mode due to space limitations. The required state diagram is
shown in Figure 4.18, containing ten states and four auxiliary variables. Also, it is obvious its form
is extendable and hence this can be a guide for the case of larger number of capacitors. It should
be noted that the transitions from state S8 to S0 are included for the tutorial scope only in order
to have a closed diagram and hence a repeatable procedure. In other words, it is not technically
accepted to subtract all the capacitors in one step. In a real system, these transitions are missed
and the return of the system from state S8 to state S0 will be performed via the above-mentioned
subtraction pushbutton.
Logical Design of Automation Circuits ◾ 133

C1,2,3,4=0

b S0 b
C1,2,3,4=0 C1=1
S9 ABCD S1
0000
b 0100 1000 b

C1,2,3,4=1 S8 0101 1100 S2 C1=1

b b

C1,2,3,4=1 S7 0001 1110 S3 C1,2=1

b 0011 1111 b
S6 0111 S4

C1,2,3=1 b S5 b C1,2=1

C1,2,3=1

Figure 4.18 State diagram for the power factor correction by manual insertion of capacitors.

4.3.4 State Diagrams with Time Relays


In cases where the automation application contains the parameter of time, as analyzed in Chapter 3,
one or more time relays (timers) should be utilized, depending on the application needs. In this
case the introduction of a time relay in a state diagram should follow the next additional design
principles:

1. Every time relay should be considered as a common relay, and should represent a state of the
system.
2. The output contact of the time relay that is going to be energized with a time delay should
be considered as the signal that will cause the transition of the system from one state into
another one.

Example 4.8: Starting of Two Motors with Time Delay Between Them
Let’s consider a machine that contains two motors with direct on line starting and supplied power
by two relays, C1 and C2. We would like one of the motors to start immediately with the press
of a button b1, while the second motor should start automatically after the elapse of a time T. In
every state of operation, the press of a button b0 should stop the operation of both motors. For this
example, the state diagram is the one presented in Figure 4.19.
By applying the same methodology, we have that:

Turn OFF C1 = b0 Turn ON C1 = b1


Turn OFF C 2 = b0 Turn ON C 2 = d T
Turn OFF d = b0 + C 2 Turn ON d = b1
134 ◾ Introduction to Industrial Automation

C1=1
b1 C2=0 dT
d=1
C1=0 C1=1
C2=0 S0 S1 S2 C2=1
d=0 d=0

b0 b0
d = Timer, dT = Timer output signal with time delay T

Figure 4.19 State diagram for starting two motors with a time delay between them.

and

C1 = b0 (b1 + C1 )

C 2 = b 0 (d T + C 2 )

( )
d = b0 + C 2 (b1 + d ) = b0 C 2 (b1 + d )

The implementation of these logical expressions is indicated in Figure 4.20. For the resulting auto-
mation circuit, it should be noted that the energizing branch of the time relay d, as derived from
the application of the logical expression (1), contains the normal (without delay) contact d, which
the time relay might not contain. Therefore, proper care should be paid when selecting the time
relay, either by selecting a timer with normal and time-delayed auxiliary contacts, or by utilizing an
additional auxiliary relay, as a means to increase the auxiliary contacts of the time relay.
The automation circuit shown in Figure 4.20 does not consist of a minimum circuit realiza-
tion for this automation application, from a number of contacts point of view. As an example, it is
straightforward that the simplification can be achieved with the three contacts of the button b0 in

R b0 b1 C1 N

C1
b0 C2
dT

C2
b0 d
C2 b1

Figure 4.20 Logic design of an automation circuit containing timer.


Logical Design of Automation Circuits ◾ 135

R b0 b1 N
C1

C2 d
C1

C2
dT

C2

Figure 4.21 The final automation circuit of Figure 4.20, after simplification.

one common for all the three branches. As has been mentioned in Section 4.2.1, we will not address
further the problem of minimum realizations, since it is not an issue of further priority in the area
of industrial automations. However, this does not mean that after the initial logic design of our
circuit we should not perform the straightforward and easy simplifications in the resulting circuit.
Thus, the automation circuit shown in Figure 4.20 can be easily simplified to the one depicted in
Figure 4.21.

4.3.5 Components’ State Diagram Method


Some types of automation circuit design problems may be solved by composing a state diagram
different from that presented in Section 4.3.1. Any automated industrial system consists of a num-
ber of digital active components (by means of ON-OFF states) or devices, as explained in Section
1.1. Such devices may be relays, coils, solenoids, auxiliary relays, lights, timers, etc. Each one of
the system’s digital components is represented in the diagram by a corresponding state when it
is in the ON state. Since such a state is not a system state but the ON state of the corresponding
component, it is denoted as the Ci state of the ith component, instead of the notation Si. Hence,
the diagram contains as many states as there are digital components of the industrial system.
Furthermore, the diagram contains one more state, which corresponds to the common rest state
of all components, which is also a system state, where all devices are OFF and it is denoted as S0.
The further composition of the diagram is based on the following rules:

1. A pair of transitions must be introduced between S0 and each state Ci: One for Turn ON and
another for Turn OFF of the state Ci.
2. The logic of the system operation, derived from the corresponding specifications, is allocated
on the transitions as conditions for firing them.
3. It is permitted to have two or more synchronous transitions. Hence, two or more states Ci
may exist simultaneously in an energized situation.
4. The ON or OFF mode of a state Ci may be a condition of a transition.
5. If two or more components are identical from the point of view of the operation’s conditions,
then they are expressed by one common state.
6. After completion of the diagram, the logical formula (1) is applied for each state Ci. Hence,
there is no need for the introduction of auxiliary variables and further coding assignments.
136 ◾ Introduction to Industrial Automation

The synthesis of a component-based state diagram, following the above rules, leads to a star
form diagram with state S0 in the center and states Ci around S0. The system’s states are then
various sets of states Ci. For example, a system state S1 may be the set {C1, C3, C4}, while another
system state e.g., S3 to be the set {C1, C2}. Let’s explain the composition of the component’s state
diagram by the use of an example.

Example 4.9: Automation of a Multi-Conveyor Assembly Station


Consider the assembly station shown in Figure 4.22. From three locations A, B, and C of initial pro-
duction, three corresponding objects are sent via the central conveyor D to the assembly table. The
conveyors A, B, and C operate continuously and are therefore not considered in this automation system.
Each of the three workers always puts the same object on the conveyor, for which they are responsible at
random times, but only under the condition that the corresponding light H1, H2, or H3 is on. When an
object reaches the conveyor D, it is detected by the corresponding proximity switch (PSi) and then the
corresponding light (Hi) turns off, indicating that another object should not be placed on the conveyor.
There is no specific order for the placement of the three objects from the workers. When the last object
reaches the conveyor D, this means that there are three different objects on the central conveyor D.
First, the light H4 turns on, and second, the central conveyor D can operate if the worker at the assem-
bly table presses the button b0. After the button pressing, the conveyor D operates for 45 s. At the end
of this period the conveyor D stops, the lights H1, H2, and H3 turn on while the light H4 turns off.
The digital components of the system are four lights, the motor for operation of the central conveyor
D (powered by the relay CM), and a timer T, required to measure the operation time of 45 s. Therefore,
the component-based states of the system are: {C1 for H1}, {C2 for H2}, {C3 for H3}, {C4 for H4}, and {C5
for CM and T}, since the timer T and the relay CM are identical from the operation point of view. The
component state diagram is shown in Figure 4.23, where the transition to state Ci for i=1 to 3 is triggered
by the corresponding signal PSi, and may happen simultaneously. The transition to state C4, where H4
is ON, depends on the condition C1C2C3, which means that three objects are ready to be placed on the
conveyor D. The transition to state C5 is triggered by the condition b0C4, which means the state C4 is
energized and the button b0 is pressed. Subsequently, we can write the logical equation (1) for all states Ci.

Turn ON C1 = PS1 Turn OFF C1 = T


Turn ON C 2 = PS2 Turn OFF C 2 = T
Turn ON C 3 = PS3 Turn OFF C 3 = T
Turn ON C 4 = C1C 2 C 3 Turn OFF C 4 = T
Turn ON C 5 = b0 C 4 Turn OFF C 5 = T

H4
b0

bly
H3 e m e
s l
As tab
H2
C
H1 D
B
PS3
A
PS2

PS1

Figure 4.22 A multi-conveyor system feeds an assembly station.


Logical Design of Automation Circuits ◾ 137

C1

PS1 T
b0•C4 PS2
C5 C2

T S0
T

T PS3
T
C1•C2•C3

C4 C3

Figure 4.23 The component state diagram of the multi-conveyor system feeding an assembly
station.

C1 = T(PS1 + C1 )
C 2 = T(PS2 + C 2 )
C 3 = T(PS3 + C 3 )
C 4 = T(C1C 2 C 3 + C 4 )
C 5 = T( b0 C 4 + C 5 )

For the operation of the active components we have

H1 = C1 , H 2 = C 2 , H3 = C 3 , H 4 = C 4 , C M = T = C 5 .

Converting the above equations to an automation circuit and after some obvious simplifications, we
obtain the circuit shown in Figure 4.24.
As we ascertain by the inspection of the automation circuit shown in Figure 4.24, the relays C1,
C2, and C3 may be characterized as auxiliary relays, but have been introduced in the circuit without
the use of auxiliary variables and binary coding that is a basic easiness of the above modified state
diagram method applicable to similar problems.

4.3.6 State Diagrams and Minimum Realizations


In most cases, automation problems do not have a unique solution. Different methods of circuit
design can produce different automation circuits. As many solutions as there are to an automation
problem, only one of them is the minimum implementation, i.e., the solution with the smallest
possible number of relay contacts and auxiliary relays. The design of an automation circuit which
is not the minimum implementation does not constitute a mistake or an implication problem. The
main and important goal is for the circuit to operate correctly, satisfying the specifications for the
overall system’s operation. Let’s clarify these non-identical solutions derived from different design
methods by an example.
138 ◾ Introduction to Industrial Automation

R N
PS1 C1
Τ

C1

PS2 C2

C2

C3
PS3

C3

C4
C1 C2 C3

C4
H4
b0
C5

C4
T
C5

C1 H1

C2 H2

C3 H3

Figure 4.24 The automation circuit extracted from the component state diagram of Figure 4.23.

Example 4.10: A Drilling and Milling Machine Tool


with Two Different in Duration Processes
Consider the complex machine shown in Figure 4.25, where a processed object of a production line
undergoes two different treatments. The two treatments, which are performed via the operation of
two corresponding motors M1 and M2, start simultaneously, but one of them lasts 20 s longer than
the other. It is desired to design an automation circuit, so that an instant signal START will cause
the simultaneous operation of the two motors, while an instant signal STOP will stop one motor
immediately and the other motor after 20 s.

FIRST SOLUTION BASED ON THE EMPIRICAL METHOD


For an engineer with relatively little experience in automation projects, it would be easy to design
an automation circuit like the one shown in Figure 4.26. The timer contact C1 is the delay output
of an off-delay pneumatic timer mechanically mounted on the relay C1. For this reason, there is
no electronic timer in the automation circuit as an independent device under possible activation.
Logical Design of Automation Circuits ◾ 139

Μ1 Μ2

Figure 4.25 A metal drilling and milling machine tool with two different processes in terms of
duration and type.

R STOP START N
e1 C1

C1

e2 C2
C1

Figure 4.26 Automation circuit for Example 4.10 based on the empirical designing.

SECOND SOLUTION BASED ON THE COMPONENT


STATE DIAGR AM METHOD
The digital components of the system are the two motors M1 and M2, and the timer T for measuring
the delay time of 20 s. Therefore, the components states of the system are, {C1 for M1}, {C2 for M2},
and {C3 for T}. The component state diagram is shown in Figure 4.27, where the transition to states
C1 and C2 is triggered simultaneously by the instant start signal “x” from a button. The signal “T” is
produced by the timer T, the activation of which happens on state C3 by the instant stop signal “s”
from a button. The deactivation of state C2, due to signal T, triggers subsequently the deactivation of
state C3, or in other words the turn-off of timer T, since there is no longer a reason to operate.

C1

x s

C3 s x C2

S0 T
C2

Figure 4.27 The component state diagram for Example 4.10.


140 ◾ Introduction to Industrial Automation

R STOP ( s ) START (x) C1


N
e1

C1 (M1)

START (x)
T C2
e2

C2 (M2)

STOP (s)
C3
C2

C3
T

Figure 4.28 Automation circuit for Example 4.10 based on the component state diagram of
Figure 4.27.

The next step of circuit design is to write the logical formula (1) for all states Ci, as follows:

Turn ON C1 = x Turn OFF C1 = s


Turn ON C 2 = x Turn OFF C 2 = T
Turn ON C 3 = s Turn OFF C 3 = C 2

C1 = s ( x + C1 )
C 2 = T( x + C 2 )
C 3 = C 2 (s + C 3 ) = C 2 (s + C 3 )

For the operation of the active components we have,

M1 = C1 , M 2 = C 2 , T = C 3

By converting the above equations to an automation circuit, we obtain the circuit shown in Figure 4.28.
The contacts e1 and e2 of the thermal overload relays are added in the circuit a posteriori, since
there is no reason to increase the difficulty in writing Boolean equations. The Boolean equation for
state C3, where the timer T is activated, also introduces a simple contact without delay. Usually, the
timers do not offer simple contacts without delay. This necessitates the introduction of two distinct
devices, the relay C3 and the timer T.

THIRD SOLUTION BASED ON THE SYSTEM STATE DIAGRAM METHOD


The system of the drilling and milling machine tool has two operation states, except that of the so-
called “rest state”. The first one corresponds to the operation of both motors M1 and M2, while the
second one to the operation only of the motor M2. The timer T is activated simultaneously with M2.
Logical Design of Automation Circuits ◾ 141

x
M1 = ON
M2 = ON
S0 S1
AB
00 01

T
s
S3
10
11 M1 = OFF
T S2 M2 = ON
T = ON

Figure 4.29 The system state diagram for Example 4.10.

The three-state diagram is shown in Figure 4.29, where the signals “x” and “s” correspond to the
START and STOP buttons as previously. The code assignment of the auxiliary variables A and B
present a simultaneous change of them from the state S2 to state S0. The violation of this basic rule,
concerning the state diagram synthesis, can be bypassed by introducing the pseudo-state S3, keep-
ing the same signal T for both its transitions. For the code assignment shown in Figure 4.29, the
following equations can be derived:

Turn ON A = sB, Turn OFF A = TB


Turn ON B = xA , Turn OFF B = TA

Applying logical formula (1) to the two auxiliary variables we obtain,

A = TB (sB + A ) = (T + B)(sB + A )
B = TA ( xA + B) = (T + A )( xA + B)

For the operation of the two motors and the timer we have,

M1 = AB
M 2 = AB + AB = B
T = AB

By converting the above equations to an automation circuit, we obtain the circuit shown in Figure 4.30.
A careful inspection of the circuit can lead to the conclusion that the power relay M2 is identical
to the auxiliary relay B. Therefore, the relay B can be omitted and its contacts may be substituted
by corresponding ones of relay M2.
The comparison of the three automation circuits shown in Figures 4.26, 4.28, and 4.30,
derived by three different methods, leads to the following significant comments. First of all,
it should be highlighted that all the three automation circuits are different, with each one
having a different total number of contacts and auxiliary relays, while all the three circuits
are operating correctly, which is also the most important demand when building industrial
automations.
142 ◾ Introduction to Industrial Automation

R Stop (s) N
T A
B

B A

Start (x)
T B
A

A B

e1 M1
A B

e2 M2
B

A B T

Figure 4.30 Automation circuit for Example 4.10 based on the system state diagram of Figure 4.29.

Second, the minimum realization of the circuit is the one generated from the empirical approach,
which is something that might sound awkward. However, we should remember that in these state
diagram approaches, state reduction techniques have not been applied and thus, such a result when
examining minimum realizations might happen. In many real cases it is possible to have an indus-
trial automation circuit with more switching contacts or a few more auxiliary relays than another
one implementing the exact same logic. This happens mainly due to neglect of the state reduction
approaches during the design phase, and it is not a serious cost problem, since the automation cir-
cuit, in most cases, will only be implemented once for a specific and unique application. This is in
contrast to the logical design of integrated circuits (ICs), where the extended application of state
reduction techniques is fundamental, mainly due to their production number, which can be equal
even to thousands or millions of replications of the same circuit, and thus, in this case, the corre-
sponding cost demands minimum realizations.
Third, the characteristics of the automation circuits shown in Figures 4.28 and 4.30 are worth
mentioning. The circuit in Figure 4.28 has two buttons of dual contacts, in contrast with those
shown in Figure 4.30 that have single contacts. The timer T in Figure 4.29 has only one delayed
contact, while the corresponding one in Figure 4.30 has two delayed contacts. Since timers usually
have only one delayed contact or output, the implementation problem can be easily overcome by an
additional auxiliary relay.

4.3.7 Sequential Automation Systems


A category of simple automation circuit design problems are the so-called sequential logic automa-
tion problems. The simplicity refers to the difficulty of the state diagram synthesis, which offers
a standard design procedure. Chapter 7 will present that for these specific types of systems, a
specific programming language has been developed for PLCs, which is called the sequential func-
tion chart (SFC) and has been adopted by the Standards IEC 61131-3. Let’s illustrate this type of
application in more detail by the following example.
Logical Design of Automation Circuits ◾ 143

Example 4.11: Chemical Process Automation in a Reactor


Consider the chemical reactor shown in Figure 4.31, where two different liquids are mixed in order
for a new product to be produced under concrete stirring and temperature conditions. The mix-
ing process starts only if the “Operation Cycle On” condition is true and is realized by a simple
ON-OFF switch. If during the mixing process the condition is confuted, the mixing process con-
tinues until the end of operation cycle, and then the reactor stops to operate. The mixing process
must follow the next seven steps:

1. The valve V1 closes


2. With precondition that the valve V1 has been closed, the refrigerator (RFG) starts to operate
and simultaneously the valve V2 opens. The valve V2 remains open until the liquid A level
inside the reactor reaches the height L2 and is detected by a corresponding sensor.
3. With step 2 completed, the stirring impeller (STR) starts to operate. The stirring impeller
and the refrigerator stop to operate at the end of the mixing cycle.
4. With the precondition that the stirring impeller operates, the valve V3 opens and remains
open, until the liquid B level reaches the height L3 detected by a second corresponding
sensor.
5. With Step 4 completed, a time interval of 40 min follows for the mixing and the chemical
reaction of the two liquids.
6. At the end of this reaction period, the valve V1 opens and the reactor starts to empty.
7. When the level of the produced liquid drops to height L1, then the valve V1 closes and a new
operation cycle begins if the corresponding condition exists.

The required state diagram is shown in Figure 4.32, containing six states and three auxiliary vari-
ables, where the signal “HS” corresponds to the “Operation Cycle On” condition, which is realized
by a hand-operated switch of SPST type.

Liquid A Liquid B

V2 V3

L3

L2

RFG

V1
STR
L1

Figure 4.31 A chemical reactor for mixing two liquids and compounding a new product.
144 ◾ Introduction to Industrial Automation

L1 S0 HS•V1

ABC
RFG=ON 000 RFG=ON
STR=ON S5 S1
100 001 V2=ON
V1=ON

T
L2

RFG=ON
STR=ON RFG=ON
S4 110 011 S2
T=ON STR=ON
V3=OFF 010 V2=OFF
L3 S3 STR

RFG=ON
STR=ON
V3=ON HS=hand-operated switch

Figure 4.32 State diagram for Example 4.11.

For the code assignment shown in Figure 4.32, we obtain the following equations:

Turn ON A = L 3BC, Turn OFF A = L1BC


Turn ON B = L 2 AC, Turn OFF B = TAC
Turn ON C = HS ⋅ V1 AB, Turn OFF C = STR ⋅ AB

Applying logical Equation (1) to three auxiliary variables, we obtain:

A = L1BC (L 3BC + A ) = (L1 + B + C )(L 3BC + A )


B = TAC (L 2 AC + B) = (T + A + C )(L 2 AC + B)
C = STR ⋅ AB (HS ⋅ V1 AB + C ) = (STR + A + B)(HS ⋅ V1 AB + C )

For the operation of the two machines (STR and RFG), valves, and the timer, we obtain:

RFG = ABC ⇒ RFG = A + B + C

STR = ABC + ABC + ABC + ABC = AB + AC

V1 = ABC, V2 = ABC, V3 = ABC, T = ABC

By converting the above equations to an automation circuit, we obtain the automation circuit pre-
sented in Figure 4.33.
Logical Design of Automation Circuits ◾ 145

R N
L3 A
L1 Β C

Β
A
C

L2 B
T Α C

A
B
C

HS V1 B C
STR A

A
C
B

Α RFG

Α Β STR

Α C

Α Β C V1

Α Β C V2

Α Β C V3

Α Β C T

Figure 4.33 Automation circuit for Example 4.11 based on the state diagram of Figure 4.32.

4.4 Applications
In Section 4.4, we will examine some complex setups of industrial automation, where we will
investigate how the corresponding logical design method allows for the simplification in the design
of solutions for complex problems using a systematic and straightforward approach, especially in
cases where the empirical approach will not work. In the following examples, the description of
146 ◾ Introduction to Industrial Automation

the desired industrial application will be provided at the beginning, followed by the presentation
of the logic state diagram construction and the logical expressions derived from equation (1), and
finally, the corresponding automation circuit.

4.4.1 Bidirectional Lead Screw Movable Worktable with Two Speeds


The lead screw moving worktable is presented in Figure 4.34, and is operating with the help of a
two-direction motor and two rotational speeds. The limit switches that are indicated in the same
figure have been placed in those points where we would like to change the speed direction, or the
moving speed. Thus, the desired automation should be able to achieve the following:

1. With the press of a button b1, the lead screw worktable (T) should move to the right with a
low speed (R LS).
2. When the limit switch x is energized, the table should continue to move towards the right,
but with the high speed (R HS), until it reaches the limit switch y, where it returns to the low
speed of motion (R LS).
3. As soon as the limit switch z is energized, the direction of the movement should be
inverted, which means that the table should move to the left (L LS) without a change in the
speed.
4. The movement to the left should continue in a similar way until the press of the limit switch
y, where it continues at low speed (LLS). From the limit switch y until the limit switch x, the
movement is happening at high speed (LHS) and from the x until the w at low speed (LLS),
where again the motion is reversed.
5. This palindromic movement of the table continues until a button b0 is pressed, only while
the lead screw table moves toward the right at low speed.

For the described problem, the state diagram is displayed in Figure 4.35. Overall, the dia-
gram has five states and thus three auxiliary variables are needed, which are coded in the same
figure.

Worktable
Motion Lead screw Motion
reverse reverse
Motor
(n1, n2, )

Limit
switch w x y z

Low High Low


speed speed speed

Figure 4.34 Bidirectional and two-speed movable worktable via lead screw.
Logical Design of Automation Circuits ◾ 147

S2 101
RHS

x y

b1 z y

S1 S3 S4
S0
RLS LLS LHS
ABC 001 011 010
000 b0 w x

R = motion to the right, L = motion to the left, LS = low speed, HS = high speed

Figure 4.35 State diagram for application in Section 4.3.1, shown in Figure 4.34.

For each of the auxiliary variables, we have:

 
Turn ON A = S1S2 ( x ) = xBC, Turn OFF A = S2 S1 ( y ) = yBC
B=0 , C =1 B=0 , C =1
 
Turn ON B = S1S3 (z ) = zAC Turn OFF B = S3 S1 ( w ) = wAC
A =0 , C =1 A =0 , C =1
 
Turn ON C = S0 S1 (b1 ) Turn OFF C = S1S0 (b0 )
A = 0 , B= 0 A = 0 , B= 0
 
+ S 4 S3 ( x ) = b1 AB + xAB + S3 S 4 ( y ) = b0 AB + yAB
A =0 , B=1 A =0 , B=1

Applying the logical Equation (1) to three auxiliary variables, we obtain,

A = yBC ( xBC + A ) = ( y + B + C )( xBC + A )

B = wAC (zAC + B) = ( w + A + C )(zAC + B)

( )
C = b0 AB + yAB (b1 AB + xAB + C ) = (b0 + A + B)( y + A + B)(b1 AB + xAB + C ),

and also

R LS = ABC, R HS = ABC, L LS = ABC, L HS = ABC


148 ◾ Introduction to Industrial Automation

R N
x A
y Β C

B
A

z B
w A C

A
B

b1 C
b0 y A B

x A B
A A

C
B Β

Α Β C RLS

Α Β C RHS

Α Β C LLS

Α Β C LHS

Figure 4.36 Automation circuit for application in Section 4.3.1 based on the state diagram of
Figure 4.35.

The implementation of these logical expressions results in the automation circuit shown in
Figure 4.36, where it can also be checked that its operation satisfies the desired described
automation.

4.4.2 Palindromic Movement of a Worktable with Memory


In Figure 4.37, a simplified form of the carrier (lead screw worktable) of a machine tool is depicted,
which is called a “lathe”. The worktable of the lathe is desired to be moved in between two limit
positions to the left and to the right, according to the following specifications:

1. Initially, we define the movement of the table to the right with “SR” and the movement to
the left with “SL”. In both states, and with the press of a button “s” (STOP), the table stops
in its current position.
Logical Design of Automation Circuits ◾ 149

Motion Worktable Lead screw Motion


reverse reverse

Motor

w z

Figure 4.37 The movable carrier (lead screw worktable) of a machine tool.

2. With a press of the button “m” (memory button), the table continues moving in the same
manner before it was stopped, due to the press of the button “s”.
3. If the table is moving to the right (SR), then either by the press of a button “a” or when it
reaches the end of its movement where the limit switch “z” is energized, the direction of the
motion will be inverted, which means that the table should move to the left (SL).
4. With the same approach, when the table is moving to the left (SL), either with a press of
a button “d”, or when it reaches in the end of its movement where the limit switch “w” is
energized, the direction of the motion will be inverted, which means that the table should
move to the right (SR).
5. If, during the movement of the table to the left (SL), the limit switch “w” is ener-
gized, while the limit switch “z” remains energized, due to a fault (e.g., the limit switch
has been blocked), then the table should stop, like in the case where the button “s” had been
pressed.

Overall, we have the following operational buttons and limit switches:

s = STOP button
m = motion continuation button
a = SL motion button
d = SR motion button
z = limit switch of the SR motion
w = limit switch of the SL motion

The corresponding state diagram is indicated in Figure 4.38, where the STOP state of S0L and
S0R is noted, with a previous SL or SR motion correspondingly.
Based on this remark, we have the following Turn ON and Turn OFF sets for the auxiliary
variables:

m a+z m

S0L SL SR S0R

AB 01 11 10
00 s+zw d+w s

Figure 4.38 State diagram for application in Section 4.4.2, shown in Figure 4.37.
150 ◾ Introduction to Industrial Automation

 
Turn ON A = SL SR (d + w ) = (d + w )B, Turn OFF A = SR SL (a + z ) = (a + z )B
B=1 B=1
 
Turn ON B = S0L SL (m ) Turn OFF B = SL S0L (s + zw )
A =0 A =0
 
+ S0 R SR ( m ) = mA + mA = m + SR S0 R ( s ) = (s + zw )A + sA = zwA + s
A =1 A =1

Applying the logical Equation (1) to the A and B auxiliary variables, we obtain,

A = (a + z)B ((d + w)B + A ) = (a z + B) ((d + w)B + A )

B = ( zwA + s ) (m + B) = ( z + w + A ) s(m + B),

and also,

SL = AB, SR = AB

The implementation of these logical expressions is presented in the automation circuit shown in
Figure 4.39.

R A N
a z d B

B w

m B
z s

w
B

Α Β SL

Α Β SR

Figure 4.39 Automation circuit for application in Section 4.4.2 based on the state diagram of
Figure 4.38.
Logical Design of Automation Circuits ◾ 151

4.4.3 Operation of N Machines with Pause under Specific Conditions


Let’s assume that we have a set of n identical machines, which we would like to start and stop
manually with a corresponding n number of START-STOP pairs of buttons. For the START
operation of the machines no specific condition is needed. However, for the STOP operation, due
to some functional specifications, it is important that the STOP action is applied immediately to
all the machines, except for the last in operation machine, which should terminate its operation
only when a sensor is energized. The operation of the rest of the machines, except the last one, must
stop independently of the sensor’s state. The difficult part of this problem is the fact that the last
machine in operation is not predefined, rather it is randomly selected from the n of total machines.
In the case that the sensor is activated, and the STOP button of the final operation machine is not
pressed; then the machine continues to operate. To summarize, every machine from the n total can
act as the last machine in operation, where we would like to stop it in cooperation with a sensor. In
this case, it is assumed that the rest of the machines will have been stopped already.
At this point is should be mentioned that this problem is not an abstract example for tutorial
purposes; it occurs frequently in the central autonomous heating systems of multiple apartments.
In this case, the machines are replaced from the central electrovalves of the apartments (heating
or cooling of the apartment). In these systems, every inhabitant can stop the heating at any time
it is desired. In the case that the inhabitant is the last one who switches off the heating, in order
not to have hot water trapped in specific areas of the pumps’ network, the automation system
should prevent the electrovalve of the last apartment to close, even if the inhabitant keeps it open
until all the thermal heating of the apartment is reduced to an acceptable level (based on a specific
temperature sensor) before closing the final electrovalve.
Since the construction of the state diagram for 1, 2, 3,…, n-1,…, n machines is very complicated,
we will only represent the case of three machines, but in a way that the expansion of the diagram to
more machines would be straightforward. In Figure 4.40, this state diagram is presented with all the
potential operational combinations of the machines; with the indications of the machines (A, B, C) and
the three states (S1, S2, S3), where only the last machine is in operation, and from where the transition
to S0 requires the logical condition for the sensor to be energized. In this automation system, the sensor
signal, which is also the transition event, is represented by “t”. Additionally, we denote with “si” and “pi”
the START and STOP buttons of the ith machine, with i=1, 2, 3 for the illustrated example.
Based on this analysis, the Turn ON and Turn OFF logical expressions for the auxiliary vari-
ables A, B, and C are defined as:

 
Turn ON A = S0 S1 (s1 ) B=0, C =0 + S3 S2 (s1 ) B=1,, C =0
 
+ S7 S6 (s1 ) B=1, C =1 + S4 S5 (s1 ) B=0, C =1
= s1BC + s1BC + s1BC + s1BC = s1B + s1B = s1

 
Turn OFF A = S1S0 (p1t ) B=0, C =0 + S5 S4 (p1 ) B=0, C =1
 
+ S2 S3 (p1 ) B=1, C =0 + S6 S7 (p1 ) B=1, C =1
= p1tBC + p1ΒC + p1BC + p1BC = p1BC + p1Bt + p1B
= p1BC + p1B + p1t = p1B + p1C + p1t = p1(B + C + t )
152 ◾ Introduction to Industrial Automation

p2•t

s2

Machine A Machine B
s1 100 s2 110 p1 010
ABC
000
S0 S1 S2 S3

p1•t p2 s1

p3•t s3 p3 s3 s3 p3 p3 s3

s1 s2 p1

S4 S5 S6 S7
001
p1 101 p2 111 s1 011
Machine C

s2

p2

Figure 4.40 State diagram for the operation of three machines with pause under specific con-
ditions (Application 4.4.3).

 
Turn ON B = S1S2 (s 2 ) A =1, C =0 + S0 S3 (s 2 ) A =0,, C =0
 
+ S5 S6 (s 2 ) A =1, C=1 + S4 S7 (s 2 ) A =0, C =1
= s 2 AC + s 2 AC + s 2 AC + s 2 AC = s 2C + s 2C = s 2

 
Turn OFF B = S1S2 (p 2 ) A =1, C =0 + S3 S0 (p 2 t ) A =0, C =0
 
+ S7 S4 (p 2 ) A =0, C =1 + S6 S5 (p 2 ) A =1, C =1
= p 2 AC + p 2 tAC + p 2 AC + p 2 AC = p 2CA + p 2Ct + p 2C
= p 2CA + p 2C + p 2 t = p 2C + p 2 A + p 2 t = p 2 (C + A + t )

 
Turn ON C = S0 S4 (s3 ) A =0, B=0 + S1S5 (s3 ) A =1,, B=0
 
+ S2 S6 (s3 ) A =1, B=1 + S3 S7 (s3 ) A =0, B=1
= s3 AB + s3 AB + s3 AB + s3 AB = s3B + s3B = s3
Logical Design of Automation Circuits ◾ 153

 
Turn OFF C = S7 S3 (p3 ) A =0, B=1 + S6 S2 (p3 ) A =1, B=1
 
+ S5 S1 (p3 ) A =1, B=0 + S4 S0 (p3 t ) A =0, B=0
= p3 AB + p3 AB + p3 AB + p3 tAB = p3BA + p3Bt + p3B
= p3BA + p3B + p3 t = p3B + p3 A + p3 t = p3 (B + A + t )

Applying logical Equation (1) to the A, B, and C auxiliary variables, we obtain:

A = p1 (B + C + t )(s1 + A ) =  p1 + (BCt )  ( s1 + A )
 

B = p 2 (C + A + t )(s 2 + B) =  p 2 + (CAt )  ( s 2 + B)

( )
C = p3 B + A + t (s3 + C ) =  p3 + (BAt )  ( s3 + C )
 

The implementation of the previous logical expressions gives us the automation circuit shown
in Figure 4.41 for the case of three machines, where it is obvious that this can be easily expanded
and generalized for the n machine case.
The automation circuit shown in Figure 4.41, although it operates well, presents a basic dis-
advantage. The pressing of pushbutton STOP of the last machine must happen simultaneously

R A N
p1 s1

B C t A

s2 B
p2

C A t B

s3 C
p3

B A t C

Figure 4.41 Automation circuit for application in Section 4.4.3 based on the state diagram of
Figure 4.40.
154 ◾ Introduction to Industrial Automation

with the activation of the sensor. This requirement, specifically for the case of central heating, is
not acceptable, since each inhabitant can’t wait for when the sensor will be energized in order to
press the STOP pushbutton. In addition, each inhabitant does not have information about the
state of the sensor, if it has already been energized, or when it is going to be energized. In fact, the
condition “pi ⋅ t” for the STOP of the last machine in the state diagram means that the button “pi”
must be pressed simultaneously with the sensor “t” activation, something that was intentionally
stated in order for the reader to establish the improvement of the automation circuit succesively.
What is desired in this case is the STOP signal, caused by the press of the button, is saved in the
“memory” of the automation circuit and when the sensor stops the last machine is realized. One
approach to solve this problem may be the addition of one more state per machine in the state dia-
gram of Figure 4.40. This new state will represent the condition “STOP has been pressed and the
sensor awaits” where the electrovalve continues to be open. With three new states in the already
complex diagram of Figure 4.40, someone has to write the Turn ON and Turn OFF expressions
of the auxiliary variables again, applying the logical formula (1) and extracting the new automa-
tion circuit. A second approach, based on empirical design knowledge, is to create the “memory”
element for saving an instant signal, based on the self-latching principle described in Section 3.1.1.
According to this principle, in the world of automation, one auxiliary relay constitutes a memory
with a size of 1 bit, when it is energized by a momentary pushbutton signal, and remains energized
through its self-latching contact. Therefore, we need three more auxiliary relays di (i=1, 2, 3) than

R A N
d1 s1

B C t d1
p1

A d1

d2 s2 B

C A t d2
p2

B d2

d3 s3 C

B A t d3
p3

C d3

Figure 4.42 The improved automation circuit for application in Section 4.4.3 by adding the
possibility to save the stopping commands.
Logical Design of Automation Circuits ◾ 155

those included in the automation circuit of Figure 4.41, in order to save the three stopping signals
pi (i=1, 2, 3) and also to replace the “pi” contacts with “di” corresponding ones. The new automa-
tion circuit, without the above-mentioned disadvantage, is shown in Figure 4.42.

Problems
4.1. In the reciprocating lead screw set-up described in Section 4.4.1, the working table motion
stops by pressing the button b0 only if it is moved right at a low speed or, in other words, it
is in state S1. In any other state of the automation system, pressing the button b0 does not
cause any action. Design an automation circuit which will permit the working table to stop
by pressing the same button b0, also from state S3 when it moves left at a low speed.
4.2. Based on the description of Problem 4.1, design an automation circuit which will permit the
working table to stop from any state (S1, S2, S3, or S4) of operation.
4.3. Based on the description of Problem 4.1, design an automation circuit which will permit the
working table to stop, by pressing the button b0, at the end w when it is moving left or at the
end z when it is moving right, independently of time instant when the button is pressed.
4.4. Explain why the state diagram of Figure 4.20 does not include, as a stop condition, the case
where the working table is moving right and the limit switch z is pressed while the limit
switch w has been previously energized and remains energized due to a fault.
4.5. For the application described in Section 4.4.3, design an improved automation circuit which
will save the instantaneous signal Stop of the last operated machine and will cause its stop-
ping with delay T after the sensor is energized.
4.6. In a processing station, the motor pushes, via the worm screw and the sliding platform,
objects from location 1 to locations 2, 3, and 4 in order for these to accept the corresponding
treatment. Then the sliding platform returns back to initial place 1. Design an automation
circuit only for the movement of objects according to the following specifications:
a. The platform slides one space at each press of button b.
b. The sliding is sequential, cyclic, and non-reversible from an intermediate location.
c. Hence, starting from the initial place 1,
• with the first pressing of b, the platform slides to location 2
• with second pressing of b, the platform slides to location 3
• with third pressing of b, the platform slides to location 4
• with the fourth pressing of b, the platform returns back to location 1
• with fifth pressing of b, the platform slides to location 2 and so on.
d. The detection of the platform’s successive positions is achieved via the corresponding
proximity sensors.

b Proximity
switch
Platform

Motor
( )
1 2 3 4
156 ◾ Introduction to Industrial Automation

4.7. From three locations A, B, and C of initial production, objects are sent via the central con-
veyor D to the assembly table. The conveyors A, B, and C operate continuously and therefore
are not considered in this automation system. Each of the three workers always puts the
same object on the conveyor, for which he is responsible at a random time but only under the
condition that the corresponding light H1, H2, or H3 is on. When an object reaches the con-
veyor D, it is detected by the corresponding proximity switch PSi. The workers must put two
objects A, two objects B, and one object C, and then the corresponding light Hi turns off,
which means “do not put another object on the conveyor”. For example, two activations of
PS2 cause the turnoff of the light H2. There is no specific order for the placement of the five
objects from the workers. When the last object reaches conveyor D, that means there are five
objects on the central conveyor D, then the light H4 turns on and the central conveyor D
can operate if a technician in the assembly table presses the button b0. After pressing the
button, conveyor D operates for 45 s. At the end of this period the conveyor D stops, the
lights H1, H2, and H3 turn on while the light H4 turns off. Design the required automation
circuit using the state diagram method.

H4
b0
y
bl
H3 s em le
As tab
H2
C
D
H1 B
PS3
A
PS2

PS1

4.8. A processed object in a production line undergoes three different treatments on a complex
machine tool. The three treatments, which are performed via the operation of three cor-
responding motors, start simultaneously but have different durations. Design an automa-
tion circuit so that an instant signal Start to cause the simultaneous operation of the three
motors, while an instant signal Stop to stop one motor immediately, the second one after
20 s, and the third one after 30 s.
4.9. N machines start to operate or stop by hand via an equal number of button pairs Start-Stop.
For the Stop operation of any machine, there are no specific requirements. For the Start
operation, however, it is desired to respond immediately to any of the N machines except for
the first one, which will start-up with delay T. It is not predefined which of the N machines
will start first, it may be any of the N machines at random. Design an automation circuit for
N = 3 in an extendable form.
4.10. In a complex machine, there are two motors, M1 and M 2, both with direct start-up. After
an instant Start signal from a button, the motor M1 starts immediately and with time
delay T starts the motor M 2. After an instant Stop signal from another button, the motor
M 2 stops immediately and with time delay T stops the motor M1. The Stop signal acts
only if both motors are in operation. Design the required automation circuit using the
state diagram method.
Logical Design of Automation Circuits ◾ 157

4.11. Three machines, M1, M2 and M3 (motors with direct on line starting), start to operate after
a common instant Start signal and with null-time latch sequence. This means that if the
machine M1 has been started, only then the machine M2 starts immediately; and if M2 oper-
ates, then M3 immediately starts to operate. If any of the three machines stop during opera-
tion for any reason (e.g., the thermal relay is energized) then all the machines must stop.
Also, the three machines will stop after a common instant Stop signal. Design the required
automation circuit.
Note: If a machine Mi starts, and then a machine Mi+1 operates after passing a time period, we
refer to this functionality as a “delay time latch sequence”.
4.12. Automate the chemical mixer of the following figure by designing an automation circuit
satisfying the following specifications:
a. The mixing process starts with an instant signal from a button (mixing cycle).
b. If one of the tanks A, B, and C do not contain the minimum required amount of liquid
(dashed lines), the mixing process can’t begin.
c. The filling process includes (in the following respective order) the filling of a central tank
T with liquid A up to level L A, then with liquid B up to level LB, and finally with liquid
C up to level LC, by opening the corresponding valves Vi, (i=1, 2, 3).
d. After the end of the filling process, a time period of 10 minutes follows for a chemical
reaction to occur.
e. At the end of this period, the pump M starts to operate until the tank T is empty. This
expresses the end of the mixing cycle.
f. For the detection of various liquid levels, use electronic level switches with immersed
electrodes, whose location must be defined in all tanks.

A
C
B

V1 V2 V3

LC

LB

LA
T

4.13. Centrifugal separators are machines designed especially for liquid-based applications. Using
centrifugal force, they separate substances and solids from liquids. They are equally as effec-
tive at separating liquid mixtures at the same time as removing solids. Because of the large
inertia of the rotated mechanical parts and the high rotation speed, these machines must not
vibrate during their operation. Design an automation circuit of a centrifugal separator with
two speeds of rotation according to the following specifications:
a. The separator starts at low speed by pressing the Start button.
b. After 30 s, the separator goes over the high speed automatically.
158 ◾ Introduction to Industrial Automation

c. If the vibration sensor (SPDT output) is activated during the operation at high speed,
then the separator must stop immediately, and cannot reoperate except if a reset button
is pressed (lock of operation due to vibrations). The operator of the machine is informed
about the lock of operation via a light indicator.
d. With an instant signal Stop from a corresponding button, the separator stops to operate
independently of the rotation speed.
Note: If the vibration sensor is activated during the rotation at a low speed, which is entirely
possible, then this fact should not have any effect on the operation of the separator.
4.14. The automation system of the assembly station described in Problem 4.7 can be redesigned
in order to make better utilization of processing time and also to include the remaining parts
of the set-up that have deliberately not been encountered. Specifically, the control and opera-
tion of the three conveyors A, B, and C (Figure 4.7) must be incorporated in the automation
circuit in order to permit the placement of the second two objects even if the corresponding
light is turned off. This is reasonable when a worker or object production delays the forma-
tion of the objects’ triple on conveyor D. Then, the other two workers can put second objects
on their corresponding conveyors, but these objects must stop just before conveyor D, other-
wise there will be duplicate objects on conveyor D. In order to achieve this, additive sensors
are required to be placed on conveyors A, B, and C and possibly additive signaling on initial
production places. It is clear that this problem becomes complex and should be faced as a
project of an automation system study where you can improvise choosing additional equip-
ment and not as a simple tutorial problem. Therefore, design the automation of the assembly
station so that its operation is as efficient and flexible as possible.
4.15. Design an automation circuit for the manual correction of the power factor (cosφ) in an
industrial electric AC power station. The correction is performed by inserting successively
five capacitors in the power circuit until the desired factor value is achieved. The insertion of
capacitors is achieved by energizing an equal number of relays via pressing the same button
bin several times. In a similar way, the subtraction of the capacitors is achieved by pressing
the button bout successively as many times as needed.
Chapter 5

Elements of Electro-
Pneumatic Components

5.1 Introduction to Electro-Pneumatic Components


The term “pneumatic automations” usually refers to the automation systems that base their opera-
tion on the utilization of pressurized air. Pressurized air, even if it is a carrier of low energy, has a
number of significant properties that make its utilization extremely popular in multiple industrial
applications. For the use of pressurized air in industrial automation, the most commonly oper-
ated devices are pressurized air flow regulators, widely known as pneumatic valves and pneumatic
actuators, which are devices that transform the energy of pressurized air in motion. In cases where
the energizing of air flow valves is performed by the utilization of electrical solenoids, these pneu-
matic systems are called electro-pneumatic automations.
The general area of pneumatic automations is very extensive, and thus the aim of this chapter
is to cover the case of electro-pneumatic automations in detail, with the main emphasis on the
final automation circuit.

5.2 Pressurized Air
Air has been utilized as a means of movement creation since ancient times, as can be seen from
numerous related literature on devices and machines that were operating by utilizing pressur-
ized air. It should also be highlighted that the English term “pneumatics” originates from the
Greek word “πνεύμα”, which meant “breathing” or “light blowing”, and today means “spirit”.
Subsequently, the physical properties of air are considered well known a priori from classical phys-
ics courses, and thus no depth of analysis will be provided here.
Although it had not been utilized to a large extent in the past, pressurized air was adopted
by industrial automations rather late in the 1960s. The real utilization of pneumatics in industry
happened after the creation of the need to automate the largest portion of industrial operations.
The rapid growth in this field that followed, as well as the establishment of pneumatic auto-
mations, was mainly due to the fact that there is a specific category of industrial automation

159
160 ◾ Introduction to Industrial Automation

problems that can only be solved efficiently and at low cost, by the utilization of different means,
if not pressurized air. Nowadays, there is no industrial automated production that is not utiliz-
ing pneumatic automations with pressurized air. Pressurized air has some significant advantages,
such as:

◾◾ Air exists everywhere and in unlimited supply, and thus the cost of the raw material (air) for
pneumatic automations is zero.
◾◾ Pressurized air can be very easily transferred through the utilization of elastic or metal-
lic pipes over long distances. Furthermore, pressurized air does not need to be returned
to the source of its production (pressurized tank) which happens in hydraulic automa-
tion circuits.
◾◾ The compressor for generating the pressurized air does not need to be under continuous
operation, since pressurized air can be easily stored and in large quantities.
◾◾ The variation of environmental temperature does not usually affect the operation of the
pneumatic circuit.
◾◾ The utilization of pressurized air involves no danger of ignition or explosion, as in the case
of utilizing an electrical actuator in an explosive environment.
◾◾ Pressurized air is a clean source of energy, since every leakage in the pipes or in the pneu-
matic devices does not create dust and dirt, a fact for example that is of paramount impor-
tance in the food, wood, medical, and high-tech industries, as in the case of integrated
circuit production.
◾◾ Pressurized air is a very fast actuation factor. It allows for high speeds of operation
(movement), as in the case of the pneumatic cylinders that can reach actuation speeds of
1–2 m/s.
◾◾ Factors that influence the operation of a pneumatic automation, such as the speed and actua-
tion force, are regulating factors for the adaptation of the pneumatic system to the needs of
an industrial application, a situation that can be easily performed in the case of pneumatics.

In general, a pneumatic automation system consists of a pressurized air production unit, a


pneumatic circuit of pressurized air distribution, and pneumatic devices that enable the automatic
operation of an industrial process. The first two parts, the generation and the distribution of the
pressurized air, will not be addressed further in depth, since they do not contribute to the design
of the overall automation scheme. More focus will be provided on the operation of different types
of pneumatic devices, as well as on the way that these devices are controlled from an automation
circuit.
Similar to pneumatic automations, hydraulic automations are ruled by the same philoso-
phy and principles of operation and automation, and thus will not be further analyzed here.
However, the industrial terminology, the methods for automation, and the corresponding hydrau-
lic devices are similar to the ones in pneumatic automation, which means that an engineer with
a very good knowledge of pneumatic automations can easily comprehend and design hydraulic
automations as well.

5.3 Production of Pressurized Air


Pressurized air is produced from compressors, which are electromechanical machines that have
the ability to pressurize the air into a metallic container (tank) under the desired operational
Elements of Electro-Pneumatic Components ◾ 161

pressure. In most of the industrial automation cases, it is suggested to have a central station
for the production of the pressurized air, instead of having independent and distributed local
compressors. Thus, in this approach, each new pneumatic device is supplied from the existing
pneumatic network and its installation in the general automation is faster and easier. In general,
it should be kept in mind that small and mobile compressors are rarely utilized in industrial
automations.
Pneumatic compressors come in multiple types; however, there are two main categories.
The first category includes compressors whose operation is based on the principle of move-
ment, where the air is trapped in a chamber, and subsequently the volume of the chamber is
reduced with the help of a pressing piston. The compressors of this category are called “pis-
ton based compressors”. The second category includes compressors where the pressurization
is achieved from the acceleration of the air mass and thus are called “turbine compressors”.
In all cases, the most common operational pressure in the pressurized air circuits is 6–7 bars
(1 bar = 14.5 psi).

5.4 Distribution of Pressurized Air


Every pneumatic automation setup is supplied by pressurized air from a pressurized container of
the compressor, commonly known as a compression tank, through the distribution pipes. The
diameter of this pipe should be such that the pressure drops among the compressor and the pneu-
matic installation should be less than 0.1 bar. A bigger pressure drop creates a problem in the
operation of the pneumatic automation, a situation that is equivalent to the drop of the electrical
voltage. The pipes carrying the pressurized air can be made out of copper, steel, or plastic.
The selection of the pipe’s diameter is made based on the utilization of two nomograms. The
parameters that are inserted in these calculations are as follows:

1. The volumetric flow of the pressurized air


2. The length of the pipe
3. The operational pressure of the pressurized air
4. The allowable drop of pressure

Additionally, the diameter of the distribution pipes is affected by the number and the type of
various equipment that are placed in the pneumatic installation, such as the pneumatic two-way
valves, the regulator valves, the pneumatic T-connectors (or curve connectors), the pneumatic
switches, etc. This equipment is utilized in the calculations through their “equivalent length”.
This equivalence refers to their resistance during the flowing of the pressurized air, while the
“equivalent length” expresses the length of the pipe of the same diameter that is characterized by
the same resistance to the equipment. The way of calculating the diameter of the pipe is presented
subsequently by the utilization of an example, which it should be noted is the same procedure for
all different types of materials.

Example 5.1: Internal Diameter Calculation of a Pressurized Air Distribution Pipe.


The consumption of pressurized air in a factory is at a level of 800 m3/hr. The distribution pipe will
have a length of 300 m and it will contain six T-connectors, five 90°-curve connectors and one two-
way valve. For this application, the allowable drop of pressure will be 0.04 bar, while the operation
pressure should be 9 bar.
162 ◾ Introduction to Industrial Automation

In the nomogram of Figure 5.1, the first vertical line indicates the length of the pipe, while the
second line refers to the flow of the pressurized air. The point L = 300 m in the first line and the
point Q = 800 m3/hr in the second line defines a straight line that intercepts Axis 1 at Z1. The fourth
line represents the operational pressure and the fifth line represents the allowable pressure drop.
Point P = 9 bar in the fourth line and point ΔP = 0.04 bar in the fifth line defines a line that inter-
cepts Axis 2 at the point Z2. The previously defined points Z1 and Z2 in Axes 1 and 2 correspond-
ingly define a line that intersects the third line at one point that expresses the internal diameter of
the required pipe. Based on all these calculations, the resulting internal diameter of the pressurized
air distributed pipe is D = 90 mm.
Subsequently, the pressure drop that is created from the various equipment of having a diameter
equal to the calculated one (D = 90 mm), should be taken into consideration. The nomogram of
Figure 5.2 provides an equivalent length for the five types of equipment. Each one has an equivalent
resistance to the one that of a pipe of the same diameter and a length equal to the calculated length.
The horizontal axis of the nomogram indicates the diameter of the pipe. Thus, for D = 90 mm, we
have the following:

Equivalent length of T-connector = 10.5 m

Equivalent two-way valve length = 32 m

Equivalent length of 90°-curve connector = 1.2 m

Total equivalent length = 6 × 10.5 + 32 + 5 × 1.2 = 101 m

Pipe length Pipe inside


Axis 1 Axis 2
(m) diameter
(mm) Pressure
10 drop
500 (bar)
20
Air flow
0.03
50 (m3/h) System
300 0.04
10000 pressure
100 (bar) 0.05
5000 200
200
2
2000 0.1
500 3
1000 4 Z2
1000 100 5 0.2
2000 500
0.3
200 10
5000 0.4
Z1 50
100 20
0.5
40
4
1 2
30
1.0
20 1.5
3 5

Figure 5.1 Nomogram for internal diameter calculation of a pressurized air distribution pipe.
Elements of Electro-Pneumatic Components ◾ 163

80
60
50
1
40
2
30
3
20

10 1 Two-way valve
Equivalent pipe length (m)

8
6 2 Angular valve

5 3 T-connector
4
3
4 Regulator valve
5
2 5 90°-curve connector

1
0.8
0.6
0.5
0.4
0.3

0.2
15 20 30 40 50 60 80 100 150 200 300 400

Figure 5.2 Nomogram for the equivalent length calculation of some types of equipment.
Thus, the overall length of the pressure pipe can be considered as 300 m + 101 m = 401 m. With
respect to the total length of the pipe, we could repeat the calculations for the correction of the
initial calculations. By following the same steps as before, we can calculate the final diameter of the
pipe, which is D = 96 mm. Finally, at this point it should be mentioned, as in the case of electrical
motors, the aim of this section is not to provide a full and extended analysis on the selection of the
pneumatic equipment; instead, it is focused on the way that the pneumatic equipment should be
utilized and integrated into fully functioning industrial automations.

5.5 Pneumatic Devices
Pneumatic devices can be split into two categories. The first contains the devices that are able to
transform the energy of the pressurized air in a directional or rotational motion, such as pneu-
matic cylinders and motors, which are also called “pneumatic actuators”. The second category
includes the devices that control or regulate the operation of pneumatic cylinders and motors,
which mainly contains the various valve types.

5.5.1 Single-Acting Cylinders
In the case of single-acting cylinders, pressurized air is applied only on one of the sides of the cylinder
and mechanical work is produced only in one direction during cylinder extension. In Figure 5.3,
164 ◾ Introduction to Industrial Automation

Base cap Head cap


Piston seal

Piston Piston rod Rod wiper


seal

Return spring

Cylinder housing
Inlet port

Figure 5.3 Cross section of a single-acting cylinder.

(a) (b)

Figure 5.4 Pneumatic symbols of a single-acting cylinder: (a) rod normally in, and (b) rod
normally out.

a section of a single-acting cylinder is presented, where the basic parts of the cylinder are also depicted,
such as the piston, the pressurized air inlet, the rod, the returning spring, and the elastic O-rings for
the sealing of chambers, with the piston and the rod acting as the only moving parts of the cylinder.
The application of pressurized air in the corresponding air inlet causes a corresponding extension
of the piston rod. The return of the piston rod to the initial resting position takes place either based
on the embedded return spring or with the application of an external force. Thus, the force applied
from the return spring should be adequate in order to allow for a retraction of the cylinder with an
increased speed. In the case of single-acting cylinders, the movement of the rod is restricted by the
physical length of the spring, which is usually 10 cm in length. Some of the most common applica-
tions for single-acting cylinders include the cases of actuating materials, such as tightening, tossing,
lifting, promoting, feeding, and vibrating. The single-acting cylinders are produced in two basic
forms, presented in Figure 5.4. These types are contracted and elongated cylinders, and if no pressur-
ized air is energized to it, they are similar to the NO and NC types of electric contacts. The designs
depicted in Figure 5.4 also indicate the symbols in the simple graphical representation of single-
acting cylinders that are used during the design of automations with pneumatics.

5.5.2 Double-Acting Cylinders
In the case of the double-acting cylinders, the pressurized air is inserted from both inlets of the
cylinder and thus the piston has the ability to move in both directions, with the mechanical work
produced in both directions of the movement. This type of a cylinder is mainly utilized in applica-
tions where it is necessary for the piston to perform a controllable task during extension or retrac-
tion, and has the ability to apply a force at the same time. The rod for double-acting cylinders can
be significantly longer than those of single-acting cylinders. In Figure 5.5, the longitudinal section
of a double-acting cylinder is presented, where except from the general structure, the two positions
Elements of Electro-Pneumatic Components ◾ 165

Bilateral piston seal

Inlet/outlet ports

= Piston moves to right = Piston moves to left

(a) (b)

Figure 5.5 Cross section of a double-acting cylinder (a) and a pneumatic symbol (b).

of the pressurized air connections, the moving piston, the rod with thread at the end for connection
to the load, and the O-rings for the sealing of the chambers are visible.
Except for the previous two main types of pneumatic cylinders, as shown in Figure 5.6, there
are several additional types of cylinders for specific applications, such as:

◾◾ Cylinders with a motion dampener at the end of the movement, or double-acting cylinders
with adjustable cushioning at both ends
◾◾ Double-acting cylinders with a double rod end
◾◾ Non-rotating rod cylinders with twin rods
◾◾ Series connection of cylinders and cylinders of multiple positions
◾◾ Cylinders with an impact velocity

Furthermore, a general representation of the final concept of cylinders that can transform the
translational movement into a rotational one are described in Figure 5.7.

Double-acting
ouble-acting cylinder wi
w
with
th Double-acting, do
double rod end
adjustable
able cushioning at both ends cylinder (without
w thou cushioning)
(wi

Non-rotating
rotating rod cylinder (tw
(twin
t in rod) Tandem cy
cylinder
L/2 L L/2 L

Multiple position cylinder Multiple position cylinder, outer


(0, L/2, L) connection (0, L/2, L, 3L/2)

Figure 5.6 Various types of pneumatic cylinders for specific operations.


166 ◾ Introduction to Industrial Automation

Piston seal
Air inlet

Air inlet

Figure 5.7 Cylinder for altering the translation movement into a rotational one.

5.6 Calculations in the Case of Pneumatic Cylinders


In Figure 5.8a, the internal state of a pneumatic cylinder is depicted; the pressurized air of pressure
P has been applied, and the moving piston has an area of A. In general, the force that is generated
in a surface A, under a pressure P is provided by:

F = AP

where F is the force in N, A is the area in m2, and P is the pressure in N/m2 (1 bar = 105 N/m2).
If the area A is representing the area of the piston in a pneumatic cylinder, the friction that is
generated on the walls of the cylindrical surface due to the movement of the piston and the force
of the spring (if it exists) should be taken into consideration. The friction is in general calculated as
a percentage (%) of the nominal force F and varies from 5–20%, depending on the type of fitting
for the piston in the internal surface of the cylinder. Thus, we have:

Single-acting cylinders: Freal = F − Ffriction − Fspring


where Ffriction = 5 − 20% F
Fspring = the spring force

F
P A

(a)

Out stroke In stroke

P
P
D

(b)

Figure 5.8 Calculation of the force applied by a pneumatic cylinder (a), and the difference
between in-stroke and out-stroke applied force of a double-acting cylinder (b).
Elements of Electro-Pneumatic Components ◾ 167

Double-acting cylinders: Freal = AP − Ffriction (Out stroke force )


or Freal = A ′ P − Ffriction (In stroke force )

where A is the area of the piston from the left side and A′ is the useful surface area from the right
side, as indicated in Figure 5.8b, with the following definitions: A = πD2/4 and A′ = π(D2−d2)/4.

5.6.1 Length of Piston Stroke


For a fixed diameter of a pneumatic cylinder, the length of the piston’s stroke cannot be as long
as we want. This is because a large length of stroke will create a large mechanical fatigue on the
piston’s rod, through which the force is applied on the load (Freal). To avoid this fatigue when it is
desirable to have a greater stroke, we should select a bigger diameter for the cylinder, and conse-
quently a bigger diameter for the rod. With the utilization of a corresponding nomogram, as in the
previous case of a pipe diameter calculation, the allowable stroke with respect to the rod diameter
and the applied force can be calculated.

5.6.2 Speed of Piston’s Translation


The speed that the piston is translating in a pneumatic cylinder is a function of multiple param-
eters, resulting from the manufacture of the cylinder itself, or the control unit (valve). The mean
speed value for classical cylinders varies from 0.1–1.5 m/s. For a fixed load (force F), a fixed diam-
eter of the cylinder and a fixed inlet valve, the maximum speed of the piston is also defined.

5.7 Pressurized Air Flow Control Valves


The operation of pneumatic cylinders requires the utilization of specific control equipment called
valves. With the term “valves”, we refer to all control devices that could be used for selecting the
flow direction of pressurized air, to apply control signals like START and STOP, to regulate the
pressure and volumetric flow, etc. Valves in general can be categorized based on their functionality
as follows:

1. Directional valves
2. Non-return or check valves
3. Pressure control valves
4. Flow control valves (volumetric)
5. Isolation valves

In the following subsections of Section 5.7, the operation of the directional valves will be further
analyzed, since they affect directly the logic of an electro-pneumatic automation system design.

5.7.1 Directional Valves
Directional valves are devices that have the ability to control the direction of pressurized air in
pneumatic installations. The control of the flow direction is mainly utilized for controlling the
168 ◾ Introduction to Industrial Automation

behavior of the pneumatic cylinders. Each directional valve is characterized by the number of
switching positions and by the number of pressurized airways that could be externally connected.
Due to the manufacturing complexity of these valves, based on international standards and regu-
lations, the following simplified symbolic representations have been adopted:

◾◾ The switching positions of a valve are denoted by rectangles.


◾◾ The number of rectangles in a row denotes the number of switching positions that the valve
has.
◾◾ The route of the flow for the pressurized air is denoted by directional lines within the
rectangles.
◾◾ The isolation points (stops of air flow) are denoted by a tau (T).
◾◾ The external connections of the pressurized air lines are denoted by external lines to the
rectangle that represent the rest state of the valve.
◾◾ The other operational positions of the valve are created from the translation of the block
(left or right) until the point that the flow directions are aligned to the external connections.
◾◾ The exhausting of the pressurized air can be achieved either freely toward the environment
or in a network of pipes for the collection of low pressure air.

Table 5.1 summarizes all the previous notations and illustrates some symbolic details. For bet-
ter comprehension of the symbols utilized for the valve representation, refer to Figure 5.9, where
the real operation of the two most common valve symbols is indicated for the flow and non-flow of
pressurized air as it is actually happening inside the valve, with respect to the valve’s symbol as well.
In Figure 5.10 the combined operation of a directional valve with three connection lines, two
switching states, and a single-acting cylinder is presented. In one switching state (left) of the valve,
the pressurized air is inserted from the line A and it moves the piston toward the right direction,
while contracting the cylinder’s spring. In the second switching position (right) of the valve, line
A is blocked, while the pressurized air in the cylinder is being released through the exhaust line
B. Thus, in this position the piston is returning to its initial position, through the action of the
returning spring.
In Figure 5.11, the operation of a valve with four connection lines and two switching states,
combined with a double-acting cylinder is displayed. As has already become apparent, the valves
can be coded directly from the number of connecting lines and, afterwards, the number of switch-
ing positions. For example, the valve shown in Figure 5.11 is coded as a four way, two-position
valve. The normal switching position for a valve, or rest position, is the position where any actua-
tion mechanism of the valve is inactive.
In Table 5.2, the valve type, the initial position status, and the symbol for the most typical
directional valves are presented. It is obvious that for a directional valve to operate in the various
switching positions, a kind of actuation is needed, either from a human or from an automatic sys-
tem. This actuation can be manual, mechanical, pneumatic, or a combination of all these.

5.7.2 Manual Actuation of a Valve


The manual actuation of a valve takes place throughout a mechanism that can be adapted on a
valve and can be realized in the form of a button, a lever, a pedal, or any other form of actuation
presented in Figure 5.12a. These mechanisms constitute the pneumatic equivalent of electrical
buttons and switches. For example, the flow of current throughout an electrical contact is equiva-
lent to the pressurized air flow throughout the airways of the valve. The symbols in Figure 5.12a
Elements of Electro-Pneumatic Components ◾ 169

Table 5.1 Symbolic Representations of Directional Valves and Their Operations


The switching positions of a valve are represented by a
rectangle

The number of adjacent rectangles expresses the equal


number of switching positions of the valve

The air flow path and its direction at each switching


position inside the valve, is represented by an arrowed
line

The air flow shut-off is indicated by a ‘T’ symbol

The outer connections of air flow, usually called inlet


or outlet ports, are indicated by lines drawn on the
outside of the rectangle representing the normal or
initial position

The other positions of the valve operation are obtained


by shifting the rectangles until the flow paths inside
the valve correspond to the outer connections

(a) The air exhaust flow path without pipe connection


(free exhaust in the environment), (b) air exhaust flow
path with pipe connection (closed pressurized-air
network), (c) symbol of a pressurized-air source

(a) (b) (c)

Outlet

Compressed airway Pneumatic symbol of a Compressed airway


is open two-port, two-position is closed
directional control valve

Figure 5.9 The two operation states of a two-port, two-position directional control valve and
the corresponding pneumatic symbols.
170 ◾ Introduction to Industrial Automation

Α Β

Figure 5.10 The two-state operation of a three-port, two-position directional control valve
controlling a single-acting cylinder.

Figure 5.11 The two-state operation of a four-port, two-position directional control valve con-
trolling a double-acting cylinder.

are open in their bottom part, since these symbols are adapted to the general symbols of the valve
indicated in Figure 5.12b.

5.7.3 Mechanical Actuation of a Valve


The mechanical actuation of a valve is achieved also with various mechanisms that can be adapted
on these valves. In general, these mechanisms require the application of a force (or pressure, based
on the same concept of pressing a button), through a mechanical setup and not through a human,
as presented in Figure 5.13.

5.7.4 Electrical Actuation of a Valve


With the adaptation of a solenoid in the mechanical construction of the valve, we can achieve an
electrical actuation of a pneumatic valve. In Figure 5.14a, a simple three way, two-position valve
Elements of Electro-Pneumatic Components ◾ 171

Table 5.2 Classical, Basic Directional Valves


Valve Type Initial Position Valve Symbol

2/2 Way Closed

2/2 Way Open

3/2 Way Closed

3/2 Way Open

3/3 Way Closed

1 Air Line
4/2 Way
1 Exhaust Line

4/3 Way Middle Position Closed

4/3 Way 2 Exhaust Lines

5/2 Way 2 Exhaust Ports

6/3 Way 3 Air Lines


172 ◾ Introduction to Industrial Automation

Button Lever Pedal Manual Switch


generally
(a) (b)

Figure 5.12 Symbols of various actuation mechanisms for manual control of a direction
valve (a), and a hand-actuated, 3/2 directional control valve (b).

Figure 5.13 Symbols of various actuation mechanisms for the mechanical control of a direc-
tional control valve.

Orifice
Exhaust Exhaust
seals
Solenoid
enoid
Plunger

Spring

Air From cylinder


c
cy
Air
inlett To cylinder
cyli
y nder inlet

(a) 3/2 Valve energized (b) 3/2 Valve non-energized

Figure 5.14 A 3/2 directional control valve with electrical actuation in two operation states
(a) energized and (b) non-energized.

is indicated, that carries a solenoid and a corresponding plunger. The application of electrical volt-
age on the solenoid creates a magnetic field that attracts the plunger inside the valve toward the
upper position, thus blocking the flow of the pressurized air toward the exhaust point. The pres-
surized air is applied in the air inlet and is directed toward the only potential exit to the cylinder,
since the electromagnetic field of the solenoid is still keeping the plunger in the upper position
inside the valve. Thus, if in the air exit a single-acting cylinder has been connected, this opera-
tion would cause the extension of the cylinder’s rod. If the voltage of the solenoid is interrupted,
the plunger returns to its initial bottom position due to the return spring and thus blocks the
flow of the pressurized air toward the exhaust and exit points. In this situation, the pressurized
air exists in the chamber of the single-acting cylinder, and can find an exit (relief) through the
exhaust point, which means that the single-acting cylinder will return to its normal position. As
an overview of the described operation, the application of a voltage on the valve’s solenoid moves
Elements of Electro-Pneumatic Components ◾ 173

the piston rod in one direction, while the termination of the voltage application causes the return
of the piston rod to its rest position. As has been mentioned, the return of the rod to its normal
position is achieved by a return spring; however, this could also be accomplished by the utilization
of a second solenoid that could actuate in the opposite direction. In Figure 5.15a, the symbol of
an electrically actuated three-way, two-position valve with return spring is presented, while Figure
5.15b shows the same valve with two solenoids and without return spring. The direction valves
with three switching positions and electrical actuation are carrying two solenoids, one in each side
of the valve. Due to the numerous types of valves, solenoids, and their corresponding function-
alities, a generalized form of symbolic representation has been adopted for the electro-pneumatic
valves, which is as follows:

◾◾ In a valve with two switching positions, the “operation” that is indicated by the rectangle
located next to the spring symbol, takes place when the valve is not energized.
◾◾ In a valve with three switching positions, the “operation” of the central rectangle takes place
when the valve is not energized.
◾◾ When a solenoid is energized (in any kind of a valve), then the operation of the rectangle that
is next to the solenoid takes place.

The previous rules, as well as the operation of two classical directional valves, are presented in
Figure 5.16.

Return Double solenoid


Solenoid spring actuation

(a) (b)

Figure 5.15 Symbol of a 3/2 direction control valve with the electrical actuation of one sole-
noid and return spring (a), and with two solenoids and a return spring (b).

Non-energized Energized

(a)

s1 s2 s1 s2 s1 s2

Solenoid S1 energized Non-energized Solenoid S2 energized

(b)

Figure 5.16 Operation of two basic direction control valves: (a) a 3/2 direction valve, (b) a 4/3
directional valve, and the air flow paths in energized or non-energized state.
174 ◾ Introduction to Industrial Automation

5.7.5 Pneumatic Actuation of a Valve


As mentioned in Section 5.1, a pneumatic automation system can be fully pneumatic. In this case,
the pneumatic equivalents of the electrical buttons, the limit switches, the selecting switches, etc., as
well as the logical units (based on Boolean algebra) such as AND, OR, etc., exist, thus allowing the
implementation of simple or complex functions with the physical magnitude to be pressurized air
and not an electrical current. This enables the synthesis of a complete pneumatic industrial automa-
tion system, without the utilization of electrical components.
The pressurized air, the flow direction of which is being controlled by a valve, can be uti-
lized also for valve actuation. In Figure 5.17a, a pure pneumatic circuit for the extension and
retraction of a single-acting cylinder is presented. Furthermore, in Figure 5.17b the automatic
execution of a tank filling with only pneumatic devices is indicated. In all these cases, either
in a full pneumatic or electro-pneumatic circuit, the logic that describes the operation of the
automation is exactly the same. The only differing factor is the physical variable, pressurized
air, or electrical current.

Pressure signal
(air pilot)

No pressure signal

(a)

(b)

Figure 5.17 Pure pneumatic actuation of a valve and a corresponding application: (a) Pneumatic
actuation of a 3/2 valve by another button-type 3/2 valve and (b) pure pneumatic circuit for
tank automatic filling.
Elements of Electro-Pneumatic Components ◾ 175

5.8 Circuits for Electro-Pneumatic Automation


In every electro-pneumatic application of automation, initially the pneumatic operation diagram
should be designed. This diagram includes the pneumatic circuit for the flow of the pressurized air,
pneumatic cylinders, valves, control devices, and the corresponding connection of all of them. In
general, the pneumatic circuit expresses the logical flow of the pressurized air, as well as the logic
behind the operation of the pneumatic cylinders, due to the action of the pressurized air.
If the pneumatic automation circuit also includes valves with solenoids, then a separate electrical
automation circuit should also be designed for proper completion of the industrial automation, a
circuit that will solely control the operation of the electro-valves. For example, in Figure 5.18 a simple
pneumatic and electrical circuit is presented for controlling the operation of a single-acting cylinder
with an automatic return. When the cylinder is connected to the pressurized air source, the piston
rod is extracted, while when the cylinder is connected with the air exhaust line, the rod returns to
its initial position due to the return spring. The electromagnetic valve supplies pressurized air to the
cylinder when it is energized, while it connects the cylinder to the exhaust line when it is not ener-
gized. This operation is presented in the pneumatic circuit of Figure 5.18a. In this case, the extension
of the piston rod activates a limit switch, whose contact should be utilized for the automatic return of
the piston to its initial position. The implementation solution for this problem is presented in Figure
5.18b, which consists of the electrical circuit of the pneumatic automation. If the extension of the
piston rod lasts a long time, this movement can be interrupted through a STOP button.
In Figure 5.19, the pneumatic and electrical automation circuit for the control of a lifting ramp
of light objects is presented. We would also like the ramp to stop in any position of this lifting
stroke. For this automation problem, the pneumatic equipment contains, as shown in Figure 5.19a,
a double-acting cylinder, a four-way, three-position electro-valve, and an air compressor with the
pressurized air tank. In Figure 5.19b, the corresponding electrical circuit of the automation is also
presented. Except from the classical START-STOP operation of the air compressor, the rest of the

Limit
switch

Coil a

(a) Pneumatic components and limit switch

R Limit STOP START N


d
switch

d a

(b) Automation circuit

Figure 5.18 A single-acting cylinder with automatic return pneumatic circuit and components (a),
and an electric automation circuit (b).
176 ◾ Introduction to Industrial Automation

Storage

Flow control valve

a b

Air compressor
(a) Pneumatic circuit and equipment

R STOP START N
C
Air
compressor
C
Up
C d2 d1

Down
d1 d2

d1 a

d2 b

(b) Automation circuit

Figure 5.19 A light-object elevator with a double-acting cylinder, manual control of its piston
position pneumatic circuit and components (a), and its automation circuit (b).

automation circuit is equivalent to the one for the operation of an electric motor with a reverse
option. Instead of the two relays for changing the phase connections, in this case, we have the two
equivalent solenoids of the electro-valve that also should never be activated at the same time.
When an electro-pneumatic automation includes a large number (greater than three) of cyl-
inders, as well as the desired operation (which involves a complex combination of extension and
Elements of Electro-Pneumatic Components ◾ 177

retraction of the piston rods), then the description of the automation (especially the steps that
every cylinder should execute for completing the overall automation task) is problematic. Thus, in
these cases, it is suggested to utilize diagrams that can represent the movements for every cylinder
in a simplified way, including possible combinations for combined tasks. In general, there exist
two types of such diagrams: the diagram of “position-steps” and the diagram “position-time”. The
word “position” is referring to the position that the piston has (in or out), the word “steps” is refer-
ring to the application steps that concerns the operation of the cylinders, while the word “time” is
referring to the time that a step lasts in the application. In the following example, the usefulness of
these diagrams in complex industrial automations is presented, as well as the need for using them
together with the pneumatic and electric circuit.
In Figure 5.20, a change in the translation level of goods is achieved from the conveyor belt M A
to the conveyor belt MB, with the help of the corresponding cylinders A and B. For the proper opera-
tion of this process, the A cylinder should be retained in extension, while the piston B will push the
object toward the conveyor belt MB. In a different case, the object will most likely either fall down
or collapse by the piston and the fixed parts of the conveyor belt MB. This condition can be very
easily expressed during the design stage of the automation with the diagram “position-steps” (shown
in Figure 5.21) and more especially from Step 2 to Step 3. All the desired movements of the two
cylinders that are described in this diagram in a very simple way also helps the design of the overall
automation circuit. Another important desire in this automation is the fact that the conveyor belt
M A should not send objects while the piston A is still in extension, because the object will fall to

Cylinder B

3
1

MB
2

MA

Cylinder A

Figure 5.20 A two-cylinder arrangement for level changing in a production line.

Up
Cylinder A
Down

Out
Cylinder B
In Steps
1 2 3 4 5=1

Figure 5.21 Position-step diagram of the two-cylinder arrangement shown in Figure 5.20.
178 ◾ Introduction to Industrial Automation

Up
Cylinder A
Down t

Out
Cylinder B
In t

Figure 5.22 Position-time diagram of the two-cylinder arrangement shown in Figure 5.20.

the ground. However, the operation of the M A is not included in the diagram “position-steps” (it is
relevant only for cylinders) and thus this condition is not expressed elsewhere in this diagram.
In many applications, even if the extension of a cylinder lasts for quite a long time (a few
seconds), its retraction should be faster in order to keep production cycles to a minimum. As an
example, the extension of cylinder B in Figure 5.20 should last for a sufficient time, since the
objects might be heavy and fragile. Thus the piston rod, in this case, should move at quite a slow
speed, pushing the object gently to the conveyor belt MB. However, during the return of the
piston, a fast movement could be achieved, since there is no reason for delaying this return. In
the case that this difference in the time execution of the various tasks makes sense for the proper
implementation of an industrial automation, the diagram’s “position-time” can be utilized, such
as the one presented in Figure 5.22, related to the application in Figure 5.20.

5.9 Electro-Pneumatic Applications
In Section 5.9, we present a set of more complex electro-pneumatic automations where initially
the problem will be described, followed by the desired operation, the diagram “position-steps” if
needed, the pneumatic circuit, and the electric automation circuit.

5.9.1 Industrial Automation of an Arrangement


for Separating Similar Balls
In Figure 5.23, a simple mechanism for separating similar balls coming from a feeder is presented.
A double-acting cylinder is moving the carrier of the balls left and right, at such a speed that in
each translation, extension, or retraction, the mechanism receives a ball and then, due to gravity,
releases it in the corresponding inlets 1 and 2. It should also be noted that the regulation of the
speed for this translation mechanism is performed by a special valve in the pneumatic circuit.
The overall installation is set in operation or terminated by a manual START-STOP command.
The proximity switches detect the pass of a ball in the corresponding inlets. The required pneumatic
and electric circuits are presented in Figure 5.23a and b, respectively. In the rest state of operation,
the valve is de-energized and the cylinder is fully extended. By pressing the START button, after
checking that balls exist in the feeder, the automation starts normally and the overall setup will be
able to separate the balls. If there are no balls in the supply chain, the piston rod will be translated to
the right, the cylinder will be retracted and it will remain in this state, even if balls are supplied later.
In this case, for repeating the separation procedure, the stop button should be pressed first, and then
the START button again. It is obvious that a better design of the overall automation can be achieved
in order to perform the same operations in a more autonomous approach.
Elements of Electro-Pneumatic Components ◾ 179

Ball feeder

Ball carrier

PS1 PS2
Proximity
1
switch
2 Coil a

(a) Ball separation feeder and pneumatic circuit

R STOP START N
d

d C
PS2 PS1

C a

(b) Automation circuit

Figure 5.23 A ball separation arrangement with pneumatic circuit and components (a), and an
automation circuit (b).

5.9.2 Industrial Automation of an Object Stamping Machine


In Figure 5.24a, an object stamping machine is presented that it is operating with the help of three
pneumatic cylinders. The objects are received from the supply feeder, with the help of gravity and
without a special mechanism. From the cylinders A, B, and C, A places and tightens the object
at the stamping position. The B cylinder performs the stamping, while the C cylinder pushes the
object onto a conveyor belt. A number of limit switches are necessary in order to detect the vari-
ous movements of cylinders, particularly limit switches {b, c} for the A cylinder, {d, e} for the B
cylinder, and {f, g} for the C cylinder. Furthermore, the limit switch “a” detects the existence of
an object for stamping. In general, it is not necessary that every single- or double-action cylinder
be accompanied by the two sensors. However, the utilization of two sensors per cylinder simplifies
the implementation of the sequential logic of the physical process. In any similar application, we
have to initially select the types of cylinders and valves, as well as design the circuit of the pres-
surized air. These selections are already completed in Figure 5.24a. All the cylinders were selected
as double actuation types. Alternatively, cylinders B and C could be of a single actuation type.
180 ◾ Introduction to Industrial Automation

Cylinder B

Cylinder C
d
b e c
g
f
Cylinder A a

Coil A Coil B Coil C

(a) Stamping machine and pneumatic circuit of three cylinders

C
Steps
1 2 3 4 5 6 7=1

(b) Displacement-step diagram of three cylinders

Figure 5.24 An objects stamping machine with three cylinders, a pneumatic circuit, and com-
ponents (a); a position-step diagram with three cylinders (b).

The valves were selected to be of a four-way, two-position type, each with one solenoid. Thus, the
automation circuit will be simplified (fewer solenoids, three instead of six, in the case of four-way,
three-position valves).
The automation circuit of the stamping machine must be designed in order to obtain the fol-
lowing functionalities:

1. To fulfill the diagram of positions or steps shown in Figure 5.24b.


2. The overall operation of the machine must be initiated by pressing a START button and
continue without interruption
3. The operation of the machine should stop if a STOP button is pressed from the operator, or
if the objects for stamping are over in the feeder. In both cases, if the STOP function takes
place in the middle of the stamping cycle, the stamping operation should be integrated, and
then the machine should be returned to its rest position.

According to the previous considerations, the specific application automation circuit is dis-
played in Figure 5.25. In cases of complicated applications with multiple cylinders and a large
Elements of Electro-Pneumatic Components ◾ 181

R START STOP N
D

a d C g A
D

A B

A Coil A

e C Β

c C B Coil B

d b C f C

C
Coil C

Figure 5.25 Automation circuit of a stamping machine.

number of limit switches, the utilization of a position-step diagram (where the position of the
limit switches is also indicated with respect to the position of the piston rods) simplifies signifi-
cantly the overall design of the automation circuit without logic errors.

5.9.3 Industrial Automation of a Conveyor


Arrangement for Objects Shorting
In Figure 5.26, the concept of a very common industrial application is presented, which is the
problem of objects shorting and storing that are translated on a conveyor belt. In this figure,
the central conveyor belt translates the objects, while the double cylinder A-B (multi-position
cylinder) is able to separate the objects that have reached the conveyor belt’s junction into three
different directions. The selection of the object’s type can be achieved in various ways, depend-
ing on the overall application, e.g., based on color, size, weight, etc. In this specific example, we
assume that the type of object has its unique code that can be recognized from the sensors “a”
and “b”. The combination of the energized sensors defines the route of the objects, based on the
following logic:

◾◾ A (ON) and B (OFF) = object in conveyor belt 1


◾◾ A (ON) and B (ON) = object in conveyor belt 2
◾◾ A (OFF) and B (ON) = object in conveyor belt 3
182 ◾ Introduction to Industrial Automation

Cylinder A Coil A1 Coil A2

Cylinder B
1 Coil B1 Coil B2

Coil C1 Coil C2
2

a
d
b

Cylinder C
3
e

Figure 5.26 An object’s classification arrangement and pneumatic circuit with three cylinders.

For the double multi-position cylinder A-B, we also define that,

Position of the
Cylinder A Cylinder B
movable conveyor part

1 In In

2 In Out

3 Out Out

while the cylinder C stops by tightening or inserting obstacles in the continuation of the objects’
translation, during the time that the routing of each object lasts. The sensors {c, d, e} are placed
correspondingly in the three conveyor belts {1, 2, 3} for detecting the pass of an object and in order
to initiate the release from C cylinder of the next one. The individual operational specifications
are as follows:

1. When an object reaches the code reading point, the piston C is extended in order to stop the
translation of the incoming objects.
2. At the same time as (1), the cylinders A and B are taking the positions corresponding to the
recognized code.
Elements of Electro-Pneumatic Components ◾ 183

R STOP START N
d0 1' d4 2'
b

d0 d0
d4
Coil B1

d1
a d5
a

d1 b
Coil A2
d5
Coil C1
a b d2
d6
c
d2
Coil A1
d
a b d3
e

d3 d6
Coil B2 Coil C2

1 2

Figure 5.27 Automation circuit of the object’s classification arrangement shown in Figure 5.26.

3. When an object passes from the corresponding sensor in one of the three final conveyor
belts, this sensor signal is utilized for energizing the retraction of the C cylinder, in order to
allow the feeding of new objects, and thus a new cycle starts again.

For the pneumatic circuit, four-way, two-position valves have been selected, each with two
operational solenoids or coils, one for each of the switching states. The most common type of valve
is with one coil and return spring; however, we are selecting two coils in order to demonstrate how
easily an industrial automation circuit becomes quite complex. In Figure 5.27, the automation
circuit is presented, which is set into operation by classical START-STOP push buttons.

Problems
5.1. Design an arrangement for the separation of similar objects in two parallel transportation
lines as shown in the figure. The objects’ separation is based on their simple alternative place-
ment through the moving part of the conveyor. In particular, select and design:
a. The required electro-pneumatic equipment (cylinder, directional valve, sensors, etc.)
b. The required pneumatic circuit
c. The required electric automation circuit
Note: The frequency of objects’ arrival is such that one object can arrive in the separation point
before the previous one reaches one of the two parallel conveyors. This means that in such a case,
the motor M must stop as long as needed.
184 ◾ Introduction to Industrial Automation

5.2. In a process station, a cylinder pushes objects (one object at a time) from position 1 to positions
2, 3, and 4, in order to undergo the corresponding treatment. After the end of the treatment, the
cylinder returns to its initial position. You are prompted to resolve only this part of the automa-
tion relating to the movement of the cylinder, according to the following specifications:
a. The piston rod slides one place at each press of the button b.
b. The sliding is sequential, cyclic, and non-reversible and therefore from the rest position 1,

with 1st pressing of the slides to ‘2’


the button ‘b’ the position
piston rod

-//- 2nd -//- -//- ‘3’

-//- 3rd -//- -//- ‘4’

-//- 4th -//- returns back to ‘1’

-//- 5th -//- slides to ‘2’ and so on.

c. The position sensing of the piston rod is achieved via the magnet M situated inside the
cylinder and the reed switches mounted outside of the cylinder. When the magnet is in
front of a reed switch, its NO contact closes.
Select a suitable pneumatic directional valve and design the required automation circuit.
Reed switch
b
Magnet

M
1 2 3 4

5.3. The figure shows an assembly station. The devices to be assembled are forwarded to technicians
through the conveyor belt M and the pneumatic cylinders C1, C2, and C3. On the side of the
first (second, third) technician there is the push-button X (Y, Z), in which the technician can
request a device, when he has finished the assembly of the previous one. Then, the conveyor
operates until a device comes in front of sensor a (b, c). Subsequently, the conveyor stops and
the corresponding cylinder is extended. The cylinder pushes the device to the work location
until the point 1 (2, 3) where a suitable proximity switch triggers the retraction of the cylinder.
Elements of Electro-Pneumatic Components ◾ 185

Then the system is on stand-by to accept a new request by another technician for the forwarding
of another device. Design the required automation circuit using the state diagram method.

C1 C2 C3

a M b c

1 2 3

X Y Z

Note: In possible questions such as “How would the automation circuit have to act in a case where
a new device request is triggered while simultaneously another one is forwarded?” or any similar
one, state whichever answer you consider to be technically correct in order for the station to pres-
ent maximum effectiveness.
5.4. Objects differing in height are separated in the conveyor system shown in the figure. There are
three kinds of objects, two of which will be forwarded to conveyors M2 and M3 with the help
of cylinders C1 and C2, while the third one will continue to the main conveyor M1. Each cylin-
der forwards objects of only one kind. The number and order of arrival of objects are random.
The desired mode of operation of the system must satisfy the following specifications:
a. The conveyor system takes effect in standby mode and hence the automation circuit is in
operation through a two-position rotary switch RS0-1.
b. Then, the three conveyors M1, M2, and M3 start to operate continuously, but conveyor
M1 must stop every time a cylinder pushes an object or retracts.
c. Define the placement height of the photoelectric switches PEC1 and PEC2 depending
on which object you want to detect. In other words, select which cylinder will forward
which object.
After selecting the required additive electro-pneumatic equipment, such as the kind of
cylinders, directional valves, and additive sensors for detecting the motion of piston rods,
design the electric automation circuit.
PEC2

C2
h2

PEC1

C1
h1

M3

M2

M1
186 ◾ Introduction to Industrial Automation

5.5. Objects are moving in opposite directions from two conveyor belts, M1 and M2, toward a
central point where a cylinder pushes them onto the conveyor belt M3. In your opinion,
define the correct mode of operation and select the kind and placement of the required
sensors. The most basic issue you will have to determine is the behavior of the system when
two objects arrive simultaneously in front of cylinder. After assessing all the conditions of
operation, design the required automation circuit.

M3

M1 M2

Cylinder

5.6. Non-symmetrical devices are transported on a conveyor belt system where their direction of
motion and orientation change through a rotating table. The two cylinders C1 and C2 push
in and push out devices on the rotating table correspondingly. The conveyor system starts
to operate through a two-position rotary switch RS0-1 and the two conveyor belts M1 and
M2 start to operate simultaneously. When a device reaches in front of proximity switch PS1,
then C1, M0, and C2 must perform the movements defined in the position-step diagram of
the figure. The proximity switch PS2 is energized in each half-rotation of the table M0. The
frequency of the device’s arrival is such that a device has been transferred from M1 to M2
before another one reaches in front of PS1.
After selecting the required electro-pneumatic equipment such as kind of cylinders,
directional valves and additive sensors for detecting the motion of piston rods, design the
electric automation circuit.
C1

PS1
M1

PS2

M2
C2
M0
Elements of Electro-Pneumatic Components ◾ 187

Out
Cylinder C1
In

M0

PS2

Out
Cylinder C2
In Steps
1 2 3 4 5 6=1

5.7. The double-acting cylinder in the figure has a stroke equal to the distance between limit
switches a and c. With the help of the limit switch b, it is desired an intermediate position of
the piston rod. Design the pneumatic and automation circuits so that the piston rod follows
the position-step diagram.

Out

Half out

a b c In Steps
Limit switches 1 2 3 4 5 6 7=1

5.8. The figure shows a conveyor setup for the separation of similar objects into two parallel
transportation lines, based on the simple alternative placement of objects through the
moving part of the conveyor. The cylinder A pushes objects on the movable part of the
conveyor, the placement of which is altered by cylinder B. When the sensor S1 or S2 detects
the passing of an object, then the change of the movable part placement can be performed
according to the position-step diagram. The operation of the conveyor system starts with
an instant START signal from a button. Similarly, the operation stops with an instant
STOP signal from a button but only if the procedure is in the pushing phase (cylinder A in
the extension stage). After selecting the required electro-pneumatic equipment (cylinders
kind, directional valves, sensors, etc.), design the electric automation circuit by applying
the state diagram method.
188 ◾ Introduction to Industrial Automation

S2

Start S1 S2
S1
Out
Α In
Out
Β Β
In

5.9. A simple robotic mechanism consists of two cylinders C1 and C2 transferring objects on
a horizontal surface from position P1 to position P3 through position P2 according to the
position-step diagram. The proximity switch PS detects the presence of an object in position
P1 and then the transportation of the object starts. The robotic mechanism starts to oper-
ate through a two-position rotary switch RS0-1 and transfers objects continuously as long as
they are placed in position P1. The introduction of objects occurs in position P1 and they
are exported in position P3 manually. If the switch RS0-1 opens in the middle of an object
transfer phase, the last object has to be integrated and then to be stopped. After selecting the
required additional electro-pneumatic equipment (cylinders kind, directional valves, sen-
sors, etc.), design the electric automation circuit by applying the state diagram method in
order for the position-step diagram to be realized iteratively.

C1 C2

P2
P1 P2 C1 P1
P3
PS C2 P2
P3 1 2 3 4 5

5.10. Two double-acting cylinders C1 and C2 are arranged opposite each other as shown in part
(a) of the figure, and it is desired to perform a collaborative movement according to the
position-step diagram shown in part (b) and to transfer an object between the two piston
rods. At the rest state, the object is in the terminal left position. By pressing a button (move)
instantly, the object comes to the terminal right position and remains there. By pressing
the button move again, the object returns to the terminal left position, and so on. The
pneumatic circuit is shown in part (c) of the figure, where S1 and S2 are the solenoids of the
directional valves. The proximity sensors a1, a 2, b1, and b2 detect the terminal positions of
the two cylinders. Design the required electric automation circuit.
Elements of Electro-Pneumatic Components ◾ 189

C1 C2

a1 a2 b2 b1
(a)
a2
Out C2
C1
C1
a1
In

S1 S2
Out
C2 b2
In
b1
(b) (c)

5.11. A painting station includes two conveyor belts, the cylinder A for pushing objects on the
painting table, the painting head B which operates with pressurized air, and the cylinder
C for removing the painted objects. The conveyor belts operate continuously and transfer
objects to and from the painting station. Therefore, they don’t affect the automation logic.
If an object is detected along the dashed line S from a corresponding proximity switch,
the automation system must realize the position-step diagram shown in the figure. After
selecting the required additional electro-pneumatic equipment (cylinders kind, directional
valves, sensors, etc.), design the electric automation circuit.

Paint
Pressurized
spray gun
air flow
B

C
Α

Β
S
C
Α

5.12. The figure shows an object stamping station which is switched in/out using a standby opera-
tion through two corresponding buttons. The standby operation state is indicated in the
control panel and means that the station can automatically stamp an object if it is placed in
position 1. In particular, if the station is in standby mode and an object is placed in position
1 (signal S1), then the object is transferred to position 2 (signal S2) through the operation of
the conveyor belt M. Then, the extraction of the cylinder is energized, the stamping is real-
ized (signal S5), and subsequently the retraction of the cylinder begins. Just as the piston rod
returns (signal S4), the object is transferred to position 3 (signal S3) and remains there until
a technician removes it. Suppose that only one object exists at the station each time. After
190 ◾ Introduction to Industrial Automation

selecting the suitable directional valve for the double-acting cylinder, design the required
electric automation circuit.

Standby indication
S4
Standby in button
Standby out button S5

Position 1 Position 3
Position 2

M S1 S2 S3

Conveyor belt

5.13. A simple robotic mechanism operates with the assistance of two double-acting cylinders C1
and C2. The extension of cylinder C1 causes the rotation of the robotic arm by 180o from the
right position P1 to the left position P2 while transferring an object. The extension of cylinder
C2 causes the closing of the griper and hence the tightening of an object. The sufficient tight-
ening of the object is detected by the pressure sensor PR and only then can the arm rotation
start. The two terminal positions of the arm are detected by the corresponding proximity
switches PS1 and PS2. The robotic mechanism starts to operate through a two-position rotary
switch RS0-1 and transfers objects continuously, as long as they are placed into the griper in
position P1. The import and export of objects in the griper is done automatically by another
machine and hence it will ignore what the robotic mechanism does if there is no object. After
selecting the required additional electro-pneumatic equipment (directional control valves,
sensors, etc.), design the electric automation circuit applying the state diagram method, in
order for the position-step diagram of the figure to be realized iteratively.
P2 P1
C2

PR
PS1 PS2

Position P2
C1
Position P1
Griper closed
C2
C1 Griper opened
1 2 3 4

5.14. The figure shows a pneumatic set-up for bonding two parts of a final product. The cylinder
C1, after its extension, applies the required liquid epoxy glue during the retraction phase
with the simultaneous operation of the small glue pump M. Then, the cylinder C2 com-
presses the two pieces in order to be bonded. A technician puts two pieces for bonding
that are detected by the corresponding proximity switches PS1 and PS2. With this fact as
a condition, the bonding procedure can be triggered by pressing a push-button instantly
and then the position-step diagram of actions must take effect. Note that when the cylinder
C2 pushes the left piece, the switch PS1 stops to be energized. After selecting the required
additional electro-pneumatic equipment (cylinders kind, directional control valves, sensors,
etc.), design the electric automation circuit applying the state diagram method.
Elements of Electro-Pneumatic Components ◾ 191

PS1 PS2
Out
C1 In
ON
C2 Μ OFF
Μ C2
C1 1 2 3 4 5

5.15. A machine M1 processes objects which arrive via a conveyor belt M2. The last enters within
the machine M1 and exits on the other side, while the processing is performed in motion.
Sometimes the processing of an object fails. In such a case, the faulty object is detected
by the specific photoelectric window PE and then the following actions must take effect:
a. The conveyor belt M2 stops, and the rejected object is transferred from the point K to the
point L through the sequential activation of the three cylinders C1, C2, and C3 in order
to be re-processed according to the position-step diagram of the figure.
b. With the rejected object at point L, the conveyor belt starts to operate again. Suppose
that there is no possibility for collision with another non-processed object.
c. The machine M1 continues to operate during restoration of the rejected object in order
for the raw materials to be at a suitable temperature.
The whole system starts by an instant signal from the START button. Then, a time period
of 80 sec must follow for warming-up the machine M1 (power supply of existing resistors).
At end of this period, M1 and M2 operate automatically. The system stops after an instant
signal from a STOP button, but only if there is no evolution of a faulty object restoration.
After selecting the required additional electro-pneumatic equipment (cylinders kind,
directional control valves, sensors, etc.), design the electric automation circuit applying the
state diagram method.
Μ2

C3
L

Μ1
PE
Out
C1 In
C1
C2
Κ C3 On
Off
Μ2
PE 1 2 3 4

Μ2
= Good object

C2 = Rejected object
http://taylorandfrancis.com
Chapter 6

Basic Operating
Principles of PLCs

6.1 Introduction to PLCs
Programmable logic controllers (PLCs) initially appeared in the industry during the 1960s and
had a completely different form than those implemented today, since they were built out of logical
components that only replaced the operation of the auxiliary relays. Even primitive PLCs were
very reliable for a long time when compared to classical electromechanical relays, demanding
much less space in the overall automation. Subsequently, their evolution passed through multiple
stages, while the most important ones were inclusion of digital components for timing, synchroni-
zation and counting, and use of microprocessors. The microprocessors had already started to be a
fundamental part of the personal computers (PCs). Nowadays, PLCs can be either simple or com-
plex, come in a variety of sizes, and are equipped with a wide variety of extensions and interfaces
that fulfill all the type of needs found at factory level, including the need to communicate with
other devices and computers. It should also be mentioned that there are multiple programming
languages for tuning the behavior of PLCs so that they can match the different programming
skills of the end users. All these issues will be analytically covered in this chapter.
Every PLC, independently of its type and size, can be characterized as a digital device with a
microcontroller and a programmable memory that can store and execute user instructions express-
ing Boolean logic, sequential logic, timing, counting, and mathematical processing, in order to
control the operation of a complex machine or an overall industrial process through the utilization
of digital and/or analog inputs and outputs (I/Os).
PLCs have the basic structure of a personal computer, with two significant differences. The
first is related to the available hardware for the I/Os of the PLC, while the second is related to the
microcontroller operation manner and its interaction with the rest of the electronic components
of the PLC. A PC’s main objective is to communicate with the end user for the successful execu-
tion of various arithmetic and algebraic calculations, graphical editing and representation, com-
munication tasks, etc. Thus, in these cases, the end user provides the corresponding commands
through a proper interface, such as a keyboard or mouse, while the outcome of these actions is
either displayed on the monitor of the PC or printed. The PLC’s main task is to communicate with

193
194 ◾ Introduction to Industrial Automation

the industrial environment and, more specifically, with either the input devices that are provid-
ing the sensorial measurements or with the actuators that interact with the process. For example,
typical input devices are sensors, buttons, and switches, while typical output devices are power
relays, valve coils, and indicating lights. Since these devices are operating at a different power level
than the one that PLCs are usually operating at, it is necessary for PLCs to have the proper I/O
hardware to adjust and adapt the power levels accordingly. In Figure 6.1 the basic parts of a PLC
are presented: the CPU, the I/O modules, the RAM, and the power supply.
A programming device is a peripheral device that is used only for the programming stage of
PLCs, and is not necessary for its operation, therefore it is removed afterwards. In some specific
types of small PLCs, the programming device is embedded in its main body. In general, the
programming device may be either a specially manufactured digital device (usually portable and
specific to a PLC) or a classical PC equipped with the software that the PLC’s manufacturer is
developing for PLC programming. Before proceeding in analyzing the operation and the interac-
tion of the PLC components, it is very important to define which hardware devices and tasks of
the classical industrial automation the PLC is replacing. As has been mentioned in Chapters 2
through 4, a classical industrial automation system needs the following:

1. Auxiliary devices (such as time relays, hour meters, counters, auxiliary relays, etc.) that constitute
the basic electrical components of the automation and are mounted in an electrical enclosure.
2. Design of the overall automation electrical circuit that has to achieve the desired operation
of the controlled process.
3. Wiring that is needed inside the electrical enclosure for connecting the auxiliary devices
between them and also with the I/O devices existing in the enclosure.
4. Wiring that is needed for connecting the electrical enclosure with the I/O devices as a
whole, existing far from the enclosure. Input devices may be photoelectric switches, proxim-
ity switches, selector switches, etc., while output devices may be motors, electrovalve coils,
other actuators, indication lights, etc.

As indicated in Figure 6.2, the first three cases are now embedded in the operation and pro-
gramming of the PLC, while the last case remains the same, as in classical industrial automations.

Programming
device

PLC

220 V Digital
CPU output
Power 5V Industrial environment
module
supply complex machine
Digital 5V or process
input
Memory 220 V
module

CPU = central processing unit

Figure 6.1 Internal structure of a programmable logic controller.


Basic Operating Principles of PLCs ◾ 195

More analytically, a PLC contains several dozens of all the necessary classical industrial automa-
tion components (such as auxiliary relays, timers, counters, etc.) due to its digital form. Thus, the
implementation of an industrial automation system does not require the purchase and integration
of any kind of auxiliary devices. The design of the classical automation circuit, in most cases, is
replaced by direct PLC programming. The effectiveness of the overall operation is dependent on
the overall complexity of the code (software) for industrial automation, versus the complexity of
the wiring needed to embed the automation logic in the electrical circuits. Thus, the role of a PLC
nowadays is to transform the hardwiring into flexible software, and to serve as an expert tool for
the industrial engineer to solve hard and demanding problems. At this point is should also be
highlighted that the PLC is not replacing all the components of an industrial automation, since
the power units still remain unchanged (e.g., power relays). As illustrated in Figure 6.2, all the
corresponding I/Os remain unchanged, and are used to interact through the software that is run-
ning in the PLC.
In Sections 6.3 through 6.8 we will analyze the characteristics of all the components that con-
struct a functional PLC in detail; however, for the proper understanding of this concept, we should
initially emphasize the fundamental operational differences between PLCs and PCs. As has already
been mentioned, a PLC contains a microprocessor that executes all the internal functionalities of
the needed automation, as indicated in Figures 6.1 and 6.2. Furthermore, the processor is respon-
sible for the execution of the user’s programmed instructions; the utilization of the memory that
stores the automation programs; as well as various types of data that concern the operation of the
internal digital components; such as timers, counters, input components that transform high power
signals into low power ones that are compatible with the digital logic of the PLC for their usage in
the automation program, and output components that are transforming the low power commands
from the PLC to the automation devices to proper and compatible high power signals. On the PLC
side, there is a specific sequence in which the previous actions are executed. This sequence is cyclic
and continuously repeated during the operation of the PLC in the RUN mode.
In Figure 6.3, the cyclic operation of the PLC, as well as the corresponding sequential actions
in a more simplified approach, are depicted. Let’s consider the fundamental circuit presented in
Figure 6.3a. The corresponding logic is simple, and indicates that in the case that the rotary switch
RS is closed, then the relay C is energized. If we want to implement the logic of this simple circuit
in a PLC, the previous circuit is translated in proper software that it is stored in a specific place in
the memory. Regarding the memory itself, there are two additional memory units, where one is
dedicated to the storage of the output state and is called “Output Image Table” and the second is
dedicated to the storage of the input states and is called “Input Image Table”. Since the switch RS
is an input device and is connected with the PLC through the input component of the PLC, let’s
assume the third input. Power relay C is an output device and is connected to the output compo-
nent of the PLC, so let’s assume the fourth output. The components of the program , are
instructions that are stored in the PLC memory and refer to the corresponding variables that in
our case are input 3 and output 4. The switch RS in the beginning is closed. Let’s assume that we
would like the PLC to be placed in RUN mode, and that we would like to monitor all the initial
steps, which the microprocessor executes based on the corresponding operating system. The input
unit, controlled by the microprocessor, is sampling all the inputs, including input 3. This means
that the PLC is detecting if there is a voltage or not in every input. Since the switch RS is closed,
there is voltage in input 3, as indicated in Figure 6.3b. This voltage subsequently is converted
and properly adjusted from the input component in a low power TTL signal. The existence of
this TTL signal is stored as a logical 1 in the memory of the input image table and at the posi-
tion that corresponds to the third input. In the inputs where there is no application of voltage, a
196 ◾ Introduction to Industrial Automation

STOP dT
Conventional automation

START

C S1
d3 d2

Wiring
d2
C
d1
Sensor
S1
dT d1 h2
C h1 V1
N

Wiring=programming

STOP START PROGRAM


Programmer

C
C
PLC based automation

R
STOP START
The input devices are
S1
not replaced by PLC
PLC N

Power Memory 220 V Output


supply CPU (dT, d1, d2, module
d3, S1, C) 5V
5V
Input
module 220 V
R
The output devices are C h1 h2 V1
not replaced by PLC N

Figure 6.2 Conventional automation in comparison to programmable automation.

logical “0” is stored. After sampling of all the inputs, the microprocessor starts with the execution
of the program. The instruction input 3, by definition means that the point A is at a logical
“1” if input 3 is activated, and at a logical “0” if it is deactivated. Thus, for the microprocessor to
execute this instruction, it is necessary to sample the status of input 3 through the input image
table. Subsequently, the microprocessor executes the following in the list instruction output 4.
By definition, this instruction also means that if point A is in logical “1” then output 4 should be
energized, while if it is in a logical “0”, it should be deactivated. The activation of an output or not,
Basic Operating Principles of PLCs ◾ 197

RS
R Input 3
Input
device
Inputs Scanning
module of inputs
N

Input
image
R table

RS Output 4
A Program
execution
Input 3 User
Conversion to
program program

N Output
image
table
(a)

Updating
of outputs
C
R
Output 4
Output
Outputs device
module N
(c)
=Logic “0” =Logic “1”
(b)

Figure 6.3 Cyclic operation (or scanning) of a PLC means continuous and repeated reading of
inputs, user program execution, and updating of outputs: conventional circuit (a), I/O and user
program memory in relation to I/O cards (b), and scanning cycle (c).

as a direct result of a command execution, means the corresponding writing of a logical “1” or “0”
at the output image table. In our example, the output 4 should be energized by the registration of a
logical “1” in the corresponding memory position. Subsequently, the rest of the program’s branches
are executed, if more exist. When the whole program is executed, then all the states of the outputs
have been stored in the output image table, digital “1” or “0”. Subsequently, the microprocessor
transfers the output image table at the PLC’s output component. Thus, in output 4 of the output
component, a logical “1” TTL signal is transformed to a power signal that can energize a switching
component, through which an output device is energized, or the relay C in our case. Subsequently,
the microprocessor repeats the sampling of the inputs, executes the program from the beginning,
and updates the outputs and repeats again the same cycle, as indicated in Figure 6.1c. This con-
tinuous cyclic operation of the PLC is known as the “scanning” mode. The time for a full scanning
indicates the operational speed of the PLC, and should vary from a few milliseconds or less. If the
variation of an input’s state is faster that the scanning time, then these variations are not detectable
198 ◾ Introduction to Industrial Automation

from the PLC. However, it should also be noted that the scanning time is directly dependent on
the speed of the microprocessor, while for a specific PLC, this time is dependent only on the size
of the program (number of instructions) and the type of these instructions, since different instruc-
tions demand a correspondingly different execution time. As an indication of the scanning speed
of a PLC, manufacturers usually provide the scanning time for a program that contains a set of
instructions of 1 KB of memory.
PLCs are not programmed according to an internationally standardized programming lan-
guage that is adopted by all manufacturers. Instead, there are various forms of programming
languages that vary from company to company under various names, even if they are similar
in their functionality. Also, there is a significant incompatibility between similar programming
languages developed by different manufacturers. The International Electrotechnical Commission
standard 61131 (IEC 61131-3), which was adopted in 1993, deals specifically with PLC program-
ming languages, and defines the most basic forms that fall into two categories: graphic languages
and text-based languages.
Despite the lack of an absolute standardization in the matter of scheduling, we can distinguish
three main programming languages, which are: the cascade ladder diagram language (ladder),
the instruction list language or Boolean (IL), and the language of logic elements or function
block diagram (FBD). The most popular of these is ladder language, since it is very similar to
the classic implementation of an automation circuit. This was also the reason for the adoption of
this language by almost all manufacturers in the early years of PLCs, because in this way it was
easier to spread the novel PLC technology and have it adapted by older engineers who were not
familiar with the programming. In Figure 6.4, the general format of the three programming lan-
guages is presented, where the specific program represents a conventional automation circuit for
the START-STOP with self-latch operation of a motor (see Section 3.1.1).
As mentioned above, the programming device for a PLC can be a PC or a specially designed
digital device. In the second case, the programming device or programmer is not just a simple
keyboard, but includes a liquid crystal display, a memory, a compiler, and various communica-
tion ports to communicate with the PLC or other peripheral devices. These units are necessary
in a programming device, since the programming is not performed directly in the PLC. For the
programming procedure, initially the program is developed in the programming device and after-
wards it is translated into a machine language that is stored initially in the programmer’s memory
and then transferred to the PLC’s memory, provided that there is a communication link between
the programmer and the PLC. From the programmer, it is usually feasible to monitor the opera-
tion of the PLC in order to detect the status of the PLC’s internal elements and to perform various
diagnostic tests.

I1 I2 Q1 Q1
I1 AND
ANOT I1
AND I2
I2
Q1 OR Q1 OR
OUT Q1

Ladder diagram Instruction list Logic diagram

Figure 6.4 The conventional START-STOP automation circuit, translated in program for the
PLC in three basic languages.
Basic Operating Principles of PLCs ◾ 199

The power supply unit of a PLC is of secondary importance, since it simply provides the vari-
ous voltages required in each section of the PLC. In certain types of PLCs, it is also possible to
supply the circuits of the input devices, but in general the power supply unit never feeds the actuat-
ing circuits of the output devices, since the power required to activate the output devices is always
supplied from external sources.
The development and spread in utilization of PLCs has been very rapid in recent years, while
there is a continuous development of new models with more and more features, smaller sizes, and
more affordable costs. Today, PLCs are used in any type of manufacturing process or complex
machine, as well as in smaller applications (such as car washes, traffic lights, pumping stations,
etc.), since PLCs are one of the most reliable automation solutions. The widespread use of PLCs
in industrial automation is attributed to their numerous important advantages, which include:

Adequacy of the contacts. When developing a conventional automation system, during the
design of the corresponding automation circuit, we should always evaluate the efficiency of
the auxiliary switching contacts of the power relays. When the required auxiliary contacts
are numerous and are not available in the utilized power relay, then the engineer has the
option to add these additional auxiliary contact blocks, or implement a parallel connection
with a second relay in order to use these contacts as auxiliary ones. However, in the case of a
PLC, there is no such issue, since the adequacy of the contacts is unlimited, as each internal
memory bit location of a PLC can take the role of an auxiliary relay, which could be utilized
as many times as we would like in a corresponding automation program. In reality, there is
a limit that is dependent on the size of the PLC’s memory.
Time saving. For the development of a programmable automation system with a PLC, the
writing of the program (design of the automation circuit) can be done in parallel with the
installation of the PLC and its connections to the I/O devices, since the program is written
in the programming device. In the case of conventional automation (classical automation
wirings) this is not possible, since initially the automation circuit should be designed, then
the industrial electrical enclosure should be constructed according to the designed automa-
tion circuit to perform the installation and its connections to the input and output devices.
Reduced need for space. Since the PLCs are digital devices, they have a comparatively small
volume as well as dozens of timers, counters, and hundreds of auxiliary relays, thus their
volume is incomparably less than that of a conventional industrial automation enclosure
with an equivalent number of auxiliary equipment.
Easy automation modification. The alteration or simple modification of a conventional automa-
tion circuit can be performed only by means of removing cables, adding new changes of
equipment and, in the worst case scenario, by stopping the operation of the control sys-
tem for some time. However, in the case of PLCs, all the above modifications are simply
equivalent to the direct alteration of the corresponding program that, after the required
amendments, can be directly downloaded onto the PLC online or with a pause of the overall
operation that lasts for a few seconds.
Easy fault detection. With the help of the PLC’s programming device, the status of the PLC’s
internal elements and the corresponding execution of the loaded program can be directly
monitored. In addition, the ON or OFF state of all input and output devices can be fur-
ther monitored through the utilization of indicative LEDs. Furthermore, the possibility of
“forced” (virtual) or simulated notional state changes of an input device, for observing the
reaction of the automation system and the overall control logic, can be directly performed
200 ◾ Introduction to Industrial Automation

in the PLC, mainly due to its digital structure that allows the performance of various tests
that assist in the troubleshooting.
Modern and working tools. PLCs have significantly contributed in altering the working environ-
ment of engineers, since they have transferred them from the field of cables, auxiliary relays,
screwdrivers, etc., to working in an environment similar to one that the PCs have. Engineers
have to work with a keyboard or mouse and a program in Windows or in another environ-
ment and simply print the automation program instead of designing the automation circuit
and applying their knowledge of digital systems. All these concepts created a different and
modern operating environment, especially when compared to the corresponding one some
decades ago.

Subsequently, in the next sections of Chapter 6 and in Chapter 7, the hardware and the soft-
ware of PLCs are presented in detail, with a specific focus on the following aspects in the develop-
ment of an industrial automation system:

1. Selecting the PLC. After studying the desired automation control system, the engineer should
be able to decide and select what is the most preferable PLC device, what its computational
characteristics are, the number of the required I/Os, the number of required switching capa-
bilities, the range of the power supply, etc.
2. PLC programming. To understand the operational logic of the automation system, the engi-
neer must write the required automation program for the PLC and evaluate the proper
functionality of the developed software.
3. Installation of the PLC. After determining the installation specifications of the PLC and its
corresponding connections with the I/O devices, the engineer has to operate the overall
industrial automation system, as well as to complete the proper initialization of the PLC and
modification or adaptation of system parameters during its real online operation successfully.

6.2 Modular Construction of a PLC


PLC manufacturing companies have adopted two basic types of PLC constructions, which are the
compact form and the modular shape. As presented in Figure 6.5a, PLCs of the first category are
solid structures, usually non-expandable, with a specific number of inputs and outputs. They form
an integrated structure that includes, in addition to the I/Os, the power supply, microprocessor,
interface with a programming device, STOP-RUN mode switch, LED indicators, etc. PLCs of
this category are suitable mainly for small-size automation applications, while medium or large
PLCs follow the philosophy of modular construction. This means that in this case, PLCs are
composed of independent modular subunits mounted on a common base. As presented in Figure
6.5b, PLCs of this class are comprised of a base with specific dimensions and, therefore, they have
specific space capacity for equipment, such as a power supply module, microprocessor unit, and
various I/O modules. Furthermore, the modular base has an electrical interface bus (printed cir-
cuit conductors) with appropriate plug-in connectors for the modular units, which achieve func-
tional cooperation of all of the PLC’s components. Some manufacturers, instead of the universal
bus concept, prefer special connecting outlets where each newly-added module is capable of con-
necting properly with the previous one while, at the same time, providing connections to the next
one. The major advantage of the modular assembly of a PLC is that the engineer has the ability
Basic Operating Principles of PLCs ◾ 201

Inputs
PLC

Outputs

(a)

P A
D A
o D n
i n
w i a
g a
e g l
l
r C o
i o
s P n
u i
u
t n
u U p p p
t
p u p
u u
p t u
t t
l s t
s s
y s

(b)

Figure 6.5 Compact (a) and modular (b) structural form of a PLC.

to synthesize a PLC that fully corresponds to the requirements of a particular application. Due to
the fact that, except for the power supply and the microprocessor unit, there are a wide variety of
I/O modules (e.g., discrete or analog, with a number of available I/O channels, nominal operat-
ing voltage, etc.), the engineer should consider the type of equipment required for each individual
application and synthesize the PLC accordingly. In addition, except for the various types of I/O
modules, there are a large number of special purpose modules that make the task of setting up a
modular PLC more complex. At this point, it should be mentioned that the minimum setting of a
modular PLC includes a power unit, a processor unit, and an input and an output module, while
in Figure 6.6, two typical types of commercial compact and modular PLCs are represented.

(a) (b)

Figure 6.6 Two commercial PLCs in compact form (a) (Schneider Electric) and modular form
(b) (Siemens).
202 ◾ Introduction to Industrial Automation

Communication
modules Expansion unit
Central unit

Outputs

Outputs

Analog outputs
Digital outputs
Digital outputs

Digital outputs

Analog inputs

Analog inputs
Digital inputs

Digital inputs

Digital inputs
Power supply

CPU

Expansion base for


Expansion cable mounting I/O modules

Figure 6.7 Extension of a central PLC unit with modular structure.

Oversized PLCs usually have a central processing unit which can support a much larger num-
ber of I/Os than those that may be contained in the modular one-base version of the PLC, even in
the case that the latter is fully equipped with I/O modules. In such a situation, a relevant question
is “how to expand the initial modular base of a PLC to a second base in order to utilize a large
number of I/O modules?” This is achieved by the utilization of two communication units and an
interconnection cable that enables communication between the CPU and the expansion base, as
presented in Figure 6.7.

6.3 PLC I/O Components


For most PLCs, I/O modules are one of the most common and simple parts of equipment, but
also the most important after the microprocessor unit. These I/O modules constitute the interface
between the various I/O devices of the industrial automation system and the microprocessor that
executes the desired program, and hence perform the control logic. Although the form of the I/O
modules differs from manufacturer to manufacturer, without exception, all of them require a
power source, carry the necessary electronic circuits for converting the I/O signals and to commu-
nicate with the microprocessor, have a terminal block for the cable connection and, finally, carry
the necessary mechanism for mounting in the case of a modular structure. The standard and most
common I/O modules are the following:

1. Digital input modules


2. Digital output modules
3. Analog input modules
4. Analog output modules

In addition to these modules, there are many others for special purposes. A module can
contain only inputs, only outputs, or a combination of inputs and outputs. Digital I/O modules
Basic Operating Principles of PLCs ◾ 203

are also called discrete I/O modules by many manufacturers, while both terms refer to the inputs
and outputs of ON and OFF states. Many manufacturers, instead of the English term “I/O
module” are utilizing the equivalent terms “I/O board”, “I/O card”, and “I/O block”. In Figure
6.8, a common type of a module with digital outputs is presented. In this case, the external
view and the general construction is similar for other types of I/O modules that also perform
their function independently. Inside the plastic protective cover are the electronic circuits for
the I/Os, while the terminal block is usually associated with plug-in contacts on the electronic
board. The removability of the terminal block is a significant property in cases of module dam-
age, since it enables the rapid replacement of the module without requiring time-consuming
rewiring. Furthermore, PLCs have the ability to connect different groups of I/O devices in a
very short time at the same I/O module, provided that the devices are already connected to the
corresponding terminal blocks. In general, the cable connection terminals accept conductors up
to 2.5 mm2, while in Figure 6.9, a module used for the control of stepper motors from an Allen-
Bradley industrial PLC is presented.

Ventilation
openings
Plastic housing of
electronic card

Digital 16Χ24 V DC
outputs 0,5 A

0
1
2
3
4
Connection-to-base
5
adapter
6
7

0
1
2
3
4
5
6
Removable 7 LEDs indicating the On/
terminal block Off status of outputs

Figure 6.8 Typical form of a digital output module of a modular PLC.


204 ◾ Introduction to Industrial Automation

Figure 6.9 An electronic card (PLC module) with digital outputs for stepper motor driving
(Allen Bradley).

6.4 Digital Input Modules


Digital inputs modules are designed to receive discrete signals from the input devices and convert
them appropriately for further processing, while electrically isolating them before being trans-
ferred to the memory of the PLC. These signals are electrical voltages that can have different
values, and can be either continuous (DC) or alternating (AC). For this reason, the input module
performs a conversion of the voltage level and a modulation of the input signals, so that it becomes
compatible with the operating voltage (5 V DC) of the microprocessor and the other electronic
components. Subsequently, in order to isolate the high power levels that characterize industrial
input devices, from the low power (logic) signals at the microprocessor, the modulated signals are
directed to the electrical isolation unit. Subsequently, each shaped and electrically isolated signal
is multiplexed with other similar signals produced by the same input module in order to be trans-
ferred serially to the microprocessor. For the case of small PLCs, when we have a parallel transfer
of the inputs’ status, no multiplexing unit is utilized. All the processing steps for the input signals
are presented in Figure 6.10. Each digital input module also features a simple visual indication of
the corresponding circuit status for each of the inputs (ON or OFF), so that the user is aware of
the operational mode of the input devices.
Basic Operating Principles of PLCs ◾ 205

Input
device To CPU/
inputs’
memory
Conditioning Multiplexing
Optical

Block of terminals
and level electronics
isolation
230 V AC conversion 5 V DC

Status
indication
of inputs

Input signals 24, 48, 110, 230 V DC/AC

Figure 6.10 Block diagram of operations inside a digital input module.

As was mentioned previously, each input signal connected to a digital input module is a dis-
crete signal of two ON and OFF states. More specifically, the ON state corresponds to the nomi-
nal input voltage and the OFF state to zero. Because the input voltages may be of different range
or type, the digital input modules are offered by the manufacturers in various AC and DC nomi-
nal voltages that are compatible with the corresponding standard operating voltages of the input
devices. These are the 24, 48, 110, and 230 V DC or AC, the most popular being 24 V DC, since
it is selected by the majority of engineers when designing new automation systems, mainly because
of the protection from electrical shock that it offers. Each digital input module is characterized by
the nominal operating voltage and the maximum number of input signals that it can sample. The
usual standard number of inputs per module is 4, 6, 8, 10, 16, and 32.
The term “input devices” characterizes the devices that are able to carry commands or infor-
mation from the industrial automation system or the operator of the control system, which in this
case is the PLC. As an example, the pressing of a button from the operator of a machine is “com-
mand” to the control system (PLC), while the activation of a limit switch from a moving part of
a machine informs the PLC that the component has received the desired end position. Typical
input devices are:

◾◾ Limit switches
◾◾ Selector switches
◾◾ Buttons of all kinds
◾◾ Rotary switches
◾◾ Switching relay contacts
◾◾ Photoelectric switches
◾◾ Proximity switches
◾◾ Keyboard contacts
◾◾ Any kind of converters
◾◾ Arithmetic switches

Input devices have been described extensively in Chapter 2, where the major types of sensors,
actuators, and power switching devices were analyzed. However, in this chapter, we will only men-
tion “numerical switches”, which are able to insert numbers in the PLC in a simplified approach
without using a computer or other digital programming device. The numeric switches carry a
numbered thumbwheel switch, through which the numerical data to be transferred to the PLC by
using a limited number of digital inputs can be selected. A typical kind of this numerical switch
206 ◾ Introduction to Industrial Automation

R R

3 4 3 2 1 4 3 2 1
Inputs to PLC
Position 0 0 0 0 0
Position 1 0 0 0 1
Position 2 0 0 1 0

...

...
Thumbwheel switch Position 9 1 0 0 1

Status of switches per position


0 = open contact, 1 = closed contact

Figure 6.11 Thumbwheel switch for arithmetic data insertion in a PLC via digital inputs.

is presented in Figure 6.11, which contains four switching contacts that can be opened or closed
depending on the position of the switch, i.e., according to the number selected. For example, in
position 2, contact 2 is closed, while the rest of the others are open. The numerical switch in Figure
6.11 is able to provide ten different choices (numbers 0–9) by utilizing only four digital inputs.
The combination of two such numerical switches allows for 100 options (numbers 0–99) by using
only eight digital inputs.
For performing the functionalities indicated in Figure 6.10 inside a digital input module,
corresponding electronic circuits that are required in their simplified form are presented in
Figure 6.12a. If the input signal is DC voltage, only the insertion of a resistor circuit for con-
verting the voltage level is required. If the input signal is AC voltage, then the input circuit
contains an additional AC to DC converter or bridge rectifier. The smoothing capacitor C
stabilizes the output voltage of the rectifier, while the resistors reduce the voltage to the desired
low level, typically 5 V. The voltage of the Zener diode determines the minimum voltage value
that could be detected. This low-level DC voltage is applied to the light emitting diode (LED)
that is structurally integrated with a phototransistor. The last element is an electronic circuit
powered by an independent internal power source (5 V DC) of the module. When light is
emitted from the LED and falls on the phototransistor, the latter is conductive and allows
the current path to the conductor to indicate the state of the logic signal. In conclusion, the
existence of a voltage signal in the circuit entrance—e.g., the ON state of the input device—is
transferred as DC voltage of a low or logic level to the microprocessor. Simultaneously with
the creation of the logic signal, the indicative LED for the input device status is also supplied
with power.
With the electrical isolation through the optical isolator, a complete decoupling is achieved
between the electronics section for the input signal reading and the corresponding microprocessor.
In this way, it is ensured that a possible short circuit, incorrect connection, transient spikes of the
grid voltage, or even an additional noise that it is not removed from the modulation unit, will not
damage the microprocessor. Less reliable methods use a transformer or a reed switch as an isolator.
In this case, a transformer presents thermal losses that create thermal temperature problems, while
Basic Operating Principles of PLCs ◾ 207

R1 Opto-isolator
L1 R3 Z1
+ 5V
Input signal
Logic signal to
220 V ΑC R R4
2 C D1 CPU, 5 V DC
R _ 0V
LED
L2 (C) indicator

Power signal Conditioning Isolation Logic signal


(a)

Input
device

Input module
4 DI
L1 L2
1

Input 3
signal
4

Nominal voltage of input module

(b)

Figure 6.12 Simplified electronic circuit for an AC voltage signal of a digital input module (a)
and an external electric connection of an input device (b).

reed switches have a limited mechanical life. Some PLCs in the market are available with input
modules that do not have optical or other type of isolation and should be avoided. As mentioned
above, in a digital input module, the number of inputs varies depending on the type of unit. When
the number of inputs in a module is relatively large, then providing a proper power supply should
be considered. The inputs of a module can either have a separate power supply, as presented in
Figure 6.13, or require a common one as shown in Figure 6.14. The separate power supply of the
inputs has the advantage that we can connect to the same module various input devices supplied
by different power sources. When the inputs have a common negative or low voltage node, as pre-
sented in Figure 6.14, then all the input devices should be powered from the same power source,
e.g., from the same phase of the three-phase supply system. For this reason, in many PLCs, the
inputs of a module are grouped into groups of 2, 4, or 8 inputs with a separate power supply.
In Figure 6.15, two grouping cases with a DC power supply are presented.
208 ◾ Introduction to Industrial Automation

R1 R3 Z1 +5V
L1

Input 1
R2 C R4 D1
R
L2

R1 R3 Z1
L1

Input 2 Logic signals to


R2 C R4 D1
R CPU/memory
L2
bit 1
bit 2
R1 R3 Z1 bit 3
L1 bit 4

Input 3
R2 C R4 D1
R
L2

R1 R3 Z1
L1

Input 4
R2 C R4 D1
R
L2
–0V

Figure 6.13 Simplified electronic circuit of a digital input module with four isolated-supply
inputs.

L1 R1 R3 Z1 +5V
Input 1

R2 C R4 D1
R

L1 R1 R3 Z1
Input 2

R2 R4 D1 Logic signals to
C R CPU/memory
bit 1
bit 2
L1 R1 R3 Z1 bit 3
Input 3 bit 4

R2 C R4 D1
R

L1 R1 Z1
R3
Input 4

R2 C R4 D1
R
L2 –0V

Figure 6.14 Simplified electronic circuit of a digital input module with four non-isolated-
supply inputs.
Basic Operating Principles of PLCs ◾ 209

Digital 8Χ24 V DC Digital 16Χ24 V DC


inputs inputs

0 0
1 1
2 2
3 3
C 4
4 5
5 6
6 7
7 C
C
0
1
2
3
4
5
6
7
C

Figure 6.15 Modules of digital inputs with DC power supply in groups of four and eight inputs.
Each group contains non-isolated inputs.

6.5 Digital Output Modules


In the introductory description of the PLC’s operation, it has been indicated that the results of
the logical processing of an automation program are stored in the output image table and are
transferred subsequently, through the digital output module, to the output devices. The results of
the program execution are logic signals that should be altered into power signals inside the digital
output module, capable of energizing the corresponding output devices. In general, it can be stated
that the digital output module processes the low voltage signals coming from the microprocessor
in a completely opposite way than the digital input module. In Figure 6.16, all the operations that
are carried inside the digital output module are indicated. The majority of these electrical circuits
that perform these functionalities are similar to the ones in the digital input modules and are not
going to be described again; however, the major differences will be highlighted.
When the logic signals from the output image table are transferred serially to the out-
put module, then in the demultiplexing unit these signals are decoded and transmitted to
the respective individual outputs of the output module. Since the logical signals are sent
210 ◾ Introduction to Industrial Automation

Output
From CPU/
device
outputs’
memory

Block of terminals
Signal level Optical Multiplexing
conversion isolation electronics 5 V DC
220 V AC
Status
indication Latching
of outputs electronics

Output devices: relays, electric-valves, indication lamps, etc.

Figure 6.16 Block diagram of operations inside a digital output module.

periodically by the microprocessor to the output module (scanning process), the latter should
have some kind of memory to retain or store the signals until the next transmission of signals
from the microprocessor. The maintenance of these signals is performed by an integrated cir-
cuit that it is called “Latch” or “Hold” (e.g., the CD4508BE CMOS 4-Bit Latch Logic IC by
Texas Instruments). As presented in Figure 6.16, after the demultiplexing of the logical signals
it follows the latch unit that is not included in the digital input module. This is normal, since a
potential change of the input signals’ state and therefore a change in the input devices will be
detected in the next scan cycle. If the change occurs in the dead time between two sequential
scans, then the operation of the microprocessor is not affected, since it regulates when to take
account of the change of status for the input devices. In contrast, in the digital output module,
it is not possible to change the state of the output signals, and therefore the output devices,
during the dead time between two sequential scans. The microprocessor’s operating logic for
the PLCs is based precisely on the principle that it changes the state of the output devices at
regular intervals (e.g., per scan cycle) and that each output state will remain unchanged in the
dead time between two scans.
The remaining units of the digital output module (e.g., the electrical isolation, the optical dis-
play, and conversion ones) are similar to the corresponding ones of a digital input module in terms
of design and function. However, in the realization of the units, the manufacturers pay special
attention, since the digital output modules control devices with relatively larger power levels and
current. Thus, the digital output modules comprise switch power elements at current levels typi-
cally up to 1 A or 2 A, the function of which (ON-OFF) causes electrical and magnetic noise that
is sufficient to destroy the other sensitive electronic components. In Figure 6.17a, the electronic
circuitry of a digital output that implements the above basic functions is shown in simplified
form. In the conversion circuit of the output signals, weak signals are coming from the proces-
sor (after the electrical isolation) and are converted into power signals with current and voltage
levels capable of driving output devices that demand power consumption. Therefore, every digital
output module requires an external power source, which supplies the output devices through the
switching components of the converter circuit. As switching power elements, someone can find a
power transistor, a triac, a printed circuit board relay, a reed switch, etc., depending on the type
of digital output module and the quality of manufacturing. When the triac, presented in Figure
6.17a, changes its switching state, it is possible to create a large inductive voltage sufficient to cause
damage to the electronic circuit. This risk is addressed by the utilization of the R SCS surge suppres-
sor. The varistor (Var) element also limits the transient phenomena and the noise. In series with
the switch element, a fuse is introduced for protection from the overload of the output circuit, and
Basic Operating Principles of PLCs ◾ 211

LED External power


indicator source DC or AC
Opto-isolator Fuse L1
5 V DC
Triac

VAR
Rs
Logic signal from
CPU/memory AC
Cs Output
device
(1) L2
0V

Logic signal Isolation Signal level conversion Power signal


(a)
Output module
L1 4 DO L2
L1
Output
device
1

LED 2
indicator 3
4
L2

Nominal voltage of output


module
(b)

Figure 6.17 Simplified electronic circuit of a digital output module with a triac as a switching ele-
ment (a) and an external electric connection of an output device requiring AC voltage supply (b).

therefore the output device. It is possible to have one fuse per individual digital output or a fuse
every two or three or more outputs. Typical output devices are:

◾◾ Power or auxiliary relays


◾◾ Solenoids of electrovalves
◾◾ Indicating lights
◾◾ Devices for alarm indication
◾◾ Coils of electro-pneumatic valves
◾◾ Electronic devices that require an activation input or a change in their ON-OFF state

A typical external connection diagram of an output device to a digital output module is shown
in Figure 6.17b. In Figure 6.18a and 6.18b, the alternative digital output circuits using relay and
power transistors as switching elements are shown. The digital outputs with relay are generally
suitable for AC and DC operating voltages of the output devices, which are able to provide addi-
tional electrical isolation and are resistant to impulse currents and overvoltages. The disadvantages
are typical for all relays, e.g., the possibility of mechanical damage, the wear of the relay’s contacts,
and their limited mechanical life.
Digital outputs with a power transistor as switching element are suitable only for DC operat-
ing voltages of the output devices, have no mechanical parts, and therefore do not suffer from wear
or noise, while they are characterized by a relatively high switching frequency. However, these are
sensitive to impulse currents and overvoltage. Finally, the digital outputs with triac are suitable
212 ◾ Introduction to Industrial Automation

LED
indicator External power
Relay as switch source DC or AC
5 V DC (C) L

Protection
diode
Logic signal from
CPU/memory

0V Opto-isolator (1) N Output


0V +
device
(a)
LED
indicator
Opto-Isolator
5 V DC R D1 +V

D2 Output
Protection
device
Logic signal from diode (1)
CPU/memory

0V 0V
Transistor as switch
External power
(b)
source DC

Figure 6.18 Simplified electronic circuits of a digital output module with switching elements:
a printed circuit board relay (a) and a NPN power transistor (b).

for AC supply voltages, do not suffer from wear, but are more sensitive to impulse currents and
overvoltage, and thus are always equipped with a special fuse.
As in the case of digital input modules, digital output modules may also have a separate or a
common power supply. In Figure 6.19, the two power supply cases are presented, with the same
characteristics and remarks as for the digital input modules, while Figure 6.20 presents two typi-
cal groupings of digital outputs with a DC power supply.

6.5.1 Technical Specifications for Digital Input/Output Modules


From the previous description of the digital input/output modules, it is obvious that there are some
specific technical features that characterize these units, while the selection of the necessary I/O modules
is made for each individual application. These technical characteristics can be summarized as follows:

1. The nominal operational voltage of the modules (value and kind)


2. The number of inputs and/or outputs per module
3. The kind of switching components that each digital output module contains (relay or elec-
tronic switching components)
Basic Operating Principles of PLCs ◾ 213

+ 5 VDC

L1
Rs VAR
Cs Output 1

L2

L1
Rs VAR
Output 2
Cs
Logic signals from
CPU/memory L2
Bit 1
Bit 2 L1
Bit 3 VAR
Bit 4 Rs
Output 3
Cs

L2

L1
Rs VAR Output 4
Cs
L2
(a)

+ 5 VDC

L1
Rs VAR Output 1
Cs

L1
Rs VAR Output 2
Cs
Logic signals from
CPU/memory
Bit 1
Bit 2 L1
Bit 3 VAR
Bit 4 Rs Output 3
Cs

L1
Rs VAR Output 4
Cs
L2
(b)

Figure 6.19 Simplified electronic circuit of a digital output module for isolated-supply (a) and
non-isolated-supply (b) outputs.
214 ◾ Introduction to Industrial Automation

DIGITAL
Digital 8Χ24
8Χ24 VVDCDC DIGITAL
Digital 16Χ24
16Χ24 VVDCDC
OUTPUTS
outputs 0,5AA
0,5 OUTPUTS
inputs 0,5AA
0,5

L1
L1
0
0
1
1
2
2
3
3
4
C
5
L1 6
4 7
5 C
6
7 L1
0
C
1
2
3
4
5
6
7
C

Figure 6.20 Modules of digital outputs with DC power supply in groups of four and eight out-
puts. Each group contains non-isolated outputs.

4. The nominal current of the module’s outputs, which denotes the maximum electric current
value that a digital output can hold, during the operation of the corresponding load
5. The presence or absence of an optical isolation in the circuits of the I/O digital modules

Apart from the previous fundamental technical specifications, there is also a set of secondary
technical characteristics that can be very useful during the application stage. Especially in cases of
operational problems of PLCs, only knowledge of these characteristics can lead to an explanation
of the problem, and hence to specific and straightforward solutions. Every manufacturer of a PLC
provides these specific technical characteristics in the corresponding operational manuals, where,
based on this information, the engineer can understand if all the corresponding hardware is uti-
lized properly and safely, and also to denote the restrictions that exist in these I/O modules that
Basic Operating Principles of PLCs ◾ 215

limit specific types of electrical connections. Some typical examples of these secondary technical
characteristics are the following:

◾◾ Range of voltage for the digital input, where the input signal is recognized as a logical “0”. As
an example, in a digital input module, with a nominal operation voltage of 24 V DC, every
input voltage from −30 V until +5 V is recognized as a logical “0”.
◾◾ Range of voltage for the digital input, where the input signal is recognized as a logical “1”. For
example, in a digital input module, with a nominal operation voltage of 24 V DC, every
input voltage from +15 V until +30 V is recognized as a logical “1”.
◾◾ Input current for a logical “1”. This indicates the minimum consumed current from a digital
input that the input device should supply to the input circuit of the unit so that the latter
recognizes the input signal as a logical “1”. This current is usually at a level of about 10 mA.
◾◾ Current consumption of a digital input or output. This indicates the electrical current that is
being consumed by the input or output circuit from the power supply of the PLC. In this
case, there should be no confusion of this current with the current that is being supplied
to the PLC from external sources of power. The values of the consumption current vary
depending on the module type. As an example, a unit of 32 digital inputs can consume an
electrical current of 30 mA, a unit of 16 digital outputs an electrical current of 160 mA, and
a unit of 32 digital output an electrical current of 200 mA.
◾◾ Leakage current of a digital output. This indicates the maximum value of the electrical cur-
rent that flows in a digital output circuit even when the circuit is in OFF state, which means
a logical “0”. This value has significant importance when the output device contains solid
state components. In this case, it is possible for the flow current to be able to falsely energize
the device, even in the case that the output is in the OFF state. A solution to this problem
will be discussed in Section 6.10.6.
◾◾ Switching frequency of an output. This indicates the maximum frequency that the switching
component on the digital output circuit can change state, or equivalently it expresses the
frequency that the output can open and close. The switching frequency of an output can be
different for the case of a resistive or conductive load.
◾◾ Region of permitted rippling of the output voltage. This indicates the minimum and maximum
value of the operational voltage of a digital output module, where between these values the
output circuit could operate without a fault. At this point it should also be noted that the
operational voltage and the corresponding rippling refer to the external power source that is
going to be connected to the output module. For example, in a digital output module, with
a nominal operational voltage of 24 V DC, the allowed variation can be 20–30 V DC, while
for 120 V AC, this could be 92–138 V AC.

Apart from the previous technical specifications, PLC manufacturers may indicate additional
ones that concern very specific cases, which will not be further analyzed and presented at this
point. In general, modules of digital inputs or digital outputs, with different technical characteris-
tics, can be at the same PLC that comes in a modular form. This means that a PLC of this type is
able to control an industrial system with different types of I/O modules, depending on the allow-
able cost and the requirements of the specific industrial application.
216 ◾ Introduction to Industrial Automation

6.6 Analog Input/Output Modules


Since the beginning of their history, PLCs contained only units of discrete inputs/outputs and thus
only devices of an ON-OFF type, which were able to be connected to PLCs and, correspondingly,
to be controlled. Based on this restriction, at that time, PLCs were able to control only specific parts
of the industrial process (the digital ones). Every analog control scheme requires the utilization of
analog inputs and outputs, and thus with the corresponding huge improvements in the area of elec-
tronics, specific analog modules equipped the PLCs to provide the ability to interact with analog
signals, a step that created a significant impact in the area of industrial control.

6.6.1 Analog Input Modules


An analog input module contains all the necessary circuits for the connection of analog signals and
their corresponding alteration into digital ones. The basic component of an analog input module
is the analog to digital (A/D) converter that converts the analog input signals into a digital value,
indicated in the simplified diagram of Figure 6.21a. Subsequently, this digital value is transferred
to the analog input’s storage memory where the central processing unit can access it, based on the
requirements stated in the execution program in the PLC. When the analog input module con-
tains a rather large number of inputs and thus has a corresponding high cost, it is not financially
profitable for the manufacturers to offer separate modules for every kind of analog signal that the
industrial application might include. For this reason, the analog input module is equipped with a
signal adapting block that is a simple electrical circuit, able to transform the input analog signal
to a necessary signal compatible with the utilized A/D converter. Thus, if in such a module, the
type of the analog input is altered (e.g., a change of the input sensor), the only thing required is

Analog input module

Analog Signal To CPU/


signal conditioning memory
A/D
circuit and converter
dip switches Digital
value

(a)

mV Analog signal input


d7 Equivalent
to A/D converter Sample Code (8-bit) analog input (mV)
300 d6
d5 1 11111010 250
A/D 2 10000000 128
200 converter d4 3 11001000 200
250
d3 4 00110000 48
100
200
d2
128 48 d1
d0
1 2 3 4 Sample

(b)

Figure 6.21 Simplified block diagram of an analog input module (a) and the basic principle of
A/D conversion (b).
Basic Operating Principles of PLCs ◾ 217

the alteration of the signal adapting block. Specific analog input modules (instead of the alteration
block) carry micro-switches (DIP switches) for selecting the type of analog input signals. In mod-
ules with a small number of inputs, there is no signal adapting block or DIP switches, and thus
each module is manufactured for a specific type of analog signal. The analog signals supplied in
an analog input module are standard and compatible with the corresponding output signals of the
analog input devices (sensors or transducers). In Table 6.1, the most common analog input devices
and the standard analog signals that we find in the analog input modules are shown.
Another significant operational difference between the analog input modules (except for
the A/D converter) and the digital input modules is that the former are equipped with a local
memory for storing the digital values of the analog inputs. In Figure 6.22, a more detailed block
diagram of an analog input module is depicted. In this case, a thermocouple (e.g., a couple of
platinum-platinum of R type) detects the temperature of an object and, subsequently, applies

Table 6.1 Usual Analog Devices and Standard Ranges of Analog Signals
Analog Input Devices Analog Signals

Temperature sensors 4–20 mA

Pressure sensors 0–5 V DC

Flow meters 0–10 V DC

Transducers of any kind ± 10 V DC

Electronic devices with analog output ± 50 mV DC

± 500 mV DC

Heated
object

Thermocouple

Analog input module PLC


Analog input CPU
Input 1 module memory
PLC memory
1
Bus for data and
±50 mV control-signals transfer
A/D
Shielded
cable Input
selector
BUS
Input N N

+V Module –V
power supply

Figure 6.22 Analog input module which contains an A/D converter common for all input
channels and memory for temporary storage of digital values.
218 ◾ Introduction to Industrial Automation

this analog voltage through a shielded cable in an analog input of the module. The utilization
of shielded cable is suggested in cases of transmitting weak electrical signals in order to block
the corrupting electromagnetic noise generated from nearby conductors, and has the potential
to cause unwanted and important operational errors (wrong corrupted measurements). Every
analog input module contains only one A/D converter that is common for all the analog inputs.
This approach is followed by the majority of manufacturers, mainly for purposes of reducing
the cost of the hardware that is significantly increased if each of the analog inputs has its own
A/D converter. Since all the input signals are applied at the same time in the input module, the
input selector is responsible for routing a separate analog signal to the A/D unit in every clock
cycle. The digital values of the analog signals provided from the A/D converter are stored in the
memory of the input module, which is of a restricted size and, on many occasions, is referred to as
a data register. With timing and control signals transmitted from the central processing unit, the
content of the module’s memory is transferred through the data transfer bus to the memory of the
PLC where the values are processed according to the executed specific program instructions. Some
manufacturers use the term “input channel” rather than the analog input one. In Figure 6.23, the

+V –V Channel 0 Channel 7

DIP switches
Switches
Ο
Ο 1 2 3 4 5 6
Signal conversion
Conversioncircuit
Circuit Ν
Ν

Multiplexer
MULTIPLEXER
address
ADDRESS Multiplexer
MULTIPLEXER

ISOLATION
Isolation

CLOCK
Clock
ISOLATION

Α
Isolation

D POWER
Power supply
SUPPLY
CONTROL
Control
PROCESSOR
processor
OF MODULE
of module
OPERATION
operation
ISOLATION
Isolation ISOLATION
Isolation

0VV
0 +5VV –5
+5 -5VV

MEMORY
Memory

BUS
BusDRIVER
driver
ADDRESSES
Address
DECODER
decoder

ANALOG
Analog input
INPUT
module
MODULE

Control ADDRESS
Address DATA
Data
signals BUS
bus BUS
bus

PLC – CENTRAL PROCESSING UNIT


PLC–CPU

Figure 6.23 Applied block diagram of an analog input module operation (Siemens).
Basic Operating Principles of PLCs ◾ 219

Conversion
Conversion time
time
channel 11
for Channel

Conversion time Total time of


for Channel
for channel 22 operation cycle

Conversion time
channel N
for Channel N

Figure 6.24 Determination of the cyclic operation time of an analog input module.

functional block diagram of a real analog input module with eight input channels is presented,
while the complexity of the design with respect to the digital input module is straightforward.
The overall functionality of the module is orchestrated by its microprocessor, which checks the
operation of all the related components, like the multiplexer, the A/D converter, and the memory.
The multiplexer and the A/D converter are electrically isolated from the rest of the electronic
units. As depicted in Figure 6.23, the analog input module can be considered to be separated
into two parts, totally electrically isolated, with analog signals on one side and digital ones on
the other, so that the microprocessor of the module, as well as the central processing unit of the
PLC, can be protected. The communication buses among the module and the PLC are utilized
for the transfer of data, addresses, and control signals. The time duration of one operational cycle
for the analog input module is independent of the scanning time of the PLC. The time needed for
the conversion of an analog input, from the A/D converter, is dependent directly on the conver-
sion method (e.g., a successive-approximation or integrating method). Since the conversion of
the analog signals takes place in a serial manner in a one-by-one channel, the overall operational
cycle time is the summation of the corresponding conversion times of all the active input chan-
nels, as shown in Figure 6.24. Due to the fact that every A/D conversion lasts around 10–50 μs,
the operational cycle of a module with eight analog input channels will last less than 1 μs, a time
that is much less when compared with the scanning time for most of the commonly found real-
life applications and the usual scanning times of PLCs.

6.6.2 Accuracy in the Conversion of Analog Signals


In the modules of analog inputs, depending on the manufacturer and the model, various levels of
resolution can be found that are a direct measurement of the accuracy in the conversion of the ana-
log signals. The resolution of an A/D converter expresses the smallest difference that this converter
is able to detect, with respect to the varying input signal, and is related to the number of bits of the
binary word that represents the digital value of the analog signal. Since the number of bits has a
direct connection to the maximum number and the size of steps into the range of variation of the
input signal, the determination of the desired resolution for an A/D converter is a very important
factor for the selection of the corresponding hardware. An A/D converter that utilizes data words
of 8 bits will have a resolution of 1 step in 256 steps of the full-scale variation of the input signal.
220 ◾ Introduction to Industrial Automation

If it is desired to have a greater accuracy of a control action, then another A/D converter should be
selected that will have 10 bits, and thus a corresponding resolution of 1 step in 1024 steps of the
full scale. More specifically:

◾◾ 8-bit converter: Resolution = 256 different digital values between the minimum and maxi-
mum of the range, thus 0.004 (2 –8=0.004) step of the full scale
◾◾ 10-bit converter: Resolution = 1024 different digital values between the minimum and max-
imum of the range, thus 0.001 (2 –10=0.001) step of the full scale
◾◾ 12-bit converter: Resolution = 4096 different digital values
◾◾ 14-bit converter: Resolution = 16384 different digital values, and so on

Thus, the bigger the resolution of an A/D converter, the more accurate the digital representa-
tion of an analog signal is. For example, if an analog input signal is varying from 0 to +10 V, the
step size of the accuracy, in the case of an 8 bit and 10 bit, the A/D converter is defined as:

◾◾ 8-bit A/D converter: 10/256 = 39.1 mV per step or 25.6 steps per volt of the voltage input
signal
◾◾ 10-bit A/D converter: 10/1024 = 9.76 mV per step or 102.4 steps per volt of the voltage input
signal

6.6.3 Analog Output Modules


The analog output modules receive numerical data in digital form from the central processing unit
of the PLC, transforming them into an analog voltage or current, in order to control the operation
of an analog device. The digital values of the analog signals are usually words of 16 bits that are
created from the processing of the program instructions, and are temporarily stored in the input/
output memory of the PLC, before being transmitted to the analog output modules for their con-
version into analog signals usually of 4–20 mA current or −10 V DC to +10 V DC. This process is
highlighted in Figure 6.25. Even if the digital word can have a length of 16 bits, from these bits,
only 11 are utilized for the digital representation of the analog signal and consist of the useful
converted data, while the rest are utilized for the transfer of other general information or timing
signals. A similar strategy is also followed in the digital representation of the analog input signals.
For example, one bit can express the situation of a digitized measured value over a range or the

Output signal
Output signalof
of
D/AD/A
converter
converter
Output
d77 analog
d66 device
Amplifier
Amplifier Filter
Filter (triode vane)
Data bits d55
in parallel d44
8–14 bits
d33 D/A
D/A
d22
Output
Output
d11 analog
Analog
Signal
signal
d00

Figure 6.25 Block diagram of operations inside an analog output module for converting a digi-
tal value signal to analog.
Basic Operating Principles of PLCs ◾ 221

existence of a fault (e.g., cut wire). The most significant bit of the word, expresses the sign (+, –) of
the numerical value. A similar utilization of bits takes place in the case where the digital word has a
shorter length than 16 bits, an operation that affects negatively the accuracy of the A/D converter.
When the digital word d0 –d7 reaches the D/A converter, a corresponding constant electrical
voltage is produced at the output of the converter. This means that the output of the converter
continues to be discrete (1024 levels of voltage for a word of 10 bits) and when the digital input
word is varying, the result is to have a corresponding piecewise constant voltage in the output of
the converter which is also varied, as indicated in Figure 6.25. In order to have the varying output
signal, but with the piecewise constant like a real analog signal, a specific circuit of an amplifier
is driven and filtered, to smoothen the stepped voltage (or current). The accuracy of the analog
output is dependent on the frequency update of the digital word input. This update is mainly
dependent on the scanning cycle of the PLC, since the data produced from running the program
related to the analog output module is transmitted only once in every scan cycle. In Figure 6.26,
the functional block diagram of a real analog output module is depicted. As in the case of analog
input modules, this part of the digital logical circuits is isolated from the part of the analog ones

PLC–CPU

Control Address Data


signals bus bus

Address decoder Microprocessor

Data

Accumulator Counter Clock

Electric isolation
Opto-isolator
Μ = earth terminal

Power supply
D

Multiplexer

– + R
+ 24 V ... R
– +

M
– +
R

R
M
R Analog output module

IΕξοδ.
VΕξοδ.
L+ M 0–20 mA
–10–+10 V

Figure 6.26 Applied block diagram of analog output module operations (Siemens).
222 ◾ Introduction to Industrial Automation

Analog output module

Analog output module


1 Output 1
device
V0 VLoad V0

2
V0 S+
RL
Output
3 device
I0 ILoad S–

4
I0

+V +V

DC 24 V
DC 24 V
M M

C C

(a) (b)

Figure 6.27 Typical connections of analog devices in an analog output module (a), and four-
wire connection of an analog device (b).

via an optical isolator. Analog output modules generally require an external supply unit with some
requirements in terms of current and voltage.
Typical analog devices are small motors, servo valves, DC servo motors, drivers for high power
motors with varying speed of rotation, analog instruments, etc. The voltages and the currents for an
analog output module are always DC signals. However, this does not mean that an AC controller of a
motor, for example, cannot be driven from the analog output of a PLC. Such AC controllers (e.g., the
soft starters of motors) require a varying DC signal as a control input that can be the analog output
of a corresponding module. Thus, with the application of a varying DC output voltage (e.g., 0–10 V
DC) in the input of the AC controller, a corresponding AC motor speed alteration can be achieved.
In Figure 6.27a, the typical connection of analog output devices in a corresponding output module
is presented. Some analog output modules provide the ability to supply output device with a four-
wire connection (Figure 6.27b) for greater accuracy in the definition of the applied voltage that is, in
many cases, different from the desired one. This is achieved with two additional wires (S+, S –) that are
connected directly to the R L load. Through those, the module is able to directly measure the voltage
of the load (like a voltmeter) and automatically apply the needed corrections. The most common rea-
son for the deviation, among the desired output value and the real applied one in the output device,
is the voltage drop in the connecting wires and bad contacts in the terminals.

6.7 Special Purpose Input/Output Modules


The majority of the requirements of digital and analog I/Os for industrial real-life applications
have been covered in the previous subsections. However, in industrial automation applications,
Basic Operating Principles of PLCs ◾ 223

there are times when specific signals are needed that a PLC is not able to process by utilizing the
previous modules. Some classical examples from this category are the following:

◾◾ Applications that require a fast response of the PLC input: In these cases, there are devices
in industrial automation that are producing signals that are varying faster than the scanning
capabilities of the PLC. This means that the PLC, based on the conventional I/O modules,
is no longer able to detect rapid changes of the input signal and act on them.
◾◾ Applications related to the control of rotation of special motors, e.g., the case of stepper
motors: These motors, and especially their driving circuits, require the supply of special
pulse trains, where their frequency affects the rotation speed and number of pulses affecting
their angle of rotation. In this case, conventional I/O modules are not capable of providing
such signals.
◾◾ Applications with complicated control problems, such as analog PID control with specific
response requirements.
◾◾ Applications where the transmission of data related to human machine interfaces (HMIs),
such as data for monitors, printers, personal computers, etc., is needed: In addition to this,
special equipment is needed for the communication of a PLC with another PLC, or for their
connection to an industrial communication network.

In all these cases, and in other similar ones, special input/output modules are required for
special manufacturing that is also provided by the majority of PLC manufacturers. A typical
characteristic of these modules is the fact that they are utilizing their own microprocessor that
operate independently in order to perform the required task, but are simultaneously connected to
the main processing unit of the PLC to exchange data and control signals.

6.7.1 Fast Input Response Modules


Fast input response modules are utilized when the PLC needs to detect pulses of a very short dura-
tion. If the scanning time of a PLC is for example of 1 ms, then the frequency of state change for
a discrete input cannot be more than 1 KHz, and in the case that the scanning time is 100 ms,
which is another typical value, then the frequency of the input cannot be more than 10 Hz. Thus,
the PLC is not able to detect pulses of a frequency e.g., 50 KHz or 500 KHz. The fast input
response module contains a very fast microprocessor that it is able to count pulses of a very fast
speed, independently of the scan cycle of the PLC. This measurement is stored in the module’s
memory, and is transmitted to the main processing unit during the exact moment of sampling of
the rest of the inputs, which means once in every general scanning loop. These modules are very
useful in applications that use fast counting, fast rotation of drums, position decoders, etc.

6.7.2 Stepper Motor Control Modules


Stepper motors are utilized in applications of micropositioning of objects, mainly due to their
accuracy during their rotation that, in most cases, is altered to a corresponding linear movement.
The stepper motors can rotate in very small steps (e.g., 1o or even smaller) and with high accu-
racy in both directions of rotation. The power supply and driving unit of these stepper motors
requires the application of pulses as control signals. For each input pulse, the motor produces an
equivalent amount of rotation, the so-called “step”, as described in Section 2.1.1. The frequency
224 ◾ Introduction to Industrial Automation

Motion data Position encoder


Stepper
from CPU of PLC
motor
module

Discrete signals
Moving
from limit switches
carrier
Information 3- control
3–6
to CPU of PLC loops per Power supply and driving
module circuit of stepper motor

Figure 6.28 Closed-loop control of a stepper motor with a specific I/O module.

of this pulse train defines the speed of motor rotation. A second pulse input is utilized to select
the direction of rotation, while a third one defines the full or half step rotation. Such control
signals are not usually produced by most PLCs, and thus it is necessary to utilize specific stepper
motor control modules. Based on the program’s logic at the PLC, when the stepper motor should
be moved, a small block of data related to the magnitude, the speed, and the direction of the
rotation is transmitted to the control module of the stepper motor that handles the generation of
proper signals for driving the motor. The overall control system is of an open-loop architecture,
which means that the PLC has no information (feedback) of the real movement that the stepper
motor has executed.
The complex structures of micropositioning with 3–6° axis of movement (one stepper motor
for each motion axis) are usually equipped with sensors of position measurements (e.g., encoders)
that transmit information concerning the real position of the motor, which allows for the further
application of control signals for tuning the performed movement to be equal to the desired one
(closed-loop control architecture). In Figure 6.28, a closed-loop control system, where the stepper
motor control module is connected to the main processing unit of the PLC and to the controlled
process, is indicated. The stepper motor control module receives commands from the main pro-
cessing unit of the PLC that are related to the rotation of the stepper motor, and transmits posi-
tioning information back to the PLC when it is asked. The stepper control module receives the real
position of the controlled moving object from a position encoder, compares it to the desired posi-
tion (in the form of a pulse train) that has been transmitted to the motor controller, and creates a
corresponding positioning error. Based on this error and the applied controller, a corresponding
corrective action is produced to control the movement. Depending on the number of motors that
one module can control, different multiple combinations of movements can be generated that can
be stored in the stepper’s control module, either in the form of a movement’s library or as alterna-
tive motion programs. The central processing unit of the PLC can activate a program of move-
ments by transmitting a specific control signal to the stepper motor control module.

6.7.3 Three Terms (PID) Control Modules


In every industrial production process, there is always a need for continuous control of a physical
variable such as hydraulic pressure, temperature, the rotation speed of a motor, etc. Therefore, the
PLC units should contain specific hardware to enable this. Most of the currently available PLCs
in the market contain an embedded software program for applying analog control of three terms
(PID control), which is stored in the memory of the PLC and is called from the user’s program
Basic Operating Principles of PLCs ◾ 225

as a subroutine. The user defines the desired parameters and the analog inputs/outputs for which
this routine will be executed, and the latest is inserted in the main PLC program. Since the control
algorithm includes mathematical operations, the scanning time of the PLC can be significantly
increased, and thus it might cause improper control of the overall process. For these cases, PLC
manufacturers provide independent special PID control modules, which contain their dedicated
microprocessor and thus do not affect the overall scanning time of the PLC. These modules con-
tain their own analog inputs and outputs that are directly connected to the controlled process.
From the central processing unit of the PLC, only the initial values, the desired set points, etc.,
are transmitted to the PID control module. Subsequently, the microprocessor of the control mod-
ule operates in parallel to the PLC to execute the desired control task. When the PLC needs the
variables of some values which exist in the memory of the control module in order to perform the
proper control of the overall process, these are transmitted from the I/O memory of the control
module once during the PLC scan cycle. More information on the continuous analog control of
three terms (PID) is provided in Chapter 9.

6.7.4 Communication Modules
When there is a need for a PLC to communicate with another PLC, or with other devices such
as monitors, printers, or remote I/O modules, or in general with another network of PLCs for the
exchange of specific information, a communication module is needed for completing this task.
The simple, compact-type PLCs are usually equipped with a standardized communication port
for connecting to a PC, and some of them have an additional communication port for connecting
to a specific industrial network. The communication modules in general are equipped with their
dedicated microprocessor, which is called a communication processor (CP). This communication
processor is responsible for implementing the communication protocol for communicating with
the external devices, either independent or networked and with the central processing unit of
the PLC. The last, according to the executed program, sends/receives alphanumeric data to/from
external, independent devices through the communication processor.

6.8 Central Processing Unit


The overall operation of a PLC is realized and orchestrated from its central processing unit (CPU).
The heart of the CPU is the microprocessor, while in many cases the terms “central processing
unit” and “microprocessor” are used interchangeably. However, the correct terminology indicates
that the microprocessor is the specific integrated circuit that the PLC is utilizing, while the CPU,
except for the microprocessor, contains additional necessary components and electronic circuits
for the full operation of the PLC. Figure 6.29 indicates the overall architecture of the main units
of the PLC and their interconnections within the CPU in a rather simplified way. This figure does
not contain the power supply that simply supplies all the necessary voltages for the proper opera-
tion of all the units and components. The CPU also contains the digital circuits that store or recall
data from memory, as well as the necessary circuits for the communication of the microproces-
sor with the PLC’s programming unit. The operation of the microprocessor is controlled from
a program called “operating system” or “executable program”. The executable program is stored
permanently in a memory unit that it is always of a ROM type (read only memory) since, from
the moment that it is developed by the manufacturer and stored in the memory, modifications
are unnecessary and not allowed. As a definition of the executable program, is a special program,
226 ◾ Introduction to Industrial Automation

Signals from controlled system

Input module Address


bus

CPU

3 a3

2 a2

1 a1
GND GND

Voc1 Voc2 5
a4
Programmer µP Memory

0 0
0 0

b2 6
b3 7
b4 8

b1
Data
bus

Output module

Signals to controlled system

Figure 6.29 Operational interconnection between a CPU and the other units of a PLC.

written in assembly language, which is able to drive the microprocessor to perform the internal
functionalities such as processing, control of other internal units, and communication.
More specifically, the CPU of a typical PLC is able to perform the following basic operations:

1. I/O operations. These operations allow the PLC to communicate with the external world and
include mainly the scanning of the inputs and the updating of the outputs.
2. Logical and arithmetic operations. These operations contain all the logical functions of
Boolean algebra (AND, OR, NAND, etc.) and basic arithmetic operations (such as addi-
tion, subtraction, multiplication, etc.). In the same category, all the specific operations such
as timing, counting, and comparison can also be included.
3. Reading, writing, and special handling operations. These operations contain actions that are
applied on the content of the memory locations and may concern data or instructions.
4. Communication operations. These operations contain specific functions that the PLC should
execute when it is communicating with external peripheral I/O modules, specific modules,
another PLC, etc.

In order for the CPU to execute the previous operations, it continuously communicates with
the memory and the other components through the data bus and the address bus (Figure 6.29). The
aim of the address bus is to activate, at the proper time instant, I/O points or memory locations that
will subsequently utilized from the data bus for the transmission of data. The microprocessor selects
an address which is decoded. In this way, the proper corresponding I/O point or memory location
is selected through the address bus. The selected I/O point or memory location will then receive or
transmit data. The data bus, which consists of bidirectional channels, is utilized for the transmission
of data from the memory to the I/Os and conversely, from the CPU to the memory of registers, tim-
ers, counters, etc. In Figure 6.30, the basic components of a microprocessor are indicated, as well as
their interconnections with external components. The memory with the operating system contains,
Basic Operating Principles of PLCs ◾ 227

Memory with
“operation system”

Internal
registers

Program counter

Arithmetic
logic unit

Microprocessor

Input/output Read-write
modules memory

Figure 6.30 Typical parts of a microprocessor used in a PLC.

in the form of a program, the executable instructions. Based on these instructions, the operation of
the microprocessor is performed. The arithmetic logical unit (ALU) executes all the arithmetic and
logical operations, while the program counter supervises and controls the program instructions step by
step. When the user’s program contains jumping instructions (e.g., GOTO instructions), the program
counter records the execution path of the program at every time instant. In the internal registers of the
CPU, data are being stored based on instructions from the executable program, and are utilized from
the ALU when required. In the writing and reading memory, the user’s program is stored in addition
to specific operational parameters. All the operational steps of the microprocessor are driven from a
clock that guarantees the proper and timely execution of the instructions.
The operating system is also responsible for the execution of various diagnostic functions from
the CPU. These diagnostics can be categorized into two forms: the ones that the system is execut-
ing itself in every initialization of the device, and those that are user-initiated by specific instruc-
tions. Typical diagnostic functions during the initial operation of PLCs are checking the proper
operation of the random-access memory (RAM), the microprocessor, the battery, and the power
supply. The user is able to initiate specific diagnostic tests that are mainly related to the memory
or other units, e.g., the communication ports.

6.8.1 Memory Organization
The executable program, the user’s program (the automation program), the states of the I/Os, and
various data of non-permanent nature are stored in the memory of a PLC. The term “memory orga-
nization” is described as the fragmentation of the memory in various sectors where each one has a
228 ◾ Introduction to Industrial Automation

specific aim and corresponding size. Even if every PLC manufacturer has a different organization
of the memory, the memory of a PLC more or less follows the same general structure. In Figure
6.31, a typical fragmentation of a PLC memory is displayed in five sectors. The size of every memory
sector, and thus the overall size of the memory, varies based on the size and characteristics of the
PLC. For example, the size of the memory is different for a small PLC controlling 128 I/Os from
a PLC controlling 1024 I/Os. The capacity of the memory, independently of its type, is defined by
the number of digital bits that it can store. A memory of 1 kB size is able to store 1024 B, which
means that under the assumption of instructions of 1 B, the memory can store up to 1024 program
instructions, while if this is an I/O memory, it has the ability to store the state of 8192 discrete I/Os.
Therefore, the same memory size indicates different issues if it refers to a program storage or to other
internal units. For this reason, the total memory of a PLC is not such a dominant characteristic,
such as in the case of PCs, as this memory can be easily extended when needed.
The operating system, stored from the manufacturer in a ROM memory, is forcing the micro-
processor to execute the various operations, such as scanning the inputs, updating the outputs,
the execution of the user’s program, etc. Subsequently, the process of memory access in the various
sectors of the RAM will be examined, in accordance with the previous functionalities.

◾◾ The user is programming a PLC in a language consisting of graphical instructions or


alphanumeric instructions (e.g., AND Input 1). The instructions of the user’s program, inde-
pendently from their form, are stored in binary form in the memory sector named “automa-
tion program” or “user program”. The operating system (executable program) is forcing the
microprocessor to execute these instructions one by one and to translate them into equivalent

Memory organization of PLCs

Operating system ROM

Input/output status memory

Memory for storage of


temporary system data

Data memory for


timers, counters, auxiliary bits
RAM

Memory reserved
Address for user-program storage

0002
0001 Memory register
0000

Figure 6.31 Usual organization of memory in PLCs.


Basic Operating Principles of PLCs ◾ 229

instructions in assembly. The software often contains instructions that require data from
other parts of the memory. In this case, the operating system is driving the microprocessor
to collect these data for further processing. For example, if one instruction refers to a digital
input state, the microprocessor is responsible for tuning the operation to get this value from
the memory, specifically from the “input image table”.
◾◾ Every time that the operating system requests the microprocessor to scan the current states
of the inputs, it stores this information in the input mapping memory, also called the input
image table. Subsequently, as the microprocessor executes the automation program, various
state updates for the output devices are produced. These states are stored from the microproces-
sor in the output mapping memory, also called the output image table. When the execution
of the automation program’s instructions is finished, the output modules are updated, which
means that the stored states in the output mapping memory are transferred to the outputs.
◾◾ As the operating system executes the various operations through the microprocessor, it is
normally required to temporarily store some information or current results. For this pur-
pose, a specific memory sector from the RAM is dedicated, where the user has no access.
◾◾ When the automation program contains instructions that are related with counters, timers,
auxiliary bits, and data functions, then another specific sector of the memory is needed for
storing the corresponding parameters. For example, the CPU has to store the number and
type of time units (e.g., ms, sec, min, etc.) in the case of timers, or the limits and the count-
ing step for the case of counters. When an automation program’s instruction is executed that
concerns a counter or a timer, the operating system drives the microprocessor to seek the
corresponding data in this memory sector.

At this point, the role of the auxiliary memory bits should also be explained. From the design of
classical automation circuits, it has been indicated that the implementation of the logic according
to which the controlled system operates, requires the utilization of auxiliary relays multiple times.
The main role of these auxiliary relays is to represent an operational state of the automated system,
and to provide necessary NC and NO contacts, which are inserted properly in the automation
circuit. In programmable automation, the role of an auxiliary relay takes a simple memory location
of a single bit. The activation and deactivation of an auxiliary relay is equivalent to the storage of a
logical “1” or “0” respectively, in the memory sector dedicated for this purpose. The utilization of
the relay’s auxiliary contacts is equivalent to calling functions of an auxiliary memory bit through
the automation program instructions. Since this call can take place as many times as necessary in
an automation program, this is referred to in programmable automation as an “infinite number of
contacts” situation. The memory locations with the auxiliary bits are sometimes mentioned also
as “internal coils” or “logical coils” in correspondence to the coils of the auxiliary relays. Every
auxiliary memory bit in the corresponding memory location has its own address, so that it can be
defined uniquely through the related instructions.
After the description of the I/O modules, CPU structure, memory, and communication and
data exchange buses, the overall functionality and construction of one PLC can be addressed. This
component-based approach is indicated in the block diagram of Figure 6.32. In short, the overall
operation of a PLC involves the following operations:

1. The CPU sequentially defines the addresses of the inputs through the address bus, transfers
the states of the inputs through the data bus, and stores them in the input mapping memory.
2. The CPU sequentially executes the automation program instructions, stored in the corre-
sponding memory.
230 ◾ Introduction to Industrial Automation

PLC memory
Automation Register
program Address
Microprocessor
I1.0 0000
Program
counter
I1.3 0001

Instruction I2.1 0002


register
Instruction Q1.5 0003
scanner

Decoder I3.1
Clock

...
Optional RAM
EEPROM

Automation Memory
program
ROM Battery
Operating
system
Auxiliary bits
(logic coils)

Timers

Input
mapping Counters
memory

Output
mapping Data
memory memory

Input module Output module

I1.0 Q0.0
I1.1 Q0.1
Address

Address
decoder

decoder

I1.2 Q0.2
I1.3 Q0.3

Address Data
bus bus

Figure 6.32 General internal structure of a PLC.

3. The results from the execution of the output activation or deactivation instructions are
stored in the output mapping memory.
4. When the automation program instructions refer to auxiliary bits, timers, counters, and
other internal units, then the microprocessor is referring to corresponding memory locations
through the data and address buses.
5. The CPU, by sequentially defining the addresses of the outputs through the address bus,
transfers the output states from the output mapping memory to the corresponding outputs
through the data bus. This output update creates a corresponding change in the operational
states of the output devices.
6. All the previous actions are driven from the operating system stored in the ROM.
Basic Operating Principles of PLCs ◾ 231

The battery allows the retention of the automation program in the RAM memory, even when
the power supply has been interrupted, and it is possible to equip the PLC with an extra memory
of EEPROM type (see Section 6.8.2) for permanent storage of the automation program.

6.8.2 Memory Types
As has been shown up to now, there are various types of memories that a PLC utilizes (e.g., ROM,
RAM, etc.) In this section, the most common memory types found in a PLC, will be described,
including their typical characteristics and their specific utilization in the PLCs.

6.8.2.1 Read Only Memory (ROM)


The non-volatile memories (ROM) are used for the permanent storage of functional data and
programs, so that only the action of reading of the memory contents is allowed. In general, the
information stored in a ROM memory of a PLC is put there by the manufacturer, and is mainly
related to the way that the PLC operates. Specifically, the operating system of the PLC is stored in
the ROM memory and contains the set of instructions for operating the PLC. The ROM instruc-
tions cannot be erased, which means that they have the ability to retain their stored data, even in
the case of a power supply cut, thus they do not require an emergency power supply.

6.8.2.2 Random Access Memory (RAM)


RAM memories are sometimes referred to as read or write memories, and are designed in a way
that data and programs can be directly written or read from, without restrictions. These memories
consist of the most flexible type of memory, since the user is able to access all of the memory loca-
tions and add new data directly by erasing the previously written information as many times as
needed. In the RAM memory of a PLC, the data are stored electrically through the programming
device and, in some cases, it is not needed to stop the operation of the PLC. Usually in the RAM
memory, the automation program of the user is stored as well as any other data that are produced
or acquired during the execution of this program.
In a potential power supply loss, even an instant one, the RAM memory loses all of its con-
tents. This means that in a case of power failure, the PLC will lose the automation program and
thus it is necessary to load the program again. To deal with this case, RAM memory is combined
with a battery that can provide necessary power to the memory for retaining the current data for
a time window of about one year.

6.8.2.3 Erasable Programmable Read Only Memory (EPROM)


Today, EPROM memory is not used in computers and PLCs and has been replaced by EEPROM
chips. We refer to this kind of memory only because an engineer may encounter it in old PLCs still
operating in some industries. The EPROM memory, in contrast to its name, is a ROM type memory
that can be reprogrammed after a complete erase by the application of ultraviolet radiation. Unlike
RAM, EPROM does not lose its stored information in a potential power loss, and it does not allow user
access to change the information already stored there. The integrated circuit of the EPROM memory
carries a small window over the memory position, and when ultraviolet radiation is transmitted there
for a few minutes, the contents of the memory are erased. This process demands to remove the EPROM
memory from the PLC and to transfer it to a specific erasing unit. This process is an overall disadvan-
tage, since the operation of the PLC needs to be terminated. After erasing the EPROM, a full automa-
tion program can be stored to the memory through the utilization of the programming device.
232 ◾ Introduction to Industrial Automation

6.8.2.4 Electrically Erasable Programmable Read Only Memory (EEPROM)


The EEPROM memory is a type of memory that can be erased by the application of an electri-
cal voltage through proper electrical connections to the memory’s IC through the programming
device. After this erase, the EEPROM memory can be rewritten and it does not lose the stored
information in a potential power loss. Although it shows the same flexibility as RAM memory, it
is generally slower (slower data access to the stored information) than RAM memory.
When an automation program is loaded for the first time in a PLC, the testing phase of the
overall control system follows. During this time, it is quite common to require changes and altera-
tions in the automation program, changes that can be directly applied to RAM memory by the
sequential download of the modified program. After the finalization of the automation program
and its proper operation, this is transferred to the EEPROM (if such a memory is available in the
PLC) which constitutes the final and definitive memory for the normal operation of the PLC.
Many larger PLCs have the capability to accept, except from basic RAM, external memo-
ries in specific slots that are available for this purpose. These memories are usually of EEPROM
or FLASH type, can vary in capacity, and are utilized for program or data storing. A FLASH
memory is similar to an EEPROM memory, with the main differences between them concerning
the user, the access, and erase manner of the stored data. In the first one, blocks of thousands of
bytes can be erased at a time, while in the second one, a byte at a time is possible to be accessed
and erased. Finally, many PLCs can be connected to external storage devices, such as hard drives
for the storing of big automation programs or sets of data.

6.8.3 Addressing I/Os and Other Internal Elements


Every digital input or output of a PLC is characterized by a unique name that will be utilized dur-
ing the automation logic programming. This name is nothing else but the address of the digital
I/O that expresses the corresponding position of the I/O between others. Thus, every digital I/O
has an address that defines its position in the specific I/O module, as well as its position in the I/O
mapping memory. The type of the addresses that are provided to the I/Os of a PLC varies with
each manufacturer, since until now there has been no standardized way in addressing them. The
same unstandardized addressing situation is found in the other internal components of a PLC,
such as the auxiliary bits, timers, and counters.
Every PLC manufacturer uses its own addressing system, which may be based on the decimal
or octal system, use numerical or alphanumeric data, etc., while subsequently, reference will be
provided to the most common addressing methods. The decimal I/O addressing system uses num-
bers 1–8 for the first group, 9–16 for the second, 17–24 for the third, and so on. The octal system
uses only eight digits from 0–7, that is, numbers 0–7 for the first group, 10–17 for the second,
20–27 for third, and so on. The distinction between inputs and outputs is done by adding a letter,
such as X, I, or E for inputs, with I as the predominant one; and Y, O, or Q for outputs, with Q
as the predominant one. Other addressing systems do not use letters but only five- or four-digit
numbers. For example, each interconnection point with a code between 0000 and 0999 may be
an output, while with a code between 1000 and 1999 may be an input.
The digital I/Os of a PLC, with a byte memory structure, are also grouped by octets. In this
case, a digital I/O is uniquely characterized by the octal bit corresponding to it, as shown in
Figure 6.33. For an octal system of addressing, the first digit represents the number of the byte and
the second digit is the number of the bit into the byte. Thus, digital input I 6.3 corresponds to the
bit 3 of the byte 6, with respect to the input mapping memory and, at the same time, corresponds to
Basic Operating Principles of PLCs ◾ 233

Input mapping memory


Absolute
Bit 7 6 5 4 3 2 1 0 address
Byte 0 0000

Byte 1 0001

Byte 2 0010


I1.1
I2.5

Figure 6.33 Grouping and addressing of digital inputs according to an octal system.

the fourth input of the sixth input group, with respect to the input module. In addressing systems
with a five-digit number (e.g., 110 00), the first digit determines whether the connection point
is an input 1 or an output 0, the second digit expresses the number of the base with various I/O
modules, and the third digit is the number of the I/O module. Very small PLCs, with 10–20 I/Os,
follow the decimal addressing system. In some large PLCs, the addressing system may be “flex-
ible”, i.e., the I/O addresses are set by the user via DIP switches or by programing the addressing
data into an EEPROM memory. In the case of non-flexible addressing systems, each I/O module
and every corresponding I/O has a fixed address. The procedure of determining the specific I/Os
for the PLC where the corresponding I/O devices will be connected, known as I/O address assign-
ment, is an important task that may or may not simplify the automation programming task, the
diagnosis of errors, and dealing with general logical programming problems.
The other internal elements of a PLC are addressed in an analogous or even simpler way. The
auxiliary bits or logic coils and the corresponding memory locations are encoded with the letter
M or F (from the English terms “memory bit” or “flag”) followed by a two- or three-digit number
with decimal or octal numbering. Also, with “Txxx” the memory locations for the timers are
defined, with “Cxxx” the memory locations for the counters, and with “Sxxx” usually the gen-
eral content memory locations, where “xxx” is an integer number, the maximum of which varies
according to the size of the PLC.

6.9 PLC Expansion and I/O Configuration


Small PLCs with a compact structure have a predetermined set of inputs and outputs, which is
not subject to any kind of change. The opposite is true in the case of large PLCs, whose CPU has
the ability to control a few hundred (or thousands) of inputs or outputs. In the latter case, the I/O
system (which is the PLC hardware including any kind of I/O modules) is not fully predetermined
by the manufacturer; instead, the engineer can configure it according to the application’s needs.
The need for a large number of I/Os served from a CPU requires the extension of the PLC in
additional racks of I/O modules. Multiple possibilities of expandability for PLCs of this category
include the possibility of local or remote I/O modules, the variable number of I/O modules that
can be supported in both cases, as well as the selection of I/O modules with a different number
of I/O channels in each, which define the problem of proper design and configuration of the I/O
system of a central PLC.
234 ◾ Introduction to Industrial Automation

The overall design of the PLC I/O hardware needs a priori information on the relevant techni-
cal characteristics of all the available PLCs in the market that could satisfy the required control
and functional characteristics of the control system. Every particular application dictates partially
the way to design the proper I/O hardware; however the design engineer should make a significant
number of the decisions. Since these decisions concern the I/O hardware, they also indirectly
affect the automation software program to be developed, and the appropriate or inappropriate I/O
system design, which has a direct effect on the ease or the difficulty in developing the required
automation software. At the same time, the cost of the I/O hardware can often be more than the
cost of the CPU, which is also the most expensive part of a PLC. For the above reasons, a care-
ful and thorough design of the PLC I/O system is required, which should be based on a detailed
recording of the operational data and specific requirements of the system to be automated.

6.9.1 Local and Peripheral I/O System


In applications where a large number of I/Os are controlled by a central PLC, it is expected that
a part of the I/O devices will be at a long distance from the PLC. In this case, a cost-effective and
technically convenient solution for connecting the devices is to remove the I/O modules from the
PLC, place them close to the I/O devices, and to remotely connect them with the PLC through a
“communicative type” link, as shown in Figure 6.34b. Otherwise, the remote I/O device should
be connected directly to the respective I/O modules via multiple power lines, as indicated in
Figure 6.34a, a solution that not only greatly increases the installation costs, but also makes the
connection more susceptible to electromagnetic noise interference and functional failure. When
the PLC has to be extended to more than one rack for I/O hardware support, it is possible to have
a communicative type link between the CPU and the additional racks.

Switchgear for supplying


power to devices

C
P
Ps U
...

Power connections
...

(a)
Switchgear for supplying
power to devices

C C C
P P P
Ps U
...

...

Communication connection cable


Remote
output module
(b)

Figure 6.34 Two possible ways for connecting remote I/O devices in a PLC: through power
lines (a) and through communication processors (b).
Basic Operating Principles of PLCs ◾ 235

The I/O hardware of a PLC is designated as “local” when the corresponding I/O modules are
located in the immediate neighborhood of the CPU. The distance that defines the designation “local
I/O hardware” is determined by the distance of the interconnecting cable between the CPU and
the I/O hardware, generally defined in the order of a few meters (20–50 m). When it is desirable to
place the I/O modules at a relatively greater distance for the reasons explained above, then the I/O
hardware is designated as “peripheral” and special communication equipment is required for the
operation of the remote modules. The spacing in the placing of the peripheral I/O hardware is in the
order of a few kilometers (1–10 Km). Figure 6.35 presents the characteristics and differences between
the local and peripheral I/O hardware, while it is obvious that the local I/O modules are no different

Central PLC
C with I/O extension
C C
P P P
PS U

1st local extension unit


Peripheral
interconnecting
C cable
P

1st peripheral extension unit


Mounting base
of I/O hardware
C
Local
P
Local interconnecting cable PS
communication
modules
2nd local extension unit Mounting base
of I/O hardware

C
P Peripheral I/O modules
Peripheral
communication
modules
Mounting base
of I/O hardware
2nd peripheral extension unit

Local I/O modules C C


P P
PS
Last local extension
unit up to a few meters

Local extension of
Local I/O extension system
a peripheral unit

Last peripheral
extension unit up to
a few hundred meters

Peripheral I/O extension system

Figure 6.35 Local and peripheral I/O hardware of a PLC.


236 ◾ Introduction to Industrial Automation

Peripheral extension unit


C C C C C
P P P P P
PS U PS PS PS

(a)
Peripheral extension unit
C
P
PS

C
P
C C PS
P P
U
PS U

C
P
PS
PS

(b)

Figure 6.36 Peripheral expansion of the I/O hardware of a PLC, with series topology (a) and
star topology (b).

than the corresponding peripheral ones. The difference exists only in the means of communication,
in the communication units (CPs) and connecting cables. The main reason for the differentiation of
the hardware at a local and peripheral level is the voltage drop that occurs in the interconnecting cable
when it is long. For this reason, the I/O hardware expansion peripheral units require additional power
supplies (PSs) (see Figure 6.35), which are not necessary in the local expansion units.
PLC manufacturers do not always follow the layout of Figure 6.35, while, on the contrary,
there are differences that do not undermine the general principles. In addition to the simple local
extension of a PLC, there are two basic peripheral extension topologies, the serial and star topol-
ogy presented in Figure 6.36. In each peripheral expansion unit, it is possible to have a local
extension of the I/O hardware. Local expansion I/Os modules are usually mounted in the same
electrical enclosure together with the CPU and the power supply. The peripheral I/O hardware is
installed in separate enclosures at corresponding remote extension points.

6.9.2 I/O System Design


With the design of the I/O system of a large PLC, the application engineer needs to determine the
local and peripheral I/O modules, their number and type per local or peripheral category, the com-
munication hardware and any other auxiliary equipment, and generally the overall I/O hardware
Basic Operating Principles of PLCs ◾ 237

needed so that the PLC is connected to the controlled process. The design of the I/O system includes
counting I/O devices and the recording of their operational characteristics; grouping I/O devices
based on various criteria such as operating voltage, position, operational function, etc.; incorporation
of the I/O devices into the local or peripheral I/O system; and determination of the number and type
of required I/O modules and the required complementary communication equipment.
The design of the I/O system begins with counting the I/O devices and examining their opera-
tion. For example, we measure the power relays, various simple coils, light indicators, signaling
devices, control buttons, selector switches, sensors and, in general, any device that can be an input
or output to the PLC. By taking the positions and the characteristics of the I/O devices into con-
sideration, the ability to incorporate them into similar groups is investigated, either because they
exist on the same machine or in the same production process; because they are topographically
close and have a similar functionality; or because they have the same technical characteristics (e.g.,
nominal operating voltage). After determining the groups with the I/O devices, the selection of
the groups that will constitute the local I/O system and those that will constitute the peripheral
I/O system will follow. A prerequisite for defining the local and peripheral I/O system is the
determination of the location in which the PLC will be installed, a decision taken on the basis of
general technical and economic criteria.
An example would be the above design steps that are necessary for the configuration of the I/O
system of a central PLC, which will be better understood by means of a hypothetical automation
system. Figure 6.37 presents the topographic diagram of the departments of a hypothetical indus-
trial process. The PLC will be located in the area of the first department and will be connected to
its devices with local I/O equipment, while for connecting to the corresponding second and third
departments, peripheral I/O equipment will be utilized. Based on the I/O devices that have been

1st department, basic production 3rd department, packaging

Motors DS = 20
Motors IR = 5 Motors DS = 6
Motors S/D = 8 Motors S/D = 6
Buttons* = 6 Lamps* = 8
Lamps* = 20 Limit switches = 10
Limit switches = 20 Photocells = 6
Valve coils = 12 Rotational switches = 3
Photocells = 10
Proximity switches = 5
Signaling devices = 2
Analog inputs = 4
Analog outputs = 2

2nd department, product processing

Motors DS = 12 Signaling devices = 10


Motors IR = 2 Analog inputs = 2
Motors S/D = 10 Analog outputs = 2
Limit switches = 5
Valve coils = 20
Photocells = 10
Proximity switches = 20
PLC location

(*) These devices are additional over those required for handling, indicating operation of motors
DS = direct starting, IR = inversible rotation, S/D = star-delta starting

Figure 6.37 A small production procedure consisting of three departments controlled by a


central PLC.
238 ◾ Introduction to Industrial Automation

Table 6.2 Local and Peripheral I/O Devices of the Industrial Production Application
Shown in Figure 6.37
LOCAL DEVICES PERIPHERAL PERIPHERAL
FIRST DEVICES SECOND DEVICES THIRD
DEPARTMENT DEPARTMENT DEPARTMENT
QUANTITY/ QUANTITY/ QUANTITY/
I/O DEVICE (KIND) VOLTAGE VOLTAGE VOLTAGE

MOTOR DS 20 / 230 V AC* 12 / 230 V AC 6 / 230 V AC

MOTOR IR 5 / 230 V AC 2 / 230 V AC –

MOTOR S/D 8 / 230 V AC 10 / 230 V AC 6 / 230 V AC

BUTTON 71 / 230 V AC 50 / 230 V AC 24 / 230 V AC

6 / 24 V DC – –

INDICATION LAMPS 71 / 230 V AC 50 / 230 V AC 24 / 230 V AC

20 / 24 V DC – 8 / 24 V DC

VALVE COILS 12 / 24 V DC 20 / 24 V DC –

LIMIT SWITCHES 20 / 230 V AC 5 / 230 V AC 10 / 230 VAC

PHOTOCELLS 10 / 230 V AC – 6 / 230 V AC

PROXIMITY SWITCHES 5 / 230 V AC 20 / 230 V AC –

ROTARY SWITCHES – – 3 / 230 V AC


(TWO POSITIONS)

SIGNALING DEVICES 2 / 24 V DC 10 / 24 V DC –

ANALOG PNPUTS 4 / 4–20 mA 2 / 4–20 mA –

ANALOG OUTPUTS 2 / ± 1V 2 / ± 1V –
(*) The voltage 230 V AC refers to the nominal operation voltage of the relay coil feeding the corre-
sponding motor.

counted in each department and the examination of their technical characteristics, a detailed
table of local and peripheral I/O devices can be synthesized. Table 6.2 shows the I/O devices
divided into three groups (columns), one including the local I/O devices and two including the
peripheral I/O devices for the second and third departments, respectively. This table shows also
the type, quantity, and technical characteristics of each device. From the technical characteristics,
we should only emphasize the ones that influence the choice of the I/O equipment of the PLC,
such as the nominal operating voltage of the I/O devices. Also included in the table are those
devices that have not been counted directly from consideration of the process, but are necessarily
imported by the automation system (circuit or program of automation) that the PLC will real-
ize. For example, the control buttons of any kind of motors do not result from counting, but are
imported necessarily by the automation circuit, since the latter provides the possibility of manual
control of the motors in addition to any automatic operation. The same is valid for the indication
lights of a motor’s operation. To meet the I/O equipment requirements identified in Table 6.2,
PLCs with similar capabilities are assumed. These capabilities of PLCs concern the RAM (> 4 K),
Basic Operating Principles of PLCs ◾ 239

the local or peripheral expansions, the maximum number of inputs or outputs that they can cover,
their specific control and communication modules that are available, etc. It is also assumed that
the PLCs have I/O modules with different numbers of inputs or outputs per module (e.g., 4, 8, 16,
and 32, with I or O per module), both digital and analog ones.
The next design step for I/O system configuration is the classification of each I/O point (I/O
device) per group (column) in Table 6.2. The various I/O points of Table 6.2 are classified according
to whether they are digital or analog I/Os, the level of the nominal operating voltage (230 V AC, 24
V DC, etc.), and the type of point (input or output). The result of such a classification is presented
in Table 6.3, from which it is possible to precisely determine the required I/O equipment, namely
the I/O modules needed, the mounting racks of the modules in the local and peripheral system, the
communication modules, the power supplies, etc. The existence of I/O modules with different I/O
densities, allows for the adoption of many alternative solutions, from which the most economical
and functional should be selected. An additional characteristic from the various PLC manufactur-
ers is the number of I/O modules that could be placed on an extension hardware rack. Based on the
module capacity per rack and considering the inevitable occupation of positions by power supplies
and communication modules, the required expansion units in both the local and the peripheral I/O
system can be determined. Since it is beyond the scope of this book to provide a detailed description
of all the alternatives, it will be assumed only digital I/O modules with a density of 16 inputs or
outputs per module, analog I/O modules with a density of 4 analog inputs or outputs per module,
and expansion bases or racks with a capacity of 8 modules per base, will be assumed. Based on
these data, as well as the data in Table 6.3, we can easily estimate that the I/O modules presented
in Table 6.4 are required. Since the 24 V DC digital inputs are only 6 in the local I/O system, a
special input module with 8 digital inputs is selected in this case. The final equipment specified in
Table 6.4 is not the optimal one. Several combinations of modules with different I/O densities can
be made. For example, a total of fourteen 24 V DC digital outputs to the local I/O system will
remain unused for the future, a number that can be considered excessive. Thus, it would be pos-
sible to select 2 modules with 16 outputs per module, and 1 module with 4 outputs, so that with
36 total outputs it could more economically cover the need for 34 outputs (2 digital outputs for
future use). Also, in the peripheral I/O system of the third department, the one expansion base will
be almost empty, since it will contain only two I/O modules. A different choice of the I/O density
of the modules may provide a more functional design. Figure 6.38 shows the electrical diagram of
the interconnection of all the I/O equipment, including the central PLC. It should be highlighted
that the specific configuration of the I/O equipment corresponds to the hypothetical choice made
for the I/O density per unit. Different density options will give us different configurations. The
examination of all possible configurations and the search for the most economical of them is now
taking the form of a techno-economical study that the engineer should be able to carry out. At this
point the design configuration of the I/O system for this example is finished.
The above I/O system design, but also any similar one for any other industrial application,
should be made in relation to the existing PLC systems in the market. This means that the design
engineer should always be updated on the existing PLCs and their corresponding size and capa-
bilities, so that during the selection study, the final design will converge towards the most eco-
nomical PLC selection. However, it is obvious that, independently of the final selected PLC, the
final design cannot have exactly the required size of the controlled industrial process. In general,
there will always be some redundant equipment, either I/O modules or expansion slot positions,
that can be accepted as further availability for future use.
Apart from the cost comparison between the various PLCs for choosing the most cost-effective
one, one must account for the cost of the equipment required to install the PLC. Both the PLC’s
Table 6.3 Calculation of the Required I/O Digital and Analog Points for the Industrial Production Application Shown in Figure 6.37
240 ◾

LOCAL CONNECTION PERIPHERAL CONNECTION PERIPHERAL CONNECTION


FIRST DEPARTMENT SECOND DEPARTMENT THIRD DEPARTMENT
MODULE TYPE I/O NUMBER OF I/O POINTS NUMBER OF I/O POINTS NUMBER OF I/O POINTS

DIGITAL OUTPUTS 230 V AC Relays for motors DS 20 Relays for motors DS 12 Relays for motors DS 6

Relays for motors IR 10 Relays for motors IR 4 Relays for motors S/D 18

Relays for motors S/D 24 Relays for motors S/D 30 Indication lamps 24

Indication lamps 71 Indication lamps 50 TOTAL 48

TOTAL 125 TOTAL 96

DIGITAL INPUTS 230 V AC Buttons 71 Buttons 50 Buttons 24

Limit switches 20 Limit switches 5 Limit switches 10

Photocells 10 Proximity switches 20 Photocells 6


Introduction to Industrial Automation

Proximity switches 5 TOTAL 75 Proximity switches 3

TOTAL 106 TOTAL 43

DIGITAL OUTPUTS 24 V DC Valve coils 12 Valve coils 20 Indication lamps 8

Signaling devices 2 Signaling devices 10

Indication lamps 20 TOTAL 30

TOTAL 34

DIGITAL INPUTS 24 V DC Buttons 6 – –

ANALOG OUTPUTS ± 1 V 2 2 –

ANALOG INPUTS 4–20 mA 4 2 –


Basic Operating Principles of PLCs ◾ 241

Table 6.4 Calculation of the required I/O modules for a preselected density of I/O points
per module
Local System Peripheral System Peripheral System
FIRST Department SECOND Department THIRD Department
Module Type I/O Number of Modules Number of Modules Number of Modules

MODULES OF 16 DIGITAL 8 3 6 0 3 0
OUTPUTS 230 V AC

MODULES OF 16 DIGITAL 7 6 5 5 3 5
INPUTS 230 V AC

MODULES OF 16 DIGITAL 3 14 2 2 1 8
OUTPUTS 24 V DC

MODULES OF 8 DIGITAL 1 2 – –
INPUTS 24 V DC

MODULES OF 4 ANALOG 1 2 1 2 –
OUTPUTS ±1 V

MODULES OF 4 ANALOG 1 0 1 2 –
INPUTS 4-20 mA

TOTAL NUMBER OF 21 15 7
MODULES

NUMBER OF EXTENSION 3+1 4 3 5 2 6


RUCKS
Note: The numbers in narrow columns express the redundant inputs or outputs which are avail-
able for future use, except for the last row where empty places in the ruck express the
future installation of modules.

central unit and the peripheral units are placed in industrial-type electrical enclosures. These
industrial enclosures should be of an appropriate size for the spacious installation of the PLCs’
units, and their dimensions should be calculated to meet the maximum temperature criterion in
their interior. Additionally, it should still be possible to place all the components in such a way to
provide easy access. Thus, in the event of a fault or maintenance, the replacement of some com-
ponents should not be time consuming. For large PLCs, the cost of installing the equipment in a
way that meets the manufacturer’s specifications and international regulations is quite important.
With the extension of a central PLC to a peripheral I/O system, it is possible for one portion
of the controlled production process to shut down for maintenance, conversion, etc., while the
remainder of the process is working properly. With the peripheral I/O system, the placement
of multiple PLCs in different parts of an industrial process can be avoided, without implying
that this is always possible or desirable. Instead, in the case of very large industrial processes or
multiple small processes under operational coordination, independent PLCs are installed and
interconnected through a communication network. The relatively smaller PLCs, interconnected
over an industrial network, are able to replace a large central PLC and have the advantage that
the likelihood of a simultaneous failure of all the PLCs is very small. On the contrary, a failure
in the central PLC is quite possible, and this has the potential that the whole process will be out
of control.
242 ◾ Introduction to Industrial Automation

PLC central unit


16 16 16 16
DO DO DO DO
Peripheral extension unit
C C C
for 3rd department
P P P 16 16 16 16 16
1 2 DI DI DI DO DO
PS U C C
P P
2 1
PS
220 V 220 V 220 V 220 V

220 V 220 V 220 V 220 V 220 V

1st local extension unit


16 16 16 16 16 16 16
DO DO DO DO DI DI DI
C 16 16
P DO DO
C
1 P
1

220 V 220 V 220 V 220 V 220 V 220 V 220 V


220 V 24 V =

Peripheral extension unit


for 2nd department
2nd local extension unit 16 16 16 16 16
C DO DO DO DO DO
16 16 16 16 16 16 16 C
DI DI DI DI DO DO DO P P
C
2 1
P PS
1

220 V 220 V 220 V 220 V 220 V

220 V 220 V 220 V 220 V 24 V = 24 V = 24 V =

16 16 16 16 16 16 16
DO DI DI DI DI DI DO
C
3rd local extension unit P
8 4 4 1
DI AO AI
C
P
1
220 V 220 V 220 V 220 V 220 V 220 V 24V =

24 V = ±1 V 4-20mA

16 4 4
DO AO AI
C
P
Local I/O system 1

24 V = ±1V 4-20mA

Peripheral I/O system

Figure 6.38 I/O hardware system configuration for the industrial production application
shown in Figure 6.37.
Basic Operating Principles of PLCs ◾ 243

6.10 On the Installation of PLCs


The installation and operation of PLCs should follow certain rules and standards in order to avoid
operational problems as much as possible. In this case, particular attention should be paid to the
installation of the PLCs in harsh industrial environments, since more causes for malfunctions
exist. The primary source of installation instructions for a PLC is always the manufacturer of the
PLC the directions of which should be followed closely. In addition to the installation instruc-
tions from a particular PLC manufacturer, there are some more general issues regarding the proper
functionality of the PLCs that are addressed in the following subsections.

6.10.1 Electrical Enclosure for the PLC Installation


International standards and standardization associations* have adopted a number of specifications
that industrial electrical enclosures should meet. These regulations are related first to the environ-
ment where the PLCs will be installed and second to the degree of protection required by the
contained electrical equipment. For example, the National Electrical Manufacturers Association
(NEMA) defines the enclosure type 12 as suitable for electronic control devices. More analytically,
enclosures of this degree of protection are constructed without knockouts for indoor use to provide
protection to personnel against access to hazardous parts, against ingress of solid foreign objects
(falling dirt and circulating dust, lint, fibers, and flying), and to provide protection with respect to
harmful effects on the equipment due to the ingress of water (dripping and light splashing). The
International Protection Rating, often referred to as an Ingress Protection (IP) rating, is a set of
codes used to define specific levels of enclosure protection. These codes consist of the prefix IP, fol-
lowed by two numbers that express classifications used to measure levels of protection. The overall
IP ratings according to IEC 60529 standard are displayed in Table 6.5.
A key issue in the installation of a PLC that should not be overlooked is the heat dissipation
within the electrical enclosure in which the PLC will be installed. In this case, the temperature
inside the electrical enclosure must not, for any reason, exceed the maximum operating tempera-
ture set by the manufacturer of the PLC, which in most cases is about 50°C. For this reason, the
type of electrical enclosure and its dimensions should be calculated according to the equivalent
thermal load of installed power devices, where the possible ventilation will be examined if it is
required.
To avoid electromagnetic interference within the PLC’s enclosure, the high-power electrical
equipment should be completely separated from the low-power electronic or control equipment.
The power equipment includes:

◾◾ Power relays
◾◾ Transformers
◾◾ Frequency converters
◾◾ DC power supplies
◾◾ Any other power device

* International Organizations: IEC: International Electrotechnical Commission; CENELEC: European


Committee for Electrotechnical Standardization; National Organizations: VDE Germany; BSI England; UTE
France; NEMA USA.
244 ◾ Introduction to Industrial Automation

Table 6.5 Ingress Protection (IP) Ratings of Electrical Enclosures according to IEC 60529
Ingress Protection (IP) Two-Number Ratings

1st Number Protection against SOLIDS 2nd Number Protection against LIQUIDS

0 No protection 0 No protection

1 Protection against objects over 50 mm 1 Protection against vertically falling


(e.g. hands, large tools) drops of water or condensation

2 Protection against objects over 12 mm 2 Protection against falling drops of water


(e.g. fingers) up to 15° from vertical

3 Protection against objects over 2.5 mm 3 Protection against water spray up to 60°
(e.g. wires, small tools) from vertical

4 Protection against objects over 1 mm 4 Protection against water spray from all
(e.g. wires, specific fine tools) directions

5 Limited protection against dust 5 Protection against low pressure water


jets from all directions

6 Complete protection against dust 6 Protection against high pressure water


jets from all directions

7 Protection against temporary immersion


in water

8 Complete protection against long periods


of immersion in water under pressure
Example: IP 67 Enclosure means totally protected against dust and immersion

The control equipment (low power) mainly includes the PLC, but also any other special purpose
electronic device, e.g., an electronic stepper motor drive card. A galvanic link is created when two
or more electrical circuits share a common part of an electrical conductor, as shown in Figure 6.39,
which is usually the case for earth and chassis connections. In the circuit of Figure 6.39a, a voltage
drop will be created in the common conductor with Z impedance when the relay C is energized.
This voltage drop interferes with the signal in the second circuit containing the PLC, which has
undesirable side effects. The simplest solution to this problem is to aim for a short a length as possi-
ble of the common part of the conductor, a property that is able to reduce the interference due to the
galvanic coupling. This situation is explained in Figure 6.39b as well as in the following example.

I2
Inputs
INPUTS Inputs
INPUTS

C PLC
PLC C PLC
PLC
V
V22 V
V 11 VV22 VV11

I1
Outputs
OUTPUTS
I1 Outputs
OUTPUTS

Z I2
I1+I2

(a) (b)

Figure 6.39 Galvanic coupling in electric circuits with a common return conductor. (a) voltage
drop among Z impedence, (b) minimum length of common conductor.
Basic Operating Principles of PLCs ◾ 245

Example 6.1 Voltage Drop Interference


The value of the Z impedance determines the magnitude of the voltage drop. For a cable with an
impedance of 250 nH/m lead and a switching current of 1.2 A (after the closing of the switch), with
a rise time of 0.1 μS, the interference voltage will be Vinterference = L(di/dt)=3 V.

Except for the separation of the equipment in low and high power, special care should be taken to
ensure that the power lines (cables) are lead into the electrical enclosure in separate plastic channels from
the corresponding conductors that are carrying the control or the measurement signals. Many industrial
enclosure manufacturers separate the equipment and the conductors even at their carrying power level.
For example, they can separate the 230 V AC cables from the 24 V DC conductors that usually feed the
control units to reduce the probability of electrical interference. In Figure 6.40, there are two examples
of a right and a wrong separation of equipment within an industrial electrical enclosure. Generally, if
some simple rules are applied, it can be ensured that the equipment is operating properly within the
industrial electrical enclosure, and that the causes of electromagnetic interference are avoided as follows:
1. In the case of lighting inside an industrial enclosure, always use a light with filament tube
(Linestra).
2. The cables inside the industrial electrical enclosure are separated into the following three
categories:
a. Power cables (e.g., power supply cables, motor cables, etc.)
b. Signal and control cables (network cables, digital cables, closed loop cables, etc.)
c. Measurements cables (e.g., analog signal cables from sensors)
3. The power, control, and data cables should be placed at the largest possible distance between
them to avoid capacitive and inductive coupling.
4. Always separate the AC cables from the DC cables.
5. The distance between the power cables and the cables carrying digital signals should be at
least 10 cm. Moreover, the distance between the power cable and the cables carrying analog
signals should be at least 30 cm.
6. During the installation of individual conductors, the supply and return conductors should
be placed together in the same plastic channel in order to reduce the interference of the
electrical fields, based on their different current direction.
7. In each industrial enclosure that contains a PLC, an electrical socket should also be placed
so that, in case a programming device is used, the PLC will be protected from currents gen-
erated from uneven electrical fields, and in case the ground cables for the programmer and
the PLC do not have the same earth potential voltage (are not short circuited).
8. External conductors, collected by different devices and inserted in the industrial enclosure
in order to be connected to the PLC, are never connected directly to the terminals of the I/O
modules, but to additional auxiliary terminals that are typically located at the bottom of the
industrial enclosure.

Figure 6.41 presents a small industrial enclosure, where there is a modular form PLC in its
interior, with all the cables well arranged in their respective driving plastic channels.

6.10.2 Electromagnetic Interference
Recently, electromagnetic compatibility (EMC) has become more and more important, due to the
variety of electrical and electronic devices in both industrial environments and everyday environ-
ments. Electromagnetic compatibility is denoted as the ability of electrical equipment to operate
246 ◾ Introduction to Industrial Automation

Bad separation of equipment and wires

Frequency Fuses
inverter Power supply

PLC
C Wire terminals
C
P
Modem P
U
PS

Industrial enclosure

Correct separation of equipment and wires


Power section Control section
Frequency
inverter Power supply PLC
C C
P P
PS U

Modem

Fuses Power terminals Control terminals

Industrial enclosure

Figure 6.40 Power equipment and wire separation in an industrial enclosure including a PLC.
Basic Operating Principles of PLCs ◾ 247

Figure 6.41 A small-size industrial enclosure with a modular PLC.

without to create electrical interferences in the operation of other devices, and also without being
influenced from the electrical interference produced by other devices.
Modern automation and control systems are able to combine a multitude of such devices that
contain power electronics, classical electrical devices and components, digital circuits, and digital
data processing units. In all these devices, there is a wide variety of currents, voltages, and field
densities that cause various malfunctions that are responsible for the downtime of machines or
even of entire systems. Due to the high cost of a potential loss of production, nowadays, electro-
magnetic compatibility issues are taken indispensably into account in the design of new industrial
plants and are a quality criterion for both the individual devices as well as the whole automation
system.* Two more definitions complement a basic approach to this issue:

◾◾ Electromagnetic interference (EMI) is called the operational influence of an electric circuit,


an electrical device, or a living organism from the electromagnetic environment.
◾◾ Electromagnetic emission (EME) is called the phenomenon of electromagnetic energy
production-emission from a source.

Electromagnetic interference may occur in the form of inductive or electrostatic interference,


and generally interference due to the existence of an electromagnetic field. Figure 6.42 illustrates
the production of EMI in the form of galvanic, inductive, capacitive, and radiative coupling inside
an enclosure containing a PLC and various kinds of conductors. PLCs, as well as the PCs for
industrial use, should operate reliably in an environment that is generally considered to be full of
generated and transmitted electromagnetic interference signals. They should also be designed so
that they do not affect other devices. The latter issue, however, is a matter for the manufacturers
of PLCs, and cannot be influenced by the design engineer. The design engineer can only reject
a PLC that does not meet the EMI levels or provide technical information about itself. In a pro-
grammable automation system, there are several paths between the PLC and its electromagnetic
environment, through which interfering signals can be propagated, as depicted in Figure 6.43. The
power supplies, the I/O modules, the communication interfaces, and even the metallic environ-
ment of the industrial enclosures, all can act as coupling paths for all of the above interference

* (Norms and guidelines on electromagnetic compatibility, DIN VDE 0870 and European
Directive 89/336/EEC).
248 ◾ Introduction to Industrial Automation

R, N

Galvanic coupling R, S, T, N

M
RADIATIVE
Radiative
coupling
COUPLING Ε Η
INDUCTIVE
Inductive
coupling
COUPLING

C C
P P
PLC PS U Capacitive
coupling

Network

Figure 6.42 Various forms of electric or magnetic coupling and interference creation.

Electromagnetic environment

Lightning protection system versus


electrostatic and electromagnetic fields

Plc
PLC
Outputs
Outputs

C
C C
C
P
supply

P
wires
Power supply

PS U
Signal wires

Ps U
Signal
Power

Inputs
Inputs

Grounding and potential


Grounding andequalization system
potential equalization system

Electromagnetic environment

Figure 6.43 Passageways of electromagnetic interference between a PLC and the existent elec-
tromagnetic environment.
Basic Operating Principles of PLCs ◾ 249

PLC1 PLC2

C
C C
C CC C
C
P
P P
P RRxx RRxx PP P
P
PS
PS U
U U
U PS
PS
TTxx TTx x

DIR
DIR DIR
DIR

Figure 6.44 RS 485 connection between two PLCs.

types. For this reason, in cases of debugging, it is not easy to identify when something is the source
of electromagnetic interference, which therefore causes general malfunction. The frequency of an
interference signal may range from a few Hz to 100 MHz, while the currents and voltages gener-
ated are not easily measured. It is therefore preferable, in order to avoid the debugging task for
identifying the problematic hardware, to design the entire automation system from the beginning
according to the rules for avoiding electromagnetic interference. For example, the connection
cables of analog inputs and outputs must always be fitted with a protective copper or aluminum
braided shielding. Digital I/O modules already have a basic protection against interference, due to
the optical isolators that are inserted in the corresponding circuits, as we have seen in Sections 6.3
through 6.7. The communication cables should also withstand electromagnetic interference and
be connected according to the manufacturer’s instructions. In Figure 6.44, the RS 485 connec-
tion interface is shown between two PLCs through a twisted pair cable with a protective braided
shielding that has to be grounded at both ends.

6.10.3 Grounding
The elementary prerequisite for a seamless and safe operation of an industrial installation with
one or more PLCs is the proper grounding of all the involved plant units, specifically PLCs. Poor
grounding of a PLC is often the cause of operating problems that:

1. Are not easily identifiable and cannot even be categorized if they are due to software (incor-
rect programming) or hardware failures
2. Can only be explained by very specific measurements; many times, the programming engi-
neer wastes a lot of time searching for the cause of the malfunction in the program, while in
reality it is a hardware problem
3. Are not only relevant to the functionality of the PLC, but also to the safety of the personnel
4. Are directly connected to the sources of electric noise and interference that are obscure,
multiple, and multiform

Thus, in order to be sure from the beginning that similar problems will not be encountered,
special attention should be paid to the implementation of the ground circuit. A primary source
of technical information on how to ground a PLC comes directly from its manufacturer. With
the help of electrical diagrams, the method of power supplying and grounding should be clearly
defined, not only for the central unit and the power supply of the PLC but also for the different
I/O modules. A second basic source of technical information is the industrial electrical installa-
tion regulations. Due to the fact that the electrical grounding is quite a huge field in electrical
250 ◾ Introduction to Industrial Automation

PLC Ι/O
C
P
C
PS P
U

Ι/O Ι/O
C C
P P

Shielded cable for


analog inputs/outputs
Grounding
copper bar
Door
grounding
Earth

Figure 6.45 Grounding configuration in an industrial enclosure with a PLC and additional
groups of I/O modules.

engineering, further analysis on this issue will not be provided here; however, the most important
general rules and design guidelines are as follows:*

1. All PLCs should be firmly grounded in accordance with the manufacturer’s specifica-
tions. Many PLCs have individual grounding points that should all be grounded; for
example, a ground point on the power supply and a second ground point on the PLC’s
mounting rack. All connections of the ground conductors should be screwed and never
soldered.
2. The industrial electrical enclosure within which the PLC will be installed should be evalu-
ated for good grounding.
3. Every ground conductor should have a resistance less than 0.1 Ω, and resistance between
the earth bus-bar of the industrial enclosure and the ground must be less than 0.1 Ω.
The grounding conductors should indicate a current flow only during the event of a
failure.
4. The entire grounding “chain” must be continuous and there should not be a discontinuity
point, which means that a part of the equipment is substantially ungrounded, although will
appear to have grounding connections. In Figure 6.45, an indicative grounding chain is

* DIN VDE 0160.


Basic Operating Principles of PLCs ◾ 251

presented from a ground electrode to bus-bar, from bus-bar to mounting metallic base, from
mounting base to PS module of the PLC, from mounting base to braided shielding, etc.
5. The grounding and its quality of implementation is a particularly important issue when the
system is equipped with lightning protection.

6.10.4 Electromagnetic Shielding of Cables


Shielding generally has different forms and may involve different things, such as shielding of
three-dimensional housing, a single location, individual devices, and simple wires. In many cases
the shielding is created by itself, for example, a small or large metallic enclosure in which a piece of
electrical equipment could be placed; this is in itself a kind of shielding from the electromagnetic
environment.
In the section on electromagnetic interference, the need to protect the cables from electromag-
netic interference has already been mentioned. Figure 6.44 in particular has been presented as the
screening of a RS485 two-pin interface. In this section, all the basic rules of correct shielding will
be listed only for cases of industrial automation signals (low voltage signals like analog measure-
ments and data).
The purpose of the shielding is to stop the electromagnetic lines of the interfering field and,
as a result, block the electromagnetic interaction between adjacent cables. The protective metallic
mesh absorbs the interference by playing the role of the escape line. In other words, the shield sur-
rounding the inner signal carrying conductor acts on EMI in two ways, which either can reflect
the energy or pick up the radiated EMI and conduct it to the ground. In either case, the EMI does
not reach the signal conductors. There are two basic types of shielding typically used for cables, the
foil type and the braided type. For each type, there are also different kinds of shielding construc-
tion, the most important ones being:
1. Foil shield (using a thin layer of aluminum attached to a polyester carrier)
2. Braid shield (a woven mesh of tinned copper wires which provides coverage between 70%
and 95%, depending on the tightness)
3. Double foil and braid shield (better coverage and protection)
4. Triple shield (foil-braid-foil shielding combination for very noisy environments)

In each of these items, the shielding mesh has a different impedance that is frequency depen-
dent. In general, the following rules can be established:

1. The less impedance the mesh presents, the better the shielding becomes. In this case, the
mesh may receive large discharge currents.
2. For low-frequency magnetic fields, the twisting of the conductors is a fairly effective method.
3. Data cables (network) and cables for analog measurements must always be shielded.
4. In the analog signal cables, the protective mesh must be grounded at only one end
(obviously on the side of the PLC) as shown in Figure 6.46. This is required in order to
avoid creating ground loops with corresponding currents that may pose a problem to the
PLC’s processor.
5. In all other types of cables for data transmission, networks, etc., the shielding mesh must be
earthed at both ends, as shown in Figure 6.44. Only the double ground at both ends of the shield-
ing mesh ensures that the conductors are shielded from inductive and high frequency interference.
6. The shielding mesh should never be used as equipotential bonding conductor.
252 ◾ Introduction to Industrial Automation

Shielded twisted-pair cable


PLC Sensing
4
4 element
C AI
P
PS U

4-20
4 mA Braided shield

To central grounding system

Figure 6.46 Grounding of a shielded cable connecting an analog sensor to a PLC.

Figure 6.47 shows the connection-contacting of the shielding mesh of four cables for analog
signals in detail, with the grounded mounting rack in a Siemens PLC.

6.10.5 Lightning Protection
In the past few years, lightning protection was mainly confined to the protection of buildings.
Today, this situation has changed since industry now uses automation equipment that contains
a large number of microprocessors and generally integrated circuits for control and monitor pur-
poses. These units are much more sensitive to overvoltages than traditional relays and other con-
ventional automation devices. In these cases, overvoltages of a few volts above the nominal ones
are enough to destroy the corresponding electronic components, and for this reason it is necessary
that the automation installation is protected from lightning discharges.

PS
CPU

2
1 Details of the shield connection terminal
2 Wiring of the shielded cable to analog I/O through terminal

Figure 6.47 Mechanism for the quick connection of a braided shield of a cable to the grounded
rack of a PLC (Siemens).
Basic Operating Principles of PLCs ◾ 253

The lightning protection and the corresponding measurements for the evaluation of the
technical parameters are divided into two parts, external and internal lightning protection in
accordance with the regulations VDE 0185 and IEC 62305. This protection is further clas-
sified into four zones of lightning protection with the lightning protection of types “Room”
and “Device” that correspond to zones two and three. Lightning protection is generally an
important issue in electrical installations, and thus it is not possible to present it in this book
in full detail.
Internal lightning protection is aimed at reducing the effects of lightning current and the
resulting electric and magnetic fields on metal installations on all kinds of electric appliances
within a closed space. Internal lightning protection must exclude the generation of danger-
ous sparks between electrical or telecommunication installations and metal structures, and
include:

◾◾ The equipotential bonding through the grounding system


◾◾ The shielding and overall isolation between the installation sections
◾◾ The use of devices for protection against overvoltages caused by lightning (surge arresters,
surge protectors, and surge suppressors are terms used for such devices)

The equipotential procedure reduces potential differences across devices and conductors
induced by the lightning current, and ideally means that an identical state of electrical poten-
tial for all equipment items is valid. This is achieved by bridging the metallic structures with
the electrical and telecommunication installations through connecting conductors, as well as
with the external conductive parts. All the incoming and outgoing cables in the space that
should be protected should be equipped with an equipotential system. This rule includes power
cables and the low-power signal cables, as well as the metallic channel cable trays shown in
Figure 6.48. Also, all the cables between two buildings must be shielded, and subsequently, to
bridge the corresponding shielding. The closed metallic cable trays facilitate the shielding and
the equipotential connection. In Figure 6.49, it is presented as a way of edging two or more
PLCs of lightning protection devices in a communication network, either directly to the bus
cable or at the T-branch.
At this point, it should be noted that there are a plethora of lightning protection devices for
communication network cables in the related market. Manufacturers of these devices generally
provide the information required for the correct connection method and for their appropriate
location along the communication interface cable. In Figure 6.50, a detailed approach of how
to interface two PLCs with lightning protection is shown, located in adjacent metallic industrial
enclosures in the same interior space. Lightning protection in the power supply section of the
whole installation is also depicted.

6.10.6 Input Devices with Leakage Current—


Impedance Adjustment of I/Os
During the installation, interconnection, and operation of PLCs, special care should be pro-
vided to the issue of resistance adaptation of I/O circuits. Today, many of the input sensors and,
in general, the input devices that cooperate with the PLCs, are made up of solid-state electronic
circuits. Every input device containing a solid-state switching element (e.g., a triac, a transis-
tor, etc.) that is connected in series with the high impedance digital input of a PLC, may cause
an erroneous (i.e., no real signal) activation of the input. The same problem also occurs when
254 ◾ Introduction to Industrial Automation

P
Power Cables
cables

Signal cables
Cables

N
Network cables
Cables

Concrete-encased
grounding electrode
Equipotential copper plate

Concrete base
Lightning protection device for power lines
Lightning protection device for data network

Figure 6.48 Lightning protection through the potential equalization and use of suitable protec-
tive devices for all kinds of cables.

PLC 1 PLC 2 PLC n


C C C C
P
P P P
P P
P
PS U
PS PS
PS PS
PS
U

(a)

PLC 1 PLC 2 PLC n


CC C C C
PP P
P P P
PS
PS UU PS
PS PS
PS

(b)

Figure 6.49 Protective devices against impulse voltage in a communication bus at the ends of
the line (a) and before the T connections of the bus (b).
Basic Operating Principles of PLCs ◾ 255

L1 L2 L3 N Pe
Zone 1 lightning protection

Electrical enclosure no.1 Electrical enclosure no. 2

Zone 2 lightning
Zone 2 lightning protection
protection Zone 2 2lightning
Zone protection
lightning protection

Plc
PLC Plc
PLC
C
C C
C
P P
P
Ps
PS U
U Ps
PS U
U

MPI
Mpi MPI
Mpi

Pe
PE Pe
PE

Equipotential conductor

Network
Network

Zone 0 lightning protection

Figure 6.50 Electric connection pattern of two PLCs inside corresponding enclosures for pro-
tection from impulse voltages.

the solid-state switch, contained in a digital output module, is connected to a high impedance
output device. In this case, it is possible to actuate the output device incorrectly without a real
trigger signal from the CPU.
In both cases, the cause of the error is the fact that the switching solid state elements, presented
either in the output circuits of the PLC or in the input devices that are connected to the PLC, pro-
duce a leakage current when they are in the OFF state. The leakage current, which may range from
1 to 20 mA, is capable of causing an inappropriate activation of either the input of the PLC or the
load that is connected to the output of the PLC. These two cases are presented in Figure 6.51. In
order to address this problem, a resistive load (or, in general, an impedance) should be inserted in
parallel to the input circuit impedance (Z) or to the high impedance output device (Z), a process
that it is called “impedance adjustment of the input or the output”. The calculation of the required
resistive load is rather simple and, in both cases, will be described in what follows in the form of
numerical examples.
256 ◾ Introduction to Industrial Automation

Digital inputs
module
Photocell
(solid state)

ΙLeak
ILL
S
PLC digital input with
IR Z high impedance Z
Z

R
VLL

V
N

(a)

Digital outputs
module
Output device with
impedance Z
(e.g., electronic driver)
ΙLeak
Leak
IL
S Z

VL

IR PLC digital output


R
with solid state
switching element

V
N

(b)

Figure 6.51 Resistive adaption of a digital input (a) or output (b) is applied when the leakage
current causes their fault activation.

6.10.7 Input Impedance Adjustment


Figure 6.51a presents the connection of a photocell, which is a solid-state device, to a digital
input of the PLC. The fact that the leakage current I leak of the photocell is constant falsely actu-
ates the input of the PLC, which means that the voltage V Z = I leak Z is greater than the one that
the manufacturer of the PLC defines as the maximum voltage for the input to be considered
logic “0”. The resistor R is connected in parallel to the input circuit of the PLC, i.e., to the
Basic Operating Principles of PLCs ◾ 257

impedance Z of the input to substantially absorb the leakage current. The notations shown in
the figure are the following:

V = Nominal operating voltage of the input module (PLC)


V L = Maximum voltage under which the input remains OFF (PLC)
IR = Current flow through the resistance R
IL = Current flow through the input when it is under voltage V L
Z = Input impedance (PLC)
R = Input resistance adjustment (PLC)
Ileak = Leakage current of the photocell (Photocell)

The notations concerning the (PLC) or (Photocell) refer to the technical characteristics of the cor-
responding device. The rest of the presented variables will be calculated in what follows. It is assumed
that from the technical characteristics of the digital input module, the following values can be extracted:

◾◾ Maximum allowable voltage in the OFF mode, V L = 60 V


◾◾ Input impedance Z = 40 KΩ
◾◾ Nominal operating voltage of the input stage V = 230 V

Then, the maximum allowable leakage current of the input can be calculated as I L = V L /Z =
1.5 mA.
In the case that the leakage current of an input device is greater than 1.5 mA, this will cause a
faulty activation to the input of the PLC and thus it is necessary to insert the resistor R as shown
in Figure 6.51a (everything related to the impedance adjustment has been marked in gray). From
the technical characteristics of the photocell, it is assumed that Ileak = 12 mA (quite larger than the
permitted 1.5 mA). Then the resistor R, which as mentioned above interferes to absorb the leakage
current of the input, while preventing the current to flow to the input, can be calculated as:

R = VL /IR = VL /(Ileak − IL ) = 5.71 KΩ

which is the maximum permissible value. However, since the resistor R will be under a voltage
230 V when the photocell is energized (ON state of the input device), and should have the equiva-
lent power (for 230 V and not for 60 V) or:

PR = V IR = V 2 /R = 9.26 W

that is the minimum value. Therefore, the impedance adjustment will be achieved with a resis-
tance of approximately 5 KΩ and 10 W.

6.10.8 Output Impedance Adjustment


In Figure 6.51b, the connection of an output device, with a very high impedance (Z) in a digital
output of the PLC, is presented. The symbols presented in this figure have the same meaning as
the case of Figure 6.51a, except for the voltage V L , which now expresses the maximum allowable
258 ◾ Introduction to Industrial Automation

voltage for which the output device remains in the OFF state. The technical characteristics of the
digital output module is assumed to have the following settings:

◾◾ Leakage current in the OFF state of output, Ileak = 8 mA


◾◾ Minimum current of the load (Z) at the ON state of the output, ION = 60 mA.

Therefore, the output of the PLC shows a leakage current of 8 mA when it is in the OFF state.
Every output device that can operate with a current smaller or equal to 8 mA will require the
insertion of an adjusting resistor to ensure that it will remain OFF when the output of the PLC is
deactivated.
On the other hand, since the output device should absorb a current of at least 60 mA, to ensure
that the output will remain ON, every output device that does not require an operating current
of more than 60 mA will need to be adjusted with a resistor in a parallel connection in order to
absorb the extra current from the output. Thus, there are two conditions that need to be met,
with the second one to ensure the satisfaction of the first one. In this case, the calculation of the
resistance R will be based on the second condition.
For example, it is assumed that the output of the PLC is connected to the input of another
PLC, with the same above characteristics for “communication” purposes (1 bit information trans-
mission from the first PLC to the second). Then it is derived that:

IL = VL /Z = 1.5 mA < 8 mA

If no adjustment is made, the output device—that is, the input of the second PLC—will be
activated, while the output of the first PLC is in the OFF state due to the leakage current. In order
not to have the operating current ION exactly on the limit of the 60m, the resistor R is chosen to
absorb all the ION current. Thus, in this case it is derived that:

IR = ION , R = V/ION = 3.83 KΩ, and PR = V ION = 13.8 W

Thus, with the selection of a 3.8 KΩ and 15 W resistance, it is ensured that the current is ION >
60 mA. At this point it should also be checked whether, in the OFF state, the voltage at the ends
of the load—that is, at the input of the 2nd PLC, denoted by VL′ is VL′ < 60 V. Thus:

R total = RZ = 3.47 KΩ and VL′ = Ileak R total = 27.76 V < 60 V

Instead of simple resistance, which is usually greater than the 5 W and therefore produces
heat in the ON state (230 V), a combination of R, C series elements can be used that have the
advantage of producing much less heat can be used. The RC combination should of course have
the corresponding impedance that has been calculated for the simple resistance, and its calculation
will be based on the relationships,

R C
Z = R 2 + X C2 , XC = 1 ,
2π fC

where f is the network’s frequency and C the capacitance of the capacitor.


Basic Operating Principles of PLCs ◾ 259

6.10.9 Parallelizing Digital Outputs of PLCs—


Transitional Protection of I/Os
Another problem is created with the possible parallelism of two digital outputs of a PLC in order
to increase the power supply to the output device. Let us assume that the digital outputs of a PLC
have a nominal operating current in the ON state of 0.5 A, while an output device that we want
to connect to a digital output of the PLC requires a current of 0.8 A. In this case, it is obvious that
the output of the PLC cannot directly supply the output device. Thus, it is possible to connect two
digital outputs of the PLC to the output device (0.5 A + 0.5 A > 0.8 A) and program at the PLC the
simultaneous activation of the two outputs. However, such a solution should be avoided, because
the switching elements of the PLC digital outputs that have been presented are triac, power tran-
sistors, relays, etc., and cannot ensure a simultaneous operation due to the various electrical differ-
ences they present. Moreover, different initial conditions or differences in the logical update of the
outputs may cause additional delays in activating the two outputs at the same time. Such a delay
is able to cause a single digital output to accept the total load of the output device (0.8 A, for the
examined example) that will resulting in a voltage drop of that digital output.
A last issue that the automation engineer should not overlook, is that of the “transitional pro-
tection” of the digital inputs and outputs when their operation is combined with external control
or detection devices. In particular, Figure 6.52 shows an output device (inductive load) that is
connected to the digital output of the PLC via a push button, in order to control the operation
of the output device when the PLC has activated this output. Such a connection is possible upon
the closing or opening of the push button contact, generating an electrical noise and, there-
fore, requiring transitional protection. Thus, when it is needed to insert a switch or any kind of
a switching contact of a sensor between an output device and the PLC, a surge suppressor should
be connected in parallel to the load (e.g., to the output device) in order to achieve transitional
protection.
In Figure 6.53, the output device (inductive load) is actuated by both the PLC’s digital output
1, and the external push button that bypasses the PLC and allows the output device to be activated

Surge
suppressor

Output
Output module
module
L1
L1 Inductive
load
1

L2
L2

Figure 6.52 The insertion of a switching element in the circuit of a digital output in a series
requiring the placement of a surge suppressor.
260 ◾ Introduction to Industrial Automation

Surge
suppressor

Output module
L1
L1 Inductive
load

L2
L2

Figure 6.53 The insertion of an external switch parallel to the digital output of the PLC requir-
ing the placement of a surge suppressor.

Input
Inputmodule
module
L1 L2
1

Inductive
load

Surge
suppressor

Figure 6.54 When a button or switch is common to a PLC (such as an input device) and a con-
ventional automation circuit, then protection via a surge suppressor is required.
Basic Operating Principles of PLCs ◾ 261

whenever it is needed, regardless of the PLC’s logic. In this case, transient protection is also needed
and the insertion of a surge suppressor is required.
Finally, Figure 6.54 presents an input device (push button) that, except for the activation of the
input 4 of the PLC, also causes the activation of an external inductive load. Although the opera-
tion of the latter is independent of the PLC’s logic, it may cause electrical noise or interference,
and consequently a transient protection is required by the utilization of a surge suppressor. In all
the previous cases, the typical form of the equivalent circuit of a surge suppressor is an RC series
circuit with elements of R = 1 KΩ and C = 0.5 μF.

6.10.10 Starting the Operation of a PLC and Fault Detection


The procedure of the first-time operation of a PLC should contain careful steps in order to exclude
destructive damage of the I/O modules, CPU, power supply, or any other equipment involved.
Before putting a PLC into operation for the first time, the entire installation should be examined
and verified in accordance with the manufacturer’s specifications and the national or international
regulations. Additionally, the good grounding of the system should be specifically checked. Before
powering up the PLC, the following actions are needed:

1. Ensure that the supply voltage for the PLC corresponds to the one needed from the PLC.
Many PLCs are capable of receiving more than one electrical supply voltage, such as 230 V
AC and 110 V AC. The selection is made either with a special switch or with a jumper in the
appropriate position. In many cases, it is quite common that the PLC is set for an AC voltage
of 110 V AC and, in the end, supplied with 230 V AC with catastrophic results.
2. Check that all the power and communication cables are correctly positioned in their respec-
tive slots. The communication connectors fitted with locking screws should be carefully
installed in their correct positions.
3. Examine whether all the I/O modules are correctly positioned on the mounting base for the
case of a modular PLC, and that there is a communication “bridge” between each one and
the next one.
4. Put the operational mode switch of the PLC in the STOP position.
5. If the electric installation includes a general emergency switch (e.g., an emergency STOP
button), make sure it is OFF or in the open contact position.
6. Ensure that all the output devices are not powered.

Once the previous steps are completed, supply power to the PLC and check that the status of
all the LEDs on the central processing unit are as the manufacturer of the PLC specifies them. Also
check that the status of all the input devices, ON or OFF, are in conformity with the logic of the
automation program. This simply means that some input devices are normally closed contacts, so
that the corresponding LEDs of the digital inputs are lighted (ON state). Then, the input devices
that are in the normally open contact state should be checked by causing a manual activation of
each of them. For example, in the case of a button, it should be simply pressed, or in case of a
photocell on a conveyor belt, an object should be interfered to check the corresponding activation.
Whenever an input device of this category (e.g., a NO contact) is activated, the corresponding LED
of the digital input of the PLC should also be activated. In this way, it is ensured that the input
devices are functioning properly, if the wiring of the input devices was implemented correctly, and
whether the input device and input address match the one contained in the automation program.
Subsequently, the PLC is set to the run mode (RUN) and the outputs are checked so they behave
262 ◾ Introduction to Industrial Automation

according to the logic of the automation program. This test can be based on the indicating LEDs
of the digital outputs, the state of the power relays provided, or the power supply of the loads that
were interrupted according to action 6, above. In order to control the correctness of the automation
program, it does not need to operate large loads (such as large motors) at the stage of the first test
of the PLC.
If the above check reveals an operating problem in either the general operation of the PLC, or
in one or more inputs or outputs, then the debugging process of either the program or the hard-
ware is followed. This process, in order to have a quick and effective outcome, should be systematic
and include the following three basic steps:

◾◾ The isolation of the operational problem from other possible ones


◾◾ The identification of the operational symptom or the equipment fault
◾◾ The careful fault correction and restoration

If the problem concerns the actual operation of the PLC and the CPU, then the indicating
LEDs should be checked in order to diagnose the operating status of the PLC and follow the
manufacturer’s debugging instructions. The CPU and the AC power adapter may have some or all
of the following indication LEDs.

◾◾ DC or AC POWER ON
◾◾ TEST MODE (A PLC can be in STOP, RUN, TEST, programming mode, etc.)
◾◾ PROCESSOR FAULT
◾◾ MEMORY FAULT
◾◾ I/O FAULT
◾◾ LOW BATTERY FAULT

If the problem involves a digital input or output, then some basic actions for the debugging
process are as follows:

1. Suppose a digital input device (e.g., a limit switch) is switched on (the contact of the
switch is closed) and causes a digital output to be activated. If this is not the case then if,
with an activated input device, the indicative LED of the digital input is activated, then
the problem is due to the digital input module or possibly to the logic of the executed auto-
mation program. If, with an activated input device, the indicative LED does not light up,
then the problem is due either to the input device or to its wiring. In this case, measuring
the voltage at the corresponding digital input of the PLC, as shown in Figure 6.55, will
help derive a final conclusion.
2. If the device assumed that a digital output of a PLC is enabled, but the corresponding output
device connected to it is not activated, and the digital output LED does not light up, then
the problem exists in the digital output module. If the digital output indicator LED lights
up but the output device is not activated, then the problem exists either in the wiring of the
output device or on the device itself.

In both cases, measuring the voltage at the digital output of the PLC, as shown in Figure 6.56, will
help to accurately locate the fault.
Basic Operating Principles of PLCs ◾ 263

+24 V DC

S1 S2
S3
0V

INPUTS
Inputs
V
I 1.0 I 1.2 I 1.4
PLC
Q 0.0 Q 0.2 Q 0.4
OUTPUTS
Outputs

C1 C2 C3
+24 V DC
0V

Figure 6.55 Measurement of the voltage that an input device must supply in the corresponding
digital input of the PLC.

+24 V DC

S1 S3
S2
0V

INPUTS
Inputs

I 1.0 I 1. 2 I 1.4
PLC
Q 0.0 Q 0.2 Q 0. 4
OUTPUTS
Outputs

C1 C2 C3
+24 V DC
0V
V

Figure 6.56 Measurement of the voltage of a digital output with a connected load.

Special attention should be provided when the output of the PLC is utilizing a triac as a switching
element. In this case, the triac has a high internal resistance when not conducting (about 1 MΩ), so the
insertion of a voltmeter, which also has a high internal resistance (about 6–10 MΩ), results in a volt-
age divider generated when the digital output has no load. In this case, the indication of the voltmeter
may be close to the nominal voltage of the digital output even when the triac is OFF. For the voltmeter
indication to be correct, a 10 KΩ resistor should be connected in parallel to the instrument’s terminals,
as presented in Figure 6.57. Then the total resistance of the instrument will be much smaller than that
of the triac, and the indication will be almost zero for a non-conducting triac.
264 ◾ Introduction to Industrial Automation

+24 V DC

S1 S3
S2
0V

INPUTS
Inputs

I 1.0 I 1. 2 I 1.4
PLC
Q 0.0 Q 0.2 Q 0. 4 Voltage measurement in
OUTPUTS
Outputs an output without load

C1 C2 C3
+24 V DC
0V
V

10 KΩ

Figure 6.57 Measurement of the voltage of a digital output including a triac as a switching ele-
ment and without a connected load.

Review Questions and Problems


6.1. Explain how the status of a digital input signal 230 V is stored in the memory of a PLC.
6.2. What is the so-called “scanning cycle” of a PLC? Is the time duration of scanning cycle a
constant or variable parameter and why?
6.3. Describe the advantages, if there are any, of using a modular PLC instead of a compact PLC
in an industrial application.
6.4. One of the PLC’s advantages is the easy detection of equipment faults. The figure shows the
conventional automation circuit of a pump (C2) which has been translated in a program and
runs in a PLC. Suppose that the float level switch has been damaged and its contact remains
open, although the liquid level in the tank is above the float switch. Explain why the detec-
tion of this fault will be easier in the case of programmable automation.

C1

Float
Float switch

C1 C2 C3 C2
Basic Operating Principles of PLCs ◾ 265

6.5. What type of digital output (DO) module do you have to select for the activation of a solid
state output device in order to avoid operating problems due to leakage current?
6.6. The figure shows a typical simplified electric circuit of a digital input module. Describe the
operations that take place inside the module between the input signal and the logic signal
which is transferred to a CPU.

R R R
+
Input signal Logic signal
220 V AC R to CPU
R
R _ 5 V DC

6.7. The classical scanning cycle of three steps (input scanning, program execution, and out-
put updating) is interrupted when the user program contains instructions for a periph-
eral read–write. For example, an instruction for a direct-in-the-module reading of an
input will give the result shown in the figure. In your opinion, when is the scanning
cycle faster? When the user program contains instructions for peripheral read–write, or
included no instructions?

Updating
of outputs

Input module

L1 Scanning
of inputs
1 Return
2
Program instruction for
3 direct in the module
reading of an input
4

Program
execution

6.8. An analog valve for flow control accepts an analog signal of –10 V DC up to +10 V DC from
an analog output of a PLC. The PLC controls the liquid flow based on a proper algorithm.
The analog output uses 12 bits for a digital value representation and 1 bit for sign. Complete
a three-column table which will give (for each opening position of the valve from 0% up to
100% in steps of 10%) the corresponding voltage value and its digital representation that is
created by the analog output of the PLC.
266 ◾ Introduction to Industrial Automation

Analog voltage control signal


–10 V DC up to +10 V DC

Valve opening
0–100%

Liquid flow

6.9. In a liquid flow pipe network, a flow valve, similar to that of problem 6.8, has been inserted
and permits the flow of 100 L/min when it is at its maximum opening. What will be the
stored digital value of the analog output adjusted for 60 L/min flow?
6.10. A small industrial process is controlled via a modular PLC. The automation task controls
a system with 32 digital inputs, 28 digital outputs, 4 analog inputs, and 4 analog out-
puts. Given that peripheral equipment is not required due to the small dimensions of the
industrial building, determine the required local equipment by selecting the PLC from the
three available in the market, which will have the major number of empty places for future
installation of I/O modules. The technical characteristics of the three available PLCs are
shown in the table. Please create a diagram showing the structure and interconnection of
the equipment units.
The digital inputs and outputs are further categorized as follows:
32 DI = 20 DI with nominal voltage 230 V AC + 12 DI with nominal voltage 24 V DC
28 DO = 16 DO with nominal voltage 230 V AC + 12 DO with nominal voltage
24 V DC
The power supply, CPU and communication modules each occupy a single place in the
installation rack of any PLC.

DI DO
MODULE MODULE AI AO Modules Number of
Number of Number of MODULE MODULE per Possible
Inputs Outputs Number Number of Installation Local
230 V or 24 V 230 V or 24 V of Inputs outputs Rack Expansions

PLC-A 4, 8 4, 8 2, 4 4 6 2

PLC-B 6 6 2 2 8 2

PLC-C 2, 4 2, 4 4 4 8 2

6.11. In the technical characteristics catalog of a digital input module with a nominal operating
voltage of 24 V DC, it is written,
“Input current for signal ‘1’ = 8.5 mA at 24 V DC”
Explain what exactly expresses this magnitude (8.5 mA) and if it has any possible
importance.
Basic Operating Principles of PLCs ◾ 267

6.12. In a PLC with many digital I/Os and a large executed program, the scanning cycle
duration is 50 msec. The digital input device connected to the PLC is an SPST con-
tact output of a sensor which opens and closes with frequency 100 Hz. Explain if it is
possible to count the number of ON/OFF changes of the sensor output during a time
interval of 1 hour.
6.13. Four machines, C1–C4, operate according to the automation circuit shown in the figure,
either manually through buttons Starti/Stopi and the rotational switch RSi in place M or
automatically through command from the digital Outputi of the PLC and the rotational
switch RSi in place A. In order to accomplish this operation, a digital output module is
available from the manufacturer that defines the connection in the diagram shown in the
figure (module view). Design how the outputs of the PLC will be connected to the conven-
tional automation circuit in order for the desired operation to be achieved. Note that the
conventional circuit may be modified suitably to facilitate the connection to PLC, but it
will not affect the desired operation.

RS1 RS4

“A” “M” “A” “M”

STOP1

STOP1 STOP4
Digital output 4
PLC command

START1 START4

C1 C4
N

6.14. Write the differences between a PLC and a general purpose computer from a hardware and
software point of view.
6.15. Write the basic differences between a digital input module and an analog input module of
a PLC.
6.16. The manufacturer of a digital output module with nominal operating voltage of 24 V DC
gives a connection pattern of the output devices as shown in diagram (e) of the figure.
Which one of the four connections (a, b, c, or d) of the output devices realized by a techni-
cian (shown in the figure) has a faulty connection? Explain your answer.
268 ◾ Introduction to Industrial Automation

Digital output
module 4 × 24 V DC

1
1 1 1 1
2
2 2 2 2
24 V 24 V 24 V 3
3 3 3 3
4
4 4 4 4
5
5 5 5 5
6
6 6 6 6
(a) (b) (c) (d) (e)

6.17. The activation of the power relay C from a PLC is performed via a power transistor or a
triac which are in the digital output module. Suppose that the power transistor or triac
has been burned and is at short-circuit status. What problem arises concerning the func-
tion of the button STOP which must stop the operation of power relay C, and how it can
be addressed?

STOP

C
P
PS U

6.18. A modular type PLC is going to control a small system with 8 digital inputs, 8 digital out-
puts, and 1 analog input. What structural units (modules) do you have to buy in order to
implement the PLC-based automation system?
6.19. Which is the maximum time delay that may happen between the activation of a digital
input and the activation of a digital output which depends logically on the first?
6.20. The operation of the electromechanical equipment of a road tunnel is going to be controlled
via a central PLC. The electromechanical equipment includes general purpose lighting,
acoustic and luminous signaling, a ventilation system, a fire safety system, and a large num-
ber of sensors and meters. Although the machinery is relatively distributed along the whole
length of the tunnel, they may be grouped in the three points as shown in the figure. The
kind and number of I/O devices are also indicated in the figure. Configure and design the
I/O hardware system in detail, selecting the PLC placement first. In particular, determine
Basic Operating Principles of PLCs ◾ 269

the local and peripheral hardware, the kind and number of required I/O modules, the
communication pattern between I/O modules and CPU, and the method of grouping I/O
points and modules, giving the corresponding diagrams.
The technical characteristics of the PLC are:
a. Each digital module contains 8 I/O points.
b. Each analog module contains 4 I/O points.
c. The maximum cable length for peripheral equipment is 900 m.
d. The maximum cable length for local equipment is 30 m.
e. The maximum cable length between a digital I/O module and digital I/O devices is
100 m.
f. Each installation rack may contain up to 6 I/O modules.
The automation and control system of the road tunnel will have a central selector switch
for selecting the manual or automatic operation of the system. All handling and indicating
devices must be installed at one of the two ends of the tunnel (on a control panel) indepen-
dently of the PLC location. All digital inputs and outputs have the same nominal operating
voltage of 24 V DC.

1 Km
Km

1 Km
Km
1
Motors DS 5
Motors IR 3
Two-speed motors 2
Outputs for lighting control 32
Sirens 4
Alarm buttons 12
Motors DS 0 Photocells 12
Motors DS 5 Motors IR 1 Flow and level switches 3
Motors IR 3 Two-speed motors 4 Analog inputs 8
Two-speed motors 2 Outputs for lighting control 32 Analog outputs 2
Outputs for lighting control 32 Sirens 4
Sirens 4 Alarm buttons 12
Alarm buttons 12 Photocells 12
Photocells 12 Flow and level switches 0 DS = direct starting
Flow and level switches 3 Analog inputs 4
Analog outputs 2 IR = inversible rotation
Analog inputs 8
Analog outputs 2
http://taylorandfrancis.com

You might also like