Baixe o app para aproveitar ainda mais
Prévia do material em texto
© Springer-Verlag Berlin Heidelberg 2015 M. Gen et al. (eds.), Industrial Engineering, Management Science and Applications 2015, 85 Lecture Notes in Electrical Engineering 349, DOI: 10.1007/978-3-662-47200-2_10 Hands-on Industrial Process Modelling Using the MATLAB System Identification Toolbox Abubakar Sadiq Bappah Faculty of Technology Education, Abubakar Tafawa Balewa University, Bauchi, Nigeria asbappah@gmail.com Abstract. This paper employs a MATLAB based system identification toolbox (SID) to obtain a mathematical model of a loss-in-weight (LIW) feeder. In this study a pseudorandom binary sequence (PRBS) was used to excite a loss-in- weight feeder used in a cement manufacturing process. The input and output da- ta were then processed using a MATLAB system identification toolbox that yielded an ARMAX model of the process. The identified model was sufficient- ly validated in the MATLAB control toolbox. Details of data capture, system identification, open-loop simulation, and validation tests were presented in this paper. The results are well assuring to control practitioners and students that MATLAB SID toolbox is a perfect candidate for offline process identification. Keywords: Loss-In-Weight Systems, System Identification, Modeling, Raw Cement Feeder, MATLAB Control Toolbox. 1 Introduction A model is the result systematic and purposeful mapping of relationships between a system’s physical variables onto mathematical structures such as algebraic equations, differential equations or systems of differential equations. Mathematical models can be developed using different approaches. Theoretical approaches which employ phys- ical laws of nature and empirical approaches that are based on experimentation with the existing systems. Some other approaches may combine both theoretical and em- pirical methods. It is often beneficial, therefore, to combine mathematical model building with experiments [1]. However, if a plant cannot be experimented on or if the plant does not exist at all then theoretical modeling has to be employed to arrive at a mathematical model suitable for control algorithm synthesis and system simulation. Experimental modelling of a plant or system identification requires accurate mea- surement of input and output signals. The input signals can either be the operating signals of the plant or artificial test signals. This involves careful planning of the in- puts to be applied so that sufficient information about the system dynamics is obtained. This is imperative in obtaining good quality data that contains sufficient information about the system behavior [2]. There are two ways to carry out this process; by applying an excitation rich in desired frequencies and directly identifying a parametric model from input-output data or by finding a non-parametric frequency 86 A.S. Bappah response of plant by performing one or more experiments with periodic inputs. Then finding a parametric model based on frequency response samples. The measurements are processed in an identification procedure that yields the plant’s mathematical mod- el. The result of the identification is an experimental model. In this paper an experi- mental model is obtained for a loss-in-weight feeder used in a cement manufacturing industry. Input and output data from the plant are processed using the MATLAB sys- tem identification toolbox (SID) to yield an ARMAX model of the system. The pro- cedure elucidated the suitability of using MATLAB SID toolbox in process modeling. 2 System Description In the cement manufacture process, the rate at which the raw meal is fed into the kiln is one of the critical factors required to ensure product consistency and quality. The purpose of any feeder is to deliver material at a setpoint or desired rate. This rate or ‘feedrate’ is measured as units of weight delivered per unit of time, such as pounds per minute, tons per hour, etc. The feeder controller is the device that controls this operation by constantly measuring the actual feedrate of the material being delivered and comparing it to the desired feedrate and making corrections as necessary. The desired feedrate entered into the controller is called the ‘setpoint’. It can be entered directly into the controller by the operator or it may be imported from an external source, such as a remote analogue signal coming from the process. The output of the feeder controller is called the control signal which manipulates the rate at which the feeder delivers material. A Loss-In-Weight (LIW) feeder system consists of a hopper and feeder mounted on load cells commonly used to deliver raw cement at a desired feedrate. When operated in a continuous discharge mode, accurate gravimetric opera- tion is achieved by controlling the speed of the feeder in order to provide a constant decrease in the weight of the feed hopper [3]. Feedrate regulation is in the main based on closed-loop control to deliver powders and other bulk solids at a desired feedrate. Many industrial processes are designed to handle bulk solids, often in granular or powdered form. Various devices such as conveyors, screw augers, pneumatic tubes, vibrating platforms, bucket elevators, and so on can be used for transporting and meter- ing these materials. The screw conveyor varies the flow by varying the speed of the screw. A variable speed motor drives the feed screw that discharges the material. As the material is discharged from the hopper, a feeder controller keeps track of the weight; constantly comparing it to how much the weight should have decreased based on the set-point. If the weight is not decreasing fast enough, the controller increases the control signal to speed it up. If the weight is decreasing too fast on the other hand, the control signal will be decreased accordingly. To measure the feedrate, the hopper is mounted on load cells. The hopper is supported in such a way that the weight of the hopper and its contents is sensed by three load cells. An analog electrical signal from the load cells which corresponds to the mean weight on the load cells is used for feedback purposes. Two screw feeders actuated by thyristor driven variable speed motors are used to trans- fer material from the hopper at a specified rate [3]. The advantage of this method is that Hands-on Industrial Process Modelling Using the MATLAB System 87 there is no lag between the time the material is weighed and when it actually leaves the weighing device. Automatic control requires that the transport device be controllable over a reason- able range by means of some type of control variable. As material leaves the hopper, the weight will go down, showing a loss-in-weight to the controller. A microproces- sor-based controller MC2 is employed in the control loop’s error channel. It com- pares the feedrate set-point value with the actual feedrate and employs a digital PID control algorithm to generate the control signals that actuate the thyristor regulating the speed of the motors. The paper addresses the issue of designing and simulating an industrial process. A model of a LIW feeder is developed from actual open loop LIW process data using the MATLAB SID toolbox. The problem generally consists of data acquisition, estimation, characterization, and verification [4]. The procedure was fol- lowed to acquire input-output data necessary for system identification from a 45ton loss-in-weight raw cement feeder. Simulation results based on the identified process are then presented. 3 Data Acquisition The first and most important step is to acquire the input - output data of the system to be identified. Open loop input-output data relating PV to CO was extracted for the purpose of this study. The average operating SP for the feeder under investigation, Feeder 1 (main) was 90 tons per hour (TPH). At this constant SP, the CO was shifted between two levels by ±20% for the period of this experiment.The procedure was facilitated by the microprocessor based MC2 process controller in the “manual %” mode of operation. This is the first setpoint mode available in the MC2 feeder controller. This mode allows the user to control the controller output directly. There is no closed loop control of feedrate in this mode. The output to the motor speed con- troller can simply be regulated by setting this parameter which is adjustable from 0 to 100%. The method was both safe and realizable. The following algorithm shows the order in which identification data was obtained. Step 1: Log on SP @ 90TPH %feedrate set at 90 tph Step 2: Set to manual %manual mode @ ±20% of CO Step 3: While time < specified duration %read and store Read PV Read CO Step 4: Read SP %confirm SP Read clock %read and store in tie go to step 1. %loop Fig. 1 shows the LIW Feeder identification data set when imported and prepro- cessed. The upper sub - plot being the measured feedrate in tons per hour (output signal) and the lower sub - plot represents the input signal as % change in CO. The output data vector is a scaled measured feedrate in tons per hour (PV) while the input data vector is in form of percentage change in CO. That measured data set was 88 A.S. Bappah exported into the MATLAB the time delay. The data set to remove offsets noise, an description. This de-trend places through the action o Fedatdde is the final w range 501 to 1000 samples, F 4 Model Estimate The second step is estimatio structural parameters, whic and its model. Parameter where the best model is the There is a large number of choice of method is not cru Common approaches to par maximum likelihood (MLE MATLAB toolbox are pref sistently estimates models B workspace as Fedat.sid and examined to determ t is then preprocessed by means of filtering and detrend nd other spurious phenomena that may affect the proc ded working data, Fedatdd, is shared into two eq f select range prop-ups. The first range 0 to 500 samp working data for system identification. While the seco Fedatddv is the validation data. Fig. 1. Data Views with SID Toolbox s on, which involves determining the numerical values of ch minimize the error between the system to be identifi estimation can be formulated as an optimizing probl e one that best fits the data according to the given criteri different estimation methods. Interestingly, however, ucial as there is no method that is universally the best rameter estimation are the prediction error method (PEM E) and instrument-variable (IV). Parameterizations in ferably done with the PEM estimation method, which c from the data set. Although called conventional by m mine ding cess qual ples, ond f the fied, em, ion. the [5]. M), the con- many Hands-on Industrial Process Modelling Using the MATLAB System 89 researchers, the PEM method will consistently estimate a system if the data set is informative and the model set contains the true system, irrespective of whether or not data have been collected under feedback [4]. All these technical provisions are there- fore on the side of experiments in open-loop. 5 Model Structure The third step defines the structure of the system, for example, type and order of the differential equation relating the input to the output. The set of systems from which a model is chosen is usually defined by a model structure. Once the structure is cho- sen, an appropriate excitation is applied to the true plant and input-output data is measured [6]. Appropriateness here refers to the ability to outweigh the effect of disturbances and to excite the desirable system dynamics. The measured input - output data is then mapped into a model which best explains this data. Let { }e(t) be a pseudorandom sequence which is similar to white noise in the sense that .0)(τNas0τ)e(t)e(t N 1 N 1t ≠∞→→−∑ = (1) This relation is to hold for τ at least as large as the dominating time constant of the unknown system. Let y(t) and u(t) be scalar signals and consider the model structure . )e(t)C(q)u(t)B(q)y(t)A(q 111 −−− += (2) where .qcqc1)C(q .qbqb1)B(q .qaqa1)A(q nc nc 1 1 1 nb nb 1 1 1 na na 1 1 1 −−− −−− −−− +++= +++= +++= … … … (3) The parameter vector is taken as .)ccbba(aθ Tnc1nb1na1 ………= (4) The model in Eqn. (2) can be written explicitly as the difference equation .nc)-e(tc1)-e(tce(t)nb)-u(tb 1)-u(tbna)-y(ta1)-y(tay(k) nc1nb 1na1 +++++ +=+++ (5) 90 A.S. Bappah But the previous form using the polynomial formalism will be more convenient. This model is called an ARMAX model, which is short for an autoregressive moving aver- age with an exogenous signal (a control variable u(t) ). When all 0bi = , it is called an MA (moving average) process, while for an autoregressive (AR) process all 0ci = The ARMAX model structure is chosen and MATLAB is required to select the best model order in the range of 1 – 10. The result indicates that a second order ARMA model best describes the system under investigation. Using a sampling interval of 1secs, the state space model for the identified process is: .DuCxy .BuAxx kkk kk1k += +=+ (6) where [ ] [ ].0 and . 1.26540.0830 . 0 1 . 01 1.4060-0.8754- = = ⎥ ⎦ ⎤ ⎢ ⎣ ⎡ = ⎥ ⎦ ⎤ ⎢ ⎣ ⎡ = D C B A u is the control signal, y is the federate, and x is the state vector. The corresponding pulse transfer function is: . 0.4167 0.5833zz 0.2750 0.4750z U(z) Y(z) CO PV 2 +− +== (7) The process model can be re-written in the difference equation form as . 2)u(k0.27501)u(k0.4750 2)y(k0.41671)y(k0.5833y(k) −+− =−+−− (8) Fig. 2 reveals that the LIW is a self-regulating process with a considerably high overshoot of around 20% and settling period of about 0.80secs at known sampling rate. This configuration results into a steady state offset of about 0.1. These are indi- cators to an open loop stable second order process with trivial delay. The overshoot should be reduced to its barest minimum and the offset removed without jeopardy to the settling time. The process is therefore validated with the remaining one half of the data that were not used for model estimation (i.e. Fedatddv). Standard validation tools are residual analysis and cross – validation [7]. Hands-on Industrial Process Modelling Using the MATLAB System 91 Fig. 2. Time Response of the Identified Process 6 Model Validation The final step, verification, consists of relating the system to the identified model responses in time or frequency domain to instill confidence in the obtained model. Residual (correlation) analysis, Bode plots and cross-validation tests are generally employed for model validation. In the residual analysis models are statistically eva- luated by way of correlation tests. The auto–correlation and cross-correlation func- tions of the errors with the outputs do not go significantly outside the 99% confidence bounds as shown in Fig. 3. While, on the other hand, cross–validation test was admi- nistered to establish the percentage fit between the predicted and the measured output from the SID toolbox. Fig. 4 shows that the simulated outputs follow the measured output closely, since relatively very high percentage of fit was obtained. Though the process is self-regulating, its step response with a peak overshoot of around 20% and an offset of 10%, indicates the need for tight closed-loop control. 92 A.S. Bappah Fig. 3. The Auto-correlation and Cross-correlation Functions for Open-loop Feeder Model Fig. 4. Cross Validation Test for the Feeder Model Hands-on Industrial Process Modelling Using the MATLAB System 93 7 Conclusion This paper presented details of the determination of an experimental model a 45 ton loss-in-weight raw cement feeder. The complete hardware setup and the algorithm followed for data acquisition, analysis and interpretation have beenexplained. Details of the procedure used to identify the model of a loss-in-weight raw meal feedrate process have been presented. The approach employed the microcontroller in the fee- drate control loop to capture the process input and output experimental data with the control loop in manual mode. From the data the MATLAB system identification tool- box produced pulse transfer function for the process. Cross-validation test based on the comparative analysis between the actual and simulated open loop transient re- sponse of the model identified yielded a very high correlation. Simulation results indicate a great deal of flexibility and straightforward industrial process modelling using the MATLAB SID toolbox. Though the process is self-regulating, its step re- sponse with a peak overshoot of around 20% and an offset of 10%, indicates the need for tight closed-loop control. References 1. Majhi, S., Atherton, D.P.: Obtaining Controller Parameters for a New Smith Predictor Us- ing Autotuning. Automatica 36(11), 1651–1658 (2000) 2. Ljung, L.: System Identification: Theory for the User, 2 edn. Preniice Hall, New Jersey (1999) 3. Merricks Inc. Operation and Maintenance Instructions: MC2 Merricks Micro-computer Controller Software 30.00. HP. H & H Services Ltd, Nottinghamshire (1996) 4. Åström, K.J., Eykhoff, P.: System Identification—A Survey. Automatica 7(2), 123–162 (1971) 5. Kozin, F., Natke, H.: System Identification Techniques. Structural Safety 3(3), 269–316 (1986) 6. Balchen, J.G., Mummé, K.I.: Process Control: Structures and Applications. Van Nostrand Reinhold, New York (1988) 7. Dunn, P.F.: Measurement and Data Analysis for Engineering and Science, 3rd edn. CRC Press, Florida (2014) Hands-on Industrial Process Modelling Using the MATLAB System Identification Toolbox 1 Introduction 2 System Description 3 Data Acquisition 4 Model Estimate s 5 Model Structure 6 Model Validation 7 Conclusion References
Compartilhar