SlideShare uma empresa Scribd logo
1 de 9
Baixar para ler offline
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

Mais conteúdo relacionado

Mais procurados

Mais procurados (8)

fpga programming
fpga programmingfpga programming
fpga programming
 
Unit VI CPLD-FPGA Architecture
Unit VI CPLD-FPGA ArchitectureUnit VI CPLD-FPGA Architecture
Unit VI CPLD-FPGA Architecture
 
Flash memory
Flash memoryFlash memory
Flash memory
 
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
 
Inputs of physical design
Inputs of physical designInputs of physical design
Inputs of physical design
 
UNIT I- CPLD & FPGA ARCHITECTURE & APPLICATIONS
UNIT I- CPLD & FPGA ARCHITECTURE & APPLICATIONSUNIT I- CPLD & FPGA ARCHITECTURE & APPLICATIONS
UNIT I- CPLD & FPGA ARCHITECTURE & APPLICATIONS
 
Part 6 PLC languges.
Part 6 PLC languges.Part 6 PLC languges.
Part 6 PLC languges.
 
Programmable logic devices
Programmable logic devicesProgrammable logic devices
Programmable logic devices
 

Semelhante a Programmable Logic Controllers Ladder Logic Fundamentals

Semelhante a Programmable Logic Controllers Ladder Logic Fundamentals (20)

CAM ladder logic diagram
CAM ladder logic diagramCAM ladder logic diagram
CAM ladder logic diagram
 
Lect11
Lect11Lect11
Lect11
 
Basics of plc_programming1
Basics of plc_programming1Basics of plc_programming1
Basics of plc_programming1
 
Lect02
Lect02Lect02
Lect02
 
Lect05
Lect05Lect05
Lect05
 
189626882 ep227-digital-electronics
189626882 ep227-digital-electronics189626882 ep227-digital-electronics
189626882 ep227-digital-electronics
 
239587360 ee200-lab-manual
239587360 ee200-lab-manual239587360 ee200-lab-manual
239587360 ee200-lab-manual
 
Lect14
Lect14Lect14
Lect14
 
Unit 4 - PLC.pptx
Unit 4 - PLC.pptxUnit 4 - PLC.pptx
Unit 4 - PLC.pptx
 
Lect09
Lect09Lect09
Lect09
 
SoC Power Reduction
SoC Power ReductionSoC Power Reduction
SoC Power Reduction
 
VLSI Power Reduction
VLSI Power ReductionVLSI Power Reduction
VLSI Power Reduction
 
Low power in vlsi with upf basics part 2
Low power in vlsi with upf basics part 2Low power in vlsi with upf basics part 2
Low power in vlsi with upf basics part 2
 
Basics of plc programming
Basics of plc programmingBasics of plc programming
Basics of plc programming
 
Basics of plc_programming
Basics of plc_programmingBasics of plc_programming
Basics of plc_programming
 
Flip flop& RAM ROM
Flip flop& RAM ROMFlip flop& RAM ROM
Flip flop& RAM ROM
 
Analog, IO Test Chip Validation
Analog,  IO Test Chip  ValidationAnalog,  IO Test Chip  Validation
Analog, IO Test Chip Validation
 
329292817-PLC-Training for new person pptx
329292817-PLC-Training for new person pptx329292817-PLC-Training for new person pptx
329292817-PLC-Training for new person pptx
 
10617568.ppt
10617568.ppt10617568.ppt
10617568.ppt
 
embedded system
embedded system  embedded system
embedded system
 

Mais de Abhishek Gupta (7)

Lect13
Lect13Lect13
Lect13
 
Lect12
Lect12Lect12
Lect12
 
Lect10
Lect10Lect10
Lect10
 
Lect08
Lect08Lect08
Lect08
 
Lect07
Lect07Lect07
Lect07
 
Lect06
Lect06Lect06
Lect06
 
Lect01
Lect01Lect01
Lect01
 

Último

Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 

Último (20)

Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 

Programmable Logic Controllers Ladder Logic Fundamentals

  • 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