Database Hands-On: Water Tank and Heater

Similar documents
Microcontroller-based experiments for a control systems course in electrical engineering technology

Process Control Primer

Experiment 6 ~ Joule Heating of a Resistor

A Design of a PID Self-Tuning Controller Using LabVIEW

= V peak 2 = 0.707V peak

Implementing PID Temperature Control Using LabVIEW. Abstract. Introduction

Programming Logic controllers

Student Exploration: Circuits

Vaporization of Liquid Nitrogen

Electronic Control Devices The European Product Catalogue 2007

Mixing Valves. ARGUS Application Note: Mixing Valves

Best Practices for Controller Tuning

CGC s Hybrid System Loop Control

APPLICATION NOTE TESTING PV MICRO INVERTERS USING A FOUR QUADRANT CAPABLE PROGRAMMABLE AC POWER SOURCE FOR GRID SIMULATION. Abstract.

QNET Experiment #06: HVAC Proportional- Integral (PI) Temperature Control Heating, Ventilation, and Air Conditioning Trainer (HVACT)

Basic Op Amp Circuits

Dash 18X / Dash 18 Data Acquisition Recorder

TLK 48 MICROPROCESSOR-BASED DIGITAL ELECTRONIC REGULATOR

Operational Amplifier - IC 741

PC BASED PID TEMPERATURE CONTROLLER

Joule Equivalent of Electrical Energy

Series and Parallel Circuits

Evaluation copy. Build a Temperature Sensor. Project PROJECT DESIGN REQUIREMENTS

Maximum value. resistance. 1. Connect the Current Probe to Channel 1 and the Differential Voltage Probe to Channel 2 of the interface.

Sanitary Type Electronic Flow Switches

Operational Overview and Controls Guide

Workshop 7 PC Software - Tracker

Homework # Physics 2 for Students of Mechanical Engineering

MAS.836 HOW TO BIAS AN OP-AMP

TC-9102 Series Surface Mount Temperature Controllers

Multi-Range Programmable DC Power Supplies 9115 Series

INSTRUMENTATION AND CONTROL TUTORIAL 3 SIGNAL PROCESSORS AND RECEIVERS

Series and Parallel Resistive Circuits

Op-Amp Simulation EE/CS 5720/6720. Read Chapter 5 in Johns & Martin before you begin this assignment.

PID Control. Proportional Integral Derivative (PID) Control. Matrix Multimedia 2011 MX009 - PID Control. by Ben Rowland, April 2011

Using the STC firmware

T0118 T2118 T3118. Instruction Manual

Conversion Between Analog and Digital Signals

Hybrid Modeling and Control of a Power Plant using State Flow Technique with Application

Dyeing Programmer DP - 01

OPERATIONAL AMPLIFIERS. o/p

OAG Tools for General Users

Series /16 DIN Multi-Mode Bar Graph Display Timer TIMERS PRODUCT HIGHLIGHTS

Automation of a Vacuum Furnace

SYL-2372 PID TEMPERATURE CONTROLLER INSTRUCTION MANUAL Version 1.4 (May 2016)

Inrush Current. Although the concepts stated are universal, this application note was written specifically for Interpoint products.

3466 Building Energy Management Training Systems

Solutions to Bulb questions

HEAT PUMP FREQUENTLY ASKED QUESTIONS HEAT PUMP OUTDOOR UNIT ICED-UP DURING COLD WEATHER:

HITACHI INVERTER SJ/L100/300 SERIES PID CONTROL USERS GUIDE

dspace DSP DS-1104 based State Observer Design for Position Control of DC Servo Motor

Technical Support Bulletin Nr. 20 Special AC Functions

AN500T, AN1000, AN1000T, AN1500, AN1500T AN2000, AN2000T

Measuring, Controlling and Regulating with labworldsoft

Commercial Refrigeration Temperature and Defrost Controls

More Op-Amp Circuits; Temperature Sensing

Input signal Maximum Range Accuracy. Thermocouple E -50 to 700 C (-58 to 1832 F) ±1 C

High Voltage Power Supplies for Analytical Instrumentation

School of Engineering Department of Electrical and Computer Engineering

Welcome to this presentation on LED System Design, part of OSRAM Opto Semiconductors LED 101 series.

Using CFD for optimal thermal management and cooling design in data centers

Drive circuit basics + V. τ e. Industrial Circuits Application Note. Winding resistance and inductance

7. What is the current in a circuit if 15 coulombs of electric charge move past a given point in 3 seconds? (1) 5 A (3) 18 A (2) 12 A (4) 45 A

stable response to load disturbances, e.g., an exothermic reaction.

Waveforms and the Speed of Sound

Parallel DC circuits

The purposes of this experiment are to test Faraday's Law qualitatively and to test Lenz's Law.

Electronic Flow Switches

Op amp DC error characteristics and the effect on high-precision applications

How To Calculate The Power Gain Of An Opamp

SMS Alarm Messenger. Setup Software Guide. SMSPro_Setup. Revision [Version 2.2]

BASIC ELECTRONICS AC CIRCUIT ANALYSIS. December 2011

IQAN MDM Operation Manual

Temperature Transmitter TTX300

PID Microprocessor temperature controllers CTD43 - CTD46 - CTH46

Energy, Work, and Power

Technical Manual. FAN COIL CONTROLLER COOLING or HEATING ANALOG or PWM Art A

Current Loop Tuning Procedure. Servo Drive Current Loop Tuning Procedure (intended for Analog input PWM output servo drives) General Procedure AN-015

Chapter 10 Advanced CMOS Circuits

The Effect of Forced Air Cooling on Heat Sink Thermal Ratings

Dr. Yeffry Handoko Putra, S.T., M.T

Applying Pressure Independent Control Valves in H.V.A.C. Systems. A Presentation to: Orange Empire ASHRAE Santa Ana Nov. 17, 2009

Introduction to Electronic Signals

Digital Energy ITI. Instrument Transformer Basic Technical Information and Application

Thermodynamics - Example Problems Problems and Solutions

Perform Common Process Loop Control Algorithms

SERVICE MANUAL REFRIGERATION

DS 600. A contact free flux gate based current measurement sensor 600A rms

Bipolar Transistor Amplifiers

ELECTRIC HEATER COMPANY Operating and Maintenance Manual For Immersion Heating Elements

Surveillance System Using Wireless Sensor Networks

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

ES250: Electrical Science. HW7: Energy Storage Elements

Ω POWEROHM RESISTORS, INC. Braking Resistors for Variable Frequency Drives APPLICATION SELECTING A STANDARD DESIGN CUSTOM RATINGS

CONTROLS DATA MANAGEMENT PROCESS AUTOMATION EUROCUBE. General purpose single phase thyristors and solid state relays Product data.

The Operational Amplfier Lab Guide

FX07 Field Controller

Waves: Recording Sound Waves and Sound Wave Interference (Teacher s Guide)

R22. K Control. Indoor Unit. Nomenclature. Compatibility PL H 3 G K H B. Unit style Heat Pump Horse Power

Transcription:

Database Hands-On: Water Tank and Heater Exercise 1: Water Tank Simulation The goal is to simulate the water temperature in a heated tank. Implement an EPICS database called tank.db to accomplish this. The records that drive the calculation should process at 1 Hz. Assume that the water volume is constant, i.e. only the heater and the room temperature influence the water temperature. Implement analog (input, output?) records that allow configuration of the following: Room Temperature T R., initialized to 25 deg Celsius. Tank Isolation Constant K I, initialized to 0.01. Water Volume Heat Capacity c V, initialized to 0.001. Water Heater Voltage V H, restricted to 0 110 Volts. Use record names that start with a macro like $(user): to assert that your records are unique on the network, and set user=t1, t2, depending on your group! Create an EDM GUI that allows configuration of these records. Add a calc record to transform heater voltage V H into heater power P H. Hint: If your heater coil has a resistance R, its Power dissipation for a given voltage will be P H =(V H ) 2 /R. Pick your resistance such that your heater e.g. produces about 1100Watts at 110Volt. Add a slider for the voltage to the GUI, and an indicator for the resulting heater power. Implement a calc record that simulates the water temperature T, processing once per second. Each time the calc record is processed, it should calculate the new water temperature T(n) based on the previous water temperature T(n-1). Example: T(n) = T(n-1) + [T R -T(n-1)] K I + P H c V In here, the tank isolation constant would better be named tank wall heat conductivity. Extend the EDM screen and add a StripTool configuration so that you can exercise the database. In essence, the water temperature should increase when the heater is on, and approach room temperature when the heater is off.

Example EDM User Interface (already including the broken sensor simulation from a later exercise) In the preceding example, the parameters K I and c V may be chosen to simulate anything from a big water tank with excellent isolation down to a 1 oz paper cup. The initial suggestions were such that you can observe changes in water temperature on a reasonable time scale. In the example shown below, it takes the water a few minutes to cool from 50ºC down to the room temperature of 25ºC, and one can heat it back up in a minute: Example StripTool Graph Change the values temporarily to verify that you can simulate a system that heats quicker or has better thermal isolation.

Exercise 2: Heater Controller Room Temperature T R Setpoint T S Error E Controller Heater Voltage V H Water Tank Water Temperature T The goal is to add computer control to the water heater simulation. Create a new database control.db, meant to run together with the previous tank.db, that contains an analog input record for entry of the Setpoint Water Temperature T S Control Parameters (see below) Add calc records that determine the temperature error E(n) =T s -T(n) and generate an appropriate heater voltage. One commonly used generic control algorithm is the PID controller, which has proportional, integral and differential portions. Based on the current error E(n), it calculates a new output O(n) as follows, considering previous errors E(n-1), E(n-2), : O(n) = K P E(n) + K I Σ i E (i) dt + K D [E(n)-E(n-1)]/dt Some notes, including a simple PID introduction: dt, the time step, can be 1 second. In practice, the differential constant K D is often set to 0, because it is quite difficult to adjust. You can ignore the whole differential term of the PID equation. So we get: O(n) = K P E(n) + K I Σ i E (i) Assume our error is E(n)>0, meaning the water is too cold. Using a heater voltage of K P E(n) will turn the heater on whenever the temperature is too cold. If we re way below the setpoint, we ll add a lot of heat. When we re close, we ll add a little heat. That s the proportional or P part of the PID. Unfortunately, that leaves us a little short of the goal. In case we reached the setpoint, the error is of course zero, hence the heater turns off, and the temperature drops. This again results in a small error and thus a little heat, but not enough to reach the setpoint. A small, constant amount of heat is required to keep the setpoint. This could be added as a manual offset:

O(n) = K P E(n) + Offset, but then of course somebody has to tweak that manual offset to be correct The integral part of the PID controller, K I Σ i E (i) dt, is also known as automated offset. Instead of manually adjusting the offset for each given setpoint, the controller determines the offset by accumulating the small errors until they vanish. When using the integral part, it is useful to limit the integral value so that it does not grow out of bounds. Assert that the heater voltage stays within 0 110V! In the previous exercise, we manually adjusted the heater voltage. Now the output of the PID is supposed to set the heater voltage. Especially for testing, it is nice to be able to switch back and forth between manual and automated operation. One solution is to use an analog output record, DOL field set to read the output of your PID. The OMSL field then allows you to switch from closed_loop (DOL is used) to supervisory (operator interface can adjust value). We have only heating and no cooling. When experimenting, your tank temperature might soon hit 100ºC and you would have to wait until it cools down to room temperature. Remember that you can trick the simulation by simply setting the tank temperature to 0ºC via a caput or a message button on your EDM screen. Provide a user interface to the control.db records. The following example somewhat resembles the traditional look of hardware PID control boxes: Setpoint and readback shown in parallel, output of PID reflected below. Perform some tuning of the K P and K I parameters.

In the above example, the parameters where adjusted such that when modifying the setpoint, the heater initially goes to 0 or 110V (saturation), allowing the water temperature to quickly fall or rise. When the water temperature is getting close to the setpoint, the heater is regulated such that the setpoint is reached. In the following example, the parameters K P and K I were increased. The water temperature overshoots the setpoint and more violent adjustments of the heater follow, though in the end the setpoint is reached more quickly: In the last example, the chosen parameters are too big. The water temperature oscillates around the setpoint, but never reaches it:

Exercise 3: Additional Ideas Add a noise record that adds to the measured temperature and simulates a less-thanperfect measurement. Simulate a broken sensor. In reality, the temperature sensor for the tank could fail, often because of an open connection. Many A/D boards and well-written drivers would recognize this and put the associated analog input record in e.g. READ/INVALID alarm. All the records linked to this input record should use MS (maximize severity) links so that they, too, turn invalid. Simulate this situation: add a button to the user interface for selecting broken sensor. Depending on the setting of the button, you somehow fake a broken connection by e.g. switching from the simulated tank temperature to a constant ai record with HIHI/HSV settings that result in an INVALID status/severity. Add SNL code which determines the time from a changed setpoint until the water temperature reaches the new setpoint. Add calculated EDM fields that display the temperatures in Fahrenheit. Consider alarm handler configuration: What possible alarms are there? Add a configuration for ALH and run it.