Lecture 5: PLC Programming

Slides:



Advertisements
Similar presentations
Module 2 Sequential circuits and Step sequence. Analyze conditional control tasks and develop proper solutions for such tasks. Understand and utilize.
Advertisements

PLC Applications[ATE-1212] Module-1
Programming with Ladder Logic
Unit 7 Discrete Controllers
PLC - Introduction What does PLC stand for?
Programming Logic Controllers
HYDRAULICS & PNEUMATICS
Programmable Logic Controller PLC
Elec467 Power Machines & Transformers
Ladder Logic PLC Programs are made up of combinations of AND; OR; NAND; NOR; and other gates, along with timers, inputs, outputs, counters, comparators,
1 Discrete Event Control Concept Representation DEC controller design DEC controller implementation.
1 The University of Jordan Mechatronics Engineering Department PLC: Programmable Logical Controller.
Introduction To Programmable Logic Controllers
Lecture 7: PLC: Review Questions
PLC OPERATION & PROGRAMMING Dr. ONUR TOKER. What is a PLC ? PLC is a computer system controlling a process. inputs - the keyboard is analogous to a proximity.
Copier Jam Detector Design Problem
Logic Control. What is Logic control Logic control is a control based on a logic concept, that is the on-off state of variable and/or equipment Logic.
Direct and Indirect Control
Lesson 15: Dc Motor Control Components and Diagrams
PLC Fundamentals Module 2: Hardware and Terminology.
Programming Logic Controllers
Logic Operations in Electro-Pneumatics
Programming with Function Blocks
Module 2: Hardware and Terminology
1 Starting & Stopping Motors Pico Pico LAB#4. 2 Program a series of three basic ladder logic rungs. These basic rungs are the most common rungs found.
Electro-Pneumatics Module 1
PLC introduction1 Discrete Event Control Concept Representation DEC controller design DEC controller implementation.
PLC: Programmable Logical Controller
Industrial Process Control System Simon Hui Engineer Control and Informatics, Industrial Centre.
Programming PLCs using LADDER Logic
Ladder Diagram Symbols Flashcard Exercise Get Started.
Ladder Diagram Symbols. Study the various symbols identified in this presentation. Once you have memorized the different symbols and can name them, take.
Control Technology and Automation
Implementing software in IEC Languages in IEC IEC uses the following languages Instruction List – Assembly level programming using.
Logic Functions and Symbols
PROGRAMMABLE LOGIC CONTROLLER
Timers and Counters by Dr. Amin Danial Asham. References  Programmable Controllers-Theory and Implementation, 2nd Edition, L.A. Bryan and E.A. Bryan.
LADDER PROGRAMMING LANGUAGE by Dr. Amin Danial Asham.
Prepared by: Engr. Qurban Ali Memon 11ES (SEC- 1 & 2)
1 RLL: Relay Ladder Logic CONTENTS 1. PLC operation 2. PLC programming 3. Ladder logic 4. Memory and gates.
DPCL Solid State Device Discrete Control Lecture.
S3 INNOVATION ELECTRONICS. LESSON TITLE: ELECTRONICS Learning Intention: To understand when to use different types of logic gates Activity: Building own.
Traditionally ladder logic programs have been written by thinking about the process and then beginning to write the program. This always leads to programs.
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.
Copyright © 2002 Delmar Thomson Learning Chapter 13 Understanding Relay Instructions and the Programmable Controller Input Modules.
MECH 1500 Chapter 4. MECH 1500 The Binary Concept 4.1.
Symbols and Schematic Diagrams
Programmable Logic Controller
Actuators and Control, Part 4 Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning.
Fluid Power Control.
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
PLC: Programmable Logical Controller
INTRODUCTION TO PLC.
ET 438B Sequential Control and Data Acquisition
Industrial Electronics
Chapter 14 Understanding Relay Instructions and the Programmable Controller Input Modules.
Lesson 14: Introduction To Sequential Control
ET 438B Sequential Control and Data Acquisition
Workbook Section.
Electronic Control Systems Week 2
MECH 1500 Motor Controls.
Lesson 15: Boolean Representation of Ladder Diagrams
Programmable Logic Controllers (PLCs)
Introduction to Electro-pneumatic
Fluid Power System Electrical Control
Presentation transcript:

Lecture 5: PLC Programming

Logic functions using ladder diagram

Logic Operations There are also blocks in the ladder programming to implement various logic operations.

Example: 2-Handed RUN Actuation Consider a metal cutter that slices sheets of metal when actuated by an operator. By code, all such machines must have 2-handed RUN actuation. This means that the machine can only be cycled by an operator pressing two switches simultaneously that are separated by a distance such that both switches cannot be pressed by one hand. This assures that both of the operator’s hands will be on the switches and not in the machine when it is on.

Multiple outputs

Example For the following ladder rung: Output A occurs when input A occurs. Output B only occurs when both input A and input B occur.

Math Operations In the ladder programming, there are blocks to implement different types of mathematical operation such as addition and subtraction.

Latching There are often situations where it is necessary to hold an output energized, even when the input ceases. A simple example of such a situation is a motor which is started by pressing a push button switch. Though the switch contacts do not remain closed, the motor is required to continue running until a stop push button switch is pressed. Latching is particularly useful for making a momentary pushbutton switch perform as if it were a maintained switch. The latch circuit is a self-maintaining circuit in that, after being energized, it maintains that state until another input is received.

Latching Circuit with Start Button The circuit shown can be used to start a motor using the Start push button. When Start is pressed, the motor starts. When Start is released, the holding contacts maintain the circuit and hence the power to the motor. But how to stop the motor?

Latching Circuit with Start and Stop Buttons To stop the motor, we add another push button (Stop) which is normally closed. When Stop button is pressed, this disconnects the power to the motor and the holding contacts open. Thus when Stop is released, there is no power connected to the motor. In conclusion, we have a motor which is started by Start and stopped by Stop push buttons.

Safe and Unsafe Stop switches To ensure safety, stop switches has to be very carefully considered. We have to ensure that the Stop switch will do its job even when it fails. (a) In the previous start-stop circuit, the stop switch is unsafe (b) A safe stop switch

Safe and Unsafe Stop Switches In electrical circuits, the "open" failures (open switch contacts, broken wire connections, open relay coils, blown fuses, etc.) are statistically more likely to occur than any other type of failure. A stop switch is not safe if it is normally open and has to be closed to give the stop action. Imagine that the stop switch fails. It most likely fails open (becomes open permanently). In this case, the system cannot be stopped. A better arrangement is to program the stop switch in the ladder program as open and use a stop switch that is normally closed and operating opens it.

Special types of contacts and coils There are special types of contacts and coils which are associated with whether the input variable or power flow is having a +ve or –ve edge changes. They have the following symbols.

Positive and Negative transition-sensing Contacts Positive transition-sensing contact: when the associated variable changes from 0 to 1, power flows for one ladder rung evaluation. Negative transition-sensing contact: when the associated variable changes from 1 to 0,

Positive and Negative transition-sensing coils Positive transition-sensing coil: if the power flow to it changes from off to on, the output is set on for one ladder rung evaluation. Negative transition-sensing coil: if the power flow to it changes from on to off, the output is set on for one ladder rung evaluation.

Example For the ladder rung shown, with the input off there is no output. When the input switches on, there is an output from the coil. However, the next and successive cycles of the program do not give outputs from the coil even though the switch remains on. The coil only gives an output for one ladder rung evaluation the first time the switch is on.

Example: On-off liquid level control It is required to keep the water level between two levels: L (Low) and H (High). There are two sensors: one that gives 1 if the level is below L and the other gives 1 if the level is above H. If the level is below L, the valve is opened to fill the tank till the level reaches H when the valve closes. Design the ladder diagram for this control system.

SR Flip-Flop You may have noted that the previous example may be solved using the SR flip-flop memory action. It is interesting that there is a function block which implements the SR Flip-flop function with following truth table. Qn R S Qn-1 1

Quiz Design a ladder program to control a heater such that if the temperature is below 15°C, the heater is turned ON and if it is above 25°C, it turns OFF. Add a START button to turn the heater ON and a STOP button to forcibly turn it OFF. Also, there are two sensors: MIN which gives 1 if the temperature is below 15 and MAX which gives 1 if the temperature is above 25.

Quiz صمم برنامج للتحكم في تشغيل مدفأة بحيث إذا قلت درجة الحرارة عن 15 يتم التشغيل و إذا زادت درجة الحرارة عن 25 يتم فصل الكهرباء عنها. هناك مفتاح START لبدء العمل و آخر STOP لإيقاف المدفأة إجباريا. هناك حساس حرارة MIN يعطي Logic 1 عندما تكون درجة الحرارة أقل من 15 و آخر MAXيعطي Logic 1 في حال كانت الحرارة أعلى من 25.