SlideShare a Scribd company logo
4-1
Dr. D. J. Jackson Lecture 4-1Electrical & Computer Engineering
Programmable Logic
Controllers
Basic Ladder Logic Programming
Dr. D. J. Jackson Lecture 4-2Electrical & Computer Engineering
Outline
• Boolean statements and ladder logic
equivalents
– Logical AND
– Logical OR
– Logical NOT
• Commonly used ladder logic sequences
– Start-stop-seal circuits
– Basic interlocks
• Properly formatted outputs
4-2
Dr. D. J. Jackson Lecture 4-3Electrical & Computer Engineering
Boolean logic control programs
• Boolean logic control programs examine and control
on and off states
– Boolean here is used interchangeably with the word
“discrete”
• Each control program (ladder diagram sequence) can
contain one or more conditionals
• Example
– If (a part is on the conveyor) AND (there is not a
box in the chute) THEN (turn the conveyor motor on)
• In terms of sensors and actuators this becomes
– If (sensor_A is ON) AND (sensor_B is NOT ON) THEN
(turn actuator_C ON)
Dr. D. J. Jackson Lecture 4-4Electrical & Computer Engineering
Conveyor motor control system
sensor_A
sensor_B
actuator_C
4-3
Dr. D. J. Jackson Lecture 4-5Electrical & Computer Engineering
Logical AND ladder diagram
• The logical AND function is constructed by series
combinations of digital (discrete) inputs
– Two (or more) series components
I:1/0 AND I:1/1
I:1/0 AND I:1/1 AND I:1/2
Dr. D. J. Jackson Lecture 4-6Electrical & Computer Engineering
Logical OR ladder diagram
• The logical OR function is constructed by parallel
combinations of digital (discrete) inputs
– Two (or more) parallel components
I:1/0 OR I:1/1
I:1/0 OR I:1/1 OR I:1/2
4-4
Dr. D. J. Jackson Lecture 4-7Electrical & Computer Engineering
Logical NOT
• The logical NOT function is constructed by
referencing the input signal with a normally closed
contact (XIO instruction)
Dr. D. J. Jackson Lecture 4-8Electrical & Computer Engineering
Complex Boolean expressions
• More complex Boolean expressions can be
formulated with various serial-parallel combinations
of XIC and XIO instructions
– NAND, NOR, XOR, XNOR
4-5
Dr. D. J. Jackson Lecture 4-9Electrical & Computer Engineering
Start-stop-seal circuits
• For PLC systems without latch and unlatch
instructions, a circuit is needed that will allow
a process to start, continue to run after a
start button is released, and stop under
control of another button
– A circuit that implements this functionality is
commonly referred to as a start-stop-seal circuit
• A feedback path (i.e. a contact) that
references the output is normally used to
seal around the start contact
Dr. D. J. Jackson Lecture 4-10Electrical & Computer Engineering
Start-stop-seal ladder diagram
Initial state START pushbutton pressed
START pushbutton released STOP pushbutton pressed
4-6
Dr. D. J. Jackson Lecture 4-11Electrical & Computer Engineering
Start-stop-seal variations
• In practice several start and/or several stop
buttons can be used in a process
• Start buttons (with XIC instructions) can be
used
– In series if it is required that ALL be pressed
before a process starts
– In parallel if pressing ANY start button is to start a
process
• Stop buttons (with XIO instructions) are
normally used in series if pressing ANY stop
button is to stop a process
Dr. D. J. Jackson Lecture 4-12Electrical & Computer Engineering
Start-stop-seal circuit example
4-7
Dr. D. J. Jackson Lecture 4-13Electrical & Computer Engineering
Interlock circuits
• Interlocks can prohibit output(s) from energizing
under a certain condition
• Example: O:2/0 should not energize if O:2/1 is
energized (and vice versa)
Dr. D. J. Jackson Lecture 4-14Electrical & Computer Engineering
Formatting considerations
• Ladder logic rungs should be formatted so the reader
can easily infer the meaning of the intended logic
• One mechanism to help this is the grouping of
related signals within an area on a given rung of
logic
• For example:
– Group signals together that have some common intent
• Start signals
• Stop signals
• Emergency stop signals (E-stop)
• Interlocks
– Controls that might have greater importance (i.e. E-stop)
might be located on the left hand side of the rung if possible
4-8
Dr. D. J. Jackson Lecture 4-15Electrical & Computer Engineering
Formatting considerations
E-stop
conditions
Normal
Stop Start Interlocks (if any) Outputs
This is also a good example of instruction and rung documentation.
Dr. D. J. Jackson Lecture 4-16Electrical & Computer Engineering
Properly formatted outputs
• An output energize instruction (OTE) referencing a
specific output bit should appear only once in a
ladder logic program
4-9
Dr. D. J. Jackson Lecture 4-17Electrical & Computer Engineering
Properly formatted outputs
• Only one output energize instruction (OTE) should
appear in a rung of ladder logic
Dr. D. J. Jackson Lecture 4-18Electrical & Computer Engineering
Properly formatted outputs
• If more than one output is to be controlled by a
certain rung of ladder logic, the output energize
(OTE) instructions can be placed in parallel

More Related Content

PDF
PPTX
Control system (II-ECE)
PDF
Pll ieee Format
DOCX
Control systems syllabus
DOCX
Programmable logic array
PPTX
Digital Electronics
PDF
Design of Model Free Adaptive Fuzzy Computed Torque Controller for a Nonlinea...
PPTX
PLA Minimization -Testing
Control system (II-ECE)
Pll ieee Format
Control systems syllabus
Programmable logic array
Digital Electronics
Design of Model Free Adaptive Fuzzy Computed Torque Controller for a Nonlinea...
PLA Minimization -Testing

What's hot (8)

PDF
fpga programming
PDF
PPTX
Flash memory
PDF
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
ODP
Inputs of physical design
DOCX
UNIT I- CPLD & FPGA ARCHITECTURE & APPLICATIONS
PPTX
Part 6 PLC languges.
PPT
Programmable logic devices
fpga programming
Flash memory
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
Inputs of physical design
UNIT I- CPLD & FPGA ARCHITECTURE & APPLICATIONS
Part 6 PLC languges.
Programmable logic devices
Ad

Similar to Lect04 (20)

PPTX
CAM ladder logic diagram
PDF
PDF
Basics of plc_programming1
PDF
PDF
PDF
189626882 ep227-digital-electronics
PPTX
Introduction: Systems and Control-Feedback and Control System
PDF
Lecture_4-Logic_Functions_and_Symbols.pdf
RTF
239587360 ee200-lab-manual
PDF
PPTX
COT 3_EIM NCII.pptx Electrical Installation and Maintenance
PPTX
Unit 4 - PLC.pptx
PDF
PPTX
Low power in vlsi with upf basics part 2
PDF
Basics of plc_programming
PDF
Basics of plc programming
PPTX
Auotmation and control PLC intro and advance.pptx
PPTX
Elements of Industrial Automation 20me43p
PPT
Programmable_Logic_Controllers_Introduction_to_PLCs__(Chapter_1)_Lec1.ppt
PPTX
Flip flop& RAM ROM
CAM ladder logic diagram
Basics of plc_programming1
189626882 ep227-digital-electronics
Introduction: Systems and Control-Feedback and Control System
Lecture_4-Logic_Functions_and_Symbols.pdf
239587360 ee200-lab-manual
COT 3_EIM NCII.pptx Electrical Installation and Maintenance
Unit 4 - PLC.pptx
Low power in vlsi with upf basics part 2
Basics of plc_programming
Basics of plc programming
Auotmation and control PLC intro and advance.pptx
Elements of Industrial Automation 20me43p
Programmable_Logic_Controllers_Introduction_to_PLCs__(Chapter_1)_Lec1.ppt
Flip flop& RAM ROM
Ad

More from Abhishek Gupta (7)

PDF
PDF
PDF
PDF
PDF
PDF
PDF

Recently uploaded (20)

PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
IGGE1 Understanding the Self1234567891011
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
Empowerment Technology for Senior High School Guide
PPTX
20th Century Theater, Methods, History.pptx
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PDF
advance database management system book.pdf
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Computing-Curriculum for Schools in Ghana
PDF
Hazard Identification & Risk Assessment .pdf
PDF
Trump Administration's workforce development strategy
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
IGGE1 Understanding the Self1234567891011
Paper A Mock Exam 9_ Attempt review.pdf.
Empowerment Technology for Senior High School Guide
20th Century Theater, Methods, History.pptx
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
advance database management system book.pdf
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
AI-driven educational solutions for real-life interventions in the Philippine...
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Share_Module_2_Power_conflict_and_negotiation.pptx
Unit 4 Computer Architecture Multicore Processor.pptx
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Computing-Curriculum for Schools in Ghana
Hazard Identification & Risk Assessment .pdf
Trump Administration's workforce development strategy
LDMMIA Reiki Yoga Finals Review Spring Summer

Lect04

  • 1. 4-1 Dr. D. J. Jackson Lecture 4-1Electrical & Computer Engineering Programmable Logic Controllers Basic Ladder Logic Programming Dr. D. J. Jackson Lecture 4-2Electrical & Computer Engineering Outline • Boolean statements and ladder logic equivalents – Logical AND – Logical OR – Logical NOT • Commonly used ladder logic sequences – Start-stop-seal circuits – Basic interlocks • Properly formatted outputs
  • 2. 4-2 Dr. D. J. Jackson Lecture 4-3Electrical & Computer Engineering Boolean logic control programs • Boolean logic control programs examine and control on and off states – Boolean here is used interchangeably with the word “discrete” • Each control program (ladder diagram sequence) can contain one or more conditionals • Example – If (a part is on the conveyor) AND (there is not a box in the chute) THEN (turn the conveyor motor on) • In terms of sensors and actuators this becomes – If (sensor_A is ON) AND (sensor_B is NOT ON) THEN (turn actuator_C ON) Dr. D. J. Jackson Lecture 4-4Electrical & Computer Engineering Conveyor motor control system sensor_A sensor_B actuator_C
  • 3. 4-3 Dr. D. J. Jackson Lecture 4-5Electrical & Computer Engineering Logical AND ladder diagram • The logical AND function is constructed by series combinations of digital (discrete) inputs – Two (or more) series components I:1/0 AND I:1/1 I:1/0 AND I:1/1 AND I:1/2 Dr. D. J. Jackson Lecture 4-6Electrical & Computer Engineering Logical OR ladder diagram • The logical OR function is constructed by parallel combinations of digital (discrete) inputs – Two (or more) parallel components I:1/0 OR I:1/1 I:1/0 OR I:1/1 OR I:1/2
  • 4. 4-4 Dr. D. J. Jackson Lecture 4-7Electrical & Computer Engineering Logical NOT • The logical NOT function is constructed by referencing the input signal with a normally closed contact (XIO instruction) Dr. D. J. Jackson Lecture 4-8Electrical & Computer Engineering Complex Boolean expressions • More complex Boolean expressions can be formulated with various serial-parallel combinations of XIC and XIO instructions – NAND, NOR, XOR, XNOR
  • 5. 4-5 Dr. D. J. Jackson Lecture 4-9Electrical & Computer Engineering Start-stop-seal circuits • For PLC systems without latch and unlatch instructions, a circuit is needed that will allow a process to start, continue to run after a start button is released, and stop under control of another button – A circuit that implements this functionality is commonly referred to as a start-stop-seal circuit • A feedback path (i.e. a contact) that references the output is normally used to seal around the start contact Dr. D. J. Jackson Lecture 4-10Electrical & Computer Engineering Start-stop-seal ladder diagram Initial state START pushbutton pressed START pushbutton released STOP pushbutton pressed
  • 6. 4-6 Dr. D. J. Jackson Lecture 4-11Electrical & Computer Engineering Start-stop-seal variations • In practice several start and/or several stop buttons can be used in a process • Start buttons (with XIC instructions) can be used – In series if it is required that ALL be pressed before a process starts – In parallel if pressing ANY start button is to start a process • Stop buttons (with XIO instructions) are normally used in series if pressing ANY stop button is to stop a process Dr. D. J. Jackson Lecture 4-12Electrical & Computer Engineering Start-stop-seal circuit example
  • 7. 4-7 Dr. D. J. Jackson Lecture 4-13Electrical & Computer Engineering Interlock circuits • Interlocks can prohibit output(s) from energizing under a certain condition • Example: O:2/0 should not energize if O:2/1 is energized (and vice versa) Dr. D. J. Jackson Lecture 4-14Electrical & Computer Engineering Formatting considerations • Ladder logic rungs should be formatted so the reader can easily infer the meaning of the intended logic • One mechanism to help this is the grouping of related signals within an area on a given rung of logic • For example: – Group signals together that have some common intent • Start signals • Stop signals • Emergency stop signals (E-stop) • Interlocks – Controls that might have greater importance (i.e. E-stop) might be located on the left hand side of the rung if possible
  • 8. 4-8 Dr. D. J. Jackson Lecture 4-15Electrical & Computer Engineering Formatting considerations E-stop conditions Normal Stop Start Interlocks (if any) Outputs This is also a good example of instruction and rung documentation. Dr. D. J. Jackson Lecture 4-16Electrical & Computer Engineering Properly formatted outputs • An output energize instruction (OTE) referencing a specific output bit should appear only once in a ladder logic program
  • 9. 4-9 Dr. D. J. Jackson Lecture 4-17Electrical & Computer Engineering Properly formatted outputs • Only one output energize instruction (OTE) should appear in a rung of ladder logic Dr. D. J. Jackson Lecture 4-18Electrical & Computer Engineering Properly formatted outputs • If more than one output is to be controlled by a certain rung of ladder logic, the output energize (OTE) instructions can be placed in parallel