Copyright © 2002 Delmar Thomson Learning Chapter 15 Timer and Counter Instructions.

Slides:



Advertisements
Similar presentations
Timer Instructions Overview Instructions: Use the Page Up and Page Down keys to navigate through this presentation. When you are done viewing the presentation,
Advertisements

Programming Examples Rung Examples:
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.
Copyright © 2005 Rockwell Automation, Inc. All rights reserved. 1 Micro Logix 1100 RSLogix 500 LAB#2 Timing, Counting & Comparing.
02/24/97 1 Rockwell Automation Hands-On Seminar Series.
PLC Timer Instructions
ECT 464 Lecture 5 Modes and Memory. Do the thing you fear and the death of fear is certain. Be strong and courageous. Do not be afraid or terrified because.
Copyright © 2002 Delmar Thomson Learning Chapter 11 Processor Data Organization.
Copyright © 2002 Delmar Thomson Learning Chapter 12 Basic Relay Instructions.
Chapter 7 Input Modules.
Chapter 6 Introduction to Logic.
Switchgears Control Using SCADA System Based on PLC
5/20/2015IENG 475: Computer-Controlled Manufacturing Systems 1 IENG Lecture 14 Ladder Logic Programming of PLCs.
FUNCTION OF OUTPUT CONTROLLER AND APPLICATION
Programmable Logic Controllers
Chapter 19 Fundamental PLC Programming
Lecture 6: PLC: Timers and Counters
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,
Advanced Instructions Most PLCs now support more advanced functions such as Floating point math, Boolean operations, Shifting, Sequencing, Program control.
Programmable Logic Controllers
Programmable Logic Controllers
MOV,MOVM,COP,FLL,BSL,BSR, FRD,TOD
Introduction to PLC Operation
Copyright © 2002 Delmar Thomson Learning Chapter 17 Sequencer Instructions.
MicroLogix Packaged Controllers Programmable Controller Basics Memory & Data.
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.
Basics of PLC Programming EE 100 – Intro to EE Fall 2004 Dr. Stephen Williams, P.E.
Memory Layout and SLC500™ System Addresses. Processor Memory Division An SLC 500 processor's memory is divided into two storage areas. Like two drawers.
Memory Layout and SLC500™ System Addresses. Processor Memory Division An SLC 500 processor's memory is divided into two storage areas. Like two drawers.
Processor Data Organization
Chapter 8.
PLC Counter Instructions
Senior Project Presentation: Designers: Shreya Prasad & Heather Smith Advisor: Dr. Vinod Prasad May 6th, 2003 Internal Hardware Design of a Microcontroller.
Copyright © 2002 Delmar Thomson Learning Chapter 10 PLC Processors.
Counters. Counter Applications Counters count events such as the number of: Parts passing a certain point on a conveyor system Good parts/bad parts manufactured.
Copyright © 2002 Delmar Thomson Learning Chapter 4 Number Systems.
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.
Datapath - performs data transfer and processing operations The control unit sends: – Control signals – Control outputs The control unit receives: – External.
Copyright © 2002 Delmar Thomson Learning Chapter 14 Documenting Your PLC System.
Introduction to PLC Operation
Sequencers SQO,SQC,SQL.
An Adder A Subtractor. A and B are the inputs of the adder/ subtractor R is the output of the adder/ subtractor F is the control to tell it to add or.
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
Chapter 5.
1 Introduction to PLCs: Programming Counters ELMT Basic Programmable Logic Controllers Chapter 0x_W Source: www Based on Ch 8 of Frank D. Petruzella.
Chapter 7.
9 CHAPTER PLC Counter Instructions. 9 CHAPTER PLC Counter Instructions.
Chapter 10 © 2011, The McGraw-Hill Companies, Inc.
Programming Timers.
MicroEconomix 1500 RSLogix 500 LAB#2
Basics of PLC Programming
Chapter 11 © 2011, The McGraw-Hill Companies, Inc.
Timer Instructions Overview
Comparison and Data-handling Instructions
Comparison and Data-Handling Instructions
Lesson 19: PLC Programming Techniques
Programmable Controller Basics Files And Programs
Timer and Counter Instructions
Programmable Logic Controllers (PLCs)
Retentive On Delay Timers
Revison Part two.
Counting to 100 Counting by ones
Ladder programming Counter Instruction S7 300
Presentation transcript:

Copyright © 2002 Delmar Thomson Learning Chapter 15 Timer and Counter Instructions

Copyright © 2002 Delmar Thomson Learning Objectives  Describe the function of an on-delay timer.  Describe the function of an off-delay timer.  Describe in what instances one would use a retentive timer.  Describe the function of an up counter.  Describe the function of a down counter.

Copyright © 2002 Delmar Thomson Learning Objectives (cont’d.)  Describe in what instances one would use an up counter versus a down counter.  Define preset, accumulative value, and the timer or counter address.  Explain how the various timers and counters are reset.

Copyright © 2002 Delmar Thomson Learning T4, Timer File  The timer file stores only timer elements.  An element is a word or group of words that work together as a unit.  A timer is made of of three pieces or words:  Preset value  Accumulated value  Status bits

Copyright © 2002 Delmar Thomson Learning T4, Timer File (cont’d.)  The preset value and accumulated value are 16-bit signed integers.  Status bits are single bits that make up one 16-bit word.  These three words work together as a unit.

Copyright © 2002 Delmar Thomson Learning One Timer Element Is Made of Three 16-Bit Words

Copyright © 2002 Delmar Thomson Learning Timer Addressing  Sample timer element addressT4:2  T4 = timer file 4  :2 = timer element #2 (0-255 timer elements per file)

Copyright © 2002 Delmar Thomson Learning Sub-Element  A sub-element is part of an element addressable as a unit.  The preset value and accumulated value are sub-elements of a timer:  T4:0.PRE  T4:0.ACC

Copyright © 2002 Delmar Thomson Learning Timer Status Bits  Timers have three status bits.  Done bit (DN) is true when the accumulated value and preset are equal.  Timer timing bit (TT) is true when the timer is timing.  Enable bit (EN) is true when the timer instruction is enabled or true.

Copyright © 2002 Delmar Thomson Learning Timer Bit Addressing  Status bit addresses for timer file 4, timer element 2 (T4:2) are listed below:  T4:2/DN is the address for the done bit.  T4:2/EN is the address for the enable bit.  T4:2/TT is the address for the timer timing bit.

Copyright © 2002 Delmar Thomson Learning Timer File T4

Copyright © 2002 Delmar Thomson Learning C5, Counter File  The counter file stores only counter elements.  An element is a word or group of words that work together as a unit.  A counter is made of of three pieces or words:  Preset value  Accumulated value  Status bits

Copyright © 2002 Delmar Thomson Learning C5, Counter File (cont’d.)  The preset value and accumulated value are 16-bit signed integers.  Status bits are single bits that make up one 16-bit word.  These three words work together as a unit.

Copyright © 2002 Delmar Thomson Learning One Counter Element Is Made of Three 16-Bit Words

Copyright © 2002 Delmar Thomson Learning Counter Addressing  Sample counter element address C5:2  C5 = timer file 5  :2 = counter element #2 (0-255 timer elements per file)

Copyright © 2002 Delmar Thomson Learning Sub-Element  A sub-element is part of an element addressable as a unit.  The preset value and accumulated value are sub-elements of a counter:  C5:0.PRE  C5:0.ACC

Copyright © 2002 Delmar Thomson Learning Counter Status Bits  Counters have five status bits.  Done bit (DN) is true when the accumulated value and preset are equal.  Count up enable bit (CU) is true when the up counter is true or enabled.  Count down enable bit (CD) is true when the count down counter is enabled or true.

Copyright © 2002 Delmar Thomson Learning Counter Status Bits (cont’d.)  The overflow bit (OV) is true when the up counter has overflowed above  The underflow bit (UN) is true when the down counter has underflowed below  The update accumulator bit (UA) is a high- speed counter status bit for fixed SLC 500 PLCs.

Copyright © 2002 Delmar Thomson Learning Counter Status Bit Addressing  Status bit addresses for counter file 5, counter element 0 (C5:0) are listed below:  C5:0/DN is the address for the done bit.  C5:0/CU is the address for the count up enable bit.

Copyright © 2002 Delmar Thomson Learning Counter Status Bit Addressing (cont’d.)  C5:0/CD is the address for the count down enable bit.  C5:0/OV is the address for the count up overflow bit.  C5:0/UN is the address for the count down underflow bit.

Copyright © 2002 Delmar Thomson Learning Counter File C5

Copyright © 2002 Delmar Thomson Learning SLC 500 On-Delay Timer

Copyright © 2002 Delmar Thomson Learning SLC 500 Timer Instructions

Copyright © 2002 Delmar Thomson Learning SLC 500 On-Delay Timer and Associated Status Bits

Copyright © 2002 Delmar Thomson Learning SLC 500 Off-Delay Timer

Copyright © 2002 Delmar Thomson Learning SLC 500 Retentive Timer

Copyright © 2002 Delmar Thomson Learning Retentive Timer and Its Reset Instruction

Copyright © 2002 Delmar Thomson Learning SLC 500 Counters

Copyright © 2002 Delmar Thomson Learning SLC 500 Count Up Counter

Copyright © 2002 Delmar Thomson Learning SLC 500 Count Down Counter

Copyright © 2002 Delmar Thomson Learning SLC 500 Count Down Counter Instruction

Copyright © 2002 Delmar Thomson Learning Reset Instruction to Reset Counter C20:7

Copyright © 2002 Delmar Thomson Learning Using the Clear Instruction to Clear C5:0.ACC and C5:1.Acc