11. FLOWCHART BASED DESIGN



Similar documents
Programming A PLC. Standard Instructions

TRILOGI 5.3 PLC Ladder Diagram Programmer and Simulator. A tutorial prepared for IE 575 by Dr. T.C. Chang. Use On-Line Help

3BASIC RELAY INSTRUCTIONS

PROGRAMMABLE LOGIC CONTROL

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15

Fig 3. PLC Relay Output

Programming Timers CHAPTER 4-1 GOALS AND OBJECTIVES 4-2 MECHANICAL TIMING RELAYS

Ladder and Functional Block Programming

Programmable Logic Controllers Definition. Programmable Logic Controllers History

Programmable Logic Controllers

2011, The McGraw-Hill Companies, Inc. Chapter 5

Programming Logic controllers

2011, The McGraw-Hill Companies, Inc. Chapter 9

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

LADDER LOGIC/ FLOWCHART PROGRAMMING DIFFERENCES AND EXAMPLES

PLC Programming for Industrial Automation. Kevin Collins

Material taken from Fluid Power Circuits and Controls, John S. Cundiff, 2001

3PH2 or 3PHE 3 Phase Control Board

Automated Bottle Filling System

PLC SW and Programming. Nagy István, BMF BGK MEI

CHAPTER 11: Flip Flops

EXPERIMENT 2 TRAFFIC LIGHT CONTROL SYSTEM FOR AN INTERSECTION USING S7-300 PLC

ETZGAR CONVEYOR COMPANY Controls Section v12.05

The Secret of Hydraulic Schematics. BTPHydraulics

TIMING, COUNTING, AND DATA-HANDLING INSTRUCTIONS. Key Points

Programming Manual Catalog Numbers 1756 ControlLogix, 1769 CompactLogix, 1789 SoftLogix, 1794 FlexLogix, PowerFlex 700S with DriveLogix

Electrical Symbols and Line Diagrams

Programming Examples. B.1 Overview of Programming Examples. Practical Applications. Instructions Used

PLC Based Liquid Filling and Mixing

Analog Inputs and Outputs

Design Projects in a Programmable Logic Controller (PLC) Course in Electrical Engineering Technology

How to read this guide

Introduction to Pneumatics and Pneumatic Circuit Problems for FPEF Trainer

Programmable Logic Controllers

SIMPLIFIED VALVE CIRCUIT GUIDE

Process / Operation Symbols

STEP 7 MICRO/WIN TUTORIAL. Step-1: How to open Step 7 Micro/WIN

Successful completion of the course leads to the award of the Technical Training Solutions Competence Certificate PLC Programming

Section 5: Machine Overview

Michelin North America

CIM Computer Integrated Manufacturing

Recognizing and understanding schematic symbols will enable you to comprehend a circuit s function.

Lesson 12 Sequential Circuits: Flip-Flops

Creating Relay Logic Diagrams

Introduction. - Please be sure to read and understand Precautions and Introductions in CX-Simulator Operation Manual and

Cooking at the Speed of light!

Programmable Logic Controller PLC

MS41-22Ex0-R/24VDC MS41-22Ex0-R/115VAC MS41-22Ex0-R/230VAC

Introduction to Process Control Actuators

2.0 Installation 1. Remove the cover using a small flat blade screwdriver. Figure 2: Cover Removal

Understanding the IEC Programming Languages

Fault Diagnosis and Maintenance for CNC Machine. Based on PLC

Wires & Connections Component Circuit Symbol Function of Component. Power Supplies Component Circuit Symbol Function of Component

Operational Overview and Controls Guide. Two or Three Pump IronHeart Lite with Variable Frequency Drives

APPLIED PNEUMATICS AND HYDRAULICS H TUTORIAL HYDRAULIC AND PNEUMATIC CYLINDERS. This work covers part of outcome 2 of the standard Edexcel module.

Linear Motion and Assembly Technologies Pneumatics Service. Understanding the IEC Programming Languages

Single Channel Loop Detector

V1504 Vertical Platform Lift OWNER S MANUAL

SIMATIC. System Software for S7-300 and S7-400 Program Design A B C D. Programming Manual C79000-G7076-C Preface, Contents

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

Introduction to LogixPro - Lab

Industrial Automation course

V1504 Vertical Platform Lift OWNER S MANUAL

Process Mapping Guidelines

Learning Systems Software Simulation

HOW TO ORDER SAFETY PRODUCTS/SAFETY CONTROL SYSTEMS ELECTRICAL SAFETY CONTROLS

Speed Control Relays SX2

(Cat. No L3) Product Data

GANTRY ROBOTIC CELL FOR AUTOMATIC STORAGE AND RETREIVAL SYSTEM

7. Latches and Flip-Flops

SIMPLIFIED VALVE CIRCUIT GUIDE

Digital Electronics Detailed Outline

SHORT TRAINING COURSES

6. BOOLEAN LOGIC DESIGN

PC1131 Electric Air Compressor

SECTION Hot Water Heaters (Hot Water Recirculation Systems and Point-of-Use Water Heaters)

Unit 24: Applications of Pneumatics and Hydraulics

Wireless Home Security System Product Manual (Model #80355)

PRODUCTIVITY THROUGH INNOVATION 600 CONTROL DIRECT DRIVE TECHNICAL/OPERATION MANUAL

THERMO KING TRUCK & TRAILER UNIT ALARM CODES THIS DOCUMENT SHOWS ALL CURRENT ALARM CODES FOR THERMO KING TRUCK AND TRAILER UNITS.

CHAPTER 11 LATCHES AND FLIP-FLOPS

Systems BV. Brief User Manual. INADCO Densimeter. Z:\Documenten\SG-bepaler\Handleiding\eng\Brief User Manual V3_1a.

Automating witfi STEP7 in LAD and FBD

SECTION 13XXX CONTROL DESCRIPTION (DICP Models NC, 412, 622, 826, 1030)

Automating with STEP7 in LAD and FBD

2 SYSTEM DESCRIPTION TECHNIQUES

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

Reversing starter circuit for single phase induction motors Updated 1 st September 2008

EDI Distributor Control Interface Wiring and Setup Instructions

PC1130 Electric Air Compressor

Modbus RTU Communications RX/WX and MRX/MWX

Control of Boiler Operation using PLC SCADA

Pneumatic control for robotics and industrial automation Author: Naresh Raghavan

Fuel Cell Characterization Lab

Algorithm & Flowchart & Pseudo code. Staff Incharge: S.Sasirekha

Portable Evaporative Air Cooler. OWNER S MANUAL Read and save these instructions before use. Model: CL30XC

Transcription:

plc flowchart - 11.1 Topics: Describing process control using flowcharts Conversion of flowcharts to ladder logic Objectives: Ba able to describe a process with a flowchart. Be able to convert a flowchart to ladder logic. A flowchart is ideal for a process that has sequential process steps. The steps will be executed in a simple order that may change as the result of some simple decisions. The symbols used for flowcharts are shown in Figure 11.1. These blocks are connected using arrows to indicate the sequence of the steps. The different blocks imply different types of program actions. Programs always need a start block, but PC programs rarely stop so the stop block is rarely used. Other important blocks include operations and decisions. The other functions may be used but are t necessary for most PC applications. Start/Stop Figure 11.1 Flowchart Symbols Operation Decision I/O Disk/Storage Subroutine 11. FOWCHART BASED DESIGN 11.1 INTRODCTION

plc flowchart - 11.2 A flowchart is shown in Figure 11.2 for a control system for a large water tank. When a start button is pushed the tank will start to fill, and the flow out will be stopped. When full, or the stop button is pushed the outlet will open up, and the flow in will be stopped. In the flowchart the general flow of execution starts at the top. The first operation is to open the outlet valve and close the inlet valve. Next, a single decision block is used to wait for a button to be pushed. when the button is pushed the branch is followed and the inlet valve is opened, and the outlet valve is closed. Then the flow chart goes into a loop that uses two decision blocks to wait until the tank is full, or the stop button is pushed. If either case occurs the inlet valve is closed and the outlet valve is opened. The system then goes back to wait for the start button to be pushed again. When the controller is on the program should always be running, so only a start block is needed. Many beginners will neglect to put in checks for stop buttons.

START plc flowchart - 11.3 Open outlet valve Close inlet valve start button pushed? Open inlet valve Close outlet valve Is tank full? stop button pushed? Open outlet valve Close inlet valve Figure 11.2 A Flowchart for a Tank Filler The general method for constructing flowcharts is: 1. nderstand the process. 2. Determine the major actions, these are drawn as blocks. 3. Determine the sequences of operations, these are drawn with arrows.

plc flowchart - 11.4 4. When the sequence may change use decision blocks for branching. Once a flowchart has been created ladder logic can be written. There are two basic techniques that can be used, the first presented uses blocks of ladder logic code. The second uses rmal ladder logic. The first step is to name each block in the flowchart, as shown in Figure 11.3. Each of the numbered steps will then be converted to ladder logic 11.2 BOCK OGIC

plc flowchart - 11.5 STEP 1: Add labels to each block in the flowchart START Open outlet valve Close inlet valve start button pushed? Open inlet valve Close outlet valve Is tank full? stop button pushed? Open outlet valve Close inlet valve Figure 11.3 abeling Blocks in the Flowchart Each block in the flowchart will be converted to a block of ladder logic. To do this we will use the (Master Control Relay) instruction (it will be discussed in more detail later.) The instruction is shown in Figure 11.4, and will appear as a matched pair of outputs labelled. If the first line is true then the ladder logic on the following lines will be scanned as rmal to the second. If the first line is false the lines to the F6

plc flowchart - 11.6 next block will all be forced off. If a rmal output is used inside an block, it may be forced off. Therefore latches will be used in this method. Note: We will use instructions to implement some of the state based programs. This allows us to switch off part of the ladder logic. The one significant te to remember is that any rmal outputs (t latches and timers) will be FORCED OFF. nless this is what you want, put the rmal outputs outside blocks. A If A is true then the will cause the ladder in between to be executed. If A is false the outputs are forced off. Figure 11.4 The Function The first part of the ladder logic required will reset the logic to an initial condition, as shown in Figure 11.5. The line will only be true for the first scan of the PC, and at that time it will turn on the flowchart block which is the reset all values off operation. All other operations will be turned off.

plc flowchart - 11.7 STEP 2: Write ladder logic to force the PC into the first state first scan Figure 11.5 Initial Reset of States The ladder logic for the first state is shown in Figure 11.6. When is true the logic between the lines will be scanned, if is false the logic will be igred. This logic turns on the outlet valve and turns off the inlet valve. It then turns off operation, and turns on the next operation. F6

plc flowchart - 11.8 STEP 3: Write ladder logic for each function in the flowchart Figure 11.6 adder ogic for the Operation The ladder logic for operation is simple, and when the start button is pushed, it will turn off and turn on. The ladder logic for operation opens the inlet valve and moves to operation. outlet inlet

start plc flowchart - 11.9 Figure 11.7 adder ogic for Flowchart Operations and The ladder logic for operation turns off, and if the tank is full it turns on F6, otherwise is turned on. The ladder logic for operation is very similar. outlet inlet

tank full tank full stop stop plc flowchart - 11.10 Figure 11.8 adder ogic for Operations and The ladder logic for operation F6 turns the outlet valve on and turns off the inlet valve. It then ends operation F6 and returns to operation. F6 F6

F6 Figure 11.9 plc flowchart - 11.11 adder ogic for Operation F6 outlet In general there is a preference for methods that do t use statements or latches. The flowchart used in the previous example can be implemented without these instructions using the following method. The first step to this process is shown in Figure 11.10. As before each of the blocks in the flowchart are labelled, but w the connecting arrows (transitions) in the diagram must also be labelled. These transitions indicate when ather function block will be activated. inlet F6 11.3 SEQENCE BITS

START T1 Open outlet valve Close inlet valve plc flowchart - 11.12 start button pushed? Open inlet valve Close outlet valve Is tank full? T5 T2 T3 T4 stop button pushed? Open outlet valve Close inlet valve Figure 11.10 abel the Flowchart Blocks and Arrows The first section of ladder logic is shown in Figure 11.11. This indicates when the transitions between functions should occur. All of the logic for the transitions should be kept together, and appear before the state logic that follows in Figure 11.12. T6 F6

FS F6 start start stop full full stop plc flowchart - 11.13 Figure 11.11 The Transition ogic The logic shown in Figure 11.12 will keep a function on, or switch to the next function. Consider the first ladder rung for, it will be turned on by transition T1 and once function is on it will keep itself on, unless T2 occurs shutting it off. If T2 has occurred the next line of ladder logic will turn on. The function logic is followed by output logic that relates output values to the active functions. T1 T2 T3 T4 T5 T6

Figure 11.12 T1 T2 T3 T4 T5 F6 T6 F6 plc flowchart - 11.14 T2 T3 T4 T5 T4 T2 The Function ogic and Outputs T6 T6 F6 outlet inlet

plc flowchart - 11.15 Flowcharts are suited to processes with a single flow of execution. Flowcharts are suited to processes with clear sequences of operation. 1. Convert the following flow chart to ladder logic. start A on is B on? A off is C on? 2. Draw a flow chart for cutting the grass, then develop ladder logic for three of the actions/decisions. 3. Design a garage door controller using a flowchart. The behavior of the garage door controller is as follows, - there is a single button in the garage, and a single button remote control. - when the button is pushed the door will move up or down. - if the button is pushed once while moving, the door will stop, a second push will start motion again in the opposite direction. - there are top/bottom limit switches to stop the motion of the door. - there is a light beam across the bottom of the door. If the beam is cut while the door is closing the door will stop and reverse. - there is a garage light that will be on for 5 minutes after the door opens or closes. 11.4 SMMARY 11.5 PRACTICE PROBEMS

1. first scan B plc flowchart - 11.16 A A C C start A on is B on? A off is C on? 11.6 PRACTICE PROBEM SOTIONS

2. F8 F6 plc flowchart - 11.17 Start Get mower and gas can Is gas can empty? Fill mower Pull cord Is Mower on? F7 Push Mower Is all lawn cut? F9 Stop mower 0 Put gas and mower away get gas

FS gas can empty gas can empty plc flowchart - 11.18 F6 F7 F8 F9 0 mower gas can

gas can full T4:0/DN T4:0/DN cord pulled cord pulled F6 mower on mower on ETC... plc flowchart - 11.19 fill gas tank TON Timer T4:0 Delay 5s pour gas pull cord F6 F7 F6

3. ST1 ST2 ST3 ST5 ST7 ST6 ST8 ST9 start is remote or button pushed? turn on door close is remote or button or bottom limit pushed? turn off door close is remote or button pushed? turn on door open is remote or button or top limit pushed? turn off door open plc flowchart - 11.20 ST4 is light beam on?

first scan ST2 ST7 T4:0/DN plc flowchart - 11.21 ST1 ST2 ST3 ST4 ST5 ST6 ST7 ST8 ST9 TOF T4:0 preset 300s door open door close garage light

ST1 button remote ST2 plc flowchart - 11.22 ST1 ST2 ST2 ST3 door close

ST3 button remote bottom limit ST3 ST4 light beam light beam plc flowchart - 11.23 ST3 ST5 ST3 ST4 ST4 ST7 ST4 ST3

ST5 ST6 button remote ST7 plc flowchart - 11.24 ST5 ST6 door close ST6 ST7 ST7 ST8 door open

ST8 button remote top limit ST9 plc flowchart - 11.25 ST8 ST9 ST9 ST1 door open

1. Develop ladder logic for the flowchart below. Start Turn A on Is B on? Turn A off plc flowchart - 11.26 Is C on? 2. se a flow chart to design a parking gate controller. keycard entry light cars enter/leave gate car detector - the gate will be raised by one output and lowered by ather. If the gate gets stuck an over current detector will make a PC input true. If this is the case the gate should reverse and the light should be turned on indefinitely. - if a valid keycard is entered a PC input will be true. The gate is to rise and stay open for 10 seconds. - when a car is over the car detector a PC input will go true. The gate is to open while this detector is active. If it is active for more that 30 seconds the light should also turn on until the gate closes. 11.7 ASSIGNMENT PROBEMS

plc flowchart - 11.27 3. A welding station is controlled by a PC. On the outside is a safety cage that must be closed while the cell is active. A belt moves the parts into the welding station and back out. An inductive proximity sensor detects when a part is in place for welding, and the belt is stopped. To weld, an actuator is turned on for 3 seconds. As rmal the cell has start and stop push buttons. a) Draw a flow chart b) Implement the chart in ladder logic Inputs DOOR OPEN (NC) START (NO) STOP (NC) PART PRESENT 4. Convert the following flowchart to ladder logic. Outputs CONVEYOR ON WED 5. A machine is being designed to wrap boxes of chocolate. The boxes arrive at the machine on a conveyor belt. The list below shows the process steps in sequence. 1. The box arrives and is detected by an optical sensor (P), after this the conveyor is stopped (C) and the box is clamped in place (H). 2. A wrapping mechanism (W) is turned on for 2 seconds. 3. A sticker cylinder (S) is turned on for 1 second to put consumer labelling on the Start Turn off motor start pushed Turn on motor stop pushed

plc flowchart - 11.28 box. 4. The clamp (H) is turned off and the conveyor (C) is turned on. 5. After the box leaves the system returns to an idle state. Develop ladder logic for the system using a flowchart. Don t forget to include regular start and stop inputs.