The PLC-based Industrial Temperature Control System: Design and Implementation

. Targeting at the problem of slow response and low accuracy of the automatic temperature control system for material processing and boiler heating, a new design method is proposed to work with the PLC-based temperature control system, where the box temperature control may be achieved through the fan and the heating plate. The hardware design and software design of the system are analyzed in detail. In this paper, a combination of the traditional PID control and the more popular fuzzy control is taken as the control program to achieve the overall design of the control algorithm. Followed by the simulation in the MATLAB software, the designed system is highlighted by its the characteristics of impressive stability, precision and robustness.

By using PLC-based fuzzy PID control technology, the system temperature can be set through the fan and the heating plate to control the box temperature.

By FANJIE WEI
argeting the problem of slow response and low accuracy of the automatic temperature control system for material processing and boiler heating, a new design method is proposed to work with the PLC-based temperature control system, where the box temperature control may be achieved through the fan and the heating plate.The hardware design and software design of the system are analyzed in detail.In this article, a combination of the traditional PID control and the more popular fuzzy control is taken as the control program to achieve the overall design of the control algorithm.Followed by the simulation in the MATLAB software, the designed system is highlighted by its the characteristics of impressive stability, precision, and robustness.

INTRODUCTION
Modern sensing technology and control methods are undergoing continuous innovation, where the real-time temperature control is demanding higher accuracy and faster response more than ever.Temperature control is widely used in production and industrial control processes in all aspects.For example, in the iron and steel smelting process, iron and steel to be baked requires heat treatment in order to achieve their performance indicators; the plastic qualitative process also needs to maintain a certain temperature range.The fact is that the temperature control system is a complex process object involving large inertia and pure delay with multi-variable and time-varying parameters.At present, the PID control methodology is adopted in most cases [1].In this way, different PID parameters should be selected for different control objects, for which some practical experience is needed.As a language controller, the fuzzy PID control imitates the way of human thinking and experience to achieve its control process so it can more closely reflect the best control behavior of the controller.With strong robustness and control stability, it can be applied to different control objects.The combination of fuzzy control and PLC, which is widely used in industrial control, is one of the hotspots in this research area.Therefore, this work involved the use of the PLC-based fuzzy PID control technology, by which the system temperature was set through the fan and the heating plate to control the box temperature.

SYSTEM DESIGN
In this design, the temperature control system consists of hardware and software components.

System hardware
In the hardware part of the system, the acquisition module uses the temperature sensor to measure the measured object temperature, and the temperature signals are converted into electrical signals [2], which are then transmitted to the temperature transmitter, where the electrical signal is converted into a 4 ~ 20mA current signal, so that the module EM235 in the PLC expansion module can be facilitated as to the analog signal input.EM235 receives data, which will be sent directly to the PLC output control text display (display temperature) and the temperature control device [3] (heating and cooling device).The system block diagram is shown in Figure 1.

System software
The software of this system adopts STEP7 for PLC200, the popular programming software by Siemens, for software compilation [4], and the temperature controller device adopts fuzzy PID algorithm for temperature control, with the simulation to be implemented by MATLAB simulation software.
Figure 1 shows the system consists of four modules: acquisition module, control module, display module, and implementation module.The acquisition module includes a PT100 temperature sensor and temperature transmitter.The PT100 temperature sensor works with a temperature variable that can be converted into a standardized output signal.This instrument is mainly used for industrial process with measurement temperature and control parameters.The temperature transmitter is a signal conversion device, which is responsible for the signals collected by the temperature sensor to be converted to electrical signals of 4 ~ 20mA.This is quite convenient for the PLC200's identification and collection of the temperature signal.For the control module, a Siemens PLC200 is chosen as the core controller, playing the role of the completion of the temperature signal collection, signal processing, and signal transmission.A display module using a TD200 text display can be more compatible with the PLC to complete the data transmission.This display module displays the current temperature and the desired temperature.The implementation module works by through a PLC-controlled cold air fan and heating resistor to complete the instructions for the temperature rise or fall, and finally, the temperature reaches a constant value.advantage of this device is that it does not require the precise mathematical model of the controlled object.Rather, the control decision table is organized according to the manual control rules, and then the size of the control variable is determined.

Fuzzy PID control: Principle and rule
The CPU queries the corresponding fuzzy control table according to the system deviation (Deviation = Given Value -Feedback), and deviation change rate (Deviation Rate = Current Cycle Deviation -Upper Cycle Deviation) to get the setting values of Kp, Ki and Kd.Then the PID operation is performed.
The formation of fuzzy control rules comes from operators or experts who use their knowledge and experience to make a number of control decision tables.These rules can be expressed in natural language, only generally to be formalized.The current design of the fuzzy controller is basically used in the fuzzy control process, while the system and the deviation of the set value and its rate of change are taken as a fuzzy input.
This method not only guarantees the stability of the system, but it also reduces the overshoot and oscillation phenomenon.

Fuzzy PID control algorithm
PID control is very effective for the control of linear time-invariant systems, but it is not well controlled for nonlinear, time-varying complex systems and systems with nuclear models.Remarkably, it is quite easy for the fuzzy controller to gain effective control of the complex and the model unclear systems.Note that the fuzzy controller is lacking the integral link, so it is difficult to completely eliminate the static difference in the fuzzy control system.Furthermore, in the case of an insufficient number of variable classifications, a small oscillation is often found near the equilibrium point.If we combine the two control methods, we can form a fuzzy PID controller with the advantages of both.
There are several methods that can be employed to combine fuzzy technology with the PID control algorithm to form a fuzzy PID controller: One is the use of a fuzzy controller that allows the PID controller to get its online self-tuning PID parameters, making a fuzzy self-tuning parameter PID controller; another may be done in a large deviation range, where the proportional control is used, while the fuzzy control is adopted in the small deviation.These two control modes can be switched upon the pre-determined deviation threshold, which constitutes the FUZZY-P dual-mode segment controller.Similarly, a multi-mode segmentation control algorithm may be designed to achieve sub-sections according to different conditions and requirements, with different modes of control.

Difference between fuzzy control and the traditional PID control
The distinction between the two may be understood as: PID control is time-based, and fuzzy control is process-based.The structural difference between the two is shown in Figure 2.
The intelligence of the fuzzy controller compared to the traditional PID controller is reflected in an extra setpoint regulator and setpoint selector.The setpoint regulator simulates the control procedures and functions of an experienced operator.It focuses on the control process (in the range of PID control), the dynamic characteristics of the system, and the non-linearity (including load changes).The system is operated by inputting the assumed target value to the PID operator.As the fuzzy control significantly reduces the overshoot, it is capable of effectively improving the system response speed and temperature control accuracy, making it easier to achieve computer control.For this reason, fuzzy control technology is used by many control systems.Concerning the control of heat-treatment equipment, fuzzy control technology marks the most significant progress in the last decade, attracting more and more attention by the heat-treatment sector.Fuzzy PID control is present in a series of control applications, including the resistance furnace temperature system, the raw material mixed system, beer fermentation monitoring system, the wind network throttle control system, magnetic levitation system, motor control system, cement cooling process control, air conditioning constant pressure water supply system, radar seeker servo system, and so on.This is sufficient to illustrate the excellence of the fuzzy PID control algorithm.

SOFTWARE DESIGN
According to the system design requirements, the software program flow is shown in Figure 3.  First of all, the parameters of the temperature control system undergo wake-up initialization, mainly to set the control temperature and the PID initial value, including the value settings of PID gain, PID integral time, PID differential time, and PID sampling time.Then, the ambient temperature is collected through the sensor in a range of 6,400 ~ 320,000, as the digital signal.As the fuzzy PID algorithm requires real-format temperature signal input, there is the need for the A/D conversion of the temperature signal prior to the PID algorithm process.The collected digital signal is converted into a double integer signal, which is then transformed into a real figure.The actual temperature is calculated by the temperature calculation formula.The measured temperature is taken as the input signal for PID operation, and the output is ready for the control of the heating resistance and cold air fan.
In the design, the temperature control is based on the PID control algorithm.The PID is the most commonly applied algorithm in industrial production -a control method being able to meet the need for high-precision measurement and control systems.Using the PID algorithm to achieve the temperature control system can be more stable and reliable [5].

EXPERIMENT AND SIMULATION
Assume that the system has an open-loop transfer function as G(s) = 1/S (2*S + 5), and a fuzzy control system is established in Matlab, as shown in Figure 4.At this time, the amplifier Gain = -1,000, Gain1 = 0.05, Gain2 = 0.01.Select the controlled object and its reference model, and we can get the simulation curve shown in Figure 5.

CONCLUSIONS
In this work, the temperature control system was available for real-time display of the temperature inside the box.By setting the temperature through the fan and the heating plate, the PID control algorithm was introduced to control the temperature of the box to achieve the temperature control needs.With Siemens PLC200 as the controller, system control was quite impressive with high precision, stability, and reliability, and it was not susceptible to outside interference.On-site commissioning revealed that the box temperature could be successfully controlled by the system.This work is expected to bring about a good application prospect.

Figure 2 :
Figure 2: difference between fuzzy control and traditional PID control.(a) Traditional PID control systemblock diagram, (b) Fuzzy PID control system -block diagram.

Figure 4 :
Figure 4: Block diagram of fuzzy control system.

Figure 5 :
Figure 5: Simulation results of fuzzy control system.