Chapter 8.

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

More fun with Timer/Counters
Copyright © 2005 Rockwell Automation, Inc. All rights reserved. 1 Micro Logix 1100 RSLogix 500 LAB#2 Timing, Counting & Comparing.
PLC Timer Instructions
Copyright © 2002 Delmar Thomson Learning Chapter 11 Processor Data Organization.
Copyright © 2002 Delmar Thomson Learning Chapter 12 Basic Relay Instructions.
5/20/2015IENG 475: Computer-Controlled Manufacturing Systems 1 IENG Lecture 14 Ladder Logic Programming of PLCs.
Counter Circuits and VHDL State Machines
FUNCTION OF OUTPUT CONTROLLER AND APPLICATION
ENGIN112 L27: Counters November 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 27 Counters.
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
Programmable Logic Controllers
Chapter 19 Fundamental PLC Programming
Counters  A counter is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, often in relationship.
Lecture 6: PLC: Timers and Counters
Chapter 7 Counters and Registers
Logic Functions OR Operation
Timers and Interrupts Shivendu Bhushan Sonu Agarwal.
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
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.
MicroLogix Packaged Controllers Programmable Controller Basics Memory & Data.
Rabie A. Ramadan Lecture 3
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.
Timers ELEC 330 Digital Systems Engineering Dr. Ron Hayne
Processor Data Organization
Memory Layout and SLC500 System Addresses. Processor Memory Division An SLC 500 processor's memory is divided into two storage areas. Like two drawers.
PLC Counters. Introduction We use timers to measure the elapsed time between two events. With retentive timers the “run” signal can be turned on and off.
PLC Counter Instructions
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
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.
LADDER PROGRAMMING LANGUAGE by Dr. Amin Danial Asham.
Counter Circuits and VHDL State Machines
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.
© 2013 Eaton Corporation. All rights reserved. PLC Programming Basics.
Chapter 5.
Chapter 11 & 13 PLC Math Instructions Permission granted to reproduce for educational use only. 11 PLC Compare, Jump, and MCR Instructions.
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 5.
Chapter 10 © 2011, The McGraw-Hill Companies, Inc.
Programmable Interval Timer 8254 LECTURE 3
Chapter 12 © 2011, The McGraw-Hill Companies, Inc.
Programming Timers.
MicroEconomix 1500 RSLogix 500 LAB#2
GE Timers and Isolation of the PLC System
Timer Instructions Overview
Manisha Goel, Lecturer, EE Deptt Govt. Polytechnic Manesar
Lesson 19: PLC Programming Techniques
Program Control Instructions.
Timer and Counter Instructions
Basic Relay Instructions
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)
Retentive On Delay Timers
Timer/Counter Timer/Counter 0 Timer/Counter 1 Timer/Counter 2 8 bit
Ladder programming Counter Instruction S7 300
PLC Counters Three types: Count Up Count Down Count Up/Down Used for:
Presentation transcript:

Chapter 8

8.1 Counter Instructions

Programmed counters serve the same function as mechanical counters. Every time the actuating lever is moved over, the counter adds one number. Resetting to zero is done with a pushbutton located on the side of the unit.

Electronic counters can count up, count down, or be combined to count up and down. Although the majority of counters used in industry are up-counters, numerous applications require the implementation of down-counters or of combination up/down-counters.

All PLC manufacturers offer some form of counter instruction. One common counter application is keeping track of the number of items moving past a given point.

PLC counter instructions are similar to timers except that they do not operate on an internal clock but are dependent on external or program sources for counting Generic coil-formatted up-counter instruction.

The counter reset instruction must be used in conjunction with the counter instruction. coil is given the same address as the counter that it is to reset. Up-counters are always reset to zero.

Generic block-formatted counter. All PLC counters operate, or count, on the leading edge or off-to-on transition of the input condition.

PLC counters can be programmed to count up to a preset value or to count down to a preset value. The up-counter is incremented by 1 each time the rung containing the counter is energized. The down-counter decrements by 1 each time the rung containing the counter is energized.

8.2 Up-Counter

The up-counter is used to count false-to-true transitions of an input instruction and then trigger an event after a required number of counts or transitions. The up-counter output instruction will increment its accumulated value by 1 each time the counted event occurs.

SLC 500 Up-Counter program

SLC 500 Up-Counter timing diagram

Simulated Up-Counter program

The Allen-Bradley SLC 500 counter file is file 5.

Count-Up (CU) enable bit - is true (1) whenever the count-up counter instruction is true. Count-Down (CD) enable bit - is true (1) whenever the count-down counter instruction is true. Done (DN) bit - is true (1) whenever the accumulated value is equal to or greater than the preset value of the counter, for either the count-up or the count-down counter.

Overflow (OV) bit is - true (1) whenever the counter counts past its maximum value, 32,767. On the next count, the counter will wrap around to -32,768 and will continue counting to 0. Underflow (UN) bit is - true when the counter counts below -32,768. The counter will wrap around to +132,767 and continue counting down toward 0.

Update Accumulator (UA) bit- is used in conjunction with an external high-speed counter. The preset value (PRE) word - specifies the value that the counter must count to before it changes the state of the done bit. The accumulated value (ACC) word - is the current count based on the number of times the rung goes from false to true.

SLC 500 up-counter instruction.

Timer/counter menu from the RSLogix toolbar. CTU (Count-Up) Increments the accumulated value at each false-to-true transition and retains the accumulated value when an off/on power cycle occurs. CTD (Count-Down) Decrements the accumulated value at each false-to-true transition and retains the accumulated value when an on/off power cycle occurs. HSC (High-Speed Counter) Counts high-speed pulses from a high-speed input.

PLC counter program used to stop a motor from running after 10 operations.

Simulated counter program used to stop a motor from running after 10 operations.

Can-counting program that uses three up-counters.

Simulated can-counting program.

A one-shot, or transitional, contact is often used to automatically clear or reset a counter. The one-shot can be triggered from a momentary signal or from a signal that comes on and stays on for some time. It stays on for one scan only and then goes off. It stays off until the trigger goes off, and then comes on again.

Some PLCs provide transitional contacts or one-shot instructions. The off-to-on transitional contact provides a one-shot pulse when the trigger signal makes a off-to-on transition. The on-to-off transitional contact provides a one-shot pulse when the trigger signal makes a on-to-off transition.

The Allen-Bradley SLC 500 one-shot rising (OSR) instruction is an input instruction that triggers an event to occur one time.

Up-counter with a programmed one-shot rising (OSR) off-to-on transitional contact instruction.

Simulated up-counter with a programmed one-shot rising (OSR) contact instruction.

OSR instruction used to freeze rapidly displayed LED values. Closing the momentary pushbutton PB (I:1/0) will freeze and display the value at that point in time.

Simulation of OSR instruction used to freeze rapidly displayed LED values.

Alarm monitor program.

Simulated alarm monitor program.

8.3 Down-Counter

Generic up/down counter program. A down-counter will count down or decrement by 1 each time the counted event occurs. Generic up/down counter program. Normally the down-counter is used in conjunction with the up-counter to form an up/down-counter.

Up/down counter program counting diagram.

Parking garage counter program.

Simulated parking garage counter program.

Count-down counter instruction used as part of the SLC 500 controller instruction set. The information to be entered into the instruction is the same as for the count-up instruction.

Up/down-counter program.

Simulated up/down-counter program.

Program that provides continuous monitoring of items in process. The accumulated count of the counter continuously indicates the number of in-process parts.

Program that provides continuous monitoring of items in process.

Simulated program that provides continuous monitoring of items in process.

8.4 Cascading Counters

Depending on the application, it may be necessary to count events that exceed the maximum number allowable per counter instruction. One way of accomplishing this count is by interconnecting, or cascading, two counters.

Counting beyond the maximum count program.

Simulated counting beyond the maximum count program.

Cascading counters for extremely large counts.

Simulated program for extremely large counts.

24-hour clock program.

Simulated 24-hour clock program.

Monitoring the time of an event program.

Simulated time of an event program.

Encoder-Counter Applications 8.5 Incremental Encoder-Counter Applications

The incremental optical encoder creates a series of square waves as its shaft is rotated. The encoder disk interrupts the light as the encoder shaft is rotated to produce the square wave output waveform.

Cutting objects to a specified length. The object is advanced for a specified distance and measured by encoder pulses to determine the correct length for cutting.

Counter program used for length measurement.

8.6 Combining Counter and Timer Functions

Automatic stacking program

Motor lock-out program

Product flow rate program.

Timer driving a counter to produce an extremely long time-delay period.