IENG 475: Computer-Controlled Manufacturing Systems

Slides:



Advertisements
Similar presentations
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.
Advertisements

Programming with Ladder Logic
Unit 7 Discrete Controllers
Discrete Control Logic 1. Pneumatic circuits - Low forces - Discrete, fixed travel distances - Rotational or reciprocating motion Main components: compressor,
Ladder Logic PLC Programs are made up of combinations of AND; OR; NAND; NOR; and other gates, along with timers, inputs, outputs, counters, comparators,
5/18/2015IENG 475: Computer-Controlled Manufacturing Systems 1 IENG Lecture 13 Logic Diagramming & Introduction to Programmable Logic Controllers.
5/20/2015IENG 475: Computer-Controlled Manufacturing Systems 1 IENG Lecture 14 Ladder Logic Programming of PLCs.
FUNCTION OF OUTPUT CONTROLLER AND APPLICATION
The Control Unit: Sequencing the Processor Control Unit: –provides control signals that activate the various microoperations in the datapath the select.
Programmable Logic Controller Internal Operations
Chapter 19 Fundamental PLC Programming
Lecture 6: PLC: Timers and Counters
Logic Functions OR Operation
Timers.
Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush.
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.
Memory Layout and SLC500™ System Addresses. Processor Memory Division An SLC 500 processor's memory is divided into two storage areas. Like two drawers.
Chapter 8.
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.
THE K-MAP.
Sequencers SQO,SQC,SQL.
Ladder Concept.
5-1-2 Synchronous counters. Learning Objectives: At the end of this topic you will be able to: draw a block diagram showing how D-type flip-flops can.
Programmable Logic Controller
S7-200 PLC training courses
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.
Discrete Control Logic
Lecture 10: Programmable Logic Controllers
LG PLC COURSE Beginner Prepared by : -Hossam Mohammed -Ramdan said
Programmable Logic Controllers
Chapter 5.
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,
Programmable Interval Timer
COMP211 Computer Logic Design Lecture 3. Combinational Logic 2
ECE 434 Advanced Digital System L03
Reading: Hambley Chapters
ET 438B Sequential Control and Data Acquisition
IENG 475: Computer-Controlled Manufacturing Systems
Chapter 12 © 2011, The McGraw-Hill Companies, Inc.
Programming Timers.
CPE/EE 422/522 Advanced Logic Design L02
Industrial Electronics
GE Timers and Isolation of the PLC System
Introduction to Ladder Diagram
Bushnell: Digital Systems Design Lecture 4
Timer Instructions Overview
Manisha Goel, Lecturer, EE Deptt Govt. Polytechnic Manesar
Lesson 19: PLC Programming Techniques
Program Control Instructions.
Homework Reading Tokheim, Section 5-10, 7-4.
Distributed Energy Engineering
Dr. Clincy Professor of CS
Lesson 15: Boolean Representation of Ladder Diagrams
PROGRAMMABLE LOGIC CONTROLLERS
S RAJARAJAN_ASST PROF, BSARCIS&T
8253 – PROGRAMMABLE INTERVAL TIMER (PIT). What is a Timer? Timer is a specialized type of device that is used to measure timing intervals. Timers can.
Programmable Logic Controllers (PLCs)
Basic circuit 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:

IENG 475: Computer-Controlled Manufacturing Systems 11/20/2018 IENG 475 - Lecture 12 Ladder Logic Programming of PLCs 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems (c) 2006, D.H. Jensen

IENG 475: Computer-Controlled Manufacturing Systems PLC System Diagrammed Power Supply Input Block CPU Output Block Memory RAM ROM EPROM EEPROM Dumb terminal Dedicated terminal Hand-held programmer Micro computer Programming Unit 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems

Electro-Optical Isolation Purpose: Avoid direct electrical path between I/O blocks and control circuitry Inputs: Outputs: Input Block P L C Sensor +– Output Block P L C Load ~ 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems

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

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

IENG 475: Computer-Controlled Manufacturing Systems Counters Siemens: CTU, CTUD, CTD Counter types are count up, count up/down, count down Counter addresses are C000 – C255 Range is -32767 to +32767 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 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems

IENG 475: Computer-Controlled Manufacturing Systems Counters CU R PV C33 CTU INCR +100 RST 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 Output turns on when count ≥ PV CD LD PV C33 CTD DECR +100 CU CD R PV C33 +100 CTUD DECR INCR RST 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems

Using Counters: Penguin Migration System Definition: N.O. through-beam photosensor input (PNGN HR) detects penguins as they waddle up the ramp to a truck to be driven to a safe location Truck will hold 33 000 penguins An output (CLS DR) closes the ramp door when the truck is full CU R PV C33 CTU +32 000 PNGN HR RSTRT CU R PV C34 CTU +1 000 PNGN HR C33 RSTRT CLS DR C34 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems

IENG 475: Computer-Controlled Manufacturing Systems 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 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems

IENG 475: Computer-Controlled Manufacturing Systems Timers IN PT T33 +100 TONR 10ms STRT TONR: retentive timer on-delay Starts timing when rung becomes true Output stays OFF until retained time delay is over R 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 Output stays OFF until time delay is over Timing starts over at zero if rung becomes false T33 RST R IN PT T33 +100 TOF 10ms STRT IN PT T37 +10 TON 100ms STRT 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems

Using Timers: Penguin Truck Garage System Definition: N.O. through-beam photosensor input (TRCK HR) detects a truck driven into a garage Truck driver needs 1 minute of garage light (GRG LGHT) to exit garage An output (SHRK DR) opens the shark trap 10 s later to keep penguins on truck IN PT T36 + 600 TOF 100ms TRCK HR GRG LGHT T36 IN PT T37 +1 000 TON 10ms TRCK HR T36 SHRK DR T37 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems

IENG 475: Computer-Controlled Manufacturing Systems Sequencers Allen-Bradley: SQO Sequencer addresses are 901 - 932 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 SEQ RST 901 (AB) 100ms * Our Focus: 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems

Sequence (Drum) Matrix Bit Address Outputs Step 1 2 3 4 5 ... Count/Dwell 1.0 5.1 2.0 30.0 0.1 5.0 A B C F E G H D 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems

Using Sequencers: Penguin Wash System Definition: N.O. N2OH4 sensor input (PNGN SMLL) detects a smelly penguin in the washer Penguin gets a 1 minute cold water spray with the drain opened, door closed Drain closes and Penguin tank gets filled with water and soap (2.5 minutes) Penguin gets a 4 minute soap & warm water wash, drain closed and spinner on Penguin gets a 3 minute warm water rinse as wash water drains (no agitation) Tank waits for 1 minute to fill w/ water & Penguin Softener, spinner on, drain closed Tank drains for 1.5 minutes with spin on Penguin is fluffed by hot air while spinning for 2 minutes Door opens and beeper signals that the clean penguin is available (for 10 seconds) Door stays open and system resets Outputs: A: Door Lock (1-closed, 0-open) B: Water Valve (1-opened, 0-closed) C: Soap Valve (1-opened, 0-closed) D: Drain Valve (1-opened, 0-closed) E: Spinner Motor (1-on, 0-off) F: Penguin Softener Valve (1-on, 0-off) G: Hot Air Blower (1-on, 0-off) H: Beeper (1-on, 0-off) 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems

Using Sequencers: Penguin Wash 1 Bit Address Outputs B 1 C 1 D 1 E 1 F 1 G 1 H 1 Step 1 2 3 4 5 6 7 Count/Dwell 600 1500 2400 1800 900 1200 100 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems

Using Sequencers: Penguin Wash Ladder Logic Network: SEQ RST 901 (AB) 100ms PNGN SMLL RESET 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems

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 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems

IENG 475: Computer-Controlled Manufacturing Systems 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” (FPGA / 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 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems

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) 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems

IENG 475: Computer-Controlled Manufacturing Systems 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) 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems

IENG 475: Computer-Controlled Manufacturing Systems Questions & Issues 11/20/2018 IENG 475: Computer-Controlled Manufacturing Systems