Proposal of a Fuzzy Control System for Heat Transfer Using PLC

Similar documents
CHAPTER 7 MODELING AND CONTROL OF SPHERICAL TANK LEVEL PROCESS 7.1 INTRODUCTION

JUSTIFICATION OF INPUT AND OUTPUT CONSTRAINTS INCORPORATION INTO PREDICTIVE CONTROL DESIGN

MATLAB TOOL FOR IDENTIFICATION OF NONLINEAR SYSTEMS

CDS 101/110a: Lecture 1.1 Introduction to Feedback & Control. CDS 101/110 Course Sequence

Multiple Model Based Adaptive Control for Shell and Tube Heat Exchanger Process

Modeling and Model Predictive Control of Nonlinear Hydraulic System

arxiv: v1 [cs.sy] 2 Oct 2018

Control Of Heat Exchanger Using Internal Model Controller

Comparison of Different Methods for Numerical Approximation of Static Characteristics of McKibben Pneumatic Artificial Muscle

A Boiler-Turbine System Control Using A Fuzzy Auto-Regressive Moving Average (FARMA) Model

Slovak University of Technology in Bratislava Institute of Information Engineering, Automation, and Mathematics PROCEEDINGS

TORQUE CHARACTERISTICS OF ROTARY PNEUMATIC MUSCLE ACTUATOR

FUZZY LOGIC CONTROL Vs. CONVENTIONAL PID CONTROL OF AN INVERTED PENDULUM ROBOT

Dynamics and Control of Double-Pipe Heat Exchanger

MOBILE ROBOT DYNAMICS WITH FRICTION IN SIMULINK

PREDICTIVE CONTROL OF NONLINEAR SYSTEMS. Received February 2008; accepted May 2008

Design and analysis of the prototype of boiler for steam pressure control

Subject: Introduction to Process Control. Week 01, Lectures 01 02, Spring Content

Use of Differential Equations In Modeling and Simulation of CSTR

Matlab-Based Tools for Analysis and Control of Inverted Pendula Systems

Modeling and Control Overview

Modeling of Hydraulic Control Valves

SIMULATION MODELS OF PROCESSES FROM THE AREA OF RAW MATERIALS PROCESSING CREATED IN MATLAB/SIMULINK

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING. MSc SYSTEMS ENGINEERING AND ENGINEERING MANAGEMENT SEMESTER 2 EXAMINATION 2015/2016

CM 3310 Process Control, Spring Lecture 21

ARTIFICIAL INTELLIGENCE MODELLING OF STOCHASTIC PROCESSES IN DIGITAL COMMUNICATION NETWORKS

A New Approach to Control of Robot

EXCITATION CONTROL OF SYNCHRONOUS GENERATOR USING A FUZZY LOGIC BASED BACKSTEPPING APPROACH

FPGA as a tool for hardware realization of feedback control

Dynamic simulation of DH house stations

Process Control Hardware Fundamentals

Algorithms for Increasing of the Effectiveness of the Making Decisions by Intelligent Fuzzy Systems

Reduced Size Rule Set Based Fuzzy Logic Dual Input Power System Stabilizer

Fuzzy Logic Sequence Control for Batch Sugar Centrifugal Machines

Hybrid predictive controller based on Fuzzy-Neuro model

Journal of Chemical and Pharmaceutical Research, 2014, 6(3): Research Article

Introduction to System Identification and Adaptive Control

Fuzzy Compensation for Nonlinear Friction in a Hard Drive

A Matlab/Simulink Toolbox for Inversion of Local Linear Model Trees

THE ANNALS OF "DUNAREA DE JOS" UNIVERSITY OF GALATI FASCICLE III, 2000 ISSN X ELECTROTECHNICS, ELECTRONICS, AUTOMATIC CONTROL, INFORMATICS

Fuzzy modeling and control of rotary inverted pendulum system using LQR technique

DECENTRALIZED CONTROL DESIGN USING LMI MODEL REDUCTION

Uncertain System Control: An Engineering Approach

Design and Comparative Analysis of Controller for Non Linear Tank System

CHAPTER V TYPE 2 FUZZY LOGIC CONTROLLERS

GAIN SCHEDULING CONTROL WITH MULTI-LOOP PID FOR 2- DOF ARM ROBOT TRAJECTORY CONTROL

Simulation based Modeling and Implementation of Adaptive Control Technique for Non Linear Process Tank

EE 4443/5329. LAB 3: Control of Industrial Systems. Simulation and Hardware Control (PID Design) The Torsion Disks. (ECP Systems-Model: 205)

YTÜ Mechanical Engineering Department

Model based control of a water tank system

VIRTUAL CONTROL SYSTEM OF EXOTHERMIC REACTOR USING THE CONTROLLER KRGN 90 VIRTUÁLNY RIADIACI SYSTÉM EXOTERMICKÉHO REAKTORA NA BÁZE KRGN 90

Design of Decentralized Fuzzy Controllers for Quadruple tank Process

NONLINEAR PREDICTIVE CONTROLLER: INFLUENCE OF ITERATIONS NUMBER ON REGULATION QUALITY

Numerical Approximation of Static Characteristics of McKibben Pneumatic Artificial Muscle

Available online at ScienceDirect. Procedia Engineering 100 (2015 )

Nonlinear Adaptive Robust Control. Theory and Applications to the Integrated Design of Intelligent and Precision Mechatronic Systems.

FUZZY CONTROL CONVENTIONAL CONTROL CONVENTIONAL CONTROL CONVENTIONAL CONTROL CONVENTIONAL CONTROL CONVENTIONAL CONTROL

Enhanced Fuzzy Model Reference Learning Control for Conical tank process

ADAPTIVE PID CONTROLLER WITH ON LINE IDENTIFICATION

Design and Tuning of Parallel Distributed Compensation-based Fuzzy Logic Controller for Temperature

Fuzzy PID Control System In Industrial Environment

Virtual Sensor Technology for Process Optimization. Edward Wilson Neural Applications Corporation

Auto-tuning of PID controller based on fuzzy logic

Identification and Control of Mechatronic Systems

CONTROL SYSTEMS, ROBOTICS AND AUTOMATION Vol. XVII - Analysis and Stability of Fuzzy Systems - Ralf Mikut and Georg Bretthauer

Mathematical Modeling of Diaphragm Pneumatic Motors

Model Predictive Control Design for Nonlinear Process Control Reactor Case Study: CSTR (Continuous Stirred Tank Reactor)

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING MSC SYSTEMS ENGINEERING AND ENGINEERING MANAGEMENT SEMESTER 2 EXAMINATION 2016/2017

Intelligent Systems and Control Prof. Laxmidhar Behera Indian Institute of Technology, Kanpur

5. Lecture Fuzzy Systems

AN INTELLIGENT HYBRID FUZZY PID CONTROLLER

Trajectory Planning, Setpoint Generation and Feedforward for Motion Systems

COMPARISON OF DAMPING PERFORMANCE OF CONVENTIONAL AND NEURO FUZZY BASED POWER SYSTEM STABILIZERS APPLIED IN MULTI MACHINE POWER SYSTEMS

FORECASTING OF ECONOMIC QUANTITIES USING FUZZY AUTOREGRESSIVE MODEL AND FUZZY NEURAL NETWORK

Humanoid Based Intelligence Control Strategy of Plastic Cement Die Press Work-Piece Forming Process for Polymer Plastics

Nonlinear PD Controllers with Gravity Compensation for Robot Manipulators

Computer Evaluation of Results by Room Thermal Stability Testing

Key-Words: - Simulation, Measurement, Superheaters, Partial differential equations, Model verification

LQR CONTROL OF LIQUID LEVEL AND TEMPERATURE CONTROL FOR COUPLED-TANK SYSTEM

RESEARCH ON AIRBORNE INTELLIGENT HYDRAULIC PUMP SYSTEM

NEURAL NETWORKS APPLICATION FOR MECHANICAL PARAMETERS IDENTIFICATION OF ASYNCHRONOUS MOTOR

Design and Implementation of PI and PIFL Controllers for Continuous Stirred Tank Reactor System

Using Neural Networks for Identification and Control of Systems

Decentralized Feedback Structures of a Vapor Compression Cycle System

Advanced Generalized Modeling of Classical Inverted Pendulum Systems

Experiment # 5 5. Coupled Water Tanks

Pass Balancing Switching Control of a Four-passes Furnace System

Solving of logic functions systems using genetic algorithm

Experimental Study of Fractional Order Proportional Integral (FOPI) Controller for Water Level Control

RamchandraBhosale, Bindu R (Electrical Department, Fr.CRIT,Navi Mumbai,India)

DESIGN OF FUZZY ESTIMATOR TO ASSIST FAULT RECOVERY IN A NON LINEAR SYSTEM K.

Robust Observer for Uncertain T S model of a Synchronous Machine

Click to edit Master title style

Instrumentation Selection Analysis for an Air Compressor System and Enhancement Proposal by Sensors Based on Nanostructures

Lecture 12. Upcoming labs: Final Exam on 12/21/2015 (Monday)10:30-12:30

Secondary Frequency Control of Microgrids In Islanded Operation Mode and Its Optimum Regulation Based on the Particle Swarm Optimization Algorithm

A Fuzzy Approach for Bidding Strategy Selection 1

PERFORMANCE ANALYSIS OF TWO-DEGREE-OF-FREEDOM CONTROLLER AND MODEL PREDICTIVE CONTROLLER FOR THREE TANK INTERACTING SYSTEM

Overview of the Seminar Topic

B1-1. Closed-loop control. Chapter 1. Fundamentals of closed-loop control technology. Festo Didactic Process Control System

Transcription:

Proposal of a Fuzzy Control System for Heat Transfer Using PLC Martin Nesticky (B), Tomas Skulavik, and Jaroslav Znamenak Faculty of Materials Science and Technology in Trnava, Slovak University of Technology in Bratislava, Paulinska 16, 917 24 Trnava, Slovak Republic {martin.nesticky,tomas.skulavik,jaroslav.znamenak}@stuba.sk Abstract. The article presents a fuzzy controller design for using PLC as a control system. The subject of controlling is a mathematical model of a heat exchanger modeled in Simulink. The control algorithm was developed and configurated in the FuzzyControl++ configuration tools for the automation of technical processes. The goal of the paper is to explore the possibilities to implement and realize the potential of fuzzy control in areas belonging to the domain of classical regulation. Model of the closed loop control system in virtual environment is used to perform multiple simulations to detect the system behavior under various conditions. It is concluded that the applied control strategies can offer same properties in progress of regulation and offer better approach to intuitive knowledge base design and configuration parameters of controller. Keywords: Fuzzy control Programmable logic controller Heat exchange 1 Introduction Efficient control is tightly related to improvements in the quality of industrial production processes. In complex plants, a choice has to be made between the various available strategies (conventional, fuzzy and neural) developed in last decades. In the industry, fuzzy logic is implemented in non-linear closedloop controllers, response prognostics of mathematically complex processes or a process automation application that cannot be solved with existing standard tools. Empirical process know-how and verbalized knowledge by experience can be directly transformed into controllers, patter identification or decision logic. Numerous intuitive software programs, which require only minimal specialist knowledge about fuzzy logic, allows to use fuzzy logic in many fields and applications of industrial automation. The model of an indirect heat exchanger and a Fuzzy control system is designed in this paper. For the designing process of the exchanger model, Matlab Simulink was used. Simulink is widely used to spread engineering ideas, including developing safety-critical software [1], designing industrial communication c Springer International Publishing AG 2017 R. Silhavy et al. (eds.), Artificial Intelligence Trends in Intelligent Systems, Advances in Intelligent Systems and Computing 573, DOI 10.1007/978-3-319-57261-1 2

12 M. Nesticky et al. systems [2], designing controllers for various systems [3, 4], and others. Fuzzy Logic Toolbox software provides the direct implementation of the control system into a simulation as in [5]. Nowadays, many processes operated by humans are automated using various control techniques. Conventional control technique performance, such as PID control, in itself is often inferior to that of the human operator. One of the reasons is that linear controllers, which are commonly used in conventional control, are not appropriate for nonlinear plants. Another reason is that humans aggregate various kinds of information and combine control strategies, that cannot be integrated into a single analytic control law. Fuzzy logic can capture the continuous nature of human decision processes and as such is a definite improvement over methods based on binary logic (widely used in industrial controllers). Programmable Logic Controller systems were used typical for discrete (event) control automotive, electronics, etc. Their primary goal was to replace the relay technology. Nowadays, wide instruction libraries including function block for continues control (well-designed PID, leadlag blocks, etc.) together with fuzzy toolboxes for PLCs and a universal fuzzy system for PLC with a possibility to convert Matlab fuzzy system into PLC s fuzzy structure do exist [6]. 2 Materials and Methods In this paper, mathematical model of controlled system represent heat transfer in indirect heat exchanger. The model is based on template system presented in [7]. The heat exchanger consist of two tanks. The tanks shares one wall as a partition. This partition is used for heat transfer and has surface area S. Warmer liquid A is in the first tank, with input temperature T 1 and output temperature T 10. Colder liquid B is in the second tank, with input temperature T 2 and output temperature T 20. In the system is a flow valve, which regulates the flow of the liquid A into the first tank (Fig. 1). In the considered system, q 1 denotes the amount of the fluid A in-flowing to the first tank with volume of V 1. The fluid B in-flows to the second tank with the amount of q 2. The second tank has volume V 2. The changes of temperatures of fluids in the tanks are expressed by the equation Fig. 1. Indirect heat exchanger

Proposal of a Fuzzy Control System for Heat Transfer Using PLC 13 dt 10 dt = q 1 T 1 q 10 T 10 k ss (T 10 T 20 ), (1) V 1 V 1 ρ 1 c p1 V 1 dt 20 dt = q 2 T 2 q 20 T 20 + k ss (T 10 T 20 ), (2) V 2 V 2 ρ 2 c p2 V 2 where k s is thermal conductivity of partition, ρ is density of liquids and c p is specific heat capacity of liquid. From these formulas, following block diagram was composed (Fig. 2). To build the model in Matlab Simulink it was necessary to take into account the adjustable input amount of the fluid q 1 using the input flow valve (Fig. 3). Controlling of the temperature of the fluid B in the second tank is made by adjusting q 1, the inflow of fluid A to the first tank. Blocks Divide modules were added to the block diagram, which enable setting input flow q 1 using the fuzzy controller. The required information about characteristics of the system was obtained from the modified model. The information was used to correct the design of the fuzzy controller. Fig. 2. Block diagram of indirect heat exchanger All parts of closed loop control system can be designed in Simulink, but it is possible to send some data out of the Simulink model for calculations. Figure 4 shows the model of controller. The error signal e and the change of the error de are obtained, their values are converted and then sent to the PLC. The PLC uses fuzzy logic to calculate the control signal u, which is send back to the Simulink. To imitate system with flow valve as a regulator, Limited Integrator was added as a subsystem (Fig. 5) where the function f(u) is as follows: f(u) : u[2] (((u[1] > 0) + (u[2] >=0)) > 0) (((u[1] < 1) + (u[2] <= 0)) > 0) (3) Proposal and testing the fuzzy control of the heat exchanger was carried out in Matlab Simulink. PLC systems is now used to implement the fuzzy logic in the control process. It is possible to implement fuzzy logic and fuzzy control

14 M. Nesticky et al. Fig. 3. Matlab model of indirect heat exchanger Fig. 4. Feedback control loop Fig. 5. Limited integrator

Proposal of a Fuzzy Control System for Heat Transfer Using PLC 15 in industrial controllers with FuzzyControl++, a Siemens configuration tool. Development and configuration of fuzzy system is divided into two steps. In first step, the model of control system is modified in FuzzyControl++. In second step, created data are downloaded to the PLC and the parameters are adjusted more precisely. Developing and testing of the PLC fuzzy controller was carried on in the virtual SIEMENS PLC S7-300. The processor was CPU315F-2 and MPI interface was used to communicate with FuzzyControl++. Real-time connection between Matlab Simulink and the PLC program was provided by the PLCSIM blockset. In the PLC, the function block FB30 contains all the fuzzy algorithms and procedures. The program automatically creates the data block DB30. This data block contains all the variables and the parameters which represent the structure of the fuzzy controller. The function block contains also the memory elements, which are required to call function block FB30. It was necessary to take into account, that if the Simulink model of heat exchanger uses data type of INTEGER, the input and output from function block FB30 is only data type of REAL. Therefore, conversion of input and output values are required in PLC program. The fuzzy controller was proposed as a Sugeno type and was designed in the FuzzyControl++. This controller has two inputs (error signal e and derivation of the error signal de), and it has one output signal (the control signal u). Both of the input signals e and de are defined by three membership functions. More functions does not improve the accuracy of control but proportionally increase the computation time. The functions were drafted in Membership Function editor using a Gaussian curve for each input signal. The error signal e was in the interval from 20 Cto20 C (Fig. 6) and the change of the error de was in the interval from 0.1 Cto0.1 C (Fig. 7). The control signal u is output from designed fuzzy module and this output signal is characterized by five membership functions close full, close more, without change, open more, open full. The function close full fully closes the flow control valve and the function open full fully opens the valve. The functions close more and open more control the valve setting in small steps. The function whitout change makes no change on valve setting. Features of controller also follows from fuzzy rules. Proper reaction of controller is dependent on the appropriate design of fuzzy rules. The rules are created and Fig. 6. Input variable e

16 M. Nesticky et al. Fig. 7. Input variable de Fig. 8. 3D representation of fuzzy rules edited in the editor of fuzzy rules. The fuzzy rules for calculating the value of the control signal u are as follows (Fig. 8): If(e is M) and (de is Z) then (u is whitout change) If(e is M) and (de is P) then (u is close more) If(e is M) and (de is N) then (u is open more) If(e is L) then (u is close full) If(e is H) then (u is open full) 3 Results and Discussion Sugeno fuzzy controller has been tested in several stages. At the beginning, proposed design of controller has to be tested. During this test, the control process was not affected by any error from outside and set point was static in time. The result of this test was correct response of the control signal to difference between set point and actual value of the output temperature of the liquid B. If the desired and the actual temperature were equal, then the control signal stays in its stabilized value. If the difference between the desired and the actual temperature were positive or negative then the control signal was decreasing or

Proposal of a Fuzzy Control System for Heat Transfer Using PLC 17 increasing. If the actual temperature was in the appropriate proximity of the set point then dynamical characterization was taken into consideration. Whether change of the actual temperature was positive or negative, the control signal was increasing or decreasing. The next stage involved testing in closed loop controlling of heat transfer. Initial condition of model parameter was set according the Table 1. Dynamical characterization of the actual temperature of the fluid B and desired temperature as a set point were compared. If controller failed in expected demands, then parameters of membership function were adjusted. Several simulations with constant values of a set point were performed and the progress of process variable was monitored. Table 1. Input parameters of the system Symbolic name Initial value Description ρ 1000 kg/m 3 Density of liquids k s 1000 Wm 2 /K Thermal conductivity of partition V 1 0.03 m 3 Volume of the 1st tank V 1 0.04 m 3 Volume of the 2nd tank S 2m 2 Surface area of partition c p1 c p2 4195 kj/(kg K) Specific heat capacity of liquid A 4183 kj/(kg K) Specific heat capacity of liquid B q 1 0.0001 m 3 /s Rate of flow of liquid A q 2 0.00021 m 3 /s Rate of flow of liquid B T 1 80 C Input temperature of liquid A T 10 80 C Output temperature of liquid A T 2 20 C Input temperature of liquid B T 20 20 C Output temperature of liquid B After fulfilling all requirements, the system was tested using a variable value for set point instead of constant value. In the model this signal was generated by the Signal Builder block. The signal was changing in steps and reaction of the fuzzy controller was monitored. Ability of system reaction in time shows Fig. 10. The test started with initial set temperature of 30 C. At the beginning, the desired temperature was 30 C. Overshoot appeared but it did not indicate the wrong functionality of the controller in this case. The transfer heat between liquids takes some time, so the controller responses to temperature changes gradually. Because of the inertia of the controlled system, it incurs a delay between the actual temperature and desired temperature. The fuzzy controller was also testing on ability to react on disturbance from outside. In the time 9000 s the rate of flow of liquid B decreased as show Fig. 9. Figure 10 shows the increase of real temperature due to the disturbance. The controller

18 M. Nesticky et al. Fig. 9. Trend of real temperature (PV) and desired temperature (SP) with disturbance at 600 s Fig. 10. Trend of actual temperature (PV) and desired temperature (SP) responded correctly and in the time 9200 the real temperature and desired temperature were equal. 4 Conclusion This study applied a fuzzy system for controlling heat transfer in indirect heat exchanger. The fuzzy system determines operating control parameters of heat exchanger based on the current states. The approach with the expert knowledge could obtain efficient and near-optimal solutions when compared to the simulation-optimization approach. The Fuzzy Control System was implemented in Programmable Logic Controller. The virtual plant models and simulation models with other principles support companies in identifying and implementing Industry 4.0 scenarios. Based on the engineering experience, the fuzzy logic technologies have been developed to consider the problems of optimization and decision making in the presence of uncertainty. Many applications of fuzzy logic in industry have been successfully developed. Acknowledgments. The authors would like to thank for financial contribution from the STU Grant scheme for Support of Young Researchers.

Proposal of a Fuzzy Control System for Heat Transfer Using PLC 19 The research work is supported by the Project KEGA 040STU-4/2016 Modernization of the Automatic Control Hardware course by applying the concept Industry 4.0 (Aplikacia konceptu Industry 4.0 v ramci modernizacie predmetu Technicke prostriedky automatizovaneho riadenia). This publication is the result of implementation of the project: UNIVERSITY SCIENTIFIC PARK: CAMPUS MTF STU - CAMBO (ITMS: 26220220179) supported by the Research & Development Operational Program funded by the EFRR. References 1. Rastocny, K., Zdansky, J.: Specificities of safety PLC based implementation of the safety functions. In: Proceedings of International Conference Applied Electronics, Pilsen, 5 7 September 2012, pp. 229 232 (2012). ISBN 978-80-261-0038-6, ISSN 1803-7232, IEEE Catalog Number: CFP1269A-PRT 2. Franekova, M., Kallay, F., Peniak, P., Vestenicky, P.: Communication security of industrial networks. Monography, EDIS ZU, Zilina (2007). ISBN 978-80-8070-715-6 3. Tothova, M., Pitel, M.: Reference model for hybrid adaptive control of pneumatic muscle actuator. In: 9th IEEE International Symposium on Applied Computational Intelligence and Informatics (SACI 2014), pp. 105 109. IEEE Press, Timisoara (2014) 4. Tothova, M., Pitel, M., Mizakova, J.: Electro-pneumatic robot actuator with artificial muscles and state feedback. Appl. Mech. Mater. 460, 23 31 (2014) 5. Tóthová, M., Pitel, J., Hošovský, A.: Simulation of hybrid fuzzy adaptive control of pneumatic muscle actuator. In: Silhavy, R., Senkerik, R., Oplatkova, Z.K., Prokopova, Z., Silhavy, P. (eds.) Intelligent Systems in Cybernetics and Automation Theory. AISC, vol. 348, pp. 239 246. Springer, Cham (2015). doi:10.1007/ 978-3-319-18503-3 24 6. Korosi, L., Turcsek, D.: Fuzzy system for PLC. Slovak University of Technology, Faculty of Electrical Engineering and Information Technology, Institute of Control and Industrial Informatics (2011) 7. Noskievic, P.: Modelovani a idendifikacia systemu, pp. 116 118. Montanex, Ostrava (1999). ISBN 80-7225-030-2

http://www.springer.com/978-3-319-57260-4