SlideShare a Scribd company logo
1 of 49
PROGRAMMABLE
LOGIC CONTROLLERS
Richard A. Wysk
IE450 - Manufacturing Systems
Agenda
• Review brief history of PLCs and
manufacturing control systems
• Introduce the concepts of discrete control of
manufacturing
• Review the various kinds of instrumentation
used for control.
• Overview ladder logic programming
Readings
• Chapter 10 of Computer Aided Manufacturing, Chang,
Chang, T.C. and Wysk, R. A. and Wang, H.P., 3rd Edition,
2006.
Exercise
What are some common examples of
control?
Washing machine, sump pump, microwave,
….
Others?
Types of control
• Temporal -- control based in time
• State -- control based in state level
• Hybrid – both temporal and state
Objectives
• To define the basic components of a PLC
• To apply PLC based control to a
manufacturing system
• To be identify instrumentation required to
implement a PLC control system
• To program a PLC
• To implement a PLC control program and
hardware
PURPOSE OF Programmable
Logic Controllers (PLCs)
• Initially designed to replace relay logic
boards
– Sequence device actuation
– Coordinate activities
• Accepts input from a series of switches
• Sends output to devices or relays
FUNCTIONS OF CONTROLLERS
• 1) on-off control,
• 2) sequential control,
• 3) feedback control, and
• 4) motion control.
CONTROL DEVICES
1) mechanical control - cam, governor, etc.,
2) pneumatic control - compressed air,
valves, etc.
3) electromechanical control - switches,
relays, a timer, counters, etc,
4) electronics control - similar to
electromechanical control, except uses
electronic switches.
5) computer control.
PLC
CPU
System
User Ladder
Diagram
Working
memory
registers
Input
Flag
Output
Input
Module
Output
Module
PLC
Configuration
What devices does a PLC interact
with?
• INPUT RELAYS-(contacts)These are connected to the outside world. They
physically exist and receive signals from switches, sensors, etc. Typically they
are not relays but rather they are transistors.
• INTERNAL UTILITY RELAYS-(contacts) These do 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.
• COUNTERS-These again do not physically exist. They are simulated counters
and they can be programmed to count pulses. Typically these counters can
count up, down or both up and down. Since they are simulated they are limited
in their counting speed. Some manufacturers also include high-speed counters
that are hardware based. We can think of these as physically existing. Most
times these counters can count up, down or up and down.
What devices does a PLC interact
with?
Continued
• TIMERS-These also do not physically exist. They come in many
varieties and increments. The most common type is an on-delay type.
Others include off-delay and both retentive and non-retentive types.
Increments vary from 1ms through 1s.
• OUTPUT RELAYS-(coils)These are connected to the outside world.
They physically exist and send on/off signals to solenoids, lights, etc.
They can be transistors, relays, or triacs depending upon the model
chosen.
• DATA STORAGE-Typically there are registers assigned to simply
store data. They are usually used as temporary storage for math or data
manipulation. They can also typically be used to store data when
power is removed from the PLC. Upon power-up they will still have
the same contents as before power was removed. Very convenient and
necessary!!
SWITCHES
DPST
SPDT
Non-locking Locking
Normally Open Normally Closed
Multiple Throw
P1
P2
Multiple Pole
Break-before-make Make-before-break
TERMS
Throw - number of states
Pole - number of connecting moving parts (number of individual circuits).
SPDT
DPST
A serial switch box (A-B box) has
two 25 pin serial ports to switch from.
Input
Output
A B
Knob
How is this switch classified?
TYPES OF SWITCHES
1. Basic switch, operated by a mechanical level,
2. Push-button switch,
3. Slide switch,
4. Thumbwheel switch,
5. Limit switch,
6. Proximity switch, and
7. Photoelectric switch.
RATING: voltage, current
RELAYS
A switch whose operation is activated by an electromagnet is called a "relay"
contact
coil
input
Relay coil Output contact
COUNTER
Digital counters output in the form of a relay contact when a
preassigned count value is reached.
Register
Accumulator
contact
input
reset
output
Input
Reset
Output
Count 0 1 2 3 4 5 0 1
5
TIMER
A timer consists of an internal clock, a count value register, and
an accumulator. It is used for or some timing purpose.
Clock
Accumulator
contact
reset
output
Register
Contact
Time 5 seconds.
Clock
Reset
Output
Count 1 2 3 4
0 5
AN EXAMPLE OF RELAY LOGIC
L1
LS1 PB1 LS2 R1
R1
R1
TIMER
R2
PR=5
For process control, it is desired to have the process start (by turning on a motor) five
seconds after a part touches a limit switch. The process is terminated automatically
when the finished part touches a second limit switch. An emergency switch will stop
the process any time when it is pushed.
LS1
PB1
LS2
R1
TIMER
5
Motor
R2
PLC ARCHITECTURE
Programmable controllers replace most of the relay panel wiring
by software programming.
Processor
I/O
M odules
M emory
Power
Supply
Program
Loader
Printer
Cassette
Loader
EPROM
Loader
Switches
M achines
Peripherals External Devices
PC
A typical PLC
PLC COMPONENTS
1. Processor Microprocessor based, may allow arithmetic
operations, logic operators, block memory moves,
computer interface, local area network, functions, etc.
2. Memory Measured in words.
ROM (Read Only Memory),
RAM (Random Access Memory),
PROM (Programmable Read Only Memory),
EEPROM (Electronically Erasable Programmable
ROM),
EPROM (Erasable Programmable Read Only Memory),
EAPROM (Electronically Alterable Programmable
Read Only Memory), and
Bubble Memory.
PLC COMPONENTS
3. I/O Modular plug-in periphery
AC voltage input and output,
DC voltage input and output,
Low level analog input,
High level analog input and output,
Special purpose modules, e.g.., high speed timers,
Stepping motor controllers, etc. PID, Motion
4. Power supply AC power
5. Peripheral Hand held programmer (loader),
CRT programmer,
Operator console,
Printer,
Simulator,
EPROM loader,
Cassette loader,
Graphics processor, and
Network communication interface. MAP, LAN
LADDER DIAGRAM
A ladder diagram (also called contact symbology) is a means of
graphically representing the logic required in a relay logic
system.
A
R1
PB1 PB2
R1
R1
start emergency stop
Rail
Rung
Ladder Representation
PLC WIRING DIAGRAM
01 02 20
20
20 11
01
02
03
11
12
A
PLC
Input Output
External
switches
Stored program
SCAN
begin
Input
Output
Resolve
logic
Idle
A PLC resolves the logic of a ladder diagram (program) rung by rung, from the top to
the bottom. Usually, all the outputs are updated based on the status of the internal
registers. Then the input states are checked and the corresponding input registers are
updated. Only after the I/Os have been resolved, is the program then executed. This
process is run in a endless cycle. The time it takes to finish one cycle is called the
scan time.
Scan cycle
PLC INSTRUCTIONS
1) Relay,
2) Timer and counter,
3) Program control,
4) Arithmetic,
5) Data manipulation,
6) Data transfer, and
7) Others, such as sequencers.
LOGIC STATES
ON : TRUE, contact closure, energize, etc.
OFF: FALSE, contact open , de-energize,
etc.
(In the notes we use the symbol "~" to represent
negation. AND and OR are logic operators. )
Do not confuse the internal relay and program with the external
switch and relay. Internal symbols are used for programming.
External devices provide actual interface.
AND and OR LOGIC
PB1 R1
PB2
R2
R1 = PB1.AND.PB2
R2 = PB2.AND.~PB4
PB3 PB4
PB1 R1
PB2
R1 = PB1 .OR. PB2
AND
OR
COMBINED AND & OR
R1 = PB1 .OR. (PB2 .AND. PB3)
PB1 R1
PB2 pb3
RELAY
A Relay consists of two parts, the coil and the contact(s).
Contacts:
a. Normally open -| |-
b. Normally closed -|/|-
c. Off-on transitional -||-
d. On-off transitional -| |-
Coil:
a. Energize Coil -( )-
b. De-energize -(/)-
c. Latch -(L)-
d. Unlatch -(U)-
( )
TIMERS AND COUNTERS
Timers:
a. Retentive on delay -(RTO)-
b. Retentive off delay -(RTF)-
c. Reset -(RST)-
Counter:
a. Counter up -(CTU)-
b. Counter down -(CTD)-
c. Counter reset -(CTR)-
RTO counting stop counting
resume
RTF stop counting stop
True False True
Input
RTO reach PR value, output ON
RTF reach PR value, output OFF
PR value in 0.1 second
SEQUENCER
Sequencers are used with machines or processes involving
repeating operating cycles which can be segmented into
steps.
Output
Step A B C Dwell time
1 ON OFF OFF 5 sec.
2 ON ON OFF 10 sec.
3 OFF OFF ON 3 sec.
4 OFF ON OFF 9 sec.
Rockwell/ Allen Bradley PLC
I/O points are numbered, they correspond to the I/O slot on
the PLC.
For A-B controller used in our lab
I/O uses 1-32
Internal relays use 033 - 098
Internal timers/counters/sequencers use 901-932
Status 951-982
Programming a PLC
Oil is consumed
randomly. The
tank needs to be
refilled by turning
on a pump. Two
hydrostatic
switches are used
to detect a high
and low level.
Ladder Logic for Tank
Logic for Ladder Solution
How does it work?
PROGRAMMING EXAMPLE 1
Part
microswitch
Bar code reader
Stopper
Conveyor
Machine
Robot
id description state explanation
MSI microswitch 1 part arrive
R1 output to bar code reader 1 scan the part
C1 input from bar code reader 1 right part
R2 output robot 1 loading cycle
R3 output robot 1 unloading cycle
C2 input from robot 1 robot busy
R4 output to stopper 1 stopper up
C3 input from machine 1 machine busy
C4 input from machine 1 task complete
SOLUTION
01
02
03
04
05
11
12
13
14
15
Input
Output
Programmable
Controller
PLC
MS1
C1
C2
C3
C4
R1
R2
R3
R4
01 14 11
02
14 04 03
14
12
13
05 03
Rung 1. If part arrives and no
part is stopped, trigger the
bar code reader.
Rung 2. If it is a right part,
activate the stopper.
Rung 3. If the stopper is up, the
machine is not busy and the
robot is not busy, load the
part onto the machine.
Rung 4. If the task is completed
and the robot is not busy,
unload the machine.
EXAMPLE 2 TRAFFIC LIGHTS
Cycle time
Street Red Yellow Green
Main 3 1 4
Jefferson 5 1 2
Main street
Jefferson street
WIRING DIAGRAM
64
65
66
67
70
71
Programmable
Controller
input output
Jefferson Red
Jefferson Yellow
Jefferson Green
Main Green
Main Yellow
Main Red
PROGRAM (1)
RUNG1
RUNG2
RUNG3
RUNG4
RUNG5
RUNG6
RUNG7
RUNG8
RUNG9
RUNG10
RUNG11
RUNG12
20
67
RTO
903
66
RTO
901
80
RTO
902
30
901 902
67 M. Red
901 903
66 J. Green
902 904
71 M. Green
904 905
70 M. Yellow
RST
RST
901 904
RTO
904
40
71
RST
901 903
RST
901 902
901 901
PROGRAM (2)
RUNG13
64
RTO
907
50
65
RTO
906
10
70
RTO
905
10
903 906
65 J. Yellow
902
64
907
J. Red
RST
901 907
RST
901 906
RST
901 905
RUNG14
RUNG15
RUNG16
RUNG17
RUNG18
RUNG19
RUNG 20

More Related Content

Similar to Programmable Logic Controllers (PLCs) Control Automation

PLC basic concepts
PLC  basic conceptsPLC  basic concepts
PLC basic conceptsYasir Hashmi
 
automation slides,plc,scada,HMI
automation slides,plc,scada,HMIautomation slides,plc,scada,HMI
automation slides,plc,scada,HMIBOSCH
 
Plc (PROGRAMMABLE LOGIC CONTROLLER)
Plc (PROGRAMMABLE LOGIC CONTROLLER)Plc (PROGRAMMABLE LOGIC CONTROLLER)
Plc (PROGRAMMABLE LOGIC CONTROLLER)Urval Chotalia
 
Programmable Logic Controllers (1).pptx
Programmable Logic Controllers (1).pptxProgrammable Logic Controllers (1).pptx
Programmable Logic Controllers (1).pptxssuserf399e11
 
MECHATRONICS-UNIT 4-PROGRAMMABLE LOGIC CONTROLLER .ppt
MECHATRONICS-UNIT 4-PROGRAMMABLE LOGIC CONTROLLER .pptMECHATRONICS-UNIT 4-PROGRAMMABLE LOGIC CONTROLLER .ppt
MECHATRONICS-UNIT 4-PROGRAMMABLE LOGIC CONTROLLER .pptCHANDRA KUMAR S
 
Pathaniaplc 120505002845-phpapp02
Pathaniaplc 120505002845-phpapp02Pathaniaplc 120505002845-phpapp02
Pathaniaplc 120505002845-phpapp02Hemanth Godavarthi
 
imp plc-presentation-140205031532-phpapp02
imp plc-presentation-140205031532-phpapp02imp plc-presentation-140205031532-phpapp02
imp plc-presentation-140205031532-phpapp02Haji Hussain
 
Programmable Logic Controller
Programmable Logic ControllerProgrammable Logic Controller
Programmable Logic ControllerSatyamShivansh
 
What Is a Programmable Logic Controller (PLC)
What Is a Programmable Logic Controller (PLC)What Is a Programmable Logic Controller (PLC)
What Is a Programmable Logic Controller (PLC)yogesh8418
 
Programmable Logic Controller by Pranoti R. Doke
Programmable Logic Controller by Pranoti R. DokeProgrammable Logic Controller by Pranoti R. Doke
Programmable Logic Controller by Pranoti R. DokePranoti Doke
 
20ME702– MECHATRONICS -UNIT-4.ppt
20ME702– MECHATRONICS -UNIT-4.ppt20ME702– MECHATRONICS -UNIT-4.ppt
20ME702– MECHATRONICS -UNIT-4.pptMohanumar S
 

Similar to Programmable Logic Controllers (PLCs) Control Automation (20)

PLC basic concepts
PLC  basic conceptsPLC  basic concepts
PLC basic concepts
 
automation slides,plc,scada,HMI
automation slides,plc,scada,HMIautomation slides,plc,scada,HMI
automation slides,plc,scada,HMI
 
Plc (PROGRAMMABLE LOGIC CONTROLLER)
Plc (PROGRAMMABLE LOGIC CONTROLLER)Plc (PROGRAMMABLE LOGIC CONTROLLER)
Plc (PROGRAMMABLE LOGIC CONTROLLER)
 
Programmable Logic Controllers (1).pptx
Programmable Logic Controllers (1).pptxProgrammable Logic Controllers (1).pptx
Programmable Logic Controllers (1).pptx
 
Automation.pdf
Automation.pdfAutomation.pdf
Automation.pdf
 
MECHATRONICS-UNIT 4-PROGRAMMABLE LOGIC CONTROLLER .ppt
MECHATRONICS-UNIT 4-PROGRAMMABLE LOGIC CONTROLLER .pptMECHATRONICS-UNIT 4-PROGRAMMABLE LOGIC CONTROLLER .ppt
MECHATRONICS-UNIT 4-PROGRAMMABLE LOGIC CONTROLLER .ppt
 
Plc
PlcPlc
Plc
 
Pathaniaplc 120505002845-phpapp02
Pathaniaplc 120505002845-phpapp02Pathaniaplc 120505002845-phpapp02
Pathaniaplc 120505002845-phpapp02
 
imp plc-presentation-140205031532-phpapp02
imp plc-presentation-140205031532-phpapp02imp plc-presentation-140205031532-phpapp02
imp plc-presentation-140205031532-phpapp02
 
PLC Basic
PLC BasicPLC Basic
PLC Basic
 
Programmable Logic Controller
Programmable Logic ControllerProgrammable Logic Controller
Programmable Logic Controller
 
Basic PLC
Basic PLCBasic PLC
Basic PLC
 
PLC
PLCPLC
PLC
 
PLCpptFeb222017.ppt
PLCpptFeb222017.pptPLCpptFeb222017.ppt
PLCpptFeb222017.ppt
 
What Is a Programmable Logic Controller (PLC)
What Is a Programmable Logic Controller (PLC)What Is a Programmable Logic Controller (PLC)
What Is a Programmable Logic Controller (PLC)
 
Programmable Logic Controller by Pranoti R. Doke
Programmable Logic Controller by Pranoti R. DokeProgrammable Logic Controller by Pranoti R. Doke
Programmable Logic Controller by Pranoti R. Doke
 
plc introduction
plc introductionplc introduction
plc introduction
 
Basic plc
Basic plcBasic plc
Basic plc
 
Basic PLC.ppt
Basic PLC.pptBasic PLC.ppt
Basic PLC.ppt
 
20ME702– MECHATRONICS -UNIT-4.ppt
20ME702– MECHATRONICS -UNIT-4.ppt20ME702– MECHATRONICS -UNIT-4.ppt
20ME702– MECHATRONICS -UNIT-4.ppt
 

Recently uploaded

Top 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In QueensTop 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In Queensdataanalyticsqueen03
 
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...Boston Institute of Analytics
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degreeyuu sss
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改yuu sss
 
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...limedy534
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理e4aez8ss
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAbdelrhman abooda
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.natarajan8993
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)jennyeacort
 

Recently uploaded (20)

Top 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In QueensTop 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In Queens
 
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
 
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
Effects of Smartphone Addiction on the Academic Performances of Grades 9 to 1...
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 

Programmable Logic Controllers (PLCs) Control Automation

  • 1. PROGRAMMABLE LOGIC CONTROLLERS Richard A. Wysk IE450 - Manufacturing Systems
  • 2. Agenda • Review brief history of PLCs and manufacturing control systems • Introduce the concepts of discrete control of manufacturing • Review the various kinds of instrumentation used for control. • Overview ladder logic programming
  • 3. Readings • Chapter 10 of Computer Aided Manufacturing, Chang, Chang, T.C. and Wysk, R. A. and Wang, H.P., 3rd Edition, 2006.
  • 4. Exercise What are some common examples of control? Washing machine, sump pump, microwave, …. Others?
  • 5. Types of control • Temporal -- control based in time • State -- control based in state level • Hybrid – both temporal and state
  • 6. Objectives • To define the basic components of a PLC • To apply PLC based control to a manufacturing system • To be identify instrumentation required to implement a PLC control system • To program a PLC • To implement a PLC control program and hardware
  • 7. PURPOSE OF Programmable Logic Controllers (PLCs) • Initially designed to replace relay logic boards – Sequence device actuation – Coordinate activities • Accepts input from a series of switches • Sends output to devices or relays
  • 8. FUNCTIONS OF CONTROLLERS • 1) on-off control, • 2) sequential control, • 3) feedback control, and • 4) motion control.
  • 9. CONTROL DEVICES 1) mechanical control - cam, governor, etc., 2) pneumatic control - compressed air, valves, etc. 3) electromechanical control - switches, relays, a timer, counters, etc, 4) electronics control - similar to electromechanical control, except uses electronic switches. 5) computer control.
  • 12. What devices does a PLC interact with? • INPUT RELAYS-(contacts)These are connected to the outside world. They physically exist and receive signals from switches, sensors, etc. Typically they are not relays but rather they are transistors. • INTERNAL UTILITY RELAYS-(contacts) These do 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. • COUNTERS-These again do not physically exist. They are simulated counters and they can be programmed to count pulses. Typically these counters can count up, down or both up and down. Since they are simulated they are limited in their counting speed. Some manufacturers also include high-speed counters that are hardware based. We can think of these as physically existing. Most times these counters can count up, down or up and down.
  • 13. What devices does a PLC interact with? Continued • TIMERS-These also do not physically exist. They come in many varieties and increments. The most common type is an on-delay type. Others include off-delay and both retentive and non-retentive types. Increments vary from 1ms through 1s. • OUTPUT RELAYS-(coils)These are connected to the outside world. They physically exist and send on/off signals to solenoids, lights, etc. They can be transistors, relays, or triacs depending upon the model chosen. • DATA STORAGE-Typically there are registers assigned to simply store data. They are usually used as temporary storage for math or data manipulation. They can also typically be used to store data when power is removed from the PLC. Upon power-up they will still have the same contents as before power was removed. Very convenient and necessary!!
  • 14. SWITCHES DPST SPDT Non-locking Locking Normally Open Normally Closed Multiple Throw P1 P2 Multiple Pole Break-before-make Make-before-break
  • 15. TERMS Throw - number of states Pole - number of connecting moving parts (number of individual circuits). SPDT DPST A serial switch box (A-B box) has two 25 pin serial ports to switch from. Input Output A B Knob How is this switch classified?
  • 16. TYPES OF SWITCHES 1. Basic switch, operated by a mechanical level, 2. Push-button switch, 3. Slide switch, 4. Thumbwheel switch, 5. Limit switch, 6. Proximity switch, and 7. Photoelectric switch. RATING: voltage, current
  • 17. RELAYS A switch whose operation is activated by an electromagnet is called a "relay" contact coil input Relay coil Output contact
  • 18. COUNTER Digital counters output in the form of a relay contact when a preassigned count value is reached. Register Accumulator contact input reset output Input Reset Output Count 0 1 2 3 4 5 0 1 5
  • 19. TIMER A timer consists of an internal clock, a count value register, and an accumulator. It is used for or some timing purpose. Clock Accumulator contact reset output Register Contact Time 5 seconds. Clock Reset Output Count 1 2 3 4 0 5
  • 20. AN EXAMPLE OF RELAY LOGIC L1 LS1 PB1 LS2 R1 R1 R1 TIMER R2 PR=5 For process control, it is desired to have the process start (by turning on a motor) five seconds after a part touches a limit switch. The process is terminated automatically when the finished part touches a second limit switch. An emergency switch will stop the process any time when it is pushed. LS1 PB1 LS2 R1 TIMER 5 Motor R2
  • 21. PLC ARCHITECTURE Programmable controllers replace most of the relay panel wiring by software programming. Processor I/O M odules M emory Power Supply Program Loader Printer Cassette Loader EPROM Loader Switches M achines Peripherals External Devices PC A typical PLC
  • 22. PLC COMPONENTS 1. Processor Microprocessor based, may allow arithmetic operations, logic operators, block memory moves, computer interface, local area network, functions, etc. 2. Memory Measured in words. ROM (Read Only Memory), RAM (Random Access Memory), PROM (Programmable Read Only Memory), EEPROM (Electronically Erasable Programmable ROM), EPROM (Erasable Programmable Read Only Memory), EAPROM (Electronically Alterable Programmable Read Only Memory), and Bubble Memory.
  • 23. PLC COMPONENTS 3. I/O Modular plug-in periphery AC voltage input and output, DC voltage input and output, Low level analog input, High level analog input and output, Special purpose modules, e.g.., high speed timers, Stepping motor controllers, etc. PID, Motion 4. Power supply AC power 5. Peripheral Hand held programmer (loader), CRT programmer, Operator console, Printer, Simulator, EPROM loader, Cassette loader, Graphics processor, and Network communication interface. MAP, LAN
  • 24. LADDER DIAGRAM A ladder diagram (also called contact symbology) is a means of graphically representing the logic required in a relay logic system. A R1 PB1 PB2 R1 R1 start emergency stop Rail Rung
  • 26. PLC WIRING DIAGRAM 01 02 20 20 20 11 01 02 03 11 12 A PLC Input Output External switches Stored program
  • 27. SCAN begin Input Output Resolve logic Idle A PLC resolves the logic of a ladder diagram (program) rung by rung, from the top to the bottom. Usually, all the outputs are updated based on the status of the internal registers. Then the input states are checked and the corresponding input registers are updated. Only after the I/Os have been resolved, is the program then executed. This process is run in a endless cycle. The time it takes to finish one cycle is called the scan time. Scan cycle
  • 28. PLC INSTRUCTIONS 1) Relay, 2) Timer and counter, 3) Program control, 4) Arithmetic, 5) Data manipulation, 6) Data transfer, and 7) Others, such as sequencers.
  • 29. LOGIC STATES ON : TRUE, contact closure, energize, etc. OFF: FALSE, contact open , de-energize, etc. (In the notes we use the symbol "~" to represent negation. AND and OR are logic operators. ) Do not confuse the internal relay and program with the external switch and relay. Internal symbols are used for programming. External devices provide actual interface.
  • 30. AND and OR LOGIC PB1 R1 PB2 R2 R1 = PB1.AND.PB2 R2 = PB2.AND.~PB4 PB3 PB4 PB1 R1 PB2 R1 = PB1 .OR. PB2 AND OR
  • 31. COMBINED AND & OR R1 = PB1 .OR. (PB2 .AND. PB3) PB1 R1 PB2 pb3
  • 32. RELAY A Relay consists of two parts, the coil and the contact(s). Contacts: a. Normally open -| |- b. Normally closed -|/|- c. Off-on transitional -||- d. On-off transitional -| |- Coil: a. Energize Coil -( )- b. De-energize -(/)- c. Latch -(L)- d. Unlatch -(U)- ( )
  • 33. TIMERS AND COUNTERS Timers: a. Retentive on delay -(RTO)- b. Retentive off delay -(RTF)- c. Reset -(RST)- Counter: a. Counter up -(CTU)- b. Counter down -(CTD)- c. Counter reset -(CTR)- RTO counting stop counting resume RTF stop counting stop True False True Input RTO reach PR value, output ON RTF reach PR value, output OFF PR value in 0.1 second
  • 34. SEQUENCER Sequencers are used with machines or processes involving repeating operating cycles which can be segmented into steps. Output Step A B C Dwell time 1 ON OFF OFF 5 sec. 2 ON ON OFF 10 sec. 3 OFF OFF ON 3 sec. 4 OFF ON OFF 9 sec.
  • 35. Rockwell/ Allen Bradley PLC I/O points are numbered, they correspond to the I/O slot on the PLC. For A-B controller used in our lab I/O uses 1-32 Internal relays use 033 - 098 Internal timers/counters/sequencers use 901-932 Status 951-982
  • 36. Programming a PLC Oil is consumed randomly. The tank needs to be refilled by turning on a pump. Two hydrostatic switches are used to detect a high and low level.
  • 38. Logic for Ladder Solution
  • 39. How does it work?
  • 40. PROGRAMMING EXAMPLE 1 Part microswitch Bar code reader Stopper Conveyor Machine Robot id description state explanation MSI microswitch 1 part arrive R1 output to bar code reader 1 scan the part C1 input from bar code reader 1 right part R2 output robot 1 loading cycle R3 output robot 1 unloading cycle C2 input from robot 1 robot busy R4 output to stopper 1 stopper up C3 input from machine 1 machine busy C4 input from machine 1 task complete
  • 41. SOLUTION 01 02 03 04 05 11 12 13 14 15 Input Output Programmable Controller PLC MS1 C1 C2 C3 C4 R1 R2 R3 R4 01 14 11 02 14 04 03 14 12 13 05 03 Rung 1. If part arrives and no part is stopped, trigger the bar code reader. Rung 2. If it is a right part, activate the stopper. Rung 3. If the stopper is up, the machine is not busy and the robot is not busy, load the part onto the machine. Rung 4. If the task is completed and the robot is not busy, unload the machine.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46. EXAMPLE 2 TRAFFIC LIGHTS Cycle time Street Red Yellow Green Main 3 1 4 Jefferson 5 1 2 Main street Jefferson street
  • 47. WIRING DIAGRAM 64 65 66 67 70 71 Programmable Controller input output Jefferson Red Jefferson Yellow Jefferson Green Main Green Main Yellow Main Red
  • 48. PROGRAM (1) RUNG1 RUNG2 RUNG3 RUNG4 RUNG5 RUNG6 RUNG7 RUNG8 RUNG9 RUNG10 RUNG11 RUNG12 20 67 RTO 903 66 RTO 901 80 RTO 902 30 901 902 67 M. Red 901 903 66 J. Green 902 904 71 M. Green 904 905 70 M. Yellow RST RST 901 904 RTO 904 40 71 RST 901 903 RST 901 902 901 901
  • 49. PROGRAM (2) RUNG13 64 RTO 907 50 65 RTO 906 10 70 RTO 905 10 903 906 65 J. Yellow 902 64 907 J. Red RST 901 907 RST 901 906 RST 901 905 RUNG14 RUNG15 RUNG16 RUNG17 RUNG18 RUNG19 RUNG 20