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.

Slides:



Advertisements
Similar presentations
Programming with Ladder Logic
Advertisements

Unit 7 Discrete Controllers
Copyright © 2002 Delmar Thomson Learning Chapter 12 Basic Relay Instructions.
PROGRAMMING. Each PLC manufacturer offers a different set of instructions within its PLC family. Many of these instruction sets are not applicable to.
Programmable Logic Controller PLC
Elec467 Power Machines & Transformers
Programmable Logic Controllers
4/24/05 BAE Motor Control PLCs and Ladder Logic An Introduction.
EUT 1040 Lecture 10: Programmable Logic Controllers.
Chapter 6 Introduction to Logic.
Drafting RLL. SLC 500 Processor Operating Cycle Event in Operating Cycle Input Scan Program Scan Output Scan Communications Processor Overhead.
Switchgears Control Using SCADA System Based on PLC
1 The University of Jordan Mechatronics Engineering Department PLC: Programmable Logical Controller.
Introduction To Programmable Logic Controllers
Copyright © 2014 Rockwell Automation, Inc. All Rights Reserved. PUBLIC PUBLIC CO900G L04 - Basic PLC Programming with Micro800 ® Controllers.
Programmable Logic Controller
Lesson 15: Dc Motor Control Components and Diagrams
Lecture 4: Programmable logic Controllers
Programmable Logic Controller Internal Operations
PLC Fundamentals Module 2: Hardware and Terminology.
Chapter 19 Fundamental PLC Programming
Module 2: Hardware and Terminology
TRTS Team-6))EET-EL-5 15/5/ – Ibrahim Hamdy 219 – Salman Hassan About : PLC ( LOGO ) With Mr.Klaus Koevener.
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.
Programmable Logic Controller (PLC) - Introduction
PLC introduction1 Discrete Event Control Concept Representation DEC controller design DEC controller implementation.
PLC: Programmable Logical Controller
Program Control Instructions:
Industrial Process Control System Simon Hui Engineer Control and Informatics, Industrial Centre.
Programming PLCs using LADDER Logic
Programmable Logic Controller (PLC)
Memory Layout and SLC500™ System Addresses. Processor Memory Division An SLC 500 processor's memory is divided into two storage areas. Like two drawers.
Memory Layout and SLC500 System Addresses. Processor Memory Division An SLC 500 processor's memory is divided into two storage areas. Like two drawers.
©2008 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected under all copyright laws as they currently exist.
Implementing software in IEC Languages in IEC IEC uses the following languages Instruction List – Assembly level programming using.
CHAPTER 2: TYPES OF CONTROLLER
Logic Functions and Symbols
PROGRAMMABLE LOGIC CONTROLLER
Programmable Logic Controller (PLC)
PLC ARCHITECTURE - CPU by Dr. Amin Danial Asham.
LADDER PROGRAMMING LANGUAGE by Dr. Amin Danial Asham.
Electronic Analog Computer Dr. Amin Danial Asham by.
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.
PROGRAMMABLE LOGIC CONTROLLER (PLC) AND AUTOMATION
Programmable Logic Controllers
PLC ARCHITECTURE – Memory 2 by Dr. Amin Danial Asham.
Traditionally ladder logic programs have been written by thinking about the process and then beginning to write the program. This always leads to programs.
Ladder Concept.
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
SEMINAR ON P.L.C. SUBMITTED BY HRIDAY MUKHERJEE AMIT DEBNATH SOMNATH SHIL
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.
S7-200 PLC training courses
Chapter 5.
Seminar on "PLC” (Programmable Logic Controller)
Lesson 1 PLC BASICS. PLC Definition  Programmable Logic Controllers are industrial computers that control machine and other applications.  PLC have.
Lesson 1.C PLC PROGRAMMING.
Programmable Logic Controllers
Chapter 5.
PLC: Programmable Logical Controller
INTRODUCTION TO PLC.
Chapter 14 Understanding Relay Instructions and the Programmable Controller Input Modules.
S RAJARAJAN_ASST PROF, BSARCIS&T
ACOE347 – Data Acquisition and Automation Systems
Presentation transcript:

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 switch input circuits - the serial input chip is like a 24Vdc input card computer - the 686 CPU is like a PLC CPU unit output circuits - a graphics card is like a triac output card outputs - a monitor is like a light storage - memory in PLCs is similar to memories in personal computers

What is a PLC ? It is also possible to implement a PLC using a normal Personal Computer, although this is not advisable. In the case of a PLC the inputs and outputs are designed to be more reliable and rugged for harsh production environments.

What is a PLC ?

A PLC wiring example

Doing a PLC based design 1.Read the English or Arabic word description of the problem. 2.Draw the ladder diagram (PLC Program development) 3.Enter your program to the PLC (Programming the PLC) 4.AFTER ELECTRICAL WIRING, TEST YOUR SYSTEM !

Example A start switch, a stop switch A motor Press start once, motor should start Press stop once, motor should stop While running, pressing start has no effect While not running, pressing stop has no effect

PLC Program Development RSLogic 500 Software Other program development methods/software exist, but ladder diagram method is very popular.

Programming the PLC Some PLCs have simple “keyboards” for programming. RSLogic 500 Software

IEC 1131 Programming Standards Text based programming (Instruction List or Mnemonic) Graphical programming (Ladder diagram, …)

PLC Operation Sequence All PLCs have four basic stages of operations that are repeated many times per second. Initially when turned on the first time it will check it’s own hardware and software for faults. If there are no problems it will copy all the input and copy their values into memory, this is called the input scan. Using only the memory copy of the inputs the ladder logic program will be solved once, this is called the logic scan. While solving the ladder logic the output values are only changed in temporary memory. When the ladder scan is done the outputs will updated using the temporary values in memory, this is called the output scan. The PLC now restarts the process by starting a self check for faults. This process typically repeats 10 to 100 times per second as is shown in the above figure.

PLC Operation Sequence SELF TEST - Checks to see if all cards error free, reset watch-dog timer, etc. (A watchdog timer will cause an error, and shut down the PLC if not reset within a short period of time - this would indicate that the ladder logic is not being scanned normally). INPUT SCAN - Reads input values from the chips in the input cards, and copies their values to memory. This makes the PLC operation faster, and avoids cases where an input changes from the start to the end of the program (e.g., an emergency stop). There are special PLC functions that read the inputs directly, and avoid the input tables. LOGIC SOLVE/SCAN - Based on the input table in memory, the program is executed 1 step at a time, and outputs are updated. This is the focus of the later sections. OUTPUT SCAN - The output table is copied from memory to the output chips. These chips then drive the output devices.

When the inputs to the PLC are scanned the physical input values are copied into memory. When the outputs to a PLC are scanned they are copied from memory to the physical outputs. When the ladder logic is scanned it uses the values in memory, not the actual input or output values. The primary reason for doing this is so that if a program uses an input value in multiple places, a change in the input value will not invalidate the logic. Also, if output bits were changed as each bit was changed, instead of all at once at the end of the scan the PLC would operate much slower. The Input and Output Scans

Ladder logic programs are modelled after relay logic. In relay logic each element in the ladder will switch as quickly as possible. But in a program elements can only be examined one at a time in a fixed sequence. The Logic Scan Consider the ladder logic in Figure 8.4, the ladder logic will be interpreted left-to-right, top-to-bottom. In the figure the ladder logic scan begins at the top rung. At the end of the rung it interprets the top output first, then the output branched below it. On the second rung it solves branches, before moving along the ladder logic rung.

The Logic Scan

Ladder Diagram Format Reverse flow not allowed

Order in ladder diagrams

PLC Status The lack of keyboard, and other input-output devices is very noticeable on a PLC. On the front of the PLC there are normally limited status lights. Common lights indicate: power on - this will be on whenever the PLC has power program running - this will often indicate if a program is running, or if no program is running fault - this will indicate when the PLC has experienced a major hardware or software problem

PLC Status These lights are normally used for debugging. Limited buttons will also be provided for PLC hardware. The most common will be a run/program switch that will be switched to program when maintenance is being conducted, and back to run when in production. This switch normally requires a key to keep unauthorized personnel from altering the PLC program or stopping execution. A PLC will almost never have an on-off switch or reset button on the front. This needs to be designed into the remainder of the system.

INTRODUCTION TO PLC PROGRAMMING Dr. ONUR TOKER

Ladder diagrams

Boolean programming Boolean mnemonics

Ladder Diagram Symbols

EXAMINE-ON

EXAMINE-OFF

Output Coil

A Simple Example Activate the device at location Y IF A or C switch is ON AND B switch is ON

Latch

Unlatch

One-Shot Output

Transitional Contact

Summary

An example

PLC PROGRAMING BY EXAMPLES Dr. ONUR TOKER

A simple example

A motor example

Fail-safe designs

A more complex problem

Design 1 Press Forward then Backward ? Should stop first before backward !

Design 2 A better design

Alternative Design (Safety)

Design modification 1 1.In forward mode, SB button should stop the motor 2.In backward mode, SF button should stop the motor

Design modification 2 1.Add emergency shutdown/reset functionality

Complex Example 1

Complex Example 2

Complex Example 3 Tank with Low and High limit switches, and start/stop

Complex Example 4 “Locking trick” (Alternative to using a latch)

Complete PLC Design 1.Understand the problem 2.Learn about extras & limitations of your PLC 3.Ladder diagram programming 4.Program your PLC 5.Learn hardware details, I/O terminals and wiring diagrams of your PLC 6.Do actual wiring and then test your system

Micro Logic1200 Terminals

Micro Logic1200 Input Wiring

Micro Logic1200 Output Wiring

Electrical Symbols

QUESTIONS & THANK YOU