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.

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.
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/20/2015IENG 475: Computer-Controlled Manufacturing Systems 1 IENG Lecture 14 Ladder Logic Programming of PLCs.
FUNCTION OF OUTPUT CONTROLLER AND APPLICATION
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
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,
Programmable Logic Controllers
Programmable Logic Controllers
Copyright © 2002 Delmar Thomson Learning Chapter 15 Timer and Counter Instructions.
MOV,MOVM,COP,FLL,BSL,BSR, FRD,TOD
ENEE 440 Chapter Timer 8254 Register Select The 8254 timer is actually 3 timers in one. It is an upgraded version of the 8253 timer which was.
PIT: Programmable Interval Timer
8254 Counter/Timer Counter Each of the three counter has 3 pins associated CLK: input clock frequency- 8 MHz OUT GATE: Enable (high) or disable.
Program Control Instructions:
MicroLogix Packaged Controllers Programmable Controller Basics Memory & Data.
Chapter 4 TIMER OPERATION
CoE3DJ4 Digital Systems Design Chapter 4: Timer operation.
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
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.
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.
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.
Sequencers SQO,SQC,SQL.
Time Management.  Time management is concerned with OS facilities and services which measure real time.  These services include:  Keeping track of.
MICROPROCESSOR DETAILS 1 Updated April 2011 ©Paul R. Godin prgodin gmail.com.
Ladder Concept.
1 68HC11 Timer. 2 68HC11 Timer Subsystem Several timing functions: Basic timing Basic timing Real time interrupts Real time interrupts Output compare.
TIMERS Used to carry out tasks which involve time delay and time counting. A timer circuit is specified by stating the interval to be timed and the conditions.
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.
PLC APPLICATIONS MODULE 3 Time sequence processes.
© 2013 Eaton Corporation. All rights reserved. PLC Programming Basics.
PLC APPLICATIONS MODULE 3 Time sequence processes.
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.
Programmable Interval Timer
Instructor: Alexander Stoytchev
Programming Timers.
MicroEconomix 1500 RSLogix 500 LAB#2
MECH 1500 Pulse Timer Energizes contacts immediately when enabled and begins timing. De-energizes contacts after the preset time value has elapsed De-energizing.
GE Timers and Isolation of the PLC System
Introduction to Ladder Diagram
Timer Instructions Overview
Lesson 19: PLC Programming Techniques
Program Control Instructions.
Timer and Counter Instructions
Basic Relay Instructions
Programmable Logic Controllers (PLCs)
Retentive On Delay Timers
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:
Presentation transcript:

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 using a separate up and down counter instructions using the same address/structure

Counter Data File CU – count up enable CD – count down enable DN – done bit OV – overflow bit UN – underflow bit UA – update accumulated value (not used) PRE – Preset value word ACC – Accumulated value word CU – count up enable CD – count down enable DN – done bit OV – overflow bit UN – underflow bit UA – update accumulated value (not used) PRE – Preset value word ACC – Accumulated value word

Word values Accumulator Value – Number of false to true transitions that have occurred since the counter was last reset. Accumulator Value – Number of false to true transitions that have occurred since the counter was last reset. Preset Value – Value which the counter must count up to until the PLC sets the done bit. Preset Value – Value which the counter must count up to until the PLC sets the done bit.PLC5 Values between -32,768 and 32,767CONTROLOGIX Values between 2,147,483,647to -2,147,483,648

Address Structure The Counter uses the typical element addressing scheme. The Counter uses the typical element addressing scheme. Examples: Examples: C5:0.ACC C5:0.ACC C11:33/DN C11:33/DN C5:2/OV C5:2/OV C12:4/UN C12:4/UN Counter.PRECounter.PRE Counter.ACCCounter.ACC Counter.DNCounter.DN PLC 5 Contrologix

Counter Uses Count the number of items being produced or tested Count the number of items being produced or tested Maintain the level in a tank by counting the number of gallons in and drained Maintain the level in a tank by counting the number of gallons in and drained Keeping track of very long duration time periods by combining a timer and counter Keeping track of very long duration time periods by combining a timer and counter Counting frequency, encoder, tachometer (pulses) Counting frequency, encoder, tachometer (pulses)

Counter Examples Straight counting in a process Straight counting in a process Sum of two counts Sum of two counts Difference of two counts Difference of two counts Timed interval starts when count reaches Timed interval starts when count reaches preset value preset value Count of events after fixed interval Count of events after fixed interval Rate is determined by dividing count by Rate is determined by dividing count by time interval time interval

Timer The TON instruction is a non-retentive timer that accumulates time when the instruction is enabled (rung-condition-in is true). The TOF instruction is a non-retentive timer that accumulates time when the when enable goes false (rung-condition-in is false). The RTO instruction is a retentive timer that accumulates time when the instruction is enabled.

Timer Data File Elements EN – timer enabled TT – timer timing DN – done bit PRE – Preset value word ACC – Accumulated value word

Word values Accumulator Value – Number of clock cycles that have occurred since the timer was enabled. Preset Value – Value which the timer must count up to until the PLC sets the done bit. Values between 0 and 32,767

Time Base The timers have a time base by which they are clocked. Valid Time Bases are: 1 second 0.1 seconds

Address Structure The Timer uses the typical element addressing scheme. Examples:T4:0.ACCT11:33/DNT4:2/TTT12:4/EN T15:56.1/0 = T15:56.PRE/0 T16:29.2/15 = T16:29.ACC/15

Timer On Delay (TON) Enable – Set whenever the input rung is true Timer Timing – Set when enable is true and accumulated value is less than the preset value. Done – Set when the enable is true and the accumulated value is greater than or equal to the preset value.

Timer Off Delay (TOF) Enable – Set whenever the input rung is true Timer Timing – Set when enable goes false and accumulated value is less than the preset value. Done – Set when the enable or timer timing bit is true

Retentive Timer (RTO) Enable – Set whenever the input rung is true Timer Timing – Set when enable goes true and accumulated value is less than the preset value. Done – Set when the enable is true and the accumulated value is greater than or equal to the preset value. Does not reset accumulated value when enable is false.

Timer Uses TON Create a short pulse at the beginning of a longer input condition (.TT bit) Create a short pulse at the beginning of a longer input condition (.TT bit) Delay the start of a function for defined period of time from the start of some other function (.DN bit) Delay the start of a function for defined period of time from the start of some other function (.DN bit) TOF Used to create longer output functions derived from short input functions using (.DN bit) Used to create longer output functions derived from short input functions using (.DN bit) Generate a short pulse at he end of a long input function by using (.TT bit) Generate a short pulse at he end of a long input function by using (.TT bit)

Timer Uses RTO Used to accumulate time for maintenance functions or for diagnostic programs Other Uses count time,Extend push button inputs,Delay inputs, De-bounce Inputs count time, Extend push button inputs, Delay inputs, De-bounce Inputs

Timer Examples To Try Alternate on and off of two outputs: Two alternately flashing lights. The time for the two lights could be different.Alternate on and off of two outputs: Two alternately flashing lights. The time for the two lights could be different. Multiple On Delay: Two different events start at different time intervals after an initial starting time reference point.Multiple On Delay: Two different events start at different time intervals after an initial starting time reference point. Multiple Off Delay: Two different functions remain on for two different time intervals after a process is turned off.Multiple Off Delay: Two different functions remain on for two different time intervals after a process is turned off.

Timer Examples To Try Interval time within a cycle: We may require that an output come on 7.5 seconds after system start up, remain on for 4.5 seconds, and then go off and stay off. The interval would then be repeated only after the system is shut off and then turned back on.Interval time within a cycle: We may require that an output come on 7.5 seconds after system start up, remain on for 4.5 seconds, and then go off and stay off. The interval would then be repeated only after the system is shut off and then turned back on. On Delay: Output B comes on at a specific set time after output A is turned on. When A is turned off, B goes off. On Delay: Output B comes on at a specific set time after output A is turned on. When A is turned off, B goes off.

Timer Examples To Try Off Delay: Both A and B have been turned on at the same time. Both are in operation. When A is turned off, B remains on for a specific set time period before going off.Off Delay: Both A and B have been turned on at the same time. Both are in operation. When A is turned off, B remains on for a specific set time period before going off. Limited On Time: A and B go on at the same time. B goes off after specific set time period, but A remains on.Limited On Time: A and B go on at the same time. B goes off after specific set time period, but A remains on. Repeat Cycling: An output pulses on and quickly off at a constant preset time interval.Repeat Cycling: An output pulses on and quickly off at a constant preset time interval. One-Shot Operation: Output B goes on for a specified time after output A is turned on. Output B will run for its specified time interval even if A is turned off during the B timing interval.One-Shot Operation: Output B goes on for a specified time after output A is turned on. Output B will run for its specified time interval even if A is turned off during the B timing interval.