The document provides information about programmable logic controllers (PLCs). It defines a PLC according to the NEMA standard as a digitally operating, microprocessor-based electronic apparatus that uses a programming memory to implement logic, sequencing, timing, counting, and arithmetic functions to control machines and processes. The document discusses the historical development of PLCs, their basic components including inputs, outputs, power supply and programming. It provides examples of PLC applications and programming techniques such as ladder logic. It also lists some leading PLC brands and provides basic information about relays and internal relays used in PLC systems.
Introduction to PLCs and video resources for further understanding.
Definition of PLC as microprocessor-based devices using programming for control, emphasizing inputs, outputs, and power supply.
Comparison highlighting PLCs as specialized microcontrollers with more I/O ports and industrial applications.
Origins of PLC design in 1968 aimed at reducing costs linked to relay systems.
Basic configuration of PLCs including digital and analog inputs/outputs with practical examples.
Different PLC types, their architecture, and typical setups in control environments.
Four phases of a PLC scan cycle ranging from reading inputs to sending output values.Various devices interfacing with PLCs, including sensors and actuators. Examples of PLC applications in process safety and control including solenoids and timers.
Broad applications of PLCs in manufacturing, food, energy, and more.
Benefits and challenges associated with the use of PLCs in various operations.
List of major PLC brands and their respective programming systems.
Various programming devices associated with PLCs, each with specific functionalities.
Introduction to ladder logic, a predominant PLC programming technique, including symbols and evaluation.
Determining outputs and combining logic with ladder diagrams, including mnemonics.
Use of logic gates in PLCs, including creation of truth tables and ladder diagrams.
Introduction to sequencers in PLC applications for machines with repetitive cycles.
Understanding relay systems within PLCs and their operational parameters.
Functionality and examples of different timer types used in PLC systems.
The function of counters in PLCs to track events and examples of their application.
Shift registers including tracking operational processes and assembly lines.
Functionality of master control instructions and conditional jumps in programming.
Techniques for data movement and conversion in PLC systems.
Techniques for comparing data and performing arithmetic operations in PLC programming.Factors to consider when selecting a PLC including I/O requirements and memory.
Comparative analysis of PLC functionalities against typical computer systems.
Advantages and disadvantages of handheld versus PC-based programming for PLCs.
Introduction to programmable automation controllers as an advanced PLC variant.
Final thoughts on the application and development of PLCs in control systems.
PLC video links
•https://www.youtube.com/watch?v=zEcAQZQ
8DGQ&list=PLGoZgwDrvRy92QyXIackQ0xv8pH
R5YQjZ
• Engineering graphics – M senthil kumar
3.
Programmable Logic Controllers
(Definitionaccording to NEMA standard ICS3-1978)
• A digitally operating microprocessor based
electronic apparatus
• which uses a programming memory for the
internal storage of user oriented instructions
• for implementing specific functions such as
logic, sequencing, timing, counting and
arithmetic
• In order to control various types of machines
or processes
• through digital or analog modules (I/O).
National Electrical Manufacturing Association (NEMA)
S.No Microcontroller PLC
1Used for any type of
application
It is a special microcontroller
designed for
industrial application
2 Microcontroller
works with electronic
devices. Ex: Transistor
It will also work with
relays
PLC works with power devices.
Ex :relays,
3 It doesn’t work as a
stand alone controller
but it came as a part of
electronic circuit or
device
PLC is a stand alone controlling
device
that can be programmed for
any process.
4 I/O ports in MC is less I/O ports in PLC is more
5 Microcontroller is a chip PLC = number of chips
8.
Historical Background
• TheHydramatic Division of the General
Motors Corporation specified the design
criteria for the first programmable controller in
1968
• Their primary goal
• To eliminate the high costs associated
with inflexible, relay-controlled systems.
Types of PLC
BoxType /Unitory/
Compact PLC
Modular or Rack Type PLC
13.
PLC: Location inthe control
architecture Enterprise Network
directly connected
I/O
Control Bus
(e.g. Ethernet)
Engineer
station
I/O
I/O
I/O
I/O
CPU
Sensor Bus (e.g. ASI)
Field Bus
gateway
Field Stations
Control Station
with Field Bus
direct I/O
I/O
Field Devices
FB
gateway
gateway
I/O
I/O
I/O
I/O
CPU
COM
I/O
I/O
I/O
COM
CPU
COM
COM
COM
I/O
Field Bus
CPU
COM
2
I/O
I/O
I/O
CPU
COM1
COM
2
I/O
CPU
Operator
station
large
PLCs
small PLC
PLC
PLC
COM1
COM1
Supervisor
Station
data concentrators,
not programmable,
but configurable
PLC Operation
PHASE 1– Input Status scan
A PLC scan cycle begins with the CPU reading the
status of its inputs.
PHASE 2– Logic Solve/Program Execution
The application program is executed using the status of the
inputs
PHASE 3– Diagnostics
Once the program is executed, the CPU performs diagnostics
and communication tasks
PHASE 4 - Output Status Scan
An output status scan is then performed, whereby the stored
output values are sent to actuators and other field output
devices. The cycle ends by updating the outputs.
CONTROL DEVICES
1) Mechanicalcontrol - cam, governor, etc.,
2) Pneumatic control - compressed air, valves,
etc. (Electro-Pneumatics)
3) Electromechanical control - switches, relays, a
timer, counters, etc,
4) Electronics control - similar to
electromechanical control, except uses
electronic switches.
PROGRAMMING
• Ladder logicuses a
variety of programming
symbols
• Power always flows from
left to right
• Output devices are in the
ON state if power flows
through them
Normally Closed
Contact
Normally Open
Contact
Output Device
or Coil
Power rails
45.
Ladder Logic
make contact
breakcontact
relay coil
Special Instruction
Power flows when the
input device is on
Power flows when the
input device is off
True/False
Normally Open Pushbutton
NormallyClosed Pushbutton
Normally Open switch
Normally Closed switch
Normally Open contact
Normally closed contact
50.
Ladder Logic /Programming in PLC
• Outputs “energize” when rung conditions
preceding them are “True”
• When Input 1 is True, Output 1 is energized.
IF THEN
51.
Ladder Logic /Programming in PLC
• Compare a
circuits
diagram to a
ladder logic
diagram
Relay
Button Motor
24 V DC
Input
Button
Power Rails
Motor
52.
• Boxes
• Boxesrepresent various instructions or
functions that are Executed when power
flows to the box.
• Some of these Functions are timers,
counters and math operations.
Ladder Logic
Rung 1
Rung2
Rung 3
Rung 4
Power Rails
Ladder is evaluated (scanned)
starting from the top rung, left to
right, followed by the next rung,
and so on, until the bottom is
reached. Then starts again at the
top.
57.
List of itemsrequired when
working with PLCs
1. Programming Terminal - laptop or desktop PC.
2. PLC Software. PLC manufacturers have their own
specific software and license key.
3. Communication cable for connection from Laptop
to PLC.
4. Backup copy of the ladder program (on diskette,
CDROM, hard disk, flash memory). If none, upload it
from the PLC.
5. Documentation- (PLC manual, Software manual,
drawings, ladder program printout, and Seq. of
Operations manual.)
58.
Ladder Logic
make contact
breakcontact
relay coil
Special Instruction
Power flows when the
input device is on
Power flows when the
input device is off
True/False
Procedure to Writein Exams
1. Introduction about the logic gate with the
symbol.
2. Write and explain the TT with true/false as
theory part.
3. Draw and explain the electrical diagram
4. Ladder diagram
5. Explanation of Mnemonics in detail.
6. General Applications if any.
68.
Headings must be
•Introduction
• Truth table
• Description for Electrical diagram
• Ladder diagram
• Timing I/O diagram (if possible)
• Program/Mnemonics explanation
69.
AND OR NOTNAND NOR EXOR EXNOR
Logic
Diagrams
Truth table
IC number
IC
7408
IC 7432 IC 7404 IC 7400 IC 7402 IC 7486 IC 74266
Switch
diagram
(Electrical)
Ladder
diagram
(PLC)
Mnemonics
Ladder Diagrams
Binary combinationsare expressed by series and parallel relay contact:
+ 01 02
50
Coil 50 is active (current flows) when 01 is active and 02 is not.
01
02 50
Series
+ 01
40
02
Coil 40 is active (current flows) when 01 is active or 02 is not.
Parallel
Ladder Diagrams representation “logic" equivalent
01
02 40
Simplification of Ladderdiagrams
• It is illegal due
to the reverse
power flow.
• In figure a, the
upper block is
shorter than
lower block.
• It legal by
switching
them.
84.
Ladder Diagrams Example
0102
50
01
02
03 50
03
relay coil
(bobine)
break contact
(contact repos)
make contact
(contact travail)
corresponding
ladder diagram
origin:
electrical
circuit
50 05
44
rung
"coil" 50 is used to move
other contact(s)
86.
SEQUENCER
• Sequencers areused with machines or
processes involving repeating operating
cycles which can be segmented into steps.
Internal Relays
• Thesedo not receive signals from the outside
world nor do they physically exist.
• They are simulated relays and are what enables a
PLC to eliminate external relays.
• There are also some special relays that are
dedicated to performing only one task. Some are
always on while some are always off.
• Some are on only once during power-on and are
typically used for initializing data that was stored.
Latching
• Latching isthe term for
a self-maintaining
circuit.
• Machine keep running
even after the start
button has stopped
being depressed.
• A latch is like a sticky
switch – when pushed
it will turn on, but stick
in place, it must be
pulled to release it and
turn it off.
Start button
Motor
Motor
Stop
button
Timers and itsTypes
• Two basic types of timers in
PLCs:
1. On-delay timers
2. Off-delay timers
Clock
Accumulator
contact
reset
output
Register
Contact
As an example, a certain step in the
manufacturing process is to begin 30
seconds after a signal is received from a
limit switch. The 30-second delay is the
on-delay timer's preset value.
Delay-off timer example
•When the input start,
the output energized
and the timer start.
• The output contacts
latch the input and
keep the output ON.
• After the preset time,
the timers come ON
and breaks the latch
circuit, so switching
the output OFF
For example, for an external cooling fan on a
motor. The fan is to run all the time the motor
is running and for five minutes after motor is
turned off. This is a five-minute off-delay timer.
The five-minute timing cycle begins when the
motor is turned off.
Example : Solenoidactuated door-lock
• Solenoid actuated when:
(i) ON signal from number-pad outside door
(ii) ON signal from door-open switch inside door
• Solenoid ON for 5 sec, then OFF.
While O:0/1 remains ON,
Timer COUNTS DOWN from PRESET
COUNT DOWN = 0 ( T4:1) set to ON
113.
Example for Timers
Done bit (DN),
Enable bit (EN)
Reset (RES) (RST)
Accumalated value: The values are counting is displayed
from zero. Value becomes zero whenever the timer is reset
Retentive Timer
• Retainthe previous value.
• Retain the accumulated value even during
Power loss.
• Ex: Each time the motor is turned off, the
timer will remain motor’s elapsed running
time.
116.
• When thepush bottom PB1 is pressed, the timer starts working and the
reading starts accumulating.
• When we push the PB1 button then rung become false and the timer
stops working. Consider we are switching ON the push after a time, the
timer starts counting from the previous value before the timer is stopped.
• We have to add another switch PB2 to reset the values in the timer.
Retentive timer
University Problem onPLC
14 b) Develop the ladder logic to fill the tank.
• (i) Fill the tank up to 80%. When the tank is
filled, turn ON the heater to raise the
temperature up to 70 deg.
• (ii) When this temperature is reached, turn
OFF the heater and open the outlet valve.
• (iii) When the level in the tank falls below
10%, close the outlet valve.
125.
Sequential Function Chart
State2
State 1
State 3 Open Outlet Valve
Heat
Fill with
liquid
Level 80% switch
Level 10% switch
Temperature Switch
State 4 Close Outlet Valve
Part C AUproblem on Timers
• Design a PLC circuit that can be used to start a
motor and then after a delay of 100s start a
pump when the motor is switched off there
should a delay of 10s before the pump is
switched off. (Nov/Dec 2020 & 2021)
University Problem basedon Timers
14 (a) Draw a ladder diagram for two motor
system having following conditions:
• (i) Starting push button starts motor 1
• (ii) After 10 seconds, motor – 2 is ON
• (iii) Stopping the switch stops motor 1 and 2
(Time base 1 sec). Nov/Dec 2021
Counters
• Count thenumber of occurrences of an event
• Examples:
– Pallet loading in factory
• After 10 parts arrive on conveyor, worker comes to load pallet
– Pneumatic press hammer
• Hit the part 20 times, then wait for part to be unloaded
– Rice cooker alarm
• Beep 5 times when rice is cooked
Example
• Consider theproblem of control for a machine
which required to direct 6 items along one
path for packaging in a box and then 12 items
along another path for packaging in another
box.
• Draw the ladder diagram and Write down the
mnemonics for it.
138.
Example
• Input 1closes its contacts to
start the counting cycle,
resetting both counters.
• Counters 1 start to count pulses
in input2, it counts 6 items and
then closes its contact.
• This activates the output,
closes one path and start
another. when counter 2 has
counted 12 items it reset both
counters and opens counter 1
contacts.
1
Output 2
Counter 2
1
139.
Example
• Pallet loadingin factory
– After 4 parts arrive on conveyor
– STOP conveyor belt
– Turn ON the indicator light
Shift Register
• Imaginean ice-cream cone
machine. We have 4 steps.
• First
– we verify the cone is not broken.
– Next we put ice cream inside the
cone (turn on output 500)
– Next we add peanuts.(turn on output
501)
– And finally we add sprinkles.(turn on
output 502)
• If the cone is broken we
obviously don't want to add
ice cream and the other items.
144.
Shift Register
• Thereforewe have to track the
bad cone down our process line
so that we can tell all the
machine not to add each item.
• We use a sensor to look at the
bottom of the cone.(input 0000)
If its on then the cone is perfect
and if its off then the cone is
broken.
• An encoder tracks the cone
going down the conveyor (input
0001) A push button on the
machine will clear the
register.(input 0002)
Master Control
• Mastercontrols can be thought of as
"emergency stop switches”.
• But this instruction isn’t a substitute for a
"hard wired" e-stop switch. There is no
substitute for such a switch!
151.
Master and Jumpcontrol
• MC/MCS – Master
control Set
• MCR – Master Control
reset
153.
Master Control
• Rungs2 and 3 are only
executed when input 0000
is on(true).
• If input 0000 is not true the
plc pretends that the logic
between the MC and MCR
instructions does not exist.
154.
Master Control
• Wheninput 0000 is false,
inputs 0001 and 0002 are
forced off regardless if
they're physically on or off.
• MCR just tells the PLC
"that's the end of the
MC/MCR block.
Note: Timers should not be used inside the MC/MCR block because some manufacturers will
reset them to zero when the block is false whereas other manufacturers will have them retain
the current time state.
155.
Master and Jumpcontrol Example
• An OUTB (OutBar or OutNot) instruction would not be
physically on. It is forced physically off.
• If the MC/MCR block were not there 0500 would be physically on
only when input 0001 was false(physically off). But since the
MC/MCR block is there, this happens only when input 0000 is true.
• When input 0000 is false it is impossible for 0500 above to be on.
156.
Jump Control
• Conditional
jumpfunction
enables
programs to be
designed so
that if a certain
condition exists
then a section
of the program
is jumped.
DATA Movement
LDA -LoaD Accumulator
STA - STore Accumulator
DIFU - differentiate up/down – NO/NC
161.
Data Movement
• CopyFile Instruction (COP) :
– Output instruction that copies a user-defined
group of 16-bit data file words
162.
DATA conversion
• Whatis BCD
Understanding BCD: Write BCD of 89351
Answer : 1000 1001 0011 0101 0001
163.
DATA conversion
• TOD(value,destination) -
convert from BCD to 2s
compliment
• FRD (value,destination) -
convert from 2s
compliment to BCD
• DEG (value,destination) -
convert from radians to
degrees
• RAD (value,destination) -
convert from degrees to
radians 2’s Compliment: The negative of a binary
number represented by switching all ones to
zeros and all zeros to ones and then adding
one to the result
Data Comparison
Equal instruction:
•Test when two values are equal.
• Instruction is true when source A is equal to source B.
Not Equal Instruction (NEQ) :
Addition operation
LDA -LoaD Accumulator
STA - STore Accumulator
DIFU - differentiate up/down – NO/NC
177.
Math operations inPLC
• Square roots
• Scaling
• Sine
• Cosine
• Tangent
• Natural logarithm (ln / loge)
• Base 10 logarithm (log10)
• X^Y (X to the power of Y)