#*------------------------------------------------------------------- * EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC. * * This LIBRARY is free software; you can distribute it and/or modify * it under the therms of the ALSOC FREE LICENSE as available at * http://www.enq.ufrgs.br/alsoc. * * EMSO is distributed under the terms of the ALSOC LICENSE as * available at http://www.enq.ufrgs.br/alsoc. *----------------------------------------------------------------------- * Author: Jonathan Ospino P. * $Id: Tuning.mso 2012$ *---------------------------------------------------------------------*# #* Ideal PID Tuning tool Brief description ------------------ This tool allows the user to obtain the controller tuning parameters according to some of the most common PID tuning rules found in the literature.In order to be used this block, one must supply the following parameters: CASE 1: The parameters of the different elements of the control system are known: * Process characterization: Gain(K), Time Constant(Tau), and Dead Time (t0; if present). * Sensor-Transmitter: Gain(Km) and Time Constant(Taum). * Valve: Gain(Kf) and Time Constant(Tauf). CASE 2: The parameters of the FODPDT approximation of the response curve are known: In this case the process characterization are taken as the parameters of the FODPDT approximation. For making the algorithm constistent, the parameters of the other elements of control system must be set to ZERO!!! What results are reported to the user? -------------------------------------- According to the type of controller and the parameters specified, the block does the respective calculations and shows the following results for each of the different tuning rules: * Controller tuning parameters: - Controller proportional gain (Kc) - Controller integral time (TauI) - Controller derivative time (TauD) - Controller proportional band (PB) - Controller reset rate (TauI_R) References *Corripio and Smith. Principles of Automatic Process Control. 2005 *Luyben and Luyben. Essentials of Process Control.1997 *Marlin T. Process control : designing processes and control systems for dynamic performance. 2000 *# using "types"; Model PID_Tuning ATTRIBUTES Pallete=true; Icon="icon/Tuning"; Info="== Ideal PID Tuning == It computes the tuning parameters of an Ideal PID according to different tuning rules. This tool can be used in the following two cases: (1) If the parameters of the basic elements of the control system are known (Gain, time constant, and time delay). (2) If the parameters of a FODPDT approximation of the response curve are known. In the first case all the parameters must be specified normally. In the second case, however, the parameters of all the basic elements of the control system, but the process, must be specified as ZERO. In this case the process parameters are taken as the parameters of the FODPDT approximation of the response curve."; PARAMETERS # QUALITATIVE PARAMETERS Controller_Type as Switcher(Valid=["P","PI","PID"],Default="PID"); Lopez_et_al_Criterion as Switcher(Valid=["IAE","ISE","ITAE"],Default="IAE"); Rovira_et_al_Criterion as Switcher(Valid=["IAE","ITAE"],Default="IAE"); #PROCESS Kp as Real(Brief="<> or <>",Default=1); Taup as Real(Brief="<> or <