2. Programmable Logic Controllers – Basic Structure
– Input / Output Processing – Programming –
Mnemonics – Timers, Internal relays and counters
– Shift Registers – Master and Jump Controls –
Data Handling – Analogs Input / Output –
Selection of a PLC.
2
3. Introduction
A Programmable logic controller is a solid
state digital electronic device, designed for
use in an industrial environment.
It is a microprocessor based specialized
computer that carries out control functions of
many functions of many types and levels of
complexity.
3
4. Basic Structure:
The three major parts of PLC are
i. Central processing unit,
ii. Programmer / Monitor, and
iii. Input / Output modules.
4
6. Central Processing Unit (CPU)
i. Microprocessor: It carries out mathematical
and logical operations.
ii. Memory: The area of the CPU in which data and
information is stored and retrieved. It holds the
system software and user program.
iii. Power supply: The electrical supply that
converts Alternating Current (AC) line voltage to
various operational DC values.
6
7. Various Input and Output Devices
Digital / Discrete Input Devices:
i. Mechanical switches,
ii. Proximity switches,
iii. Photo elective switches,
iv. Encoders,
v. Temperature switches,
vi. Pressure switches.
7
8. Analog Input Devices:
i. Potentiometer,
ii. Linear variable differential transformer,
iii. Strain gauges,
iv. Temperature sensors,
v. Pressure sensors,
vi. Level detectors,
vii. Flow measurement devies.
8
10. PLCs Vs Computers
i. The application for PLC is for industrial
environment with wide variation in atmosphere
conditions and PLC is very rigid and compact.
ii. PLC programming can be accomplished in the
ladder logic by an electrician and technician
who have no much knowledge hardware and
softwares, whereas the computers will require
person with knowledge of hardware and
software.
10
11. iii. PLC deal with input/output in the form of sensors,
switches and actuators etc, through appropriate
interface units and computer receives inputs from
keyboard and gives output to a screen or printer.
iv. The power supply in industrial environment is
shared by many devices and therefore there can be
interruption of supply. Such disruption of supply
will normally not affect the program and storage of
data in PLC. In a computers such loss of data could
happen.
11
12. PLC Programming
• Ladder diagram is commonly used
programming method evolved from electrical
relay circuits in the form of graphical
language.
• It is a network of contacts and coils are
arranged on rungs between two vertical lines
called rails.
12
14. Proper construction of PLC adder
diagrams
i. No vertical contacts are allowed.
ii. A coil must be inserted at the end of the
rung.
iii. All contacts must run horizontally.
iv. Only one output may be connected to a
group of contacts.
v. Flow must be from left to right.
14
16. Process Scanning Consideration
• PLCs function by scanning their operational
programs.
• Each PLC operational cycle is made up of three
separate parts:
i. Input scan
ii. Program scan and
iii. Output scan
• Total time for one complete program scan is a
function of processor speed and length of the user
program.
16
26. Latch circuit
• A ladder latch circuit facilitates to hold an
output energized, even when the input
ceases.
• The output coil maintains its status until a
different conditions occurs which is used to
reset the coil to OFF.
26
28. Counters
• Conventional counters replaced by the PLC
counter function include mechanical,
electrical and electronic types.
Types of counters:
1. Up counter
2. Down counter
3. Up/down counter
28