CH 3
CH 3
CH 3
Chapter – 3
Introduction to PLC
What is PLC?
What is Programmable Logic Controller (PLC) ?
PLC System
Programmable Logic Devices (PLD)
Programmable Logic Devices (PLD) - to perform different
control functions, according to the programs written in its
memory, using low level languages of commands.
Programmable Logic Controller (PLC) – to control the
operation of electro-mechanical devices
Microprocessor, a digital integrated circuit– digital
functions necessary to process information
Microcomputer– uses microprocessor as its central
processing unit and contains all functions of a computer
Define PLC terminologies:
Several different terms used to described programmable
controllers:
i. PLC –Programmable Logic Controller (UK origin)
ii. PC – Programmable controller (US origin)
PLC has been used in this text to avoid confusion with the
personal computer.
Contnd…
What is a Microprocessor (MP)?
The word Microprocessor is a combination of two words micro and
processor.
Micro means small
Processor means a device which processes binary numbers
(0’s and 1’s).
Before the birth of microchip, processors were large
discrete elements
After invention of microchip, the size of the processor
became much smaller
A microprocessor is a multi-purpose, programmable, integrated
logic device that reads binary instructions from a storage device
(memory). It accepts binary data as input and processes the data
according to those instructions and provides result as an output.
Contnd…
Differences between microcomputer, microprocessor and
microcontroller
Microcomputer– a computer with a microprocessor as its CPU.
Includes memory, I/O
Medium :
- Have up to 2048 I/O’s and memories up to 32 Kbytes.
Large :
- The most sophisticated units of the PLC family. They have up to
8192 I/O and memories up to 750 Kbytes.
- Can control individual production processes or entire plant.
Types of PLC Construction:
i. Compact PLC
ii. Modular PLC
iii. PLC Plug-in Card
i. Compact PLC:
POWER
SUPPLY
I M O M
N O U O
P D
T D
U U PROCESSOR
T L P U
E U L
From T E To
SENSORS OUTPUT
Pushbuttons, Solenoids,
contacts, contactors,
limit switches, alarms
etc. etc.
PROGRAMMING
DEVICE
Major Components of a Common PLC
POWER SUPPLY
Provides the voltage needed to run the primary PLC components
I/O MODULES
Provides signal conversion and isolation between the internal
signals inside the PLC and the field’s high level signal.
PROCESSOR
Provides intelligence to command and govern the activities of the
entire PLC systems.
PROGRAMMING DEVICE
used to enter the desired program that will determine the sequence
of operation and control of process equipment or driven machine.
Programming Device
Also known as:
Industrial Terminal ( Allen Bradley )
Programmer ( Square D )
Types:
Hand held unit with LED / LCD display
Solution
Solution:
Contd…
Problem: Develop Ladder Logic for a car door/seat belt safety system. When
the car door is open, and the seatbelt is not done up, the ignition
power must not be applied. If all is safe then the key will start the
engine.
Solution:
Contd…
Problem: Develop Ladder Logic for a car door/seat belt safety system. When
the car door is open, and the seatbelt is not done up, the ignition
power must not be applied. If all is safe then the key will start the
engine.
Solution:
Contd…
Problem: Design a motor controller that has a forward and a reverse button. The
motor forward and reverse outputs will only be on when one of the
buttons is pushed. When both buttons are pushed the motor will not
work.
Solution:
Contd…
Problem: Draw a ladder diagram that will cause output D to be on when push
button A is on, or either B or C are on.
Solution:
Contd…
Problem: Develop the ladder logic that will turn on an output light, 15 seconds
after switch A has been turned on.
Contd…
Problem: Develop the ladder logic that will turn on a light, after switch A has
been closed 10 times. Push button B will reset the counters.
Ladder Logic
Ladder logic is the main programming method used for PLCs
Logic solution Ladder diagram implementation
Contd…
Example: A Burglar Alarm
Consider the design of a burglar alarm for a house.
When activated an alarm & lights will be activated to
encourage the unwanted guest to leave.
This alarm be activated if an unauthorized intruder is detected
by window sensor and a motion detector.
The window sensor is effectively a loop of wire that is a piece
of thin metal foil that encircles the window. If the window is
broken, the foil breaks breaking the conductor. This behaves
like a normally closed switch. The motion sensor is designed
so that when a person is detected the output will go on. As
with any alarm an activate/deactivate switch is also needed.
Contd…
Solution
The next step is to define the controller equation. In this case the controller has
3 different inputs, and a single output, so a truth table is a reasonable approach
to formalizing the system.`
Contd…
Then a Boolean equation can be written
based on the truth table obtained
Ladder diagram
Examples
1. Devise a relay based controller that will allow three switches in
a machine to control a single motor
Solution
There are two possible The second solution assumes
approaches to this problem. that each switch can turn the
The first assumes that any one motor on or off, regardless of the
of the switches on will turn on states of the other switches. You
the light, but all three switches might recognize this problem as
must be off for the motor to be an Exclusive OR problem.
off.
75
Examples
2. Convert the digital circuit shown below into an equivalent
ladder logic circuit.
(a) (b)
Solutions
(a) (b) ????
76
3.Write the Boolean equation and a statement list for the ladder logic
circuit shown in the figure below
(a) (b)
3a.
3b. ???????????
77
4. Convert the digital circuit shown below into an equivalent ladder
logic
(a) (b)
Solution
(a) (b) ?????
78
5. In the manual operation of press, a 2 button safety interlock is
used. Both buttons must be used to start the cycle. One on one
side, the other on the other side. Operator inserts the part and
presses the button.
a) Write truth table d) Boolean expression
e) Logic plan and
b) Statement list f) Ladder logic plan.
c) Functional block diagram
Solution
79
6.Write the Boolean equation and logic diagram for the ladder logic
circuit shown in the figure below
(a) (b)
Solution
80
END