A Design of a PID Self-Tuning Controller Using LabVIEW



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

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

Data Acquisition Using NI-DAQmx

A Study of Speed Control of PMDC Motor Using Auto-tuning of PID Controller through LabVIEW

Implementing PID Temperature Control Using LabVIEW. Abstract. Introduction

EECE 460 : Control System Design

Measurement Products. PID control theory made easy Optimising plant performance with modern process controllers

Lab 3: Introduction to Data Acquisition Cards

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

Lab 4 - Data Acquisition

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

Introduction to LabVIEW for Control Design & Simulation Ricardo Dunia (NI), Eric Dean (NI), and Dr. Thomas Edgar (UT)

FAST METHODS FOR SLOW LOOPS: TUNE YOUR TEMPERATURE CONTROLS IN 15 MINUTES

OPERATIONAL AMPLIFIERS. o/p

Transmitter Interface Program

2.6. In-Laboratory Session QICii Modelling Module. Modelling Module Description

Using Wireless Measurements in Control Applications

Control of an industrial process using PID control blocks in automation controller

Temperature Controller CD401/CD901/CD701/CD501/CD100/CD101 Instruction Manual

Harmonics and Noise in Photovoltaic (PV) Inverter and the Mitigation Strategies

A simple method to determine control valve performance and its impacts on control loop performance

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

Cell Phone Vibration Experiment

Exercise 10: Basic LabVIEW Programming

EET 310 Programming Tools

Temperature Transmitter TTX300

Implementation of Fuzzy and PID Controller to Water Level System using LabView

TLK 48 MICROPROCESSOR-BASED DIGITAL ELECTRONIC REGULATOR

FUZZY Based PID Controller for Speed Control of D.C. Motor Using LabVIEW

Laboratory 4: Feedback and Compensation

AC : MATHEMATICAL MODELING AND SIMULATION US- ING LABVIEW AND LABVIEW MATHSCRIPT

Introduction to SMPS Control Techniques

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

EXPERIMENT NUMBER 5 BASIC OSCILLOSCOPE OPERATIONS

ELECTRICAL ENGINEERING

Speed Control Methods of Various Types of Speed Control Motors. Kazuya SHIRAHATA

Best Practices for Controller Tuning

PID Control. Chapter 10

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

Lab 1: The Digital Oscilloscope

Lambda Tuning the Universal Method for PID Controllers in Process Control

Modeling and Analysis of DC Link Bus Capacitor and Inductor Heating Effect on AC Drives (Part I)

Basic Op Amp Circuits

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

Dash 18X / Dash 18 Data Acquisition Recorder

The software beyond the climatic. Environment simulation

SECTION 5 Examples of Function Block Combinations

DIODE CIRCUITS LABORATORY. Fig. 8.1a Fig 8.1b

PC BASED PID TEMPERATURE CONTROLLER

FAST Fourier Transform (FFT) and Digital Filtering Using LabVIEW

LabVIEW Lesson 5 Clusters

PID control - Simple tuning methods

ISSN: ISO 9001:2008 Certified International Journal of Engineering Science and Innovative Technology (IJESIT) Volume 2, Issue 3, May 2013

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

Making Accurate Voltage Noise and Current Noise Measurements on Operational Amplifiers Down to 0.1Hz

Control and Simulation. in LabVIEW

Frequency Response of Filters

PID Control. 6.1 Introduction

MAS.836 HOW TO BIAS AN OP-AMP

Operational Overview and Controls Guide

Chapter 10. Control Design: Intuition or Analysis?

New Supervisory Control and Data Acquisition (SCADA) Based Fault Isolation System for Low Voltage Distribution Systems

LabVIEWTM. PID and Fuzzy Logic Toolkit User Manual. PID and Fuzzy Logic Toolkit User Manual. June D-01

Process Control Primer

Lab View with crio Tutorial. Control System Design Feb. 14, 2006

Precision Diode Rectifiers

Abstract. Cycle Domain Simulator for Phase-Locked Loops

Switch Mode Power Supply Topologies

SAMPLE CHAPTERS UNESCO EOLSS PID CONTROL. Araki M. Kyoto University, Japan

Optical Fibres. Introduction. Safety precautions. For your safety. For the safety of the apparatus

Operational Amplifier - IC 741

TEACHING AUTOMATIC CONTROL IN NON-SPECIALIST ENGINEERING SCHOOLS

Lock - in Amplifier and Applications

Industrial Steam System Process Control Schemes

ECE 3510 Final given: Spring 11

Vi, fi input. Vphi output VCO. Vosc, fosc. voltage-controlled oscillator

Degree programme in Automation Engineering

Section 3. Sensor to ADC Design Example

LabVIEW Day 1 Basics. Vern Lindberg. 1 The Look of LabVIEW

Microcontroller for Variable Speed BLDC Fan Control System. T.C. Lun System Engineer, Freescale Semiconductor, Inc.

PID Microprocessor temperature controllers CTD43 - CTD46 - CTH46

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

AIR QUALITY SURVEILLANCE BRANCH ACCEPTANCE TEST PROCEDURE (ATP) FOR. Teledyne Advanced Pollution Instruments Model 400 E Ozone Analyzer AQSB ATP 002

NOVA MULTI-MONITORING SOFTWARE. Instruction Manual

PID Controller Tuning: A Short Tutorial

PROCESS CONTROL SYSTEM DESIGN Process Control System Design. LECTURE 6: SIMO and MISO CONTROL

AC/DC Power Supply Reference Design. Advanced SMPS Applications using the dspic DSC SMPS Family

MODEL 4400 TEMPERATURE CONTROL Royalton Rd. Cleveland, OH (440) (440)

Positive Feedback and Oscillators

Impedance 50 (75 connectors via adapters)

Jump Start: Aspen HYSYS Dynamics V7.3

Hardware-in-the-Loop Simulation

Force/position control of a robotic system for transcranial magnetic stimulation

PID Tuning Guide. A Best-Practices Approach to Understanding and Tuning PID Controllers. First Edition by Robert C. Rice, PhD

Power Electronics. Prof. K. Gopakumar. Centre for Electronics Design and Technology. Indian Institute of Science, Bangalore.

Programmable-Gain Transimpedance Amplifiers Maximize Dynamic Range in Spectroscopy Systems

Ameritron ATP-102 Tuning Pulser II

Filter Comparison. Match #1: Analog vs. Digital Filters

D-MAX WEB GUIDE CONTROLLER WITH OPERATOR INTERFACE PANEL QUICK START SETUP MANUAL

Sensing and Control. A Process Control Primer

Transcription:

Journal of Software Engineering and Applications, 2011, 4, 161-171 doi:10.4236/jsea.2011.43018 Published Online March 2011 (http://www.scirp.org/journal/jsea) 161 A Design of a PID Self-Tuning Controller Using LabVIEW Mohammad A. K. Alia, Tariq M. Younes, Shebel A. Alsabbah Mechatroncis Engineering Department, Faculty of Engineering Technology, Al-Balqa Applied University, Amman, Jordan. Email: makalalia2000@yahoo.com, tariqmog@hotmail.com, shebel_asad@hotmail.com Received February 20 th, 2011; revised March 5 th, 2011; accepted March 9 th, 2011. ABSTRACT In this paper a trial has been made to design a simple self-tuning LabVIEW-based PID controller. The controller uses an open loop relay test, calculates the tuned parameters in an open loop mode of operation before it updates controller parameters and runs the process as a closed-loop system. The controller reacts on a persistent offset error value as a result of load disturbance or a set point change. Practical results show that such a controller may be recommended to control a variety of industrial processes. A GUI was developed to facilitate control-mode selection, the setting of controller parameters, and the display of control system variables. GUI makes it possible to put the controller in manual or self-tuning mode. Keywords: PID Control, Manual Tuning, Self-Tuning, Open-Loop Relay Test, Process Variable, System Offset Error 1. Introduction Proportional integral derivative (PID) control method (algorithm) has been the most popular control method, which is widely used in control engineering. From an automation perspective, PID is more than enough for 99% of control situations. It is well known that a great many systems have very simple dynamics and in these situations PID is often sufficient to provide the performance needed. Many industrial control loops that are nonlinear to some degree are linear enough in the control region near the set point for which PID control algorithm works fine. PID controllers can be more intuitive to tune. For example it is easier to reason out the expected behavior while changing one of the PID gains than pole placement option. There are many advantages of PID s such as their simplicity and possibility of coupling PID algorithm with smith predicator, feed-forward loops, nonlinear gain scheduling and other advanced control techniques [1,2]. PID controllers have some drawbacks that limit their effectiveness. One of the current difficulties with PID controllers is the gain tuning. Although there are autotuning algorithms available yet an experienced engineer is still required to fine tune the controller and ensure system stability. In the majority of cases PID tuning involves trial, (and) error and direct intervention of the operator during the tuning process particularly during distur- bance tuning when it is not always obvious whether the process variable is reacting to the control effort or to additional disturbances or measurement noise [3-5]. Another drawback of PID controllers is that process dynamics might change over time. This can happen due to variation of (changes of) the process load, and normal wear and tear. To compensate for process behavior change over time, expert users are required to recalibrate the PID gains. This drives up costs for labor and down time. In order to eliminate the need for operator intervention, it is recommended that control tuning be enabled when the process variable begins a limit cycle [6,7], which may be detected easily, also it contains enough information for determining a new set of controller parameters. This is what we are going to do. 2. Basic Idea and Design Considerations The target of this work is to design a LabVIEW based self-tuning PID controller and to verify its performance using a process flow-rate trainer which exists at the laboratory of process control. For this purpose an ISA standard form of PID algorithm was designed. In order to eliminate the effect of external noise on measurement, a low pass fifth order filter (FIR) is used. For controller to react on the controlled system error only, and to avoid flattering, the controller initiates the tuning process only

162 A Design of a PID Self-Tuning Controller Using LabVIEW after the existence of an error for a predetermined time interval. In order to realize the required time delay a specific ON- delay timer was designed in compliance with the concept of data flow programming [8]. The On-delay timer is illustrated in Figure 1. The range of set point is (0-2) V while the controller output range is (0-10) VS. In order to avoid problems associated with closed-loop tuning [4-5], the controller applies an open-loop set point relay test by forcing the process variable into a series of sustained oscillations known as a limit cycle. The operator has the choice to select the appropriate number of oscillations. In order to obtain more tuning accuracy it is preferred to increase the number of oscillations and take the average (T U ). Once the parameter settings have been loaded into the PID formula, the controller is returned to the automatic mode. In this connection we should refer to the basic difference between the designed self-tuning controller and the autotuning controller toolkit of LabVIEW [9]. We do not use a wizard and human intervention is excluded more over we apply an automatic open-loop tuning procedure instead of closed-loop tuning. 3. PID Self-Tuning VI Flowchart Figure 2 shows the flow chart. When the VI runs it reads the data from the analog input and filters the process variable. If the auto-tuning is activated by the auto-tuning pushbutton or as a result of disturbance, the controller switches to the open-loop mode. When the system is in steady state the tuning process starts. When a limit cycle exists with the required number of cycles, new PID parameters are evaluated, then PID controller parameters are updated and the auto-tuning process is stopped. If the stop pushbutton is not pressed the controller goes to next iteration, else it sends a zero output and stops. When the auto-tuning is off, the controller works as a normal PID controller, then it adds the required bias to its value and coerces it in range if the stop pushbutton is not pressed. 4. Description of Self-Tuning PID Controller VI 4.1. The Front Panel The front panel is shown in Figure 3. It includes the following controls and indicators. Controls: K p : the value of the proportional controller gain. K i : the value of the integral gain. K d : the value of the derivative gain K d. SP: desired steady state value. Bias: the value added to controller output and when the error equals zero the output equal the bias value. SS Ripple band: the accepted value of ripple for process variable in order to consider that steady state occurred. Relay Amplitude: the value of Sp relay. # of Cycles: the number of cycles that must occur to stop tuning. Mode: a select switch between automatic and manual mode. Manual Control: the value to send at manual mode. Manual: makes automatic to manual modes change. Auto Tuning: starts auto-tuning operation. Stop: the abort push button. Indicators: PV: the current value of process variable. Error: the value of subtracting current PV from SP. Out: the value of current controller output in volt. 4.2. The Block Diagram The block diagram is shown in Figure 4. It includes the PID auto-tuning (all features) SubVI, Filtering and smoothing wave form SubVI, and the waveform values average SubVI. The hierarchy of the VI is shown in Figure 5. The PID auto-tuning (all features) SubVI is shown in Figure 6. It includes the following SubVIs: 4.2.1. Restart Response VI It sends zero volt as a controller output when it is enabled. When the process variable (PV) becomes zero the process starts again. The block diagram is given in Figure 7.

A Design of a PID Self-Tuning Controller Using LabVIEW 163 Figure 1. On-delay timer block diagram. Figure 2. PID auto-tuning VI flow chart.

164 A Design of a PID Self-Tuning Controller Using LabVIEW Figure 3. The front panel of PID auto-tuning VI. Figure 4. PID auto-tuning VI block diagram.

A Design of a PID Self-Tuning Controller Using LabVIEW 165 Figure 5. PID auto-tuning VI hierarchy. Figure 6. PID auto-tuning (all features) block diagram.

166 A Design of a PID Self-Tuning Controller Using LabVIEW 4.2.2. Steady State Test SubVI It indicates when the (PV) is at steady state. The block diagram is shown in Figure 8. 4.2.3. Calculate Best PID Parameters VI The block diagram is given in Figure 9. 4.2.4. Check Oscillation SubVI It indicates if the (PV) is in an oscillatory mode. The block diagram is shown in Figure 10. 4.2.5. Find Iteration Time SubVI It calculates the time interval between every two iterations. The block diagram is shown in Figure 11. 4.2.6. SetPoint Relay Test SubVI If PV < (SP 0.5 dead band), then (SP = SP + relay amplitude) else if PV < (SP + 0.5 dead band), then (SP = SP relay amplitude). The block diagram is shown in Figure 12. 4.2.7. PID Controller SubVI It performs the standard PID algorithm. The block diagram is illustrated in Figure 13. This SubVI includes: Calculate Error SubVI Integral term SubVI Derivative term SubVI Figure 7. Restart response block diagram. Figure 8. SS test block diagram.

A Design of a PID Self-Tuning Controller Using LabVIEW 167 Figure 9. Calculate best PID parameters block diagram. Figure 10. Check oscillation block diagram. Figure 11. Find iteration time (dt) block diagram. 4.2.8. Stop Watch SubVI The block diagram is illustrated in Figure 14. 4.3. Filtering and Smoothing SubVI The VI performs double filtering for the read samples in one iteration (acquisition). Firstly it performs an averaging to improve the measurement, then uses (FIR) filter in order to eliminate noise effect on samples. The block diagram is shown in Figure 15. 4.3.1. Waveform for Values Average SubVI The block diagram is given in Figure 16. 5. Experimental Procedure and Experimental Results Initially, the designed PID self-tuned controller was installed. The hardware DAQ-board (PCI-MIO-16E-1) was also installed and the required input/output are configured. The feedback signal and the DAQ-board output were connected to a flow controller process trainer [10-11]. GUI software was designed and used to select the control mode, PID gain values. GUI allows the operator to run manual or self-tuning modes of operation.

168 A Design of a PID Self-Tuning Controller Using LabVIEW Figure 12. SP relay block diagram. Figure 13. PID controller block diagram. Figure 14. Stop watch block diagram.

A Design of a PID Self-Tuning Controller Using LabVIEW 169 Figure 15. Filtering & smoothing waveform block diagram. 5.1. Proportional Control Mode Initially the process is kept running in a proportional mode until it reaches a steady state. The user pushes the autotuning pushbutton which triggers the tuning process. The system switches to an open-loop mode. When it exists in a steady state the relay test starts. When the process variable oscillations are steady, the gain is calculated and then the controller gain is updated, and the process is run in a closed-loop mode. Figure 17 illustrates the tuning steps when: Set point = 4.00 V, K p = 1.39, relay voltage 1.00 V and the number of oscillations = 4. Figure 16. Waveform values average block diagram. Figure 17. A graph indicator for a P mode.

170 A Design of a PID Self-Tuning Controller Using LabVIEW Figure 18. A graph indicator for P mode. Figure 19. A graph indicator for PI mode.

A Design of a PID Self-Tuning Controller Using LabVIEW 171 Figure 20. A graph indicator for PID mode. Figure 18 shows a self-tuning process, when the system was subjected to a disturbance from the load side. The tuned gain value was found (K p = 1.42). 5.2. PI and PID Control Modes Tuning steps are the same as in proportional control mode. Figure 19 shows the tuning for a PI controller when Set point = 4.00 V, K p = 1.09, K I = 0.67. Figure 20 shows the tuning process of a PID controller when: Setpoint = 4.00 V, K p = 1.77, K I = 0.83 and K d = 0.19. 6. Conclusions Using LabVIEW software a self-tuning PID controller was designed and tested to control the water flow rate. The designed controller may be considered as a development to auto-tuning toolkit of labview. The controller includes a standard PID controller with the required SubVIs which enables an open-loop selftuning process without operator intervention. A manual tuning option is also available. REFERENCES [1] Advanced Features in PID Tuning Development Library 2006, National Instruments USA. [2] Improving PID Controller Performance, Development zone National Instruments USA. [3] V. Van Doren, Fundamentals of Self-Tuning Control, Control Engineering, Vol. 54, No. 7, July, 2007. [4] V. Van Doren, Applications of Self-Tuning Control, Control Engineering, Vol. 54, No. 9, July, 2007. [5] V. Van Doren, Auto-Tuning Using Ziegler-Nicholas, Control Engineering, Vol. 53, No. 10, 2006. [6] D. I. Wilson, Relay-Based PID Tuning, Automation and Control, Auckland University of Technology, New Zeland, February-March 2005, pp. 10-11. [7] K. J. Astrom and Wittenmark, Adaptive Control, Addison-Welsey Publishing Company Inc., Massacusttes, USA. [8] G. W. Johnson, LabView Graphical Programming, MCGarw-Hill, Inc., 2006, New York. [9] PID Contol Toolkit Manual, National Instruments, 2006. http://www.ni.com. [10] Flow Rate and Level Control Trainer (with DDC Controller under CASSY Lab), LEYBOLD DIDACTIC GMBH, LEYBOLD DIDACTIC Company, Germany. [11] E. D. Bolat, Y. Bolat and K. Erkan, Temperature Control Using Improved Auto-Tuning PID Control Methods, Kocaeli Unversity, Istanbul, 1999.