5/20/2015IENG 475: Computer-Controlled Manufacturing Systems 1 IENG 475 - Lecture 14 Ladder Logic Programming of PLCs.

Slides:



Advertisements
Similar presentations
Techniques for Combinational Logic Optimization
Advertisements

Dc input modules can either be sources or sinks for dc current. This depends on the transistor used in the input card and the polarity of the dc supply.
Programming Logic Gate Functions in PLCs
Unit 7 Discrete Controllers
PLC Timer Instructions
5/18/2015IENG 475: Computer-Controlled Manufacturing Systems 1 IENG Lecture 13 Logic Diagramming & Introduction to Programmable Logic Controllers.
FUNCTION OF OUTPUT CONTROLLER AND APPLICATION
1 Homework Reading –Tokheim, Section 5-10, 7-4 Machine Projects –Continue on MP4 Labs –Continue labs with your assigned section.
The Control Unit: Sequencing the Processor Control Unit: –provides control signals that activate the various microoperations in the datapath the select.
CHAPTER 3 Digital Logic Structures
Sequential Logic Design
Canonical Forms and Logic Miniminization
بهينه سازي با نقشة کارنو Karnaugh Map. 2  Method of graphically representing the truth table that helps visualize adjacencies 2-variable K-map 3-variable.
Week 3- slide 1 EE 231 Digital Electronics Fall 01 Gate Logic: Two-Level Simplification K-Map Method Examples F = A asserted, unchanged B varies G = B’,
Programmable Logic Controllers
Chapter 19 Fundamental PLC Programming
Lecture 6: PLC: Timers and Counters
Computer Organization and Assembly Language: Chapter 7 The Karnaugh Maps September 30, 2013 By Engineer. Bilal Ahmad.
Logic Functions OR Operation
Timers.
Timer Instructions Overview Instructions: Use the Page Up and Page Down keys to navigate through this presentation. When you are done viewing the presentation,
EEE324 Digital Electronics Ian McCrumRoom 5B18, Lecture 4: Boolean Algebra.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. K-Map (1)  Karnaugh Mapping is used to minimize the number of logic gates that are required in a digital circuit.
Counter The CTU CTD instruction counts upward & Down wards over a range Each time the rung goes from false- to-true. We can make an Up-Down counter by.
Chap 4. Sequential Circuits
Chapter 8.
Slide 1-1 Organizational Remarks I don’t use the exercises in Mano/Kime; this way you can use them as review exercises (for many of them there are solutions.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
Minimisation ENEL111. Minimisation Last Lecture  Sum of products  Boolean algebra This Lecture  Karnaugh maps  Some more examples of algebra and truth.
Simplification of switching functions Simplify – why? –Switching functions map to switching circuits –Simpler function  simpler circuit –Reduce hardware.
Timers and Counters by Dr. Amin Danial Asham. References  Programmable Controllers-Theory and Implementation, 2nd Edition, L.A. Bryan and E.A. Bryan.
PLC PROGRAMMING.
ECE 3110: Introduction to Digital Systems Chapter #4 Review.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
THE K-MAP.
 Seattle Pacific University EE Logic System DesignKMaps-1 Two-Level Simplification All Boolean expressions can be represented in two- level forms.
Lecture # 5 University of Tehran
Sequencers SQO,SQC,SQL.
Ladder Concept.
Timers. Mechanical Timing Relay Time delay relays are simply control relays with a time delay built in. Their purpose is to control an event based on.
S7-200 PLC training courses
© 2013 Eaton Corporation. All rights reserved. PLC Programming Basics.
Chapter 5.
Lecture 1 Gunjeet kaur Dronacharya group of institutions.
1 Introduction to PLCs: Programming Counters ELMT Basic Programmable Logic Controllers Chapter 0x_W Source: www Based on Ch 8 of Frank D. Petruzella.
ECE 2110: Introduction to Digital Systems
ECE 3110: Introduction to Digital Systems
EKT 221 – Counters.
EKT 221 : Digital 2 COUNTERS.
Counters Next, we’ll look at different kinds of counters and discuss how to build them. These are not only examples of sequential analysis and design,
Dr. Clincy Professor of CS
EEL 3705 / 3705L Digital Logic Design
IENG 475: Computer-Controlled Manufacturing Systems
Programming Timers.
Introduction to Ladder Diagram
Timer Instructions Overview
IENG 475: Computer-Controlled Manufacturing Systems
Lesson 19: PLC Programming Techniques
Homework Reading Tokheim, Section 5-10, 7-4.
Dr. Clincy Professor of CS
13 Digital Logic Circuits.
Counters Next, we’ll look at different kinds of counters and discuss how to build them. These are not only examples of sequential analysis and design,
CS Chapter 3 (3A and ) – Part 3 of 5
Programmable Logic Controllers (PLCs)
Counters Next, we’ll look at different kinds of counters and discuss how to build them. These are not only examples of sequential analysis and design,
IENG 475: Computer-Controlled Manufacturing Systems Ladder Logic
Ladder programming Counter Instruction S7 300
PLC Counters Three types: Count Up Count Down Count Up/Down Used for:
IENG 475: Computer-Controlled Manufacturing Systems Logic Diagrams
Presentation transcript:

5/20/2015IENG 475: Computer-Controlled Manufacturing Systems 1 IENG Lecture 14 Ladder Logic Programming of PLCs

5/20/2015 IENG 475: Computer-Controlled Manufacturing Systems 2 PLC Memory Map Input Block Output Block Output Image Table Input Image Table User Program (Rungs) Internal Processor Work Area(s)

5/20/2015 IENG 475: Computer-Controlled Manufacturing Systems 3 PLC Scan Time Time to complete one processing cycle Typically on the order of milliseconds Depends on length of program Scan Time Diagrammed: Update Output Image Table Update Input Image Table Logic (rung) Evaluation I/O Scan Program Scan Scan Time Repeat Cycle

5/20/2015 IENG 475: Computer-Controlled Manufacturing Systems 4 Counters Siemens: CTU, CTUD, CTD Counter types are count up, count up/down, count down Counter addresses are C000 – C255 Range is to transitions Count changed only when rung input condition goes from false to true PV is the preset value: the value to count up to for CTU, CTUD, and the value to count down from (CTD) before output changes Can cascade counters to obtain longer counts

5/20/2015 IENG 475: Computer-Controlled Manufacturing Systems 5 Counters CTU: up counters Increments when CU rung goes from false to true Output stays OFF until count = PV R is the input signal to reset the count CTD: down counters Decrements when CD rung goes from false to true Output stays OFF until count = 0 LD is the input signal to reset the count CTUD: up/down counters Increments when CU rung goes from false to true Decrements when CD rung goes from false to true Output turns on when count ≥ PV R is the input signal to reset the count

5/20/2015 IENG 475: Computer-Controlled Manufacturing Systems 6 Timer Outputs Siemens: TON, TONR, TOF Timer addresses are: T0, T32, T64, T96: 1ms time base T1-T4, T33 –T36, T65-T68, T97-T100: 10ms time base T5-T31, T37-63, T69-T95, T101-T255: 100ms time base Time incremented only while rung input condition is true Timer is reset when input rung goes false for TON; true for TOF; or when R input goes true for TONR Can cascade timers to obtain longer delays

5/20/2015 IENG 475: Computer-Controlled Manufacturing Systems 7 Timers TONR: retentive timer on-delay Starts timing when rung becomes true Output stays OFF until retained time delay is over R input resets the timer when R rung is true TOF: timer off-delay Starts timing when rung goes false Output stays ON until time delay is over Timing starts over at zero if rung becomes true TON: timer on-delay Starts timing when rung becomes true Output stays OFF until time delay is over Timing starts over at zero if rung becomes false

5/20/2015 IENG 475: Computer-Controlled Manufacturing Systems 8 Sequencers Allen-Bradley: SQO Sequencer addresses are (also) Width of a step is 8 bits Limited to 100 steps at a maximum Sequence can be event driven (similar to counter) or time driven (similar to timer) When AC = PR, advance to next step and set AC to 0000 PR is the event count / dwell time Event Driven: Step AC is incremented at the false to true transition of rung input condition Timer Driven: Step AC is incremented at 0.1 s intervals only when rung input condition is true RST rung resets the sequencer to step 0

5/20/2015 IENG 475: Computer-Controlled Manufacturing Systems 9 Sequence (Drum) Matrix Bit Address Outputs Step Count/ Dwell A B C D E

5/20/2015 IENG 475: Computer-Controlled Manufacturing Systems 10 Good Control System Design Clearly define signals, assigning good mnemonics and complete descriptions Set up truth table(s) Intelligently minimize logic gates and signals required Professionally diagram the control system(s) Carefully complete the system documentation ID and cross-reference signals, sources, sinks

5/20/2015 IENG 475: Computer-Controlled Manufacturing Systems 11 Truth Tables Enumerate all states for all input variables, often including system outputs among the inputs (lumped circuit delay model) Specify the desired state of each output based on the states of the inputs For each output, use the table as the starting point for expressing the associated logic equation

5/20/2015 IENG 475: Computer-Controlled Manufacturing Systems 12 Logic Simplification Why simplify: Price of “real estate” (gates take space, cost of space) Less complex is easier to maintain (fewer gates) Avoid errors (in logic) Why NOT to simplify: Price of “real estate” (ROM chips take little space) Less complex is easier to maintain (obfuscated logic) Avoid errors (in minimizing logic) Might be best to design both ways, and carefully evaluate the trade-offs

5/20/2015 IENG 475: Computer-Controlled Manufacturing Systems 13 Simplification Methods Boolean Logic See link on Materials page (put in notebook) Karnaugh Maps Depends on “logical adjacency” Output = B A + B A Output = B (A + A) Output = B 1 Output = B Depends on pattern recognition ability Usually best when < 4 variables (although 5 or 6 variables, and MEV methods could be employed)

5/20/2015 IENG 475: Computer-Controlled Manufacturing Systems 14 Karnaugh Maps Summarized: Most efficiently cover all the map’s “1’s” Enter the “1’s” (and “Don’t Cares”) into K-map for EACH output Circle the largest group of adjacent “1’s” Shade the “1’s” covered by the group Continue until all the “1’s” in the map have been covered (circled & shaded) “Don’t Cares” (X’s or Ø’s) are covered and included ONLY if they make a grouping larger (simpler) by a power of 2 Be careful that what is specified as a “Don’t Care” REALLY doesn’t matter Evaluate the groupings to determine which variable(s) aren’t needed both the variable & it’s complement (opposite) appear in grouping Express as the Sum Of Products from each grouping (minterm)

5/20/2015 IENG 475: Computer-Controlled Manufacturing Systems 15 Questions & Issues