State Machine Example.

Slides:



Advertisements
Similar presentations
State Machines An approach to assembler coding. Intro State Machines are an integral part of software programming. State machines make code more efficient,
Advertisements

Amplifying Signals Breadboarding: from a diagram to an actual working amplifier.
Programming with Ladder Logic
Mechatronics and microprocessor. Outline Introduction System and design of system Control, measurement and feed back system Open and closed loop system.
A Next Generation OCS Welcome to Horner Operator Control Station Training.
4/24/05 BAE Motor Control PLCs and Ladder Logic An Introduction.
5/18/2015IENG 475: Computer-Controlled Manufacturing Systems 1 IENG Lecture 13 Logic Diagramming & Introduction to Programmable Logic Controllers.
Advantages of PLCs Cost effective for controlling complex systems. Flexible and can be reapplied to control other systems quickly and easily. Computational.
Creating Relay Logic Diagrams
State Machines in Ladder Logic Pure relay logic - traditional design: –2 states = 1 coil –3-4 states = 2 coils –5-8 states = 3 coils, etc. –difficult to.
Another Example. iSENSOR S0 S1 S2 iEXT /iSENSORiRET oCYL=1 oCYL=0.
Rollin Bicskei and Travis Haley Slab Mill. Objectives Background Mechanical – Specifications, System Diagram, CAD Hydraulic – Specifications, Schematic.
CS 140L Lecture 7 Professor CK Cheng 11/12/02. Transformation between Mealy and Moore Machines Algorithm: 1) For each NS, z = S i, j create a state S.
Control of Motion On/Off Control (bang-bang) Proportional Control –closed loop –open loop.
Programming Logic Controllers

ENGR480 Manufacturing Systems Spring Manufacturing Operations Processing –Shaping (solidification, deformation, material removal, or particulate.
Programming PLCs using LADDER Logic
Chapter 3: Completing the Problem- Solving Process and Getting Started with C++ Introduction to Programming with C++ Fourth Edition.
Project: Flexible Manufacturing System Manufacturing of segment display units.
New items for final exam. An indication of your current comfort level to the final exam is your responses to the following 8 practice question set. Pre-presentation.
0 Mining Methods Block 150 Level 330 Level 300 Level 270.
Operational Rule for Programming Programmable Logic Controllers.
Copyright © 2002 Delmar Thomson Learning Chapter 14 Documenting Your PLC System.
1 RLL: Relay Ladder Logic CONTENTS 1. PLC operation 2. PLC programming 3. Ladder logic 4. Memory and gates.
Status Report 6-Group 8 Sid Munshi Gabriel Castillo Jeff Burg Fahim Peermohammad The Intelli-Home October 3, 2006 To design and implement a control system.
S3 INNOVATION ELECTRONICS. LESSON TITLE: ELECTRONICS Learning Intention: To understand when to use different types of logic gates Activity: Building own.
AND Gate Inputs Output Input A (Switch) Input B (Switch) Output Y (Lamp) 0 (Open) 0 (OFF) A B Lamp.
Chapter - State Based Design Systems have modes of operation. The controller should move sequentially between these states.
Copyright © 2002 Delmar Thomson Learning Chapter 13 Understanding Relay Instructions and the Programmable Controller Input Modules.
Control of Motion On/Off Control (bang-bang) Proportional Control –open loop –closed loop.
Programmable Logic Controller
Xavier Chaney. What Are PLC’s??  Programmable Logic Controllers (PLC) are special-purpose computers designed for use in the control of a wide variety.
PLUS.
Discrete Control Logic
Chapter One Problem Solving
Programmable Logic Controllers
INTRODUCTION TO PLC.
NAME OF THE SUPERVISOR NAME OF THE STUDENT 
IENG 475: Computer-Controlled Manufacturing Systems
INTRODUCTION : PLC  PLC is the controller used to control the process or machine.  A Programmable Logic Controller is simply.
Programmable Logic Controllers (PLCs) An Overview.
Chapter 14 Understanding Relay Instructions and the Programmable Controller Input Modules.
Programmable Logic Controllers
On/Off Control (bang-bang) Proportional Control
CHAPTER - INTRODUCTION TO PLCS
Loops with Multiple Sensor Controls
On/Off Control (bang-bang) Proportional Control
Forward Until Touch Robot goes forward until it hits a wall.
MECH 1500 Motor Controls.
ارگونومی کار با کامپیوتر
BC Technology Education Association
Another Example iSENSOR S0 S1 S2 iEXT /iSENSOR•iRET oCYL=1 oCYL=0.
Documenting Your PLC System
PROGRAMMING.
On/Off Control (bang-bang) Proportional Control
PLC 5 I/O Addressing.
BRX Technical Training
State Machine Example #2
On/Off Control (bang-bang) Proportional Control
Example – Latching Relay Logic
On/Off Control (bang-bang) Proportional Control
BC Technology Education Association
State Machine Example #2
IENG 475: Computer-Controlled Manufacturing Systems Ladder Logic
IENG 475: Computer-Controlled Manufacturing Systems Logic Diagrams
BC Technology Education Association
Arithmatic Logic Unit (ALU). ALU Input Data :  A0-A3  B0-B3 Output Data :  F0 – F3.
Fluid Power System Electrical Control
Presentation transcript:

State Machine Example

State Machine Example

State Machine Example S0 S2 S1 oCYL=0 /iSENSOR•iRET iSENSOR iEXT

Example #2 State Diagram CurrSt iSENSOR iEXT iRET | NextSt ------------------------------------ S0 0 X X | S0 S0 1 X X | S1 S1 X 0 X | S1 S1 X 1 X | S2 S2 0 X 0 | S2 S2 0 X 1 | S0 S2 1 X X | S2 iSENSOR S0 S1 S2 iEXT /iSENSOR•iRET oCYL=1 oCYL=0

Example #2 State Diagram iSENSOR S0 S1 S2 iEXT /iSENSOR•iRET oCYL=1 oCYL=0 CurrSt iSENSOR iEXT iRET | NextSt ------------------------------------ S0 0 X X | S0 S0 1 X X | S1 S1 X 0 X | S1 S1 X 1 X | S2 S2 0 X 0 | S2 S2 0 X 1 | S0 S2 1 X X | S2 cS0 = cS2•/iSENSOR•iRET + cS0•/iSENSOR + /cS0•/cS1•/cS2 cS1 = cS0•iSENSOR + cS1•/iEXT cS2 = cS1•iEXT + cS2•/(/iSENSOR•iRET) = cS1•iEXT + cS2•(iSENSOR + /iRET)

State Machines in Ladder Logic Pure relay logic - traditional design: 2 states = 1 coil 3-4 states = 2 coils 5-8 states = 3 coils, etc. difficult to debug, modify and document Pure relay logic - “one-hot” design 1 coil per state easier to debug, modify, and document watch out for “illegal” states RLL-Plus “Stages” JMP “coils” easiest to write and maintain not available in all brands of PLC’s

Example #2 State Diagram iSENSOR S0 S1 S2 iEXT /iSENSOR•iRET oCYL=1 oCYL=0 cS0 = cS2•/iSENSOR•iRET + cS0•/iSENSOR + /cS0•/cS1•/cS2 cS1 = cS0•iSENSOR + cS1•/iEXT cS2 = cS1•iEXT + cS2•iSENSOR + cS2•/iRET)

Ex #2 - RLL-Plus Stages S0 S2 S1 oCYL=0 /iSENSOR•iRET iSENSOR iEXT

Multi-state Example When sensor detects block; clamp block, drill hole, shift, drill 2nd hole, shift back, release clamp

Inputs and Outputs iSENSOR block present iDRILLDN drill is down iDRILLUP drill is up iCLAMPED fully clamped iRELEASED fully unclamped iPOS1 unshifted iPOS2 shifted oDRILL start drilling oCLAMP activate clamp oSHIFT shift block holder

State Diagrams One state per “action” Look for “wait” states needed

State Diagram

RLL-Plus

RLL-Plus

RLL-Plus