Basic PLC Programming Book
Basic PLC Programming Book
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
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.
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
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).
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
2 ◾ Introduction to Industrial Automation
Head-box Forming section Press section Dryer section Calender stack Reel-up
Pulp suspension
Evaporation
Reel
Press
Dry line
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
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
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.
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
… 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.
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
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.
Limit
switch A B C D
Process
Actuators Sensors
Power
Control system
Computer
Programs of
instructions
PLC
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.
◾◾ 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
Relay
N
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
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.
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
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
Web
ERP
SCADA
Info level
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
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
N
S
S
N N
S
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
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
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
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
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.
Return
spring 230 V
Core IP
Coil
F Insulation
RS
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:
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
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
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
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).
(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
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.
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.
Power
source
suppressor
Control
Surge
signal
Load
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.
Table 2.2 Contact States and Current Flow with Regard to Relay State
Relay
Contact Non-Energized Energized
I 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.
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:
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
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.
L1 L2 L3
Wire Bimetallic
strip
Auxiliary
Closed
contacts
Open
NO NC NO NC Trip
lever
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
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:
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.
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
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.
L C
Amplifier and
RC oscillator Schmitt
Ground electrode output switching
electronics trigger
Ground electrode Main electrode circuit
Main electrode
Plastic object
19
R
C
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
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
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
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.
N S Vcoil
Vcoil
N S Vcoil
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
N S
MR
Non-ferromagnetic
objects don’t affect Magnetoresistive proximity switch
switch operation
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
Slot type proximity switch for Detection of faulty Controlling fill level
monitoring of production continuity objects for rejection of granular solids
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
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
Sensing distance
Emitter
Transmitted beam Reflector
beam
Reflected
Receiver
Detecting
object
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
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
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
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
24 V
230 V AC
Electronic
circuit
Low level
8V
E1
N
Earth E2
E3
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
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
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.
f1 f0
d
t0 t1 Time
Δt
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.
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)
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)
No flow Flow
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
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.
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.
Heated +NiCr R
surface +
Vout
Thermocouple mV~ΔΤ A
_
Hot junction –NiAl R
(measuring temperature) Cold junction
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.
Platinum wire R R
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
RTD bulb
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.
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.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
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
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
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
Limit
micro-switches
30
20
10
350
340
330
Limit
Dual cam
micro-switches
Groove
angle
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.
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
(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
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.
(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.
(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
Shaft
B
Rotating
code disk Stationary disk
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
79
80 ◾ Introduction to Industrial Automation
C C C C
N N N N
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.
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”.
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
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
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.
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
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
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
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
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
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.
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.
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
C
3 wires
N
Figure 3.13 Machine manipulation from multiple control panels (without operation signaling).
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
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.
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.
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
R S T
C1 C2
T R
S S
R T
Μ
3~
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.
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.
Flow switch
Pump
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
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.
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
50 Hz 230 V
R
ELS1 ELS2 e1 e2
E1 NC NC
ELS1 ELS2
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.
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.
(Continued)
104 ◾ Introduction to Industrial Automation
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:
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.
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.
50 Hz 230 V
R
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
d1
C d1 d2
Figure 3.32 The automation circuit of Figure 3.31 in order not to present the reoperation feature.
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
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.
+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
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
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.
0 None
1 1st
2 2nd
3 3rd
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
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
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
117
118 ◾ Introduction to Industrial Automation
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
Figure 4.3 The pushbutton as a binary variable: (a) NO button and (b) NC button.
120 ◾ Introduction to Industrial Automation
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
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:
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.
b1
C=0 C=1
b0
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:
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.
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:
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 )
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.
b0 Low speed
AB
S0 S1
00 b1 01
b0 b2 b0
10 11
High S3 S2 Medium
speed speed
b3
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 )
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.
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.
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.
Μ=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:
A = ( b + B + C )(bBC + A )
B = ( s1 + A + C )( bAC + B)
C = ( s2 + A + B)( bAB + C )
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.
C1,2,3,4=0
b S0 b
C1,2,3,4=0 C1=1
S9 ABCD S1
0000
b 0100 1000 b
b b
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.
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:
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
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.
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.
H4
b0
bly
H3 e m e
s l
As tab
H2
C
H1 D
B
PS3
A
PS2
PS1
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 )
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.
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.
Μ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.
C1
x s
C3 s x C2
S0 T
C2
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:
C1 = s ( x + C1 )
C 2 = T( x + C 2 )
C 3 = C 2 (s + C 3 ) = C 2 (s + C 3 )
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.
x
M1 = ON
M2 = ON
S0 S1
AB
00 01
T
s
S3
10
11 M1 = OFF
T S2 M2 = ON
T = ON
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:
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.
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
For the code assignment shown in Figure 4.32, we obtain the following equations:
For the operation of the two machines (STR and RFG), valves, and the timer, we obtain:
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.
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
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.
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
( )
C = b0 AB + yAB (b1 AB + xAB + C ) = (b0 + A + B)( y + A + B)(b1 AB + xAB + C ),
and also
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.
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
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.
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,
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
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 )
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.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.
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).
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.
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:
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
Return spring
Cylinder housing
Inlet port
(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
Inlet/outlet ports
(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
Piston seal
Air inlet
Air inlet
Figure 5.7 Cylinder for altering the translation movement into a rotational one.
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:
F
P A
(a)
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
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.
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:
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.
Outlet
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.
1 Air Line
4/2 Way
1 Exhaust Line
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
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.
(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
(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
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
Limit
switch
Coil a
d a
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
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
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
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.
Ball feeder
Ball carrier
PS1 PS2
Proximity
1
switch
2 Coil a
R STOP START N
d
d C
PS2 PS1
C a
Figure 5.23 A ball separation arrangement with pneumatic circuit and components (a), and an
automation circuit (b).
Cylinder B
Cylinder C
d
b e c
g
f
Cylinder A a
C
Steps
1 2 3 4 5 6 7=1
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:
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
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.
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.
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,
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
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
C
C
PLC based automation
R
STOP START
The input devices are
S1
not replaced by PLC
PLC N
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
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.
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
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.
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.9 An electronic card (PLC module) with digital outputs for stepper motor driving
(Allen Bradley).
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
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
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
Input
device
Input module
4 DI
L1 L2
1
Input 3
signal
4
(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 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
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.
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
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
VAR
Rs
Logic signal from
CPU/memory AC
Cs Output
device
(1) L2
0V
LED 2
indicator 3
4
L2
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:
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
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.
+ 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
(a)
(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
± 500 mV DC
Heated
object
Thermocouple
+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
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
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.
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
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
Data
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
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.
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.
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.
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.
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
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
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.
Memory reserved
Address for user-program storage
0002
0001 Memory register
0000
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
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
I1.0 Q0.0
I1.1 Q0.1
Address
Address
decoder
decoder
I1.2 Q0.2
I1.3 Q0.3
Address Data
bus bus
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.
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.
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.
C
P
Ps U
...
Power connections
...
(a)
Switchgear for supplying
power to devices
C C C
P P P
Ps U
...
...
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
C
P Peripheral I/O modules
Peripheral
communication
modules
Mounting base
of I/O hardware
2nd peripheral extension unit
Local extension of
Local I/O extension system
a peripheral unit
Last peripheral
extension unit up to
a few hundred meters
(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.
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
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
(*) These devices are additional over those required for handling, indicating operation of motors
DS = direct starting, IR = inversible rotation, S/D = star-delta starting
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
6 / 24 V DC – –
20 / 24 V DC – 8 / 24 V DC
VALVE COILS 12 / 24 V DC 20 / 24 V DC –
SIGNALING DEVICES 2 / 24 V DC 10 / 24 V DC –
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 ◾
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
TOTAL 34
ANALOG OUTPUTS ± 1 V 2 2 –
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
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
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
Figure 6.38 I/O hardware system configuration for the industrial production application
shown in Figure 6.37.
Basic Operating Principles of PLCs ◾ 243
◾◾ Power relays
◾◾ Transformers
◾◾ Frequency converters
◾◾ DC power supplies
◾◾ Any other power device
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
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
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
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
Frequency Fuses
inverter Power supply
PLC
C Wire terminals
C
P
Modem P
U
PS
Industrial enclosure
Modem
Industrial enclosure
Figure 6.40 Power equipment and wire separation in an industrial enclosure including a PLC.
Basic Operating Principles of PLCs ◾ 247
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:
* (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
Plc
PLC
Outputs
Outputs
C
C C
C
P
supply
P
wires
Power supply
PS U
Signal wires
Ps U
Signal
Power
Inputs
Inputs
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
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
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
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.
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
4-20
4 mA Braided shield
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 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.
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.
(a)
(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
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
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
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.
impedance Z of the input to substantially absorb the leakage current. The notations shown in
the figure are the following:
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:
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:
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.
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:
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:
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:
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
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.
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:
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.
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
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
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