Exercise 3 Logic Control

Similar documents
Linear Algebra Introduction

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals

PYTHAGORAS THEOREM WHAT S IN CHAPTER 1? IN THIS CHAPTER YOU WILL:

12.4 Similarity in Right Triangles

Lesson 2: The Pythagorean Theorem and Similar Triangles. A Brief Review of the Pythagorean Theorem.

Core 2 Logarithms and exponentials. Section 1: Introduction to logarithms

Functions. mjarrar Watch this lecture and download the slides

Discrete Structures, Test 2 Monday, March 28, 2016 SOLUTIONS, VERSION α

SOLUTIONS TO ASSIGNMENT NO The given nonrecursive signal processing structure is shown as

Propositional models. Historical models of computation. Application: binary addition. Boolean functions. Implementation using switches.

Overview of Today s Lecture:

Proving the Pythagorean Theorem

Matrices SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics (c) 1. Definition of a Matrix

Project 6: Minigoals Towards Simplifying and Rewriting Expressions

Section 1.3 Triangles

8 THREE PHASE A.C. CIRCUITS

Part 4. Integration (with Proofs)

CHENG Chun Chor Litwin The Hong Kong Institute of Education

Activities. 4.1 Pythagoras' Theorem 4.2 Spirals 4.3 Clinometers 4.4 Radar 4.5 Posting Parcels 4.6 Interlocking Pipes 4.7 Sine Rule Notes and Solutions

Test Generation from Timed Input Output Automata

Something found at a salad bar

NON-DETERMINISTIC FSA

System Validation (IN4387) November 2, 2012, 14:00-17:00

ILLUSTRATING THE EXTENSION OF A SPECIAL PROPERTY OF CUBIC POLYNOMIALS TO NTH DEGREE POLYNOMIALS

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS

A Study on the Properties of Rational Triangles

THE PYTHAGOREAN THEOREM

Polynomials. Polynomials. Curriculum Ready ACMNA:

CS12N: The Coming Revolution in Computer Architecture Laboratory 2 Preparation

SECTION A STUDENT MATERIAL. Part 1. What and Why.?

Algorithms & Data Structures Homework 8 HS 18 Exercise Class (Room & TA): Submitted by: Peer Feedback by: Points:

QUADRATIC EQUATION. Contents

TOPIC: LINEAR ALGEBRA MATRICES

Chapter 9 Definite Integrals

Reference : Croft & Davison, Chapter 12, Blocks 1,2. A matrix ti is a rectangular array or block of numbers usually enclosed in brackets.

Tutorial Worksheet. 1. Find all solutions to the linear system by following the given steps. x + 2y + 3z = 2 2x + 3y + z = 4.

Instructions. An 8.5 x 11 Cheat Sheet may also be used as an aid for this test. MUST be original handwriting.

LESSON 11: TRIANGLE FORMULAE

Fast Boolean Algebra

Unit 4. Combinational Circuits

NEW CIRCUITS OF HIGH-VOLTAGE PULSE GENERATORS WITH INDUCTIVE-CAPACITIVE ENERGY STORAGE

16z z q. q( B) Max{2 z z z z B} r z r z r z r z B. John Riley 19 October Econ 401A: Microeconomic Theory. Homework 2 Answers

Vectors. a Write down the vector AB as a column vector ( x y ). A (3, 2) x point C such that BC = 3. . Go to a OA = a

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014

Table of Content. c 1 / 5

Lecture 6: Coding theory

Proportions: A ratio is the quotient of two numbers. For example, 2 3

5. Every rational number have either terminating or repeating (recurring) decimal representation.

Reflection Property of a Hyperbola

Ch. 2.3 Counting Sample Points. Cardinality of a Set

Chapter 3. Vector Spaces. 3.1 Images and Image Arithmetic

CHAPTER 4: DETERMINANTS

Homework 3 Solutions

M A T H F A L L CORRECTION. Algebra I 2 1 / 0 9 / U N I V E R S I T Y O F T O R O N T O

Dorf, R.C., Wan, Z. T- Equivalent Networks The Electrical Engineering Handbook Ed. Richard C. Dorf Boca Raton: CRC Press LLC, 2000

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS

, g. Exercise 1. Generator polynomials of a convolutional code, given in binary form, are g. Solution 1.

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-378: Computer Hardware Design Winter Notes - Unit 1

ENGR 3861 Digital Logic Boolean Algebra. Fall 2007

CS 573 Automata Theory and Formal Languages

Chapter Gauss Quadrature Rule of Integration

2. Topic: Summation of Series (Mathematical Induction) When n = 1, L.H.S. = S 1 = u 1 = 3 R.H.S. = 1 (1)(1+1)(4+5) = 3

April 8, 2017 Math 9. Geometry. Solving vector problems. Problem. Prove that if vectors and satisfy, then.

Resources. Introduction: Binding. Resource Types. Resource Sharing. The type of a resource denotes its ability to perform different operations

Algebra Basics. Algebra Basics. Curriculum Ready ACMNA: 133, 175, 176, 177, 179.

m m m m m m m m P m P m ( ) m m P( ) ( ). The o-ordinte of the point P( ) dividing the line segment joining the two points ( ) nd ( ) eternll in the r

HS Pre-Algebra Notes Unit 9: Roots, Real Numbers and The Pythagorean Theorem

Intermediate Math Circles Wednesday 17 October 2012 Geometry II: Side Lengths

expression simply by forming an OR of the ANDs of all input variables for which the output is

Learning Objectives of Module 2 (Algebra and Calculus) Notes:

Behavior Composition in the Presence of Failure

Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs

Lecture Notes No. 10

Maintaining Mathematical Proficiency

3 Angle Geometry. 3.1 Measuring Angles. 1. Using a protractor, measure the marked angles.

Spacetime and the Quantum World Questions Fall 2010

Trigonometry Revision Sheet Q5 of Paper 2

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700: Digital Logic Design Fall Notes - Unit 1

where the box contains a finite number of gates from the given collection. Examples of gates that are commonly used are the following: a b

University of Sioux Falls. MAT204/205 Calculus I/II

Bases for Vector Spaces

KENDRIYA VIDYALAYA IIT KANPUR HOME ASSIGNMENTS FOR SUMMER VACATIONS CLASS - XII MATHEMATICS (Relations and Functions & Binary Operations)

Engr354: Digital Logic Circuits

GM1 Consolidation Worksheet

Mid-Term Examination - Spring 2014 Mathematical Programming with Applications to Economics Total Score: 45; Time: 3 hours

For a, b, c, d positive if a b and. ac bd. Reciprocal relations for a and b positive. If a > b then a ab > b. then

Non Right Angled Triangles

Inequalities of Olympiad Caliber. RSME Olympiad Committee BARCELONA TECH

m A 1 1 A ! and AC 6

INTEGRATION. 1 Integrals of Complex Valued functions of a REAL variable

ANALYSIS AND MODELLING OF RAINFALL EVENTS

Solutions to Assignment 1

Symmetrical Components 1

Generalization of 2-Corner Frequency Source Models Used in SMSIM

Lecture 27: Diffusion of Ions: Part 2: coupled diffusion of cations and

Numbers and indices. 1.1 Fractions. GCSE C Example 1. Handy hint. Key point

Geometry of the Circle - Chords and Angles. Geometry of the Circle. Chord and Angles. Curriculum Ready ACMMG: 272.

18.06 Problem Set 4 Due Wednesday, Oct. 11, 2006 at 4:00 p.m. in 2-106

Gauss Quadrature Rule of Integration

Transcription:

Exerise 3 Logi Control OBJECTIVE The ojetive of this exerise is giving n introdution to pplition of Logi Control System (LCS). Tody, LCS is implemented through Progrmmle Logi Controller (PLC) whih is lled Progrmmle Logi Devie (PLD), s well. Sine 7 s PLCs hve een widely pplied in prodution proess in ftories nd yrds. Additionlly, they re onvenient solutions lso for in-house pplitions, ity nd trffi lighting, gtes, mjor or minor industril proess ontrol, et. It is sed on n open-loop ontrol system. PLCs re relile, modifile, ost-effetive nd vstly essile devies. The logi ontrol is prt of disrete ontrol nd divided into two groups: onditionl nd sequentil. The onditionl ontrol is sed on Boolen lger nd we will tke into onsidertion only this group. Temporl nd event-sed ontrols whih elong to sequentil group re more importnt in the prtil use when e.g. timers or ounters re needed. REQUIREMENTS A. Prerequisite knowledge: You re expeted to know the following topis:. Boolen lger. Logi gte system 3. Bsi logi funtions, e.g.,, NOT, N, N, X, XN, et. MATLAB/SIMULINK. Applition of onditionl sttements under MATLAB. Construting the logi system under SIMULINK. To e fmilir with Logi Gte digrm, list of elements of Logi Gte Systems is given in the next pge. LAYOUT A ftory produes toy whih is then pked in ox. There re 3 prodution lines, e.g. ssemling, pinting nd leling, s re shown in the following figure: C C M M C3 C4 M3 3

The Elements of Logi Gte Systems Comintion Truth vlues (Boolen Alger) No. Nme Distintive Retngulr A B A B A + B 3 NOT A 4 N ( A B) 5 N ( A + B) 6 X A B 7 XN ( A B)

4 optil sensors: C, C, C3 nd C4 re used to ontrol 3 eletril motors (tutors): M, M nd M3. You hve to design suh logi ontrol system tht stisfies the following requirements: when the ox is on the first line, the first eletril motor should e turned on, ut to sve energy, the first eletril motor should e turned off when the ox is gone down on the seond line. when the ox is on the seond line, the seond eletril motor should e turned on, ut to sve energy, the seond eletril motor should e turned off when the ox is gone down on the third line. when the ox is on the third line, the third eletril motor should e turned on, ut to prevent dmge of the ox when the ox is not tken from the prodution line, the third eletril motor should e turned off till the ox is tken nd the prodution line is redy for the next ox. if the ox is not tken from the prodution line, even if the next ox is put on the first line, the first eletril motor should e kept off till the ox is tken from the third line.. Drw the ldder digrm of this ontrol system,. Write the logi eqution of the system, 3. Prove your solution using Boolen lger, 4. Mke the simultion under MATLAB nd SIMULINK. MATLAB/SIMULINK The following new MATLAB ommnds nd funtions re neessry to e understood nd pplied in this exerise: ~ & if else end while REPT In ddition to those points mentioned under lyout, your report should inlude:. The results of the simultion,. Disussion on possiility of one lterntive solution tking into ount numer of sensors, tutors nd the lgorithm of ontrol. EXAMPLE Consider rely-sed ontroller whih llows three swithes in room to ontrol single lmp. The requirement is tht eh swith hs to e le to turn on or off the lmp regrdless of the sttes of the other swithes so tht the lmp is turned on when only one or ll swithes re turned on. A possile solution is shown y the following ldder digrm:

L We hve here 3 sensors (swithes):, nd, nd one tutor L (lmp). There re 3 =8 different sttes of L (light). The following tle shows the stte of L using Boolen lger:........ L 3 4 5 6 7 8 As it is presented in this tle, L hs stte when: - Only one sensor hs high vlue ( ) - All three sensors hve high vlue ( ). This n e given y the following logi eqution: L = ( + + + ) or L = ( + ) + ( + ) The Logi Gte Digrm (LGD) desriing this eqution is s follows: L 6

The following funtion odes the model of this lighting system under MATLAB:» funtion L=light(,,)» n=~;» n=~;» n=~;» L=(n & n) ( & );» L=( & n) (n & );» L3= & L;» L4=n & L;» L=L3 L4; Then y setting the stte of sensors, we n ll the ove funtion whih is sved s ex3_fun to express the stte of the lmp, e.g.:» lmp=ex3_fun (,,) whih gives lmp = Plese notie tht the expression of» L=L3 L4; is equl to the following expression: if L3== L4== L=; else L=; end Therefore, we n mke our model using the onditionl sttements, s well. This model n e put under SIMULINK using LGD: Clok Mux tl To Workspe In Mux In Out In3 Light Where Light lok is susystem shown elow 7

In NOT not_ In NOT not_ not_ & or & & not_ & Out & 3 In3 NOT not_ not_ & not_ Or & The result whih is lled tl hs een trnsferred to the workspe. tl is mtrix with 5 olumns inluding time,,, nd L, resetively. Let us simulte the tivities of sensors:, nd y 3 different pulse genertors, e.g. with periods of 6, 4 nd seonds, respetively, ut with the sme mplitude nd 5% duty yle. The results re plotted in the next figure using the following sript:» t=tl(:,); =tl(:,); =tl(:,3); =tl(:,4); L=tL(:,5);» suplot(,,); plot(t,);xis([ - ]); ylel(''); xlel('');» suplot(,,); plot(t,);xis([ - ]); ylel(''); xlel('');» suplot(,,3); plot(t,);xis([ - ]); ylel(''); xlel('');» suplot(,,4); plot(t,l, r );xis([ - ]); ylel('l'); xlel(''); - 5-5 L - 5-5 The results re the sme s derived efore using Boolen lger. It is shown tht the lmp is turned on when ONLY ONE ALL of the swithes hve high stte. * * * 8