Lecture 6: PLC: Timers and Counters

Slides:



Advertisements
Similar presentations
Sequential Process Control
Advertisements

CPE 201 Digital Design Lecture 25: Register Transfer Level Design (2)
Programming with Ladder Logic
Unit 7 Discrete Controllers
Copyright © 2005 Rockwell Automation, Inc. All rights reserved. 1 Micro Logix 1100 RSLogix 500 LAB#2 Timing, Counting & Comparing.
PLC Timer 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,
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.
Lecture 7: PLC: Review Questions
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.
Programmable Logic Controllers
Sequential Circuit  It is a type of logic circuit whose output depends not only on the present value of its input signals but on the past history of its.
Chapter 19 Fundamental PLC Programming
Programming with Function Blocks
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
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.
I/P Addressing Each input or output is assigned a number on its module, which is referenced to within the program which is refereed to as “address”.
Chapter 8.
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.
Discrete-state Process Control
PLC Counter Instructions
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
Timers and Counters by Dr. Amin Danial Asham. References  Programmable Controllers-Theory and Implementation, 2nd Edition, L.A. Bryan and E.A. Bryan.
Programmable Logic Controller (PLC)
PLC PROGRAMMING.
LADDER PROGRAMMING LANGUAGE by Dr. Amin Danial Asham.
HORNERAPGHORNERAPG HORNERAPGHORNERAPG 20 Years of Innovation Operator Control Station Workshop Operator Control Station “All in One” Integrated.
Time Management.  Time management is concerned with OS facilities and services which measure real time.  These services include:  Keeping track of.
Ladder Concept.
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.
Programmable Logic Controller
S7-200 PLC training courses
1 Introduction to PLCs: Programming Counters ELMT Basic Programmable Logic Controllers Chapter 0x_W Source: www Based on Ch 8 of Frank D. Petruzella.
BRX Technical Training
Chapter 7.
LG PLC COURSE Beginner Prepared by : -Hossam Mohammed -Ramdan said
9 CHAPTER PLC Counter Instructions. 9 CHAPTER PLC Counter Instructions.
PLC programming: Timers and Counters Programming
PLC Timers MECH 1500 Two classes of timers: Retentive Non-Retentive.
GE Counters and Order of Operation
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
Lesson 14: Introduction To Sequential Control
Introduction to Ladder Diagram
Timer Instructions Overview
ET 438B Sequential Control and Data Acquisition
IENG 475: Computer-Controlled Manufacturing Systems
Lesson 19: PLC Programming Techniques
PROGRAMMABLE LOGIC CONTROLLERS
S RAJARAJAN_ASST PROF, BSARCIS&T
Programmable Logic Controllers (PLCs)
Introduction to IEC Ladder Diagram
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:

Lecture 6: PLC: Timers and Counters

Function Blocks There are several types of function blocks in ladder programming that implement: Logic operations (AND, OR, NOT, etc.). Math operations (addition, multiplication, etc.) Timers. Counters. In the following slides, we study different types of timers and counters in PLC ladder programming.

Timers Timers are used to operate devices for certain period of time. PLC contains three basic types of timers: 1- On-delay timer (TON) 2- Off-delay timer (TOF) 3- Pulse-timer (TP)

Timers

ON-Delay Timer

ON-Delay Timer When the input IN changes from 0 to 1, the output Q changes from 0 to 1 after a time interval set at PT (preset time). During this interval, ET outputs the elapsed time. If IN is 0 before ET reaches the preset time, the elapsed time becomes 0. If IN is 0 after Q is 1, Q will be 0.

Example 1 (LG) Develop the ladder logic that will turn on an output light, 5 seconds after switch A has been turned on.

Example 2 (Siemens) In this example, when input I0.3 turns on, timer T37 begins timing. T37 has a time base (resolution) of 100 ms (0.1 seconds). The preset time (PT) value has been set to 150. This gives 15 seconds delay (150 x 100 ms). Therefore, 15 seconds after the I0.3 contact closes, timer output becomes a logic 1, and output coil Q0.1 turns on. If the switch opens before 15 seconds has elapsed, the elapsed time (ET) resets to 0.

Off-Delay Timer In Off-Delay timer, if the input IN turned off (change from 1 to 0), the timer waits for a certain time interval and then turns off its output Q.

Pulse Timer

Pulse timer If IN is changes from 0 to 1, Q becomes 1 during the preset time, and if ET reaches PT, Q becomes 0 automatically. Elapsed time ET increases when IN is 1 and holds the value when it reaches PT and becomes 0 when IN is 0. It does not matter whether IN is 0 or 1 while the output Q is 1.

Counters PLC counter instructions keep track of events. As it counts, a counter instruction compares an accumulated count value to a preset value to determine when the desired count has been reached. Counters can be used to start an operation when a count is reached or to prevent an operation from occurring until a count has been reached.

Counters Types of counters in PLC: 1- Up counter (CU) 2- Down counter (CD) 3- Up-down counter (CUD)

Up counter (CTU)

Up counter (CTU) PV (preset value) is the count value to be stored in the counter. Up counter CTU increases CV (current value) by 1 when input CU changes from 0 to 1 (i.e. positive edge). Output Q is 1 when CV ≥ PV. When reset input R is 1, CV is cleared (becomes 0).

Example 3 In this example, Out1 will turn on after switch In2 has been closed 10 times. Push button In1 will reset the counters.

Down Counter (CTD) The down counter starts its counts from a value PV. PV is loaded to CV (current value) using the input LD. Each time a positive edge occurs on CD (count down) terminal the CV is decremented by one. If CV <= 0, Q turns on.

Up/Down Counter (CTUD) Every +ve edge on CU increment CV by 1. Every +ve edge on CD decrement CV by 1. R: reset the counter LD: load CV with the value PV. QU QD CV 1 CV <= 0 CV >= PV

Example 4 A counter might be used to keep track of the items in an inventory storage area.

Example 4, continued In the previous slide, Counter C48 is reset to zero when contact I0.2 closes. This could be triggered automatically or manually to indicate that the storage location is empty. When contact I0.0 closes, the counter counts up by 1. This could be triggered by a proximity switch sensing that an item has been placed in the storage location. When contact I0.1 closes, the counter counts down by 1. This could be triggered by a proximity switch sensing that an item has been removed from the storage location. When the accumulated count reaches 150, the counter turns on, contact C48 closes, and output Q0.1 turns on. This could trigger other logic in the program to divert new items to another location until an item is removed from this location.

PLC Tutorial Please check the following link for a nice tutorial on designing ladder diagrams using animation: http://www.wisc-online.com/objects/ViewObject.aspx?ID=IAU3106