Simulation of Temperature Controller For An Injection Mould Machine Using Fuzzy Logic
Simulation of Temperature Controller For An Injection Mould Machine Using Fuzzy Logic
Simulation of Temperature Controller For An Injection Mould Machine Using Fuzzy Logic
net/publication/265597205
CITATION READS
1 367
1 author:
SEE PROFILE
All content following this page was uploaded by Jamal Ghobadi dizaj yekan on 08 October 2014.
Abstract
This research introduces a method for designing a linear fuzzy controller to control the temperature in an
injection mould machine. First, a time-delay system is introduced as the temperature control system. The fuzzy
controller system is composed of a heater transfer function controller and a decision maker. Both the controller
and the decision maker are designed using fuzzy logic, and simulated in MATLAB. For facilitating the
implementation of the fuzzy circuit, a linear equation is estimated from fuzzy equations using regression
method, and its response is compared to that of the fuzzy controller. Finally, a PID controller is designed and
its response is compared to the response of the fuzzy system.
Keywords: Fuzzy-PID, Temperature Control, Fuzzy Controller, PID Controller.
1. Introduction.
Fuzzy logic plays such a special role in control issues that it is considered as an intelligent controlling
method. In this paper the fuzzy method is used to control the temperature and as we see the response
gets better in this method. Three articles are used as basic references to complete this paper. In [1],
Prabha has modeled the heater of injection mould machine as a transfer function with time delay as
follow:
Ke−τs
G(S) =
TS+1
In this paper the same transfer function has been used to model the heater. In [2], Zhou has considered
input/output membership functions of the fuzzy controller in terms of temperature and of triangle type.
33
S.K. Mousavi, M. Zahiri, J. Ghobadi/ J. Math. Computer Sci. 7 (2013) 33 - 42
The same method has been used to design the fuzzy controller system described in section. in
[3],hanamane, has implemented a controller using microprocessor to control the injection mould machine
temperature. In aforementioned paper the implementation of this controller using fuzzifier and defuzzifier
has been argued and a flowchart algorithm with a fuzzy controller has been proposed. In this paper we
have used the same algorithm to simulate the fuzzy controller.
Implementing fuzzy rules in integrated circuits has some difficulties such as complex input/output rules
and computing decimal numbers. In this paper a linear time invariant equation has been estimated from
fuzzy rules using regression method. This equation facilitates modeling the fuzzy system and
implementation of fuzzy rules in integrated circuits [4].
3-Controller design
For aforementioned system a fuzzy and a pid controller are designed in MATLAB and the step results are
plotted for each system.
The pid compensator is designed so that the setting time of close loop system is reduced. The closed loop
system with pid compensator is shown in fig 1.
34
S.K. Mousavi, M. Zahiri, J. Ghobadi/ J. Math. Computer Sci. 7 (2013) 33 - 42
According to fig 2, the setting time is reduced to approximately 300 seconds and overshoots is 35% for this
system.
The membership functions are considered triangle type. Inputs/Outputs membership functions of fuzzy
compensator are specified as follow:
VN Very negativ
LN Low negativ
Z zero
LP Low positiv
VP Very positiv
Inputs/Outputs membership functions are shown in fig 3 and fig 5, and their rules are shown in fig 4.
35
S.K. Mousavi, M. Zahiri, J. Ghobadi/ J. Math. Computer Sci. 7 (2013) 33 - 42
The closed loop system with fuzzy compensator is simulated in MATLAB. The schema of simulation is shown
in fig 6.
The step response of the close loop system with fuzzy compensator is shown in fig 7
36
S.K. Mousavi, M. Zahiri, J. Ghobadi/ J. Math. Computer Sci. 7 (2013) 33 - 42
Figure7. step response of the close loop system with fuzzy compensator
Comparing the step results of close loop system with pid and fuzzy compensator we can see that the setting
time is reduced from 300 seconds to 60 seconds and overshoot is reduced to 0.06.
37
S.K. Mousavi, M. Zahiri, J. Ghobadi/ J. Math. Computer Sci. 7 (2013) 33 - 42
To relay the system output a voltage gain is used. The oven temperature variations using a pid compensator
and a switch as the controller is plotted and show in fig 9.
The oven temperature variates between 3.3 and 6.8 degrees. It means that the tolerance is 1.8 degrees. But
in critical situation, it needs to be almost constant or with a tolerance less than 0.5 degrees.
vl Very low
l low
ll About low
lh About High
h High
vh Very High
38
S.K. Mousavi, M. Zahiri, J. Ghobadi/ J. Math. Computer Sci. 7 (2013) 33 - 42
Then If
vhh vll
vh vl
h l
lh ll
ll lh
l h
vl vh
vll vvh
The degree of input and output member ship function and the relation of input-output rules are respectively
shown in fig 10, 11, 12.
39
S.K. Mousavi, M. Zahiri, J. Ghobadi/ J. Math. Computer Sci. 7 (2013) 33 - 42
The system with fuzzy controller is simulated in MATLAB and shown in fig 13.
To modeling the noise of the system a sinous wave whit an average of 5, amplitude of 5 and a frequency of
0.1 rad/s is added to system output as shown in fig 14.
The oven temperature variates between 4.55 and 5.45 degrees. It means that the tolerance is 0.45 degree.
y = p0 x + p1
40
S.K. Mousavi, M. Zahiri, J. Ghobadi/ J. Math. Computer Sci. 7 (2013) 33 - 42
MATLAB is used in order to obtain coefficients of regression equation. The regression equations are:
p0 = −0.9318
p1 = 4.6591
In fig 15, obtained equation is ploted. It is obvious that the regression, estimates the fuzzy rules, truly.
To compare the results of fuzzy system and regression equation the system is simulated using a polynomial
block as the temperature controller, shown in fig 16.
The oven temperature as results of fuzzy controller and regression equation are shown in fig 17.
41
S.K. Mousavi, M. Zahiri, J. Ghobadi/ J. Math. Computer Sci. 7 (2013) 33 - 42
Comparing the output of fuzzy and it’s regression we conclude that the regression of fuzzy system can be
used instead of fuzzy rules with comfort implementation and almost well respons.
References:
[1] Dr. I Santi Prabha, K Durga Rao, D Siva Rama Krishna “Fuzzy Logic Based Intelligent Controller Design
for an Injection Mould Machine Process Control” Department of ECE, EOW&G Director of University, Vol
No. 10, Issue No. 1, 098 – 103 (2011).
[2] H. Zhourll “Simulation on Temperature Fuzzy Control in Injection Mould Machine by Simulink”
IMechanical School in South China U. of Technology, Guangzhou 510641(2008).
[3] M.D. Hanamane “Implementation of fuzzy temperature control using microprocessor” journal of scientific.
Journal of scientific & industrial researchVol.65, February, pp.142-147 (2006).
[4] Curve Fitting Toolbox™ User’s Guide© COPYRIGHT 2001–2010 by The MathWorks, Inc.
[5] C.F. Juang, An automatic building approach to special Takagi-Sugeno fuzzy network for unknown
plantmodeling and stable control, Asian J. Control 5 (2), pp. 176-186 (2003).
[6] C.F. Juang and C.T. Lin, “An on-line self-constructingneural fuzzy inference network and its applications”,
IEEE Trans. Fuzzy Systems 6, pp. 12-32 (1998).
[7] P.J. King, E.H. Mamdani, the Application of Fuzzy Control Systemto Industrial Processes. in IFAC world
Congress.MIT.Boston (1975).
[8] K. Tanaka, M. Sugeno, “Stability analysis and design of fuzzy control systems” Fuzzy sets and systems,
(1992).
42