PLC Counter Instructions

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

PLC Selection, Components, and Communication
Microprocessors.
PLC Timer Instructions
Programmable Interval Timer
Copyright © 2002 Delmar Thomson Learning Chapter 11 Processor Data Organization.
Flip-Flops, Registers, Counters, and a Simple Processor
PROGRAMMING. Each PLC manufacturer offers a different set of instructions within its PLC family. Many of these instruction sets are not applicable to.
10 PLC Math Instructions. 10 PLC Math Instructions.
Chapter 7 Input Modules.
4/24/05 BAE Motor Control PLCs and Ladder Logic An Introduction.
Creating Relay Logic Diagrams
Counter Circuits and VHDL State Machines
FUNCTION OF OUTPUT CONTROLLER AND APPLICATION
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
Logic Functions OR Operation
Block Diagram of 4518 Dual BCD Counter The 4518 Dual BCD Counter has two BCD counters. Each counter is similar to the other. Each counter has a master.
Timers.
6 PLC Programming. 6 PLC Programming Objectives List the rules for creating a PLC ladder logic diagram. Convert a relay logic diagram to a PLC ladder.
Number Systems and Codes
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.
PLC: Programmable Logical Controller
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.
Welcome to the World of Programmable Logic Controllers
Copyright © 2002 Delmar Thomson Learning Chapter 1 Welcome to the World of Programmable Logic Controllers.
Memory Layout and SLC500™ System Addresses. Processor Memory Division An SLC 500 processor's memory is divided into two storage areas. Like two drawers.
Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is.
Processor Data Organization
Chapter 8.
©2008 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected under all copyright laws as they currently exist.
Timer Timer is a device, which counts the input at regular interval (δT) using clock pulses at its input. The counts increment on each pulse and store.
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
PROGRAMMABLE LOGIC CONTROLLER (PLC) AND AUTOMATION
PLC ARCHITECTURE – Memory 2 by Dr. Amin Danial Asham.
Computer Architecture Lecture 4 by Engineer A. Lecturer Aymen Hasan AlAwady 17/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
MICROPROCESSOR DETAILS 1 Updated April 2011 ©Paul R. Godin prgodin gmail.com.
Actuators and Control, Part 4 Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning.
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.
EKT 221 : Digital 2 COUNTERS.
Chapter 10 © 2011, The McGraw-Hill Companies, Inc.
Programmable Interval Timer
PLC Timers MECH 1500 Two classes of timers: Retentive Non-Retentive.
Programming Timers.
GE Timers and Isolation of the PLC System
Timer Instructions Overview
Lesson 19: PLC Programming Techniques
Timer and Counter Instructions
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
S RAJARAJAN_ASST PROF, BSARCIS&T
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Programmable Logic Controllers (PLCs)
Ladder programming Counter Instruction S7 300
PLC Counters Three types: Count Up Count Down Count Up/Down Used for:
Presentation transcript:

PLC Counter Instructions 9 PLC Counter Instructions

Objectives Use count up instructions to create PLC ladder logic diagrams. Use count down instructions to create PLC ladder logic diagrams. Reset counter instructions. Connect different counter instructions and cascade counter instructions. Use timer and counter instructions to create PLC ladder logic diagrams. © Goodheart-Willcox Co., Inc.

PLC Counter Instructions Double-input counter Single-input counter © Goodheart-Willcox Co., Inc.

PLC Counter Instructions (Cont.) Similar to the timer instruction. Displayed in block format or coil format. Single-input in block format. Allen-Bradley SLC 500 series programmable logic controller uses one input. Addresses can be C5:0 to C5:255. Can have up to 256 instructions. © Goodheart-Willcox Co., Inc.

PLC Counter Instructions (Cont.) Count up: Accumulated register value increments (counts up) whenever the counter input device changes state. Count down: Accumulated register value decrements (counts down) whenever the counter input device changes state. © Goodheart-Willcox Co., Inc.

PLC Counter Instruction Registers Preset register (C5:0.PRE): Used to hold the preset counter number. Accumulated register (C5:0.ACC): Holds the accumulated counter number. Status register: Holds flag bits that are used by the PLC to keep track of the operation of counter C5:0. © Goodheart-Willcox Co., Inc.

PLC Counter Instruction Registers (Cont.) Two flag bits: Count bit. Done bit C5:0/DN. © Goodheart-Willcox Co., Inc.

PLC Counter Instruction Registers (Cont.) Overflow bit (OV). Underflow bit (UN). Update accumulator bit (UA): Used with high-speed counter (HSC) instructions. © Goodheart-Willcox Co., Inc.

SLC 500 Counter Instruction Registers and Status Bits © Goodheart-Willcox Co., Inc.

PLC Count Up Instructions Accumulated register increments when counter input device changes state. © Goodheart-Willcox Co., Inc.

PLC Ladder Logic Diagram Using Count Up Instruction © Goodheart-Willcox Co., Inc.

PLC Count Down Instructions Accumulated register decrements whenever the counter input device changes state. Preset value for the count down usually is a negative number. Content of the accumulated register decrements from its initial value of zero to the negative preset number. © Goodheart-Willcox Co., Inc.

Count Down Instruction Connected to a NO Input © Goodheart-Willcox Co., Inc.

PLC Count Instructions Comparison Count down instruction: Done bit (C5:0/DN) resets to zero. Done coil de-energizes when the content of the accumulated register decrements to the preset number. Count up instruction: Done bit (C5:0/DN) is enabled. Done coil energizes when the content of the accumulated register is equal to the content of the preset register. © Goodheart-Willcox Co., Inc.

Connecting PLC Counter Instructions In some manufacturing operations: Content of an entire section of a conveyor needs to be known at one time. Place two proximity sensors on the conveyor. One sensor connected to count up instruction. One sensor connected to count down instruction. © Goodheart-Willcox Co., Inc.

Connecting PLC Counter Instructions (Cont.) Conveyor and proximity sensors and how counting is accomplished. © Goodheart-Willcox Co., Inc.

Connecting PLC Counter Instructions (Cont.) Infeed proximity switch: Connected to the count up instruction. Outfeed proximity switch: Connected to the count down instruction. © Goodheart-Willcox Co., Inc.

Cascading Counters In some industrial applications: Counters are cascaded so that one counter increments or decrements when another counter is done. Used mainly in material handling and process control environments. © Goodheart-Willcox Co., Inc.

PLC Ladder Logic Diagram Using Cascading Counters © Goodheart-Willcox Co., Inc.

PLC Ladder Logic Diagram with Counters and Timers © Goodheart-Willcox Co., Inc.

Glossary Count bit: Bit that is enabled every time the counter counts up for count up instructions or down for count down instructions. Count down: Instruction where the accumulated register decrements whenever there is a change in the counter input. Count up: Instruction where the accumulated register increments whenever there is a change in the counter input. © Goodheart-Willcox Co., Inc.

Glossary Double-input counter: Counter that uses one input to enable the counter and another input to count the number of pulse signals. Overflow bit (OV): Bit that turns on when the positive number in a count up instruction increments to +32,767 decimal. Single-input counter: Counter that has one input to enable and count the signals. © Goodheart-Willcox Co., Inc.

Glossary Underflow bit (UN): Bit that turns on when the negative number in a count down instruction decrements to –32,768 decimal. © Goodheart-Willcox Co., Inc.