Control Logic/Process Logic Summary and Worked out Example 2 Natalie Duchene Jeff Byrd Seung Youn Lyu.

Slides:



Advertisements
Similar presentations
Air Conditioners and Heaters
Advertisements

Laddomat 21 For accumulation when using a wood-fired boiler Picture 1
IF statement (i) Single statement. IF ( logical expression ) statement Example: read(*,*) a if (a. lt. 0) a = -a write(*,*) a Or read(*,*) a if (a < 0)
Intermediate Formulas & Functions Instructor: Rachel Baltus.
CS&E 1111 ExIFs IFs and Nested IFs in Excel Objectives: Using the If function in spreadsheets Nesting If functions.
Fuzzy Logic and its Application to Web Caching
In this presentation you will:
Conditional statements and Boolean expressions. The if-statement in Java (1) The if-statement is a conditional statement The statement is executed only.
Pascal Programming Today Chapter 4 1 »Conditional statements allow the execution of one of a number of possible operations. »Conditional statements include:
1 The changes of matter. 2 3 Heating Curve  When we heat a solid, its temperature increases, the substance melts at the melting point and becomes a.
Decisions (Conditional Programming) Chapter 5 (Sec. 5.1 & 5.2)
Basic Elements of Programming A VB program is built from statements, statements from expressions, expressions from operators and operands, and operands.
Determine whether each curve below is the graph of a function of x. Select all answers that are graphs of functions of x:
Chapter 12: Alternative Technologies To be used with the Guide to Building Energy Efficient Homes in Kentucky.
Change of state: Melting & Heating Curves Ice to Steam.
How does the ocean affect weather?. Ocean water is heated at the equator. Why does it heat up more at the equator than other parts of the world?
HYDRONIC HEATING AQUASTATS
Looking at systems. What is a SYSTEM? The radiator makes the room warmer by turning ON when the temperature of the room is lower than required The THERMOSTAT.
Chapter 3 Making Decisions
CHAPTER 4: CONDITIONAL STRUCTURES Introduction to Computer Science Using Ruby (c) 2012 Ophir Frieder et al.
Institute for Personal Robots in Education (IPRE)‏ CSC 170 Computing: Science and Creativity.
1 CSC 1401 S1 Computer Programming I Hamid Harroud School of Science and Engineering, Akhawayn University
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Programming Logic and Design, Second Edition, Comprehensive
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley STARTING OUT WITH Python Python First Edition by Tony Gaddis Chapter 4 Decision.
Saeed Ghanbartehrani Summer 2015 Lecture Notes #5: Programming Structures IE 212: Computational Methods for Industrial Engineering.
Lesson - 5. Introduction While programming, we usually need to decide the path of the program flow according to the parameters and conditions. Actually.
WRITING CONTROL STRUCTURES (CONDITIONAL CONTROL).
Bordoloi and Bock CONTROL STRUCTURES: CONDITIONAL CONTROLS.
5.04 Apply Decision Making Structures
Homeostasis A condition in which the internal environment of the body remains relatively constant despite changes in the external environment. Examples.
An Object-Oriented Approach to Programming Logic and Design Chapter 5 Making Decisions.
What is a Thermostats  A device which automatically regulates temperature. regulates temperature.regulates temperature.  Thermostats activates different.
Survival needs & homeostasis What we need to live and how we stay balanced.
Conditionals Conditional statements, called conditionals for short, are statements in the if-then or if-then-else form. Examples: “If the alarm goes off,
Algebra 1 Notes: Lesson 1-7: Logical Reasoning. Objectives Identify hypothesis and conclusion in a conditional statement Write a conditional statement.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 5 Making Decisions.
Stimulus/Response Internal Stimulus A stimulus that comes from inside your body. EX. hunger pains, emotions, and a full bladder.
KIMIA LINGKUNGAN BAGIAN 2: TERMODINAMIKA. PREVIEW In this third part of the course we:  define and apply a number of thermodynamic ideas and concepts.
 Very often when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do.
Calorimeter Experiment to Determine the Specific Heat of Aluminum
Components Pumps.
Decisions Chapter 4.
Chapter 5 Decisions. Chapter 5 Decisions ssential uestion: How are Boolean expressions or operators used in everyday life?
Topics The if Statement The if-else Statement Comparing Strings
Chapter 4: Decision Structures and Boolean Logic
Human Thermoregulation
Loop Control Structure.
2-1 Conditional Statements
Making Logical Decisions (IF-THEN-ELSE)
Program Flow Control Selection & repetition
Chapter 4: Decision Structures and Boolean Logic
Chapter 8: More on the Repetition Structure
Microsoft Excel – Part I
Friday September 8, 2017 Does the amount of coffee a person drinks between the ages affect their height as an adult? Write a hypothesis (if…,then…
Three Special Structures – Case, Do While, and Do Until
Introduction to Programming Using Python PART 2
Changing a solid to a liquid by heating it, is known as what? A.) freezing B.) variable C.) melting D.) evaporation L W.
ICT Programming Lesson 3:
SELECTIONS STATEMENTS
CHAPTER 4: Conditional Structures
Understanding Conditions
Section 6.1 Order of Operations
Section 6.1 Order of Operations
Homeostasis.
Chapter 4: Decision Structures and Boolean Logic
Heating & Cooling Graphs
Calorimeter Experiment to Determine the Specific Heat of Aluminum
Presentation transcript:

Control Logic/Process Logic Summary and Worked out Example 2 Natalie Duchene Jeff Byrd Seung Youn Lyu

Logic Controls IF-THEN Statements “IF” states the condition to evaluate that determines whether an additional step is taken “THEN” states the next step to take if the condition is true Parameters defined with constants or with set values EX:IF T < T1 THEN close V 1 (using a constant) IF T < 200°C THEN close V 1 (using a set value)

Logic Controls Continued ELSE Statements “ELSE” states the alternative step for an IF-THEN statement ELSE statement followed when IF condition is false EX:IF T < 200°C THEN close V 1 ELSE open V 2 V 2 will open only when T is less than 200°C

Logic Controls Continued IF-AND Statements Both the IF condition, as well as the AND condition must be true to continue WHILE statements used in place of IF-AND statements for efficiency EX:IF T > 100°C AND IF T < 200°C THEN close V 3 V 3 will close when T is between 100°C and 200°C

Logic Controls Continued WHILE Statements Simpler than multiple IF-AND statements Allows once to compare variable (T) to a range of values EX:WHILE 100°C < T < 200°C THEN close V 3 V 3 will close when T is between 100°C and 200°C

Worked out Example 2 Temperature control for a simulated cell on a computer chip

Chip has to remain at temperature between 96°F to 98°F Chip is attached to a thermostat Automatic switches/valves: – S1 controls the power supply of the chip – V1 controls the flow of cold water for cooling – V2 controls the flow of warm water for heating Worked out Example 2 Continued

Controlled Logic Scheme When the temperature gets out of range of 96 to 98°F, the power supply needs to be shut off: WHILE (96<T<98) S1 is on ELSE S1 is off Chip may have to be heated or cooled depending on the temperature state: – When temperature of the chip is above 98, cooling valve has to be open: IF (T>98) THEN V2 is open ELSE V2 is closed – When temperature of the chip is below 96, heating valve has to be open: IF (T<96) THEN V1 is open ELSE V1 is closed

Thank you!