EE Controls Lab #2: Implementing State-Transition Logic on a PLC

Similar documents
CS 135: Computer Architecture I. Boolean Algebra. Basic Logic Gates

Digital Design. Sequential Logic Design -- Controllers. Copyright 2007 Frank Vahid

CHAPTER 2 LITERATURE STUDY

Algorithms for Memory Hierarchies Lecture 14

Mesh and Node Equations: More Circuits Containing Dependent Sources

Sequential Logic (2) Synchronous vs Asynchronous Sequential Circuit. Clock Signal. Synchronous Sequential Circuits. FSM Overview 9/10/12

Dataflow Language Model. DataFlow Models. Applications of Dataflow. Dataflow Languages. Kahn process networks. A Kahn Process (1)

MATH 118 PROBLEM SET 6

Synchronous Generator Line Synchronization

Math Circles Finite Automata Question Sheet 3 (Solutions)

Synchronous Machine Parameter Measurement

Kirchhoff s Rules. Kirchhoff s Laws. Kirchhoff s Rules. Kirchhoff s Laws. Practice. Understanding SPH4UW. Kirchhoff s Voltage Rule (KVR):

A Novel Back EMF Zero Crossing Detection of Brushless DC Motor Based on PWM

Student Book SERIES. Patterns and Algebra. Name

DESIGN OF CONTINUOUS LAG COMPENSATORS

Spiral Tilings with C-curves

Polar Coordinates. July 30, 2014

ECE 274 Digital Logic

Module 9. DC Machines. Version 2 EE IIT, Kharagpur

LECTURE 9: QUADRATIC RESIDUES AND THE LAW OF QUADRATIC RECIPROCITY

Synchronous Machine Parameter Measurement

MOS Transistors. Silicon Lattice

Control and Implementation of a New Modular Matrix Converter

Seven Sisters. Visit for video tutorials

Understanding Basic Analog Ideal Op Amps

Solutions to exercise 1 in ETS052 Computer Communication

Student Book SERIES. Fractions. Name

ECE 274 Digital Logic Fall 2009 Digital Design

Digital Design. Chapter 1: Introduction

ECE 274 Digital Logic. Digital Design. Datapath Components Shifters, Comparators, Counters, Multipliers Digital Design

Ultra Low Cost ACCELEROMETER

CS2204 DIGITAL LOGIC & STATE MACHINE DESIGN fall 2008

& Y Connected resistors, Light emitting diode.

Misty. Sudnow Dot Songs

Lecture 16: Four Quadrant operation of DC Drive (or) TYPE E Four Quadrant chopper Fed Drive: Operation

(1) Primary Trigonometric Ratios (SOH CAH TOA): Given a right triangle OPQ with acute angle, we have the following trig ratios: ADJ

Example. Check that the Jacobian of the transformation to spherical coordinates is

Regular languages can be expressed as regular expressions.

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Three-Phase Synchronous Machines The synchronous machine can be used to operate as: 1. Synchronous motors 2. Synchronous generators (Alternator)

Domination and Independence on Square Chessboard

CS2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2005

Discontinued AN6262N, AN6263N. (planed maintenance type, maintenance type, planed discontinued typed, discontinued type)

Engineer-to-Engineer Note

Ultra Low Cost ACCELEROMETER

Interference Cancellation Method without Feedback Amount for Three Users Interference Channel

Lecture 20. Intro to line integrals. Dan Nichols MATH 233, Spring 2018 University of Massachusetts.

Mixed CMOS PTL Adders

Design and implementation of a high-speed bit-serial SFQ adder based on the binary decision diagram

MULTILEVEL INVERTER TOPOLOGIES USING FLIPFLOPS

TUTORIAL Electric Machine Modeling

Experiment 3: Non-Ideal Operational Amplifiers

Study on SLT calibration method of 2-port waveguide DUT

First Round Solutions Grades 4, 5, and 6

CAL. NX15 DUO-DISPLAY QUARTZ

Geometric quantities for polar curves

MAXIMUM FLOWS IN FUZZY NETWORKS WITH FUNNEL-SHAPED NODES

EET 438a Automatic Control Systems Technology Laboratory 5 Control of a Separately Excited DC Machine

Application Note. Differential Amplifier

Exercise 1-1. The Sine Wave EXERCISE OBJECTIVE DISCUSSION OUTLINE. Relationship between a rotating phasor and a sine wave DISCUSSION

To provide data transmission in indoor

MONOCHRONICLE STRAIGHT

Engineer-to-Engineer Note

(1) Non-linear system

Simulation of Transformer Based Z-Source Inverter to Obtain High Voltage Boost Ability

Section Thyristor converter driven DC motor drive

Experiment 3: Non-Ideal Operational Amplifiers

(CATALYST GROUP) B"sic Electric"l Engineering

SOLVING TRIANGLES USING THE SINE AND COSINE RULES

Compared to generators DC MOTORS. Back e.m.f. Back e.m.f. Example. Example. The construction of a d.c. motor is the same as a d.c. generator.

REVIEW QUESTIONS. Figure For Review Question Figure For Review Question Figure For Review Question 10.2.

Section 17.2: Line Integrals. 1 Objectives. 2 Assignments. 3 Maple Commands. 1. Compute line integrals in IR 2 and IR Read Section 17.

Installation and Operation Instructions

Proceedings of Meetings on Acoustics

Three-Phase NPC Inverter Using Three-Phase Coupled Inductor

Series. Teacher. Numbers

Direct Current Circuits. Chapter Outline Electromotive Force 28.2 Resistors in Series and in Parallel 28.3 Kirchhoff s Rules 28.

Engineering: Elec 3509 Electronics II Instructor: Prof. Calvin Plett,

From Off-The-Shelf to Market-Ready New Age Enclosures is your Single Source Solution. Let us quote modifiying our Stock Enclosures to meet your

Signal flowgraph concept First order integrator based filter Second order integrator based filter & biquads. Cascaded biquad sensitivity

The computer simulation of communication for PLC systems

Aquauno Select MINUTES. (duration) FREQUENCY LED. OFF 8h AQUAUNO SELECT 5 MIN FREQUENCY. the timer is being programmed;

5 I. T cu2. T use in modem computing systems, it is desirable to. A Comparison of Half-Bridge Resonant Converter Topologies

Abacaba-Dabacaba! by Michael Naylor Western Washington University

Threshold Logic Computing: Memristive-CMOS Circuits for Fast Fourier Transform and Vedic Multiplication

A Practical DPA Countermeasure with BDD Architecture

This is a repository copy of Effect of power state on absorption cross section of personal computer components.

Energy Harvesting Two-Way Channels With Decoding and Processing Costs

Birka B22: threaded in variation

Section 2.2 PWM converter driven DC motor drives

NUMBER THEORY Amin Witno

Homework #1 due Monday at 6pm. White drop box in Student Lounge on the second floor of Cory. Tuesday labs cancelled next week

Summary of Last Lecture

Logic Design of Elementary Functional Operators in Quaternary Algebra

Modeling of Conduction and Switching Losses in Three-Phase Asymmetric Multi-Level Cascaded Inverter

MEASURE THE CHARACTERISTIC CURVES RELEVANT TO AN NPN TRANSISTOR

SDI-12 Soil Moisture Transducer

From Off-The-Shelf to Market-Ready New Age Enclosures is your Single Source Solution. Let us quote modifiying our Stock Enclosures to meet your

Fuzzy Logic Controller for Three Phase PWM AC-DC Converter

On Decidability of LTL Model Checking for Process Rewrite Systems

Transcription:

Objective: EE 44 - Controls Lb #2: Implementing Stte-rnsition Logic on PLC ssuming tht speed is not of essence, PLC's cn be used to implement stte trnsition logic. he dvntge of using PLC over using hrdwre is tht progrmming is much esier nd more verstile thn building hrdwre. his lb ttempts to demonstrte tht stte-trnsition logic cn be implemented on PLC nd tht such implementtions re reltively esy to progrm. In order to implement switching logic, flip flops re required. wo bsic flip-flops re the, used in step, nd D, used in step 2. Once wy to implement flip flop is found, these cn be used to implement stte-trnsition logic, s described in step 4. Procedure: PLC Implementtion of Flip Flop. One wy to implement -flip flop uses synchronous logic. he output () should remin unchnged if =, nd flip if =. he eqution for this is = + his circuit cn then be implemented in ldder logic using the following progrm. Here, rising edge on switch # is detected in the first rung. his signl then toggles ccording to (). Step #: Progrm in the following circuit nd verify tht it does operte s -flip-flop. () P 2 2 2 Flip Flop second wy to build -flip flop is to use n up-counter tht counts to. If = initilly, the counter is enbled through the 4th rung. When pulses, the counter increments, setting =. When pulses gin, the counter is clered. Step #2: Progrm in the following circuit nd verify tht it behves s -flip flop. 2-

P 2 2 UCN 4 2 Flip Flop Set-Cler Flip Flops (D Flip Flops) second type of flip flop is D-type. Here, = when set (D) goes high. = on cler. wo different circuits which implement this function follow: he first uses synchronous logic with = cler + D cler. (2) he second uses counter. Step #3: Progrm in ech of the following two circuits. Verify tht the output is set when SW (D) is high nd is clered when SW2 (cler) is high. set cler 2 set cler D Flip Flop set cler 2 UCN 4 set cler x Implementing Switching Logic on PLC Problem: Design circuit which counts how mny times SW goes high. On the 4th count, strt counting from zero gin. Solution: One solution is to use stte-trnsition logic. Ech stte defines one set of events. In this cse, whether the switch hs been set,, 2, or 3 times. When SW- () pulses, you re to go to the next stte. his cn be expressed symboliclly s follows: 2-2

2 B C D Implementtion Using D-ype Flip-Flops Using flip-flops, ech stte is ssigned unique bit pttern. Since 4 sttes exist, two bits re required, 2, with the vlue of 2 corresponding to ech stte being rbitrrily defined in the bove figure. Once the stte-trnsition digrm is defined, the inputs to the flip flops s function of the input nd the stte is determined. ssuming tht D-type flip flops re being used, the Krnough mps for Set nd Cler re s follows. Set 2 X X X X Cler 2 X X X Set2 2 X X X Cler2 2 X X X For exmple, if you re in stte () nd the input is, you wnt to remin in stte. his mens tht Set should be zero nd Cler cn be nything. his is denoted s Set= nd Cler=X in the upper left corner of ech mp. he miniml covering mps which define ech input re denoted by the circles on the Krnough mps nd result in the equtions Set = 2 Cler = 2 + Set2 = Cler2 = + 2 ldder-logic progrm to implement these equtions long with D-flip flops follows: (3) 2-3

P 2 2 2 2 2 2 2 2 set cler set2 cler2 UCN 4 UCN 42 2 2 2 Step #6: Progrm in the bove circuit nd verify tht 2 pss through the sttes... ech time SW pulses high. Implementtion Using synchronous Logic Insted of using stte-trnsition logic, synchronous logic could lso be used. Here, the sttes, nd 2, should be = ( 2 + ) + ( 2 ) 2 = 2 + + 2 (Set if you're in stte or x nd is low. lso set if you're in stte nd is high.) Step #7: Implement the following progrm on PLC. Verify tht the sttes trnsition from... ech time SW goes high. (4) 2-4

P 2 2 2 2 2 2 2 2 2 2 2 2 2 Write-up: 2 2 ) Give the equivlent circuit for ech of the ldder-logic progrms using ND-OR-NO gtes. 2) Comment on the dvntges nd disdvntges of implementing switching logic with PLC's vs. discrete-components. 3) Comment on some of the dvntges nd disdvntges of using flip-flops insted of synchronous logic to implement switching logic. Which method would you prefer using if writing progrm? Which would you prefer if modifying someone else's progrm? Why? 4) Design J-K flip-flop using ltter logic. he logic digrm is J K 2-5