Self-adaptive temperature control method
By segmenting the temperature control process and dynamically adjusting the PID controller coefficients, the adaptive temperature control method solves the problems of insufficient temperature control accuracy and anti-interference ability in the existing technology, achieving more efficient temperature regulation and cost reduction.
Patent Information
- Application Number
- CN202410899433.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-29
AI Technical Summary
Temperature control in existing industrial glue coating systems is difficult to achieve high precision, rapid convergence and anti-interference capabilities, and the parameter setting of the PID controller is complex and costly.
The adaptive temperature control method is used to divide the temperature control process into a heating section, a pre-stable section, a stable section and a super-stable section, respectively using proportional, proportional-integral, proportional-integral-derivative and proportional-integral-derivative mode control, and In the ultra-stable section, the PID controller coefficients are dynamically adjusted according to the output power.
It significantly reduces overshoot and convergence time, improves temperature control accuracy and anti-interference ability, simplifies the parameter setting process, and reduces production costs.
Smart Images

Figure CN118860018A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of industrial temperature control, and in particular relates to an adaptive temperature control method. Background Art
[0002] In the industrial glue coating system, temperature control is extremely critical. In order to ensure that the glue coating machine produces products with stable quality, the machine's pressure plate, quantitative machine filling valve, small heating module, glue gun copper sleeve, glue gun valve block and other components need to be stabilized at different temperature setting values according to different production processes, and the temperature fluctuation is required to be as small as possible and the anti-interference ability is as strong as possible. The existing temperature control technology often uses PID controllers, but it is difficult to obtain ideal results, mainly manifested in the difficulty of parameter positive determination, large overshoot, low control accuracy, slow convergence speed, and the same set of PID parameters and the same component have different control effects for different temperature setting values. In response to the above situation, some scholars have proposed control strategies that use fuzzy controllers to adjust PID parameters online, optimize the proportional factor in the fuzzy controller through particle swarm algorithm, and use the online self-learning ability of BP neural network to automatically adjust the parameters of conventional PID controllers online, which are conducive to improving the control accuracy of temperature controllers. However, these algorithms have high computational complexity, put forward high requirements on the computing performance of the controller, and invisibly increase the production cost of equipment manufacturers. Summary of the invention
[0003] In view of this, the present invention aims to propose an adaptive temperature control method to achieve adaptive acquisition of the most appropriate PID control parameters, eliminating the process of parameter determination and rule base formulation in the PID algorithm, and reducing the difficulty of use and production cost.
[0004] To achieve the above object, the technical solution of the present invention is achieved as follows:
[0005] An adaptive temperature control method.
[0006] Furthermore, adaptive temperature control of the temperature control system is achieved based on the PID controller. The temperature control process is divided into heating stage, pre-stabilization stage, stabilization stage and super-stable stage. Different temperature control stages adopt different temperature control strategies to ensure smaller overshoot and faster convergence speed. In the super-stable stage, the PID controller coefficients are revised according to the resolution of the temperature control system to dynamically associate the PID controller coefficients with its output power in the steady state, so as to achieve adaptive adjustment of the temperature control system.
[0007] Furthermore, the real-time temperature error is compared with a preset threshold value to determine the stage of the temperature control process, including:
[0008] T1, rapid heating: in the temperature rising stage, the temperature control system uses the proportional mode to control the output power to heat the heated object until the temperature control process enters the pre-stabilization stage and turns to T2;
[0009] T2, fixed integral heating: In the pre-stabilization stage, the temperature control system uses the proportional-integral mode to control the output power to heat the heated object, and fix the integral term until the temperature control process enters the stable stage and turns to T3;
[0010] T3, dynamic integral heating: When in the stable stage, the temperature control system uses the proportional-integral-differential mode to control the output power to heat the heated object, and adjusts the integral term to a dynamic value until the temperature control process enters the ultra-stable stage and turns to T4;
[0011] T4, steady-state temperature control: When in the ultra-stable stage, the temperature control system uses the proportional-integral-differential mode to control the output power to heat the heated body, fix the integral term, and determine the stage of the temperature control process. If the temperature control process changes, it returns to T1, T2 or T3.
[0012] Further, in T1, the proportional mode includes:
[0013] U(k)=e(k)*K p ;
[0014] In the formula, U(k) is the output power of the temperature control system at time k, e(k) is the temperature error at time k, that is, the difference between the temperature of the heated body and the target temperature, K p is the proportionality coefficient.
[0015] Further, in T2, the proportional-integral mode includes:
[0016] I(k)=U(k i ) / K i ;
[0017] U(k)=K p *e(k)+K i *I(k);
[0018] In the formula, I(k) is the integral value at time k, K i is the integral coefficient, U(k i ) is the output power just entering the pre-stabilization stage.
[0019] Further, in T3, the proportional-integral-derivative mode includes:
[0020] U(k)=K p *e(k)+K i *I(k)+K d *D(k);
[0021] I(k)=I(k-1)+e(k);
[0022] D(k)=e(k)-e(k-1);
[0023] In the formula, D(k) is the differential value at time k, K d is the differential coefficient, and I(k-1) is the integral value at time k-1.
[0024] Further, in T4, the proportional-integral-derivative mode includes:
[0025] I(k)=(Id+Ip) / 2;
[0026] D(k)=e(k)-e(k-1);
[0027] U(k)=K p *e(k)+K i *I(k)+K d *D(k);
[0028] Where Id and Ip represent the integral value at the trough moment and the integral value at the peak moment of the temperature variation curve of the heated body in the super stable stage, respectively.
[0029] Furthermore, when in the ultra-stable stage, the PID controller coefficient is dynamically associated with its output power in the steady state, including:
[0030]
[0031] K px =U(k-1)*β;
[0032] U(k)=K px *e(k)+K ix *I(k)+K d *D(k);
[0033] In the formula, α and β are adjustable coefficients, Ui is the output power generated by the integral term, Ix is the integral value adjusted by α, and K ix is the integral coefficient adjusted by α, K px is the proportional coefficient adjusted by the β factor.
[0034] Furthermore, an electronic device includes a processor and a memory that is communicatively connected to the processor and is used to store instructions executable by the processor, and the processor is used to execute the adaptive temperature control method.
[0035] Furthermore, a server includes at least one processor and a memory communicatively connected to the processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the processor so that the at least one processor performs the adaptive temperature control method.
[0036] Furthermore, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the adaptive temperature control method is implemented.
[0037] Compared with the prior art, the adaptive temperature control method described in the present invention has the following beneficial effects:
[0038] (1) The adaptive temperature control method is based on traditional PID control and introduces a segmented temperature control strategy. The temperature control process is subdivided into a heating stage, a pre-stabilization stage, a stabilization stage, and an ultra-stabilization stage. The corresponding temperature control strategy is adopted in each stage, which effectively ensures that the overshoot of the system is extremely small and the convergence speed is accelerated.
[0039] (2) In order to improve the accuracy and anti-interference ability of the system under different temperature control targets, a strategy based on output power adjustment control coefficient is proposed in the ultra-stable section. Engineering practice has proved that compared with traditional PID control, this application has obvious advantages in overshoot, convergence speed, anti-interference and parameter adaptability.
[0040] (3) The adaptive temperature control method can adaptively determine the optimal PID parameters, avoiding the tedious parameter setting and rule base establishment process in traditional PID and fuzzy PID algorithms, and significantly reducing the operation complexity. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:
[0042] Figure 1 This is a schematic diagram of the temperature rise stage control logic diagram according to an embodiment of the present invention;
[0043] Figure 2 This is a schematic diagram of a temperature curve diagram of a heating stage according to an embodiment of the present invention;
[0044] Figure 3 A schematic diagram of a control logic diagram of a pre-stabilization stage according to an embodiment of the present invention;
[0045] Figure 4 This is a schematic diagram of a temperature curve diagram of the pre-stabilization stage according to an embodiment of the present invention;
[0046] Figure 5 This is a schematic diagram of the stable segment control logic diagram according to an embodiment of the present invention;
[0047] Figure 6 This is a schematic diagram of a temperature curve diagram of a stable section according to an embodiment of the present invention;
[0048] Figure 7A schematic diagram of a superstable segment control logic diagram according to an embodiment of the present invention;
[0049] Figure 8 This is a schematic diagram of a temperature curve diagram of the ultra-stable stage according to an embodiment of the present invention;
[0050] Fig. 9 A schematic diagram of a comparison diagram of overshoot and response time according to an embodiment of the present invention;
[0051] Fig.10 A schematic diagram of a comparison diagram of integral limits of different sizes according to an embodiment of the present invention;
[0052] Fig.11 It is a schematic diagram of a comparison diagram of the anti-interference effects described in an embodiment of the present invention. DETAILED DESCRIPTION
[0053] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0054] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0055] An adaptive temperature control method realizes adaptive temperature control of a temperature control system based on a PID controller. The temperature control process is divided into a heating stage, a pre-stabilization stage, a stabilization stage, and an ultra-stable stage. Different temperature control strategies are adopted in different temperature control stages to ensure a smaller overshoot and a faster convergence speed. In the ultra-stable stage, the PID controller coefficient is revised according to the resolution of the temperature control system to dynamically associate the PID controller coefficient with its output power in a steady state, thereby realizing adaptive adjustment of the temperature control system. The real-time temperature error is compared with the preset threshold value to determine the stage of the temperature control process, and the historical data is analyzed to determine whether the controlled temperature is close to a steady state. The adaptive temperature control method includes the following steps:
[0056] T1, rapid heating: Figure 1-Figure 2 As shown, in the temperature rising stage, the temperature control system uses the proportional mode to control the output power to heat the heated object until the temperature control process enters the pre-stabilization stage and turns to T2;
[0057] T2, fixed integral heating: Figure 3-Figure 4 As shown in the figure, in the pre-stabilization stage, the temperature control system uses the proportional-integral mode to control the output power to heat the heated body. In order to avoid excessive integration and cause a large overshoot, the integral term needs to be set to a fixed value until the temperature control process enters the stable stage and turns to T3;
[0058] T3, dynamic integral heating: Figure 5-Figure 6As shown in the figure, when in the stable stage, the temperature control system uses the proportional-integral-differential mode to control the output power to heat the heated body, and adjusts the integral term to a dynamic value. The introduced differential term will further reduce the oscillation of the output power until the temperature control process enters the ultra-stable stage and turns to T4;
[0059] T4, Steady-state temperature control: Figure 7-Figure 8 As shown, when in the ultra-stable stage, the temperature control system uses the proportional-integral-differential mode to control the output power to heat the heated body, fix the integral term, and determine the stage of the temperature control process. If the temperature control process changes, it returns to T1 or T2 or T3. For example, when the temperature control system is disturbed (such as wind interference, external temperature disturbance, etc.), the temperature control system will experience relatively large fluctuations again. At this time, it will detect that the error value is greater than the current peak and trough error values. At this time, the ultra-stable stage can be exited and returned to the stable stage.
[0060] Specifically, in T1, the proportional mode includes:
[0061] U(k)=e(k)*K p ;
[0062] In the formula, U(k) is the output power of the temperature control system at time k, e(k) is the temperature error at time k, that is, the difference between the temperature of the heated body and the target temperature, K p is the proportionality coefficient, Figure 2 The horizontal axis represents the sampling time, and the vertical axis represents the current temperature. It can be seen that in the second half, a stable steady-state error is formed between the controlled temperature and the target temperature.
[0063] Specifically, in T2, the proportional-integral mode includes:
[0064] I(k)=U(k i ) / K i ;
[0065] U(k)=K p *e(k)+K i *I(k);
[0066] In the formula, I(k) is the integral value at time k, K i is the integral coefficient, U(k i ) is the output power just entering the pre-stabilization stage, such as Figure 4 As shown, the proportional term continues to increase the power further according to the error between the current temperature and the target temperature.
[0067] Specifically, in T3, the proportional-integral-differential mode includes:
[0068] U(k)=K p *e(k)+K i *I(k)+Kd *D(k);
[0069] I(k)=I(k-1)+e(k);
[0070] D(k)=e(k)-e(k-1);
[0071] In the formula, D(k) is the differential value at time k, K d is the differential coefficient, I(k-1) is the integral value at time k-1, such as Figure 6 As shown, the integral term becomes the decisive factor when adjusting the output power.
[0072] Specifically, in T4, the proportional-integral-differential mode includes:
[0073] I(k)=(Id+Ip) / 2;
[0074] D(k)=e(k)-e(k-1);
[0075] U(k)=K p *e(k)+K i *I(k)+K d *D(k);
[0076] In the formula, Id and Ip represent the integral value of the temperature change curve of the heated body at the trough moment and the integral value at the peak moment respectively when it is in the super stable stage. The advantage is that it overcomes the hysteresis effect of the integral effect, such as Figure 8 As shown, the integral value is fixed to the average value of the integral value at the peak and trough moments. At this time, the output power of the system is mainly affected by the proportional control and the differential control, and the integral control is responsible for providing a constant basic output power.
[0077] Furthermore, the temperature control of the glue coating system in industry requires not only fast convergence and high temperature control accuracy, but also good anti-interference performance, that is, small temperature fluctuations and fast temperature re-convergence when disturbed, and the parameters are required to have a wide range of applicability and be easy to use and adjust. Therefore, when the temperature control process is in the ultra-stable stage, the PID controller coefficient can be dynamically associated with its output power in the steady state, including:
[0078]
[0079] K px =U(k-1)*β;
[0080] U(k)=K px *e(k)+K ix *I(k)+K d *D(k);
[0081] In the formula, α and β are adjustable coefficients, Ui is the output power generated by the integral term, Ix is the integral value adjusted by α, and K ix is the integral coefficient adjusted by α, K px It is the proportional coefficient adjusted by the β factor. The advantage is that when the temperature control system is disturbed, the output power will increase, and a larger proportional coefficient and integral value will be obtained, thereby changing the sensitivity of the integral control and the strength of the proportional control. Setting the adjustable coefficient has smaller calculation amount, more sensitive response and better robustness.
[0082] Now on the same hardware device, compare the differences between this application and the traditional PID empirical adjustment method based on integral limiting in terms of overshoot, oscillation period, response time and parameter applicable range. Fig. 9 As shown, the experiment verifies the heating effects of three cases: heating from 30 degrees to 50 degrees, heating from 50 degrees to 80 degrees, and heating from 80 degrees to 110 degrees. The traditional PID algorithm limits the maximum integral value to 80, while the present application does not limit the PID integral value.
[0083] Furthermore, the integral limit values of the traditional PID algorithm are set to 80 and 50 respectively, and then compared with the effect of heating the target from 30 degrees to 50 degrees in the present application. Fig.10 As shown, the overshoot of the present application is not much different under any output power, and is smaller than the traditional PID algorithm. At the same time, there is no obvious oscillation after the temperature rise is completed. The overshoot of the traditional PID algorithm is directly related to the value of the integral limit and the heating power. When the value of the integral limit matches the heating power, the overshoot is appropriate; when the value of the integral limit is too small, the system heating speed becomes significantly lower, and there may even be a steady-state error; when the integral limit is too large, there will be an obvious overshoot effect. Therefore, the traditional PID algorithm relies heavily on prior experience in terms of heating speed and convergence speed, while the present application is more adaptable.
[0084] Furthermore, in order to test the anti-interference performance of the system. In the experiment, when the temperature of the heated body is stable at 70℃, a fan is used to blow directly on the heated body. When the temperature of the heated body returns to stability, the fan is turned off to simulate the sudden change of the ambient temperature. The amplitude and convergence speed of the temperature change of the heated body under the two methods are measured. Fig.11 As shown in the figure, the maximum deviation of the present invention after being disturbed is about 0.5 degrees, and the deviation can be converged to within 0.2 degrees in 100 sampling cycles; while the maximum deviation of the traditional PID after being disturbed is about 0.8 degrees, and the error can be converged to within 0.2 degrees in 200 time sampling cycles. It can be seen that the method proposed in this paper is superior to the traditional PID control method in both the disturbance amplitude and the convergence speed.
[0085] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0086] In the several embodiments provided in the present application, it should be understood that the disclosed methods and systems can be implemented in other ways. For example, the division of the units described above is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The above-mentioned units may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0087] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.
[0088] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. An adaptive temperature control method, which realizes adaptive temperature control of a temperature control system based on a PID controller, is characterized by: The temperature control process is divided into heating stage, pre-stabilization stage, stabilization stage and super-stable stage. Different temperature control strategies are adopted in different temperature control stages to ensure smaller overshoot and faster convergence speed. In the super-stable stage, the PID controller coefficients are revised according to the resolution of the temperature control system to dynamically associate the PID controller coefficients with its output power in steady state, so as to realize adaptive adjustment of the temperature control system.
2. The adaptive temperature control method according to claim 1, characterized in that: Compare the real-time temperature error with the preset threshold value to determine the stage of the temperature control process, including: T1, rapid heating: in the temperature rising stage, the temperature control system uses the proportional mode to control the output power to heat the heated object until the temperature control process enters the pre-stabilization stage and turns to T2; T2, fixed integral heating: In the pre-stabilization stage, the temperature control system uses the proportional-integral mode to control the output power to heat the heated object, and fix the integral term until the temperature control process enters the stable stage and turns to T3; T3, dynamic integral heating: When in the stable stage, the temperature control system uses the proportional-integral-differential mode to control the output power to heat the heated object, and adjusts the integral term to a dynamic value until the temperature control process enters the ultra-stable stage and turns to T4; T4, steady-state temperature control: When in the ultra-stable stage, the temperature control system uses the proportional-integral-differential mode to control the output power to heat the heated body, fix the integral term, and determine the stage of the temperature control process. If the temperature control process changes, it returns to T1, T2 or T3.
3. The adaptive temperature control method according to claim 2, characterized in that: In T1, the proportional mode includes: U(k)=e(k)*K p ; In the formula, U(k) is the output power of the temperature control system at time k, e(k) is the temperature error at time k, that is, the difference between the temperature of the heated body and the target temperature, K p is the proportionality coefficient.
4. The adaptive temperature control method according to claim 2, characterized in that: In T2, the proportional-integral mode includes: I(k)=U(k i ) / K i ; U(k)=K p *e(k)+K i *I(k); In the formula, I(k) is the integral value at time k, K i is the integral coefficient, U(k i ) is the output power just entering the pre-stabilization stage.
5. The adaptive temperature control method according to claim 2, characterized in that: In T3, the proportional-integral-derivative mode includes: U(k)=K p *e(k)+K i *I(k)+K d *D(k); I(k)=I(k-1)+e(k); D(k)=e(k)-e(k-1); In the formula, D(k) is the differential value at time k, K d is the differential coefficient, and I(k-1) is the integral value at time k-1.
6. The adaptive temperature control method according to claim 2, characterized in that: In T4, the proportional-integral-derivative mode includes: I(k)=(Id+Ip) / 2; D(k)=e(k)-e(k-1); U(k)=K p *e(k)+K i *I(k)+K d *D(k); Where Id and Ip represent the integral value at the trough moment and the integral value at the peak moment of the temperature variation curve of the heated body in the super stable stage, respectively.
7. The adaptive temperature control method according to claim 6, characterized in that: When in the ultra-stable stage, the PID controller coefficients are dynamically related to the output power in its steady state, including: K px =U(k-1)*β; U(k)=K px *e(k)+K ix *I(k)+K d *D(k); In the formula, α and β are adjustable coefficients, Ui is the output power generated by the integral term, Ix is the integral value adjusted by α, and K ix is the integral coefficient adjusted by α, K px is the proportional coefficient adjusted by the β factor.
8. An electronic device, comprising a processor and a memory connected to the processor for storing instructions executable by the processor, characterized in that: The processor is used to execute an adaptive temperature control method as described in any one of claims 1-7.
9. A server, characterized in that: It includes at least one processor and a memory that is communicatively connected to the processor, wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the processor so that the at least one processor executes an adaptive temperature control method as described in any one of claims 1-7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, an adaptive temperature control method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Temperature control method and device, electronic equipment and storage medium
CN119717938A
Multi-temperature-zone temperature control system optimization method based on gradient algorithm and subsection control
CN120762472A
A multi-temperature-zone temperature control system optimization method based on gradient algorithm and segmentation control
CN120762472B
