State Machine Example #2

Slides:



Advertisements
Similar presentations
Amplifying Signals Breadboarding: from a diagram to an actual working amplifier.
Advertisements

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.
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
* CPU (Central Processing Unit ) * CPU is the abbreviation for central processing unit. the CPU is the brains of the computer where most numerical and.

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.
Welcome to the World of Programmable Logic Controllers
Copyright © 2002 Delmar Thomson Learning Chapter 1 Welcome to the World of Programmable Logic Controllers.
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”.
0 Mining Methods Block 150 Level 330 Level 300 Level 270.
CSIE.NCTU, DL-6-1 Basic Design Approach of FSM Six Step Process 1. Understand the statement of the Specification 2. Obtain an abstract specification of.
Prepared by: Engr. Qurban Ali Memon 11ES (SEC- 1 & 2)
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.
Hardwired Control Department of Computer Engineering, M.S.P.V.L Polytechnic College, Pavoorchatram. A Presentation On.
Traditionally ladder logic programs have been written by thinking about the process and then beginning to write the program. This always leads to programs.
Copyright © 2002 Delmar Thomson Learning Chapter 13 Understanding Relay Instructions and the Programmable Controller Input Modules.
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
ME6702 MECHATRONICS OBJECTIVES: To impart knowledge about the elements and techniques involved in Mechatronics systems which are very much essential to.
Programmable Logic Controllers
Programmable Logic Control - Agenda
Mechatronics is as old as the history of modern engineering practice, But at the same time it is as new as few decades.
INTRODUCTION TO PLC.
Programmable control systems
IENG 475: Computer-Controlled Manufacturing Systems
Programmable Logic Controllers (PLCs) An Overview.
Chapter 14 Understanding Relay Instructions and the Programmable Controller Input Modules.
Pico Pico LAB#1 Starting & Stopping Motors.
  Figure 7.1 Track Layout with Input Sensors and Output Switches and Output Tracks.
Simple machines - Levers
On/Off Control (bang-bang) Proportional Control
Loops with Multiple Sensor Controls
On/Off Control (bang-bang) Proportional Control
Program Control Instructions.
MECH 1500 Motor Controls.
Stage 14: Bee: Debugging What is debugging?
ارگونومی کار با کامپیوتر
BC Technology Education Association
State Machine Example.
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
S RAJARAJAN_ASST PROF, BSARCIS&T
Example – Latching Relay Logic
Plc & scada applications
BC Technology Education Association
Finite State Machine II
State Machine Example #2
IENG 475: Computer-Controlled Manufacturing Systems Ladder Logic
IENG 475: Computer-Controlled Manufacturing Systems Logic Diagrams
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 #2

State Machine Example #2

State Machine Example #2 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

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)

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)

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

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

Do-More Videos Assignment https://www.automationdirect.com/do-more/brx/Support/index - Do-more Designer – WELCOME! - Do-more Designer – Quick Start - Do-more Way Part I, II, and III https://www.automationdirect.com/do-more/brx/Support/Do- more-Designer - Do-more Designer Program Control: SG Stage and JMP instructions