Chapter 4
Chapter 4
May, 2023
PLC
2
PLC
3
PLC
PLC Features
PLC features can be concluded in the following:
• They are rugged, withstand industrial environment,
such as heat, humidity, mechanical shocks and
vibrations.
• The interfacing for inputs and outputs is inside the
controller.
• They are easily programmed.
• PLC is capable of both logic and PID control.
4
PLC
5
PLC
PLC Architecture
6
PLC
PLC Architecture
Programming
device Communications
Program & data
memory interface
Input Output
inter- Processor inter-
face face
Power supply
7
PLC
PLC Architecture
The processor unit or central processing unit (CPU) is the unit
containing the microprocessor. This unit interprets the input
signals and carries out the control actions according to the
program stored in its memory, communicating the decisions as
action signals to the outputs.
The power supply unit is needed to convert the mains AC
voltage to the low DC voltage (5 V) necessary for the processor
and the circuits in the input and output interface modules.
8
PLC
PLC Architecture
9
PLC
PLC Architecture
The input and output sections are where the processor receives
information from external devices and communicates
information to external devices.
The communications interface is used to receive and transmit
data on communication networks from or to other remote
PLCs.
10
PLC
RELAYS
A switch whose operation is activated by an electromagnet is called a "relay."
contact
coil
input
11
PLC
COUNTER
Digital counters output in the form of a relay contact when a
preassigned count value is reached.
TIMER
A timer consists of an internal clock, a count value register, and
an accumulator. It is used for or some timing purpose.
12
PLC
PLC Ladder Programming
A very commonly used method of programming PLCs is based
on the use of ladder diagrams. Writing a program is then
equivalent to drawing a switching circuit.
The ladder diagram consists of two vertical lines representing
the power rails. Circuits are connected as horizontal lines, that
is, the rungs of the ladder, between these two verticals.
Each rung on the ladder defines one operation in the control
process.
13
PLC
Power flow
Left power Right power Read the status of
rail rail all the inputs and
Rung 1 store in memory
14
PLC
PLC Ladder Programming
AND Logic gate Inputs
A B A B
A B
Current flow
when A and B Output
0 0 0
are closed
0 1 0
Applied voltage Applied voltage
1 0 0
1 1 1
15
PLC
PLC Ladder Programming
OR Logic gate
Inputs
A A A
B B B A B
Output
0 0 0
Applied voltage Applied voltage Applied voltage
0 1 1
1 0 1
1 1 1
Output
Input A
Current flow when A or
Input B B are closed
16
PLC
PLC Ladder Programming
Test
Pump
Pressure
END Test
17
PLC
PLC Ladder Programming
Exercise: Draw the ladder diagrams to represent:
1) There is to be a motor startup when either switch A or
switch B is activated.
2) Two switches are normally open and both have to be
closed for a motor to operate.
3) Consider a situation where a normally open switch A
must be activated and either of two other, normally
open switches B and C must be activated for a coil to be
energized.
18
PLC
THANKS
19