Академический Документы
Профессиональный Документы
Культура Документы
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 congurated in the FuzzyControl++ conguration 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 condi-
tions. It is concluded that the applied control strategies can oer same
properties in progress of regulation and oer better approach to intuitive
knowledge base design and conguration parameters of controller.
1 Introduction
systems [2], designing controllers for various systems [3,4], and others. Fuzzy
Logic Toolbox software provides the direct implementation of the control sys-
tem 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 rea-
son 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 denite 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, lead-
lag blocks, etc.) together with fuzzy toolboxes for PLCs and a universal fuzzy
system for PLC with a possibility to convert Matlab fuzzy system into PLCs
fuzzy structure do exist [6].
dT10 q1 q10 ks S
= T1 T10 (T10 T20 ), (1)
dt V1 V1 1 cp1 V1
dT20 q2 q20 ks S
= T2 T20 + (T10 T20 ), (2)
dt V2 V2 2 cp2 V2
where ks is thermal conductivity of partition, is density of liquids and cp is
specic 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 uid q1 using the input
ow valve (Fig. 3). Controlling of the temperature of the uid B in the second
tank is made by adjusting q1 , the inow of uid A to the rst tank. Blocks Divide
modules were added to the block diagram, which enable setting input ow q1
using the fuzzy controller. The required information about characteristics of the
system was obtained from the modied model. The information was used to
correct the design of the fuzzy controller.
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 ow 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.
edited in the editor of fuzzy rules. The fuzzy rules for calculating the value of
the control signal u are as follows (Fig. 8):
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 uid B and desired tempera-
ture as a set point were compared. If controller failed in expected demands, then
parameters of membership function were adjusted. Several simulations with con-
stant values of a set point were performed and the progress of process variable
was monitored.
After fullling 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 ow 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 tem-
perature 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 knowl-
edge could obtain ecient 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 nancial contribution from
the STU Grant scheme for Support of Young Researchers.
Proposal of a Fuzzy Control System for Heat Transfer Using PLC 19
References
1. Rastocny, K., Zdansky, J.: Specicities of safety PLC based implementation of the
safety functions. In: Proceedings of International Conference Applied Electronics,
Pilsen, 57 September 2012, pp. 229232 (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. 105109. IEEE Press, Timisoara
(2014)
4. Tothova, M., Pitel, M., Mizakova, J.: Electro-pneumatic robot actuator with arti-
cial muscles and state feedback. Appl. Mech. Mater. 460, 2331 (2014)
5. Tothova, M., Pitel, J., Hosovsk
y, A.: Simulation of hybrid fuzzy adaptive con-
trol of pneumatic muscle actuator. In: Silhavy, R., Senkerik, R., Oplatkova, Z.K.,
Prokopova, Z., Silhavy, P. (eds.) Intelligent Systems in Cybernetics and Automa-
tion Theory. AISC, vol. 348, pp. 239246. 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 idendikacia systemu, pp. 116118. Montanex, Ostrava
(1999). ISBN 80-7225-030-2
http://www.springer.com/978-3-319-57260-4