Professional Documents
Culture Documents
Textbooks:
Groover, Mikell P. , Automation, Production Systems, and Computer-
Integrated Manufacturing, Global Edition, 4th edition
Petruzella, Frank D., Programmable Logic Controllers. McGraw Hill
Companies Inc., 5th edition
Email: Drjreissat@gmail.com
Office: E3088
Introduction To Industrial
Automation and Control
Key words:
Industry
Systematic Economic Activity that could be related to
Manufacture/Service/Trade.
Automation
In General, It is the mechanism for systems that “move by itself”. It
is defined as a set of technologies that results in operation of
machines and systems without significant human intervention and
achieves performance superior to manual operation in terms of
power, precision and speed of operation.
Introduction To Industrial
Automation and Control
Control
A set of technologies that achieves desired patterns of variations of
operational parameters and sequences for machines and systems by
providing the input signals necessary.
3. Can you explain the above definition in the context of
a common control system, such as temperature control in
an oven?
Roughly speaking,
Profit = (Price/unit – Cost/unit) x Production Volume ……… (1)
So profit can be maximised by producing good quality products,
which may sell at higher price, in larger volumes with less production
cost and time.
The major parameters that affect the cost/unit of
a mass-manufactured industrial product.
The major factors that contribute to Overall
Production Time
Automation affects all of these factors.
Firstly, automated machines have significantly lower production
times. For example, in machine tools, manufacturing a variety of
parts, significant setup times are needed for setting the operational
configuration and parameters whenever a new part is loaded into
the machine. This can lead to significant unproductive for expensive
machines when a variety of products is manufactured. In Computer
Numerically Controlled (CNC) Machining Centers set up time is
reduced significantly with the help of Automated Tool Changers,
Automatic Control of Machines from a Part Program loaded in the
machine computer.
Similarly, systems such as Automated Guided Vehicles, Industrial
Robots, Automated Crane and Conveyor Systems reduce material
handling time.
Automation also reduces cost of production significantly by efficient
usage of energy, manpower and material.
The product quality that can be achieved with automated precision
machines and processes cannot be achieved with manual
operations. Moreover, since operation is automated, the same
quality would be achieved for thousands of parts with little
variation.
Industrial Products go through their life cycles, which consists of
various stages.
Economy of Scale
Reduction in cost per unit resulting from increased production,
realized through operational efficiencies. Economies of scale
can be accomplished because as production increases, the cost
of producing each additional unit falls.
Automation facilitates economy of scale, since, as explained
above, it enables efficient large-scale production.
Economy of Scope
The situation that arises when the cost of being able
manufacture multiple products simultaneously proves more
efficient than that of being able manufacture single product at
a time.
Economy of scope arises in several sectors of manufacturing, but
perhaps the most largely in electronic product manufacturing
where complete product life cycle, from conception to market,
are executed in a matter of months, if not weeks. Therefore, to
shrink the time to market drastically use of automated tools is
mandated in all phases of the product life cycle. Additionally,
since a wide variety of products need to be manufactured within
the life period of a factory, rapid programmability and
reconfigurability of machines and processes becomes a key
requirement for commercial success. Such an automated
production system also enables the industry to exploit a much
larger market and also protects itself against fluctuations in
demand for a given class of products. Indeed it is being driven by
the economy of scope, and enabled by Industrial Automation
Technology that Flexible Manufacturing (i.e. producing various
products with the same machine) has been conceived to increase
the scope of manufacturing.
7. Can you give an example of an industry where economy of
scope is more significant than the economy of scale?
circumstances:
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist.
No portion of this material may be reproduced, in any form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book
Automation, Production Systems, and Computer-Integrated Manufacturing, Fourth Edition, by Mikell P. Groover.
Automation and Control Technologies
in the Production System
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
Ch 4 Introduction to Automation
Sections:
1. Basic Elements of an Automated System
2. Advanced Automation Functions
3. Levels of Automation
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
Automation Defined
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
Elements of an Automated System
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
Power to Accomplish the
Automated Process
Power for the process
To drive the process itself
To load and unload the work unit
Transport between operations
Power for automation
Controller unit
Power to actuate the control signals
Data acquisition and information processing
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
Electricity -
The Principal Power Source
Widely available at moderate cost
Can be readily converted to alternative forms, e.g.,
mechanical, thermal, light, etc.
Low level power can be used for signal transmission,
data processing, and communication
Can be stored in long-life batteries
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
Program of Instructions
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
Decision-Making in a
Programmed Work Cycle
Following are examples of automated work cycles in which
decision making is required:
Operator interaction
Automated teller machine
Different part or product styles processed by the
system
Robot welding cycle for two-door vs. four door car
models
Variations in the starting work units
Additional machining pass for oversized sand
casting
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
Features of a Work Cycle Program
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
Control System – Two Types
1. Closed-loop (feedback) control system – a system in
which the output variable is compared with an input
parameter, and any difference between the two is used
to drive the output into agreement with the input
2. Open-loop control system – operates without the
feedback loop
Simpler and less expensive
Risk that the actuator will not have the intended
effect
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
(a) Feedback Control System and
(b) Open-Loop Control System
(a)
(b)
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
Positioning System Using
Feedback Control
A one-axis position control system consisting of a leadscrew
driven by a dc servomotor and using an optical encoder as
the feedback sensor
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
When to Use an
Open-Loop Control System
Actions performed by the control system are simple
Actuating function is very reliable
Any reaction forces opposing the actuation are small
enough as to have no effect on the actuation
If these conditions do not apply, then a closed-loop control
system should be used
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
Advanced Automation Functions
1. Safety monitoring
2. Maintenance and repair diagnostics
3. Error detection and recovery
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
Safety Monitoring
Use of sensors to track the system's operation and identify
conditions that are unsafe or potentially unsafe
Reasons for safety monitoring
To protect workers and equipment
Possible responses to hazards:
Complete stoppage of the system
Sound an alarm
Reduce operating speed of process
Take corrective action to recover from the safety
violation
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
Maintenance and Repair Diagnostics
Status monitoring
Monitors and records status of key sensors and
parameters during system operation
Failure diagnostics
Invoked when a malfunction occurs
Purpose: analyze recorded values so the cause of
the malfunction can be identified
Recommendation of repair procedure
Provides recommended procedure for the repair
crew to effect repairs
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
Error Detection and Recovery
1. Error detection – functions:
Use the system’s available sensors to determine
when a deviation or malfunction has occurred
Correctly interpret the sensor signal
Classify the error
2. Error recovery – possible strategies:
Make adjustments at end of work cycle
Make adjustments during current work cycle
Stop the process to invoke corrective action
Stop the process and call for help
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
Levels of Automation
1. Device level – actuators, sensors, and other hardware
components to form individual control loops for the next
level
2. Machine level – CNC machine tools and similar
production equipment, industrial robots, material
handling equipment
3. Cell or system level – manufacturing cell or system
4. Plant level – factory or production systems level
5. Enterprise level – corporate information system
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
Levels of Automation
© 2016 Pearson Education, Ltd. All rights reserved. This material is protected under all copyright laws as they currently exist. No portion of this material may be reproduced, in any
form or by any means, without permission in writing from the publisher. For the exclusive use of adopters of the book Automation, Production Systems, and Computer-Integrated
Manufacturing, Fourth Edition, by Mikell P. Groover.
Industrial Automation
First Semester 2018/2019
Lecturer: Dr Mohannad Jreissat
Textbooks:
Groover, Mikell P. , Automation, Production Systems, and Computer-
Integrated Manufacturing, Global Edition, 4th edition
Petruzella, Frank D., Programmable Logic Controllers. McGraw Hill
Companies Inc., 5th edition
Email: Drjreissat@hu.edu.jo
Office: E3088
Industrial Automation
Study of methods and technologies for controlling energy,
material and information flows in production processes
Profits: $20 for a low-cost radio and $30 for a high-end radio
Assuming the company will sell all the radios, which is the optimal
number of units, for each model, that must be produced daily for
maximizing the revenue?
Optimal daily production plan = mix of two products
Example: Product Mix
-----other notes---------
This picture was taken from here:
http://www.controltech.cz/images/clanky/image30.jpg
1
This sketch is the initial concept for a very common situation – an electric
machine that can be started and stopped from two separate locations. In this
case the machine is ….
You may add safety features and interlocking options (e.g., option to prevent
remote shutdown) and the logic can become quite complicated -…
The diagram shows inputs (push buttons), outputs (the voltages applied to the
machine) and a logic – which in thos case it is implemented through the wiring.
These are the essential components in a PLC
2
Here are three main aspect of a programmable logic controller or PLC. Inputs,
outputs and the control program. The inputs are connected to sensor devices
that inform the PLC about the environment. The program uses a set of logical
instructions that drives the outputs based on the inputs. The outputs are
connected to equipment needs to be controlled.
3
Some example Input devices for a PLC or Programmable Logic Controllers are
push buttons, proximity switches, photoelectric sensors, temperature sensors,
etc. Anything that can measure the environment and then transmit a signal to
the PLCs input.
PLC outputs are anything that would need to be controlled based on the inputs
like motors, indicator lights, fans or heating elements.
Picture sources:
Push button
http://www.nfauto.co.uk/images/november/push_button_switch1.jpg
Photo sensor
http://www.advancedmanufacturing.com/MarApr03/images/photoelectric_01.jp
g
4
Pressure sensor
http://www.flowtechnik.co.uk/images/pressure-sensor-hd.jpg
Motor
http://www.kingsolar.com/catalog/mfg/dayton/5k586.jpg
4
A relay is a device that responds to a voltage change by activating a switch.
When the input is energized with a voltage a current will flow thought the coil
and cause it to become magnetized. Magnetic force will pull the contact close
and thus close the circuit. When the input voltage taken away the magnet will
de-actiave and the contact will open again. A relay and a contactor basically
serve the same function. The name contactor is simply used for high current.
5
Here we show two common types of Programmable Logic Controllers or PLCs
a single box type and a modular or rack type.
The box type is smaller and used for simpler control situations. It is supplied as
an stand alone package that is ready for implementation. That is a box type
PLC has everything it needs to control a process. Some of the most basic of
theses only have 4 outputs. They typically can have from 4 to 40 inputs and
outputs. Depending on size and functionality they can cost between $100 and
$1000.
The modular type consists of a central rack that house various modules such
as power supply, processor, analog or digital input and outputs and
communications, and special function modules. The modules are selected
based on the control problem. I/O modules can always be added after the unit
it installed to suit new needs and the I/O modules can be much more
specialized than that of the box type PLCs. It is used for larger and more
complex operations. Typically has from 20 to 100 inputs and outputs and up.
These units typically start at $500 and can get pretty expensive
---other notes---
6
Box type picture is from
http://www.schneider-electric.no/produkte/automation/img/48/nano1.jpg
6
Here some examples of what PLCs are used for. They are implemented in a
variety of control operations from large to small. Carwashes are a popular use
for PLCs because it involves intricate use sensors and motors, but also has
the need for relatively complex logic. Carwashes have several wash types that
use or doesn’t use certain features. It is often a unique and involved process,
but it is greatly simplified when done in the PLCs software as opposed to a
hardware implementation.
7
Lumber mills use PLCs to control the main saw and loading of wood while
various sensors ensure safe operation so that people and equipment are not
harmed. A lumber mill saw is very expensive and many precautions must be
taken to ensure that nothing goes wrong when moving lumber through the mill.
PLCs can withstand the hash condition desert conditions while controlling an
oil recovery process. Temperatures can get higher than 120 degrees
Fahrenheit in the desert, yet a plc can read sensors and control the motors
necessary for oil extraction. These tiny computers are meant to be rugged.
-----other notes---------
A store's automatic sliding doors are controlled during both business and off-
hours using Pico. The store
also uses Pico to allow off-hour access to employees only.
A self-service, coin-
operated carwash needs to count the number of quarters inserted, as well as
time the wash cycle per car. A Pico controller is programmed to do both.
7
Often industrial equipment will use three phase power for various reasons
such as cost, size and durability. Suppose some industrial woodworking
equipment is installed at a residential home. In order to use the equipment, the
normal two phase power into the house needs to be converted into three
phase power via a converter. Some of the equipment is located in the garage
and some in the basement. The three phase power needs to be available at
both locations. Consequently, the converter needs to be able to be activated
and deactivated from both locations.
-----------Other Notes------------------
Source: http://www.metalwebnews.com/howto/phase-converter/phase-
converter.html
Picture of converter: http://www.phase-a-matic.com/RotaryDescription.htm
8
The converter has three contacts. Two are connected to the 220 VAC source.
The other is connected to a starting capacitor and a push button. When the
power is switched on nothing immediately happens. The 3-phase converter
has a motor that needs to be started via a starting capacitor. After the motor
has started only the 220 VAC source is required for continued operation. When
3-phase power is no longer needed, the process is stopped by disconnecting
power.
However this is just the basic concept of operation. The process should simply
have one button for start and one button for stop at each location. This means
that a timed relay will take the place of the momentary push button, and a
relay latching system is need instead of a the power switch. In this way, the
system can operate using push buttons.
9
Here is a block diagram that shows the manner in which each device is
connected to each other. Hopefully the wiring looks a little confusing. The
blocks in yellow represent ‘Relay logic’. The light blue are output devices. The
wiring would be much simpler with a PLC.
10
Here is the main control box for the converter with the components labeled.
This is how the control mechanism is put together without a PLC. The switch
and momentary push button have been replaced with start and stop buttons.
Logical operation is supplied by the start relay and a time delay relay.
11
This is the wiring schematic with a PLC. When using a PLC wiring becomes
very simple and this helps avoid problems. The inputs are on the left and the
output are on the right. Notice how the PLC took the place of two relays, the
start relay and the timed relays. By replacing these two components the PLC
has already almost paid for itself. And each panel is much simpler
One thing that is missing is the program that the PLC must run to control the
process correctly. At each point, an input and output are connected to the PLC
there is an address. This address is used in the software to keep track of the
different devices.
--------Other Notes-------------
Timer relay- $47.85 at
http://www.mstores.umich.edu/catalog/grainger/electrical/relays/time_delay_rel
ays/5YZ86.html
The allen bradley model is more expensive~ $75
12
Suppose there is a process where there could be a pressure build up. A
solenoid is powered to keep a valve shut. Every time a pressure sensor is
tripped a solenoid is de-activated for 10 seconds that in turn allows a the valve
to open and the pressure to be released. After 10 seconds, power is restored
to the solenoid and the valve is closed. (A solenoid is another type of relay.)
Also suppose that the process needs to count how many times the solenoid is
de-activated. Without a PLC the process would follow this diagram. The
pressure sensor would feed information in a timer and a counter (two separate
unites of hardware).
But what if the process included 10 sensors and 10 solenoids? We’d need 10
timers and 10 counters. That’s a lot of hardware. And if an manual release
button and other safety sensors were also needed, the situation can become
complex and involve a large amount of hardware. If any one unit failed the
whole system would have to be shut down, the fault found and then fixed.
Before PLCs, however, this is how it was done.
13
Instead of a large amount of devices and the resulting complicated wiring, one
piece of hardware, a PLC can take the place of all 20 the timers and counters.
It can implement all the necessary logic within its programming. And if the PLC
breaks, it is easily replaced.
14
PLCs replace all the wiring and individual pieces of hardware like counters,
timers and relays. Before PLCs were used the wiring, configuring and
troubleshooting all these components would often get very complicated. With
a PLC, all wiring is done in software. This adds an additional benefit were if a
change needed to be made, no disconnecting of hardware would be required.
No one would have to disconnect wires and move around hardware. That can
be very time consuming and tedious. Only the PLC’s program would need to
be updated and then loaded into the PLC’s memory.
15
So in essence, a PLC is a special microprocessor based controller. It has
programmable memory that is used to store a program that instructs the PLC
on how to control machines or processes. PLCs were invented to replace relay
logic hardware. The PLCs program is where this replacement occurs.
The PLC was first developed in 1968 and by 1980 was very popular for
industrial control. Now if there is industry there are probably PLCs present.
Even though PLCs are computers, they are extremely rugged. They are
designed to withstand harsh conditions such as vibrations, high temperature,
humidity and noise.
16
PLC has four major internal components. The CPU which contains the
microprocessor, registers, control clock and various other processing units.
The memory contains user’s program, program data storage and PLCs
operating system. And the input and outputs provides the interface between
the system and the outside world.
17
The inputs and outputs on a PLC can be analog, discrete or digital depending
on the specific PLCs and what features it possesses. Common input and
outputs voltages are 12 to 24 volts DC, 120 volts AC and 5 volts for TTL logic
devices.
Some PLC haves communications inputs and outputs. This can be serial or
parallel cables or even the ability to communicate on an Ethernet. Is useful in
large controls situations where many PLCs in remote locations are controlled
by one master PLC.
18
A PLC works by continuously running a program that checks the inputs and
then updates the outputs. First the inputs are checked and saved. The
program is executed using the saved inputs values. Output states are updated.
The process of the PLC running thought its program is called scanning.
The total time for a PLC to complete one loop is called cycle time. Typical
scanning times are from 10ms to 100ms.
19
PLC programming is called ladder logic. It’s not the usual type of programming
you may have seen before such as BASIC, C or assembly. It is a graphical
programming language that uses graphical symbols to provide the PLC with
the logical instructions needed to perform control operations. Learning how to
use and implement PLCs is basically learning ladder logic.
When PLCs first arrived they were made to replace relay hardware. It was
preferred that a minimum about of retraining would be necessary for the
engineers and trades people to operate and implement the PLCs. As a result
ladder logic was developed to mimic relay logic. Ladder logic programs
resemble relay logic schematics.
20
Let’s start the introduction to ladder logic by comparing it to a circuit diagram.
Here is a simple circuit for operating an electric motor. When the button is
pushed the circuit will close causing the relay to close and the motor to run.
When the button is released the circuit will open and the motor will stop. Below
is the same operation in ladder logic. Power is said to flow from the left power
rail to the right rail. The ladder logic is the program inside the PLC.
However, ladder logic is not a circuits schematic and ladder logic doesn’t show
the relative positions of components to each other as a circuits diagram does.
An important distinction is that a ladder logic program is a set of logical
instructions and not a way to physically connect components.
21
Ladder logic is so named because the diagram looks like a ladder. Each step
in the program is called a rung. The vertical lines on the left and right are the
power rails. Each rung defines one operation in the control process. The
ladder diagram is read from left to right and from top to bottom. Each rung
starts with one or more inputs and ends with at lease one output.
22
There are quite a few manufacturers of PLCs. Each has its own brand of
ladder logic programming. Though they are all very similar and if you can
program in one manufacture’s ladder logic language it is easy to use them all.
Here are a few standard symbols. The power rails, the open and closed
contact and the output device. Power is always said to flow from left to right.
Power flows though an open or closed contact depending on input conditions.
And if power can get to an output device it turns on. Contacts are always on
the left side of the ladder and output devices are always on the right side.
The contacts and the output device can either be real input and output
connections on the PLCs or they can be special functions in the ladder
program.
23
A contact is assigned to a device that is part of the control process. It always
follows the state of the device it is assigned too. It can be assigned to a input,
an output or even a variable in the PLCs memory. A contact’s assigned device
can be a push button, a temperature sensor, a motor or even an bit marker or
counter that only exists in the PLCs memory.
Power only flows through a normally open contact when the device assigned
to the contact is in its ON state. Power only flows through a normally closed
contact when the device assigned to the contact is in its OFF state
24
So here is the first example.
Consider a motor operated by a button. For as long as the button is held down
the motor will be on. When the motor is on an on light must be on. When the
motor is off the off light must be on.
Here is an example of how contacts can follow the state of an input or output
device. The contact labeled button follows the state of a button wired to the
PLC. The contact labeled Motor follows the state of the Motor output device.
25
Sometime you need a machine to keep running even after the start button has
stopped being depressed. This is latching when needed. When the start button
is closed the motor will turn on.
The contact labeled motor will follow the state of the output device labeled
motor. So by pressing the start button the Motor contact will also activated.
When the start button is released, the motor will stay active because of the
motor contact on the lower rung will still be in the on state. The stop button
must be used to turn the motor off by causing it’s contact to open.
26
From the earlier example, here is a very simple ladder logic program and its
wiring schematic. A wiring diagram is always needed because the PLC
program isn’t a wiring schematic and lacks the information about sensors are
wired . Ladder logic looks much like a schematic of physical components but
remember it’s just a graphical program.
It is desired that when the pressure is too high the pressure sensor is tripped.
The PLC detects this and deactivates the solenoids for 10 seconds to open the
release valve. Also a count of the event is made.
When the pressure is high enough, the sensor will close the contacts and form
an electrical connection. Current will flow from the PLC to the ground and this
will inform the PLC that the sensor is in it’s ON state. Since the sensor is
programmed as normally open according to the programming, power only
flows when its assigned device is in its ON state.
Once the sensor it in the ON state, the counter will increase and the timer will
turn on. The timer will remain in the ON state for 10 seconds regardless of the
state of the Pressure Sensor contact. The timer contact is programmed as
normally closed, therefore when the output Timer is ON, the timer contact will
27
de-activate. This will cause the Solenoid to de-activate and the pressure
release valve will open.
27
As before a Manual shut off can be added to the system as well as a safety
sensor. Here is the wiring schematic for the PLC. Notice that the safety sensor
and manual shut off are wired such that they are usually in a ON state. When
these two devices are activated they cause on open and the PLC detects that
these devices are in the OFF state. This is so if there is any problem with
these input devices it is more likely that they will fail open and thus de-activate
the solenoid and venting pressure.
And of course as before the process can become large if more sensor and
solenoids were required. The PLC program would have to be repeated for
each sensor-solenoid pair and more input and output device would be wired to
the PLC.
28
Notice that the manual release and safety sensor are programmed as normally
open. This is so if there is any problem with the system or the safety sensor or
shut off the solenoid will lose power and the pressure release valve will open
causing the process to fail safe.
Ladder logic is always draw in the way the device is preferred to fail. Here if
the Safety Sensor or Manual shut off components fail or if the PLC fails the
Solenoid will be de-activated. This is the safest way for the process to fail
because the pressure value will open if there is any problem.
29
As an example, consider an industrial mixer a where a drum is to be filled with
liquid. After it is full, a heater is used to heat the liquid until it reaches a certain
temperature. Then the drum is to rotated for 10 minutes, then the process
stops.
--------------
Picture from:
http://www.monoequip.com/images/Equipment/ind_cake_mixer.jpg
30
Here is the SFC for this process. SFC are useful when the control process
involves a series of steps. The process stays in the current state until a
condition is satisfied.
31
Here is the wiring diagram for the mixer. As always all the inputs and output
are wired directly to the PLC. The operating logic is all stored in the PLC as a
ladder logic program. So based on the inputs of the start button, the Level full
floater and the Temperature sensor the PLC will decide when to turn on the
Pump, heater and motor.
32
Here is the ladder logic for the pump and the heater. Once the start button is
pressed the pump will stay on until the liquid is at the required level. This is
done through latching with the Pump contact. When the floater is activated, it
will stop the pump at the required level.
Once the level switch is active the pump will be shut off and the heater will be
activated. The liquid will be heated until the temperature switch is triggered.
There the heater is latched so even if the liquid level goes down it will still be
heated until the required temperate is reached.
33
There is the continuation of the ladder logic program. In total it has four rungs.
Here you can see at the top, that once the Temperature sensor is tripped it will
activate the Temperature reached output device. This device only exists in the
PLCs memory and acts as a variable. Once active it latches its self to the on
state. This insures that the timer is only activated once and the heater doesn’t
turn back on if the liquid cools.
Once the timer is activated it will cause the 10 minutes timer contact to close
and the mixing motor to turn on. The motor will operate for 10 minutes and
then stop.
34
Since Ladder logic is essentially a computer program it is subject to bugs and
faults. Therefore any program needs to be tested for accuracy and robustness.
One method of testing is called forcing. This is where input states are forced to
certain states in software. Programming errors can sometimes be found by
forcing inputs at various stages in the ladder program.
Time checks can also be built into the ladder logic program. This is where
additional ladder rungs might be includes so that when a function starts a timer
is started. If the function does not complete when the timer finishes a fault is
signaled. The function might be the moving of a piston or filling a drum with
liquid.
Many PLCs have a simulate mode where the installed program can be run and
inputs and outputs simulated so that they can be checked.
PLC ladder logic software can test against programming syntax errors.
35
Ladder logic can do much more than what has been shown so far. It can utilize
registers and bits to store and move data. There are data comparison function
such as checking for equal to, less than or greater than. There are arithmetic
operations such as addition, subtraction and multiplication. There are functions
that can transform number to different bases or formats. Some PLCs can
provide PID (proportional integral derivative) calculations to control a variable
simply by being provided the necessary parameters.
36
At this point you should realize how PLCs can solve many problems in
industry.
PLCS are flexible and can be reapplied to control other systems quickly and
easily. They are cost effective for controlling complex systems. They posses
high computational abilities that allow more sophisticated control through
ladder logic. Trouble shooting aids make programming easier and reduce
downtime. Reliable components make PLCs likely to operate for years before
failure.
You should also realize that right now, if you had a PLC and a enough ladder
logic knowledge you could construct a sophisticated machine with little
problem as far as operational logic is concerned.
37
38
Chapter 4: Fundamentals of Logic
2
Automation
3
Automation
4
Automation
5
Automation
6
Automation
7
Automation
8
Automation
Sometime called:
Boolean instruction
9
The Binary Concept
Or (OR)
And (AND)
Programmable Logic Controller
Boolean Algebra
And not
Out (OUT)
e.g :-
Programmable Logic Controller
e.g-:
Programmable Logic Controller
e.g :-
Programmable Logic Controller
e.g-:
Programmable Logic Controller
If there is a problem
with a module, the
entire strip is
removed, a new
module is inserted,
and the terminal
block is plugged into
the new module.
Discrete I/O
Modules
© 2011, The McGraw-Hill Companies, Inc.
The discrete I/O
interface module
connects
field input
devices of the
ON/OFF nature.
The classification of
discrete I/O covers
bit oriented
inputs and outputs.
Currents required
by the loads are
normally provided
by user-supplied
power.
© 2011, The McGraw-Hill Companies, Inc.
AC discrete input module block
diagram.
Analog I/O
Modules
© 2011, The McGraw-Hill Companies, Inc.
Analog input
and output
devices have an
infinite number
of values.
Typical analog inputs and outputs vary from
0 to 20 milliamps, 4 to 20 milliamps, or 0 to 10 volts.
The analog input interface module accepts an
analog signal and converts it to a digital signal.
Special I/O
Modules
© 2011, The McGraw-Hill Companies, Inc.
High-speed counter modules are used to count
pulses from sensors, encoders, and switches
that operate at very high speeds.
Intelligent position
and motion
control modules
permit PLCs to
control stepper
and servo motors.
Communication
modules provide for
connection to PLC
networks.
I/O
Specifications
© 2011, The McGraw-Hill Companies, Inc.
Discrete I/O Module Specifications
Nominal Input Voltage - Specifies the magnitude (e.g., 5
V, 24 V, 230 V) and type (AC or DC) of user-supplied
voltage that a module is designed to accept.
Power Backplane
Supply
The Central
Processing
Unit (CPU)
© 2011, The McGraw-Hill Companies, Inc.
The central processing unit (CPU) is built into
fixed PLCs while modular types typically use a
plug-in module.
The CPU
executes the
program.
The memory
stores the
program along
with other
retrievable
data.
© 2011, The McGraw-Hill Companies, Inc.
The PLC power supply provides the necessary
power to the processor and I/O modules plugged
into the backplane of the rack.
Memory Design
© 2011, The McGraw-Hill Companies, Inc.
Memory is the element that stores information,
programs, and data in a PLC.
Memory Types
© 2011, The McGraw-Hill Companies, Inc.
Memory types can be placed into two general
categories: volatile and nonvolatile.
Nonvolatile memory has the ability to retain stored
information when power is removed accidentally or
intentionally.
RAM is volatile so
battery backup is
required for it to avoid
losing data in the event
of a power loss
EPROMs are
designed so that
data stored in them
can be read, but not
easily altered
without special
equipment. UV EPROM memory can
only be erased with an
ultraviolet light.
© 2011, The McGraw-Hill Companies, Inc.
Electrically erasable programmable read-only
memory (EEPROM) is a nonvolatile memory
that offers the same programming flexibility as
does RAM.
Flash memory is
extremely fast at
saving and
retrieving files.
Programming
Terminal Devices
© 2011, The McGraw-Hill Companies, Inc.
A programming terminal device is needed to
enter, modify, and troubleshoot the PLC
program.
The hand-held proprietary
programming terminal has
a connecting cable so that it
can be plugged into a PLC’s
programming port.
Recording and
Retrieving Data
© 2011, The McGraw-Hill Companies, Inc.
Printers are used to provide hard-copy printouts
of the processor’s memory in ladder program
format.
A printout
can show
programs of
any length
and analyze
the complete
program.
Human Machine
Interfaces (HMIs)
© 2011, The McGraw-Hill Companies, Inc.
A human machine interface (HMI) can be
connected to communicate with a PLC and to
replace pushbuttons, selector switches, pilot
lights, thumbwheels, and other operator control
panel devices
The input/output (I/O) section of a PLC is the section to which all field devices are
connected and provides the interface between them and the CPU.
Input/output arrangements are built into a fixed PLC while modular types use
external I/O modules that plug into the PLC.
Input interface modules accept signals from the machine or process devices and
convert them into signals that can be used by the controller
Output interface modules convert controller signals into external signals used to
control the machine or process
Automation
3
Automation
4
Automation
5
Automation
6
Programmable Logic Controller
The address is used by the processor to identify where the device is located to monitor
or control it.
Automation
8
Automation
9
Automation
10
Automation
11
Automation
12
Automation
13
Automation
14
Automation
15
Automation
16
Automation
17
Automation
18
Automation
19
Automation
20
Automation
21
Automation
22
Automation
23
Automation
24
Automation
25
Automation
26
Automation
27
Automation
28
Automation
29
Automation
30
Automation
31
Automation
32
Automation
33
Automation
34
Automation
35
Automation
36
Automation
37
Automation
38
Programmable Logic Controller
The PLC power supply provides the necessary power (typically 5 VDC) to the
processor and I/O modules
Power supplies are available for most voltage sources encountered.
The power supply converts 115 VAC or 230 VAC into the usable DC voltage required
by the CPU, memory, and I/O electronic circuitry.
PLC power supplies are normally designed to withstand momentary losses of
power without affecting the operation of the PLC.
Holdup time , which is the length of time a PLC
can tolerate a power loss,
typically ranges from 10 milliseconds to
3 seconds.
The CPU executes the operating system, manages
memory, monitors inputs, evaluates the user logic
(appropriate ladder program) and turns on the
outputs.
Programmable Logic Controller
The CPU of a PLC system may contain more than one processor. One advantage of
using multiprocessing is that the overall operating speed is improved
Associated with the processor unit will be a number of status LED indicators to
provide system diagnostic information to the operator .
Also, a keys wich may be provided that allows you to select one of the following
three modes of operation: RUN, PROG, and REM.
RUN Position :- Executes the ladder program and energizes output devices
PROG Position :- Allows you to perform program entry and editing
REM Position
•Places the processor in the Remote mode: either the REMote Run, REMote Program,
or REMote Test mode
• Allows you to change the processor mode from a programmer/operator interface
device
•Allows you to perform online program editing
Automation
42
Automation
43
Automation
44
Automation
45
Programmable Logic Controller
Memory Design
Memory is the element that stores information, programs, and data in a PLC.
The user memory of a PLC includes space for the user program as well as ddressable
memory locations for storage of data.
Data are stored in memory locations by a process called writing.
Data are retrieved from memory by what is referred to as reading.
The complexity of the program determines the amount of memory required.
Memory elements store individual pieces of information called bits (for binary digits
The program is stored in the memory as 1s and 0s, which are typically assembled in
the form of 16-bit words.
Memory sizes are commonly expressed in thousands of words that can be stored in
the system; thus 2 K is a memory of 2000 words, and 64 K is a memory of
64,000words.
The memory size varies from as small as 1 K for small systems to 32 MB for very large
systems.
Programmable Logic Controller
Memory Design
Memory capacity is an important prerequisite for determining whether a particular
processor will handle the requirements of the specific application.
Memory location refers to an address in the CPU’s memory where a binary word can
be stored.
A word usually consists of 16 bits.
A rule of thumb for memory locations is one location per coil or contact.
One K of memory would then allow a program containing 1000 coils and contacts to
be stored in memory.
The memory of a PLC may be broken
into sections that have specific functions
Programmable Logic Controller
Memory Design
Sections of memory used to store the status of inputs and outputs are called input
status files or tables and output status files or tables ( Figure.)
These terms simply refer to a location where the status of an input or output device
is stored.
Each bit is either a 1 or 0, depending on whether the input is open or closed.
A closed contact would have a binary 1 stored in its respective location in the input
table, whereas an open contact would have a 0 stored.
A lamp that is ON would have a 1 stored in its respective location in the output table,
whereas a lamp that is OFF would have a 0 stored.
Input and output image tables are constantly being revised by the CPU.
Each time a memory
location is examined
,the table changes if
the contact or coil has
changed state
Automation
49
Programmable Logic Controller
This type of interface connects field input devices of the ON/OFF nature such as
selector switches, pushbuttons, and limit switches.
Likewise, output control is limited to devices such as lights, relays, solenoids, and
motor starters that require simple ON/OFF switching.
The classification of discrete I/O covers bit oriented inputs and outputs.
In this type of input or output, each bit represents a complete information element
in itself and provides the status of some external contact or advises of the presence or
absence of power in a process circuit.
Each discrete I/O module is powered by some field supplied voltage source. Since
these voltages can be of different magnitude or type, I/O modules are available at
various AC and DC voltage ratings,
Programmable Logic Controller
If the input signal is DC then the circuit below will be used to convert the signal into
5 volt signal
Programmable Logic Controller
• Convert the input signal to the correct voltage level for the particular PLC.
• Isolate the PLC from fluctuations in the input signal’s voltage or current.
• Send a signal to the processor indicating which sensor originated the signal.
Programmable Logic Controller
Figure shows the block diagram for one output of a typical discrete output module.
Like the input module, it is composed of two basic sections: the power section and
the logic section, coupled by an isolation circuit.
The output interface can be thought of as an electronic switch that turns the output
load device on and off.
Logic circuits determine the output status.
An output LED indicates the status of the output signal.
Programmable Logic Controller
A simplified diagram for a single output of a discrete AC output module is shown in Figure.
The operation of the circuit can be summarized as follows:
•the digital logic circuits of the processor sets the output status according to the
program.
•When the processor calls for an output load
to be energized, a voltage is applied across
the LED of the opto-isolator.
•The LED then emits light, which switches the
phototransistor into conduction.
•This in turn triggers the triac AC semiconductor
switch into conduction allowing current to
flow to the output load.
Programmable Logic Controller
•PLC outputs must convert the 5Vdc logic levels on the PLC data bus to external
voltage levels. This can be done with circuits similar to those shown below.
Certain DC I/O modules specify whether the module is designed for interfacing with
current-source or current-sink devices.
If the module is a current-sourcing module, then the input or output device must be
a current-sinking device.
Conversely, if the module is specified as current-sinking, then the connected device
must be current-sourcing.
Some modules allow the user to select whether the module will act as current
sinking or current sourcing, thereby allowing it to be set to whatever the field devices
require.
Programmable Logic Controller
In general, sinking (NPN) and sourcing (PNP) are terms used to describe a current
signal flow relationship between field input and output devices in a control system and
their power supply.
Figure illustrates the current flow relationship between sinking and sourcing inputs
to a DC input module.
Programmable Logic Controller
If the output is off the current cannot flow, and the light will not turn on.
The output 03 for the relay is connected in a similar way. When the output 03 is
on, current will flow through the relay coil to close the contacts and supply 120Vac to
the motor.
This card could have many
different voltages applied
from different sources, but
all the power supplies
would need a single shared
common.
Sinking
Programmable Logic Controller
This discrete input module voltage value specifies the magnitude (e.g., 5 V, 24 V, 230
V) and type (AC or DC) of user-supplied voltage that a module is designed to accept.
Input modules are typically designed to operate correctly without damage within a
range of plus or minus 10 percent of the input voltage rating.
With DC input modules, the input voltage may also be expressed as an operating
range (e.g., 24–60 volts DC) over which the module will operate.
Programmable Logic Controller
This value specifies the minimum input current that the discrete input devices must
be capable of driving to operate the input circuit.
This input current value, in conjunction with the input voltage, functions as a
threshold to protect against detecting noise or leakage currents as valid signals.
Programmable Logic Controller
Also known as response time , this value specifies the maximum time duration
required by an input module’s circuitry to recognize that a field device has switched
ON (input ON-delay) or switched OFF (input OFF- delay).
This delay is a result of filtering circuitry provided to protect against contact bounce
and voltage transients.
Programmable Logic Controller
OUTPUT VOLTAGE
This AC or DC value specifies the magnitude (e.g., 5 V, 115 V, 230 V) and type (AC or
DC) of user-supplied voltage at which a discrete output module is designed to operate.
The output field device that the module interfaces to the PLC must be matched to
this specification.
Output modules are typically designed to operate within a range of plus or minus 10
percent of the nominal output voltage rating.
Programmable Logic Controller
Ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Base: 10
Two digits: 0, 1
Base: 2
Another Method
In the binary number
when you see a 1, multiply
128 64 32 16 8 4 2 1
that 1 times the value that
is directly over it. Where
you see a 0 in the box,
just ignore it.
AEach
One
wordbit
16-bit
represents
will output
be file
thein
created word
“on” is
orreserved
“off”
the table state
only ifforofeach
the one slot
processor
TheMade
column
up of
onsingle
the right
bitslists
grouped
the output
into 16-bit
module words
address.
output
in the
finds anpoint.
chassis.
outputThese points
module are numbered
residing 0 through15.
in a particular slot.
1. The binary number system has a base of 8.
(True/False)
Sign
Sign Decimal
Decimal
Bit Magnitude
Bit MagnitudeBits
Bits Value
Value
Negative Numbers
Eight digits: 0, 1, 2, 3, 4, 5, 6, 7
Base: 8
I:2/16 O:3/22
Octal System
The digits range from 0 to 7; therefore, numbers
8 and 9 are not allowed!
Converting Octal To Decimal
As in all other numbering system, each digit in an
octal number has a weighted decimal value
according to its position.
Converting Octal-to-Binary
Octal is used to handle large binary numbers. One octal
digit is used to express three binary digits.
Hexadecimal System
The hexadecimal (hex) numbering system can
be summarized as follows:
Sixteen digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
Base: 16
The thumb-wheel
switch outputs the
equivalent 4-bits
of BCD data
Typical PLC Number Conversion Instruction
The keystrokes
on the keyboard
of a computer are
converted directly
into ASCII for
processing by the
computer.
Parity Bit
Some PLC communications systems use a parity bit
to check the accuracy of data transmission. For example,
when data are transferred between PLCs, one of the
binary bits may accidentally change states.
Even parity
means that the
total number of
binary 1 bits in
the character,
including the
parity bit, is even.
Binary Addition
1’s complement
Binary Multiplication
0x0=0
0x1=0
1x0=0
1x1=1
Binary Multiplication
101
x 110
000
101
101
11110
Binary Division
A = B (A equals B)
Processor Memory
Organization
The memory space can be divided into two
broad categories: program files and Data files.
Program and
Data file
organization for
the SLC 500
controller.
Program files are the areas of processor memory
where ladder logic programming is stored.
Program files are the part of
the processor memory that
stores the user ladder logic
program. The program
accounts for most of the total
memory of a given PLC system.
The Data file portion of the processor’s memory
stores input and output status, processor status,
the status of various bits, and numerical data.
These files are
organized by
the type of data
they contain.
The input image table
is allocated to storing
the on/off status of
connected discrete
inputs.
Program Scan
During each program scan cycle, the processor
reads all the inputs, takes these values, and
energizes or de-energizes the outputs according to
the user program.
The time it takes to complete a scan cycle is a
measure of how fast the controller can react to
changes in inputs.
PLC Programming
Languages
PLC programming language refers to the
method by which the user communicates
information to the PLC.
Hardwired relay
control circuit
Equivalent ladder
diagram program
Instruction list programming language consists
of a series of instructions that refer to the basic
AND, OR, and NOT logic gate functions.
Hardwired relay
control circuit
Equivalent instruction
list program
Functional block diagram programming uses
instructions that are programmed as blocks wired
together to accomplish certain functions.
Ladder diagram and functional block diagram
programming used to produce the same logical
output.
Ladder diagram
Equivalent
function block
diagram.
Sequential
function chart
programming
language is
similar to a
flowchart of
your process.
Ladder diagram
Equivalent
structured text
program.
5.4
A true logic
path is
established by
the input
instructions in
the rung.
Action of the field device and PLC bit.
A signal
present makes
the NO bit (1)
true; a signal
absent makes
the NO bit (0)
false.
The reverse is
true for an
NC bit.
The main function of the ladder logic diagram
program is to control outputs based on input
conditions.
Each contact or coil symbol is referenced with an
address that identifies what is being evaluated and
what is being controlled.
A complete closed
path is referred to
as having logical
continuity.
Instruction Addressing
To complete the entry of a relay-type instruction,
you must assign an address to each instruction.
Address indicates
what input is
connected to what
input device
Address indicates
what output is
connected to what
output device
The assignment of an I/O address can be
included in the I/O connection diagram.
Branch Instructions
Branch instructions are used to create parallel
paths of input condition instructions.
Either A or B provides a
true logical path to all
three output instructions:
C, D, and E.
Additional input
instructions can be
programmed in the
output branches.
Input and output branches can be nested to avoid
redundant instructions and to speed up processor
scan time.
It is possible, however,
to program a logically
equivalent branching
condition.
There may be limitations to the number of
series contact instructions that can be included
in one rung of a ladder diagram as well as
limitations to the number of parallel branches.
The PLC will not allow
for programming of
vertical contacts.
Reprogrammed to eliminate
vertical contact.
The processor examines the ladder logic rung for logic
continuity from left to right.
If programmed as shown,
contact combination
FDBC would be ignored.
Reprogrammed circuit.
5.7
Internal Relay
Instructions
An internal output does not directly control an
output field device.
Programming Examine
If Closed and Examine
If Open Instructions
Examine If Closed (XIC) instruction
Modes Of Operation
The program mode is used to enter
a new program, edit or update an
existing program, upload files and
download files.
70
Automation
71
Automation
72
Automation
73
Automation
74
Automation
75
Automation
76
Automation
77
Automation
78
Automation
80
Automation
81
Automation
82
Automation
83
Automation
84
Automation
85
Automation
86
Automation
87
Automation
88
Automation
89
Automation
90
Automation
91
Automation
92
Automation
93
Automation
94
Automation
95
Automation
96
Automation
97
Automation
98
Automation
99
Automation
100
Automation
101
Automation
102
Automation
103
Automation
104
Automation
105
Automation
106
Automation
107
Automation
108
Automation
109
Automation
110
Automation
111
Automation
112
Automation
113
Automation
114
Automation
115
Automation
116
Chapter 6: Developing Fundamental PLC
Wiring Diagrams and Ladder Logic
Programs
Electromagnetic
Control Relays
A PLC was designed to
replace control relays that
made logic decisions.
An electrical relay
is a magnetic
switch which uses
electromagnetism
to switch contacts.
Relay operation.
De-energized
Energized
Normally open (NO) and normally closed (NC)
contacts.
NO contacts are open
when the coil is
de-energized and closed
when the coil is energized
The letter M
frequently indicates
a motor starter coil.
CR is used for
control relays.
Control relay used to control two pilot lights.
Contactors
A contactor is a special type of
relay designed to handle heavy
power loads that are beyond
the capability of control relays.
PLC used in
conjunction
with a contactor
to switch power
on and off to a
pump.
6.3
Motor Starters
Contactor
The motor starter is
made up of a
contactor with an
overload relay
attached physically
and electrically to it.
Overload
Relay
Hardwired three-phase magnetic motor starter.
PLC programmed magnetic motor starter.
Simulated PLC magnetic motor starter.
6.4
Manually Operated
Switches
Manually operated switches are controlled by hand.
Mechanically Operated
Switches
A mechanically operated switch is controlled
automatically by factors such as pressure,
position, or temperature.
Temperature
switches open or
close when a
designated
temperature is
reached.
Pressure switches are used to
control the pressure of liquids
and gases.
Sensors
Proximity sensors detect
the presence of an object
without physical
contact.
These solid-
state electronic
devices are
completely
encapsulated.
Proximity sensors operate on different principles,
depending on the type of matter being detected.
Three-wire
sensor
Two-wire
sensor
Proximity sensor
sensing range.
To operate properly, a
proximity sensor
should be powered
continuously.
Photoelectric
sensors are
composed of a
transmitter (light
source) and a
receiver (sensor
The scan technique refers to the method used by
photoelectric sensors to detect an object.
Every revolution is
divided into a number
of steps, and the motor
must be sent a voltage
pulse for each step.
Seal-In Circuits
A seal-in circuit is a method of maintaining
current flow after a momentary switch has been
pressed and released.
Hardwired
Programmed
Simulated seal-in circuit.
Motor seal-in
circuit
implemented using
the Allen-Bradley
Pico controller.
6.9
Latching Relays
Electromagnetic latching relays are
designed to hold the relay closed after
power has been removed from the coil.
Hardwired
Programmed
Simulated
programmed
latching circuit.
Process used to control the level of water in a
storage tank.
Manual Mode -The
pump will start if the
water in the tank is at
any level except low.
B – Manual
A - Auto
6.10
Converting Relay
Schematics into PLC
Ladder Programs
A sequential control process is required for
processes that demand that certain operations
be performed in a specific order.
Here, the tasks are (1) place label 1 on bottle and (2)
place label 2 on bottle. The order in which the tasks are
performed does not really matter.
Automatic control involves maintaining a
desired set point at an output.
Writing a Ladder
Logic Program
Directly from a
Narrative Description
Drilling process that
requires the drill press to
turn on only if there is a
part present and the
operator has one hand on
each of the start switches.
Simulated drilling process program
A motorized overhead garage door is to be
operated automatically to preset open and
closed positions.
Motorized overhead garage door program.
Simulated motorized overhead garage door program.
Continuous
filling operation.
This process
requires that
boxes moving on
a conveyor be
automatically
positioned and
filled.
Continuous filling operation program.
Simulated continuous filling operation program.
Chapter 7:
Programming
Timers
Operating coil
NO Nontimed contacts are
controlled directly by
Instantaneous the timer coil, as in a
contacts general-purpose
NC control relay.
10 s S1 is opened,
TD de-energizes, timing
period starts, TD1 is still
Input
On
open, L1 is still off.
Output
Off After 10 s, TD1 closes,
L1 is switched on.
Timing Diagram
Programmed Timer Instructions
TON
Timer/Counter
TOF
Timer/Counter
RTO RES
Timer/Counter
TON
Preset time
Time base
Accumulated time Output line
The control word uses three control bits: Enable (EN) bit,
Timer-Timing (TT) bit, and Done-Bit (DN).
TIMER TABLE
T4:0
Enable bit true
EN
Allen-Bradley On-Delay Timer Instruction
The Timer-Timing (TT) bit is true whenever the
accumulated value of the timer is changing, which
means the timer is timing.
TON
TIMER ON DELAY
Timer T4:0 EN
Preset 50
Accumulated 10
T4:0
Timer-Timing bit true
TT
Allen-Bradley On-Delay Timer Instruction
The Done-Bit (DN) changes state whenever the
accumulated value reaches the preset value. Its
state depends on the type of timer being used.
TON
TIMER ON DELAY
Timer T4:0 EN
Preset 50 DN
Accumulated 10
50
T4:0
Done-bit changes state
DN
Allen-Bradley On-Delay Timer Instruction
The preset value (PRE) word is the set point of the
timer, that is, the value up to which the timer will
time.
The accumulated value (ACC) word is the value that
increments as the timer is timing. The accumulated
value will stop incrementing when its value reaches
the preset value.
TIMER TABLE
/EN /TT /DN .PRE .ACC
T4:0 0 0 0 0 0
Allen-Bradley On-Delay Timer Instruction
The information to be entered includes:
TON
TIMER ON DELAY
Timer T4:0 EN
Time base 1.0
Preset 15 DN
Accumulated 0
EN Output D Y
T4:0 Output C
TT
T4:0 Output D
DN
On-Delay Timer Program
Timing Diagram
On
Input condition A
Off
On
Timer-enable bit
Off
On
Timer-timing bit
Off
4s 4s
On
Timer-done bit
Off
Timer accumulated 0
value
On-Delay Timer Program
Timers are 3-word elements
Word
EN TT DN Internal use 0
Preset value PRE 1
Accumulated value ACC 2
Stop Start
L1 L2
1TD
1TD-1
(instantaneous M
contact)
1TD-2
(5 s)
(timed contact)
On-Delay Timer With Instantaneous Output
Programmed Circuit
Inputs Internal
Stop Start Output
relay
L1 L2
Stop
Motor M
Start Internal Motor
relay M
Timer
PR: 5
TB: 1 s Output
line
Start-Up Warning Signal Circuit
Relay Ladder Schematic Diagram
L1 Start-up Reset L2
PB1 PB2 CR1
CR1-1
1TD
CR1-2
Horn
CR1-3
1TD-1
(10 s)
Start-Up Warning Signal Circuit
Programmed Circuit
DN EN
Timed Closed Solenoid Value Program
L1 L2
Switch SW_1 TON
Timer On Delay
SW_1 EN Valve
Timer timer_1
Preset 12000 DN
Accumulated 120000
timer_1.dn Valve
Automatic Sequential Control System
L1 Start
L2
Stop PB2
Relay Ladder PB1
Lube oil OL
pump motor
Schematic
M1
Diagram
(lube oil
pressure switch) 1TD
OL
M3
1TD-1 Feed
(15 s) motor
Automatic Sequential Control System
Programmed Circuit
Ladder logic program
Inputs PB1 PB2 M1 Outputs
OL
PB1
M1
M1
PB2 OL
PS1 M2 M2
PS1
OL
M3
TON
TIMER ON DELAY EN
Timer T4:0
Time base 1.0 DN
Preset 15
Accumulated 150
T4:0 M3
DN
Off-Delay Programmed Timer
The off-delay timer (TOF) operation will keep the output
energized for a period after the rung containing the timer
has gone false.
S1 I:1.0/0 TOF
TIMER OFF DELAY
I:1.0/0 EN O:2.0/1 PL
TIMER T4:3
Time base 1.0 DN
Preset 15
Accumulated 0
15
T4:3/DN O:2.0/1
Off-Delay Programmed Timer
Timing Diagram
True
Input condition
S1 False
Timed period
Off delay
timed duration
True (logic 1)
5000
10000
15000
Pneumatic Off-Delay Timer
L1 L2
Relay Ladder
Schematic
Diagram
Programmed Pneumatic Off-Delay Timer
Equivalent Programmed Circuit
Ladder logic program
Input Outputs
L1 L2
5
Fluid Pumping Process
Operation
Inputs Output
L1 L2
05
Retentive Timer
A retentive timer accumulates time whenever the device
receives power, and maintains the current time should
power be removed from the device. Once the device
accumulates time equal to its preset value, the contacts of
the device change state. The retentive timer must be
intentionally reset with a separate signal for the
accumulated time to be reset.
Electromechnical Retentive Timer
Once power is applied, the motor
starts turning the cam. The
Cam operated positioning of the lobes determines
contact the time it takes to activate the
contacts. If power is removed from
Motor-driven the motor, the shaft stops but does
cam not reset.
Retentive On-Delay Timer Program
The PLC-programmed RETENTIVE ON-DELAY timer
(RTO) operates in the same way as the nonretentive on-
delay timer (TON), with one major exception. This is a
retentive timer reset (RTR) instruction.
Unlike the TON, the RTO
will hold its accumulated
value when the timer rung
goes false and will continue
timing where it left off when
the timer rung goes true
again. This timer must be
Same address accompanied by a timer reset
(RES) instruction to reset the
accumulated value of the
timer to zero.
Retentive On-Delay Timer Program
03
9
Retentive On-Delay Timing Chart
Enable bit is reset when
input pushbutton PB1 is
opened
Accum = Preset
Accum value retained
when rung goes false
60000
0
10
0
15
10800
Cascading Timers
The programming of two or more timers together is
called cascading. Timers may be interconnected, or
cascaded to satisfy any required control logic.
Relay Schematic
Diagram
20000
20000
Annunciator Flasher Circuit
Two timers can be interconnected to form an oscillator
circuit. The oscillator logic is basically a timing circuit
programmed to generate periodic output pulses of any
duration. They can be used as part of an annunciator
system to indicate an alarm condition.
30000
12000
Control of Traffic Lights in One Direction
30
25