A temperature control method and device, electronic equipment and storage medium
By classifying the adjustment process type in temperature control and adaptively adjusting the control parameters of the PID algorithm, the problems of overshoot and rate balance in high-precision temperature control of the PID algorithm are solved, achieving accurate temperature control and time optimization.
Patent Information
- Application Number
- CN202411863169.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2044-12-17
AI Technical Summary
Existing PID algorithms struggle to balance the relationship between overshoot and speed in high-precision temperature control. Excessive speed can cause oscillations, while insufficient speed prolongs the settling time. Furthermore, solutions that introduce more sensor variables are easily limited by on-site operating conditions.
The adjustment process is divided into first and second types, and the control parameters of the PID algorithm are adjusted using different determination methods. The first type reduces the rate after the maximum output capacity reaches the stage temperature threshold, while the second type adjusts the rate with the minimum output capacity as the target. The temperature rate is then adaptively controlled in combination with the temperature difference.
It achieves accurate temperature control, effectively suppresses overshoot, optimizes the temperature control process, and shortens the time to reach the target temperature.
Smart Images

Figure CN119717938B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of temperature control, in particular to a temperature control method and device, electronic equipment and storage medium. BACKGROUND
[0002] PID algorithm is widely used in various industrial control systems such as temperature control, speed control, position control, etc. due to its simplicity, effectiveness and wide application range. For example, in temperature control, PID algorithm can adjust the power of heating or cooling equipment according to the error between the temperature value fed back by the temperature sensor and the set temperature value through proportional, integral and differential operations, so as to achieve the purpose of accurately controlling temperature.
[0003] In the prior art, in the process of high-precision control, high-precision control is realized by adjusting the control parameters of the PID model, and it is often difficult to balance the relationship between overshoot and rate: if the rate is too large, it is easy to overshoot and even cause short-time oscillation; if the rate is too low, the adjustment time is prolonged, which is not conducive to the achievement of working conditions. Some schemes introduce more sensor variables to improve accuracy and control precision, which is often limited by the use of field working conditions, and also increases more system uncertainty. SUMMARY
[0004] Therefore, the purpose of the present application is to provide a temperature control method and device, electronic equipment and storage medium to overcome the problems in the prior art.
[0005] In a first aspect, the embodiments of the present application provide a temperature control method, which acts on a temperature control system, and the temperature control system realizes temperature control based on a PID algorithm. The method comprises the following steps:
[0006] According to the target temperature value to be reached and the current temperature value of the temperature control system, the target type of the adjustment process to reach the target temperature value is determined; wherein the target type includes a first type or a second type;
[0007] If the adjustment process is the first type, the target control parameter of the PID algorithm is determined according to the first determination mode corresponding to the first type;
[0008] If the adjustment process is the second type, the target control parameter of the PID algorithm is determined according to the second determination mode corresponding to the second type;
[0009] The temperature control system is adjusted based on the control parameter to reach the target temperature value.
[0010] In some embodiments of the present application, if the adjustment process is of the first type, the target control parameter of the PID algorithm is determined according to a first determination manner corresponding to the first type, including:
[0011] The adjustment process is divided into a first adjustment stage and a second adjustment stage according to a preset stage temperature threshold.
[0012] In the first adjustment stage, the temperature control system is controlled to reach the stage temperature threshold with a maximum output capacity.
[0013] In the second adjustment stage, the target control parameter of the PID algorithm is determined using an adjustment manner corresponding to an actual working state of the temperature control system in the first adjustment stage.
[0014] In some embodiments of the present application, the actual working state of the temperature control system in the first adjustment stage is determined by the following method:
[0015] A temperature control time required for the temperature control system to reach the stage temperature threshold with the maximum output capacity is calculated, wherein the temperature control time includes a first number of first control periods.
[0016] The actual working state of the temperature control system in each first control period is determined according to a temperature change difference in the first control period and the maximum output capacity.
[0017] In some embodiments of the present application, the actual working state of the temperature control system in each first control period is determined according to a temperature change difference in the first control period and the maximum output capacity, including:
[0018] If the temperature change difference in the first control period and the maximum output capacity are within a preset first deviation range, the actual working state of the temperature control system is a linear state.
[0019] If the temperature change difference in the first control period and the maximum output capacity are within a preset second deviation range, the actual working state of the temperature control system is a limited state.
[0020] If the temperature change difference in the first control period and the maximum output capacity are within a preset third deviation range, the actual working state of the temperature control system is a saturated state.
[0021] In some embodiments of the present application, for the temperature control system in the linear state, the target control parameter of the PID algorithm is determined using an adjustment manner corresponding to an actual working state of the temperature control system in the first adjustment stage in the second adjustment stage, including:
[0022] The first control period and the first control parameter of the first adjustment stage are adjusted to obtain an adjusted second control period and a second control parameter; wherein the first control period is preset, and the first control parameter is a PID parameter corresponding to the maximum output capacity of the temperature control system;
[0023] The temperature control system is controlled by using the second control parameter to work, and the temperature control effect of each sub-stage of the temperature control system under the second control period is determined.
[0024] The second control parameter is adjusted again according to the temperature control effect of each sub-stage, so as to obtain an adjusted target control parameter.
[0025] In some technical solutions of the present application, the above-mentioned temperature control system in the limited state and the saturation state, the second adjustment stage uses an adjustment mode corresponding to the actual working state of the temperature control system in the first adjustment stage to determine the target control parameter of the PID algorithm, including:
[0026] The first control period of the first adjustment stage is adjusted to obtain an adjusted second control period;
[0027] The temperature control system is controlled by using the second control parameter to work, and the temperature control effect of each sub-stage of the temperature control system under the second control period is determined.
[0028] The second control parameter is adjusted again according to the temperature control effect of each sub-stage, so as to obtain an adjusted target control parameter.
[0029] In some technical solutions of the present application, if the adjustment process is the second type, the target control parameter of the PID algorithm is determined according to a second determination mode corresponding to the second type, including:
[0030] The first control period and the first control parameter are adjusted to obtain an adjusted second control period and a second control parameter; wherein the first control period is preset, and the first control parameter is a PID parameter corresponding to the maximum output capacity of the temperature control system;
[0031] The temperature control system is controlled by using the second control parameter to work, and the temperature control effect of each sub-stage of the temperature control system under the second control period is determined.
[0032] According to the temperature control effect of the sub stages, the second control parameter is adjusted again to obtain an adjusted target control parameter, with the target being a control parameter corresponding to a minimum output capacity of the temperature control system.
[0033] In a second aspect, the embodiments of the present application provide a temperature control device for a temperature control system, the temperature control system being based on a PID algorithm to achieve temperature control, the device comprising:
[0034] A first determining module is configured to determine a target type of an adjustment process for reaching a target temperature value according to the target temperature value and a current temperature value of the temperature control system, wherein the target type comprises a first type or a second type.
[0035] A second determining module is configured to determine a target control parameter of the PID algorithm according to a first determination manner corresponding to the first type if the adjustment process is of the first type.
[0036] A third determining module is configured to determine a target control parameter of the PID algorithm according to a second determination manner corresponding to the second type if the adjustment process is of the second type.
[0037] An adjusting module is configured to adjust the temperature control system based on the control parameter to reach the target temperature value.
[0038] In a third aspect, the embodiments of the present application provide an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the temperature control method.
[0039] In a fourth aspect, the embodiments of the present application provide a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executable on a processor to implement the steps of the temperature control method.
[0040] The technical solutions provided by the embodiments of the present application can have the following beneficial effects:
[0041] The method comprises determining a target type of an adjustment process for reaching a target temperature value according to a target temperature value to be reached and a current temperature value of the temperature control system; the target type comprises a first type or a second type; if the adjustment process is of the first type, target control parameters of the PID algorithm are determined according to a first determination mode corresponding to the first type; if the adjustment process is of the second type, target control parameters of the PID algorithm are determined according to a second determination mode corresponding to the second type; and the temperature control system is adjusted based on the control parameters to reach the target temperature value. The embodiment of the application adaptively controls the temperature rate according to a temperature difference value, optimizes the whole temperature control process, realizes accurate temperature control, and effectively suppresses overshoot.
[0042] In order to make the above objectives, characteristics and advantages of the present application more apparent, clear and easy to understand, the following will describe in detail the preferred embodiments of the present application with reference to the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some of the embodiments of the present application, and therefore should not be considered as a limitation to the scope. For those skilled in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.
[0044] Figure 1 A flowchart of a temperature control method provided by an embodiment of the present application is shown;
[0045] Figure 2 A flowchart of another temperature control method provided by an embodiment of the present application is shown;
[0046] Figure 3 A schematic diagram of a temperature control device provided by an embodiment of the present application is shown;
[0047] Figure 4 A schematic diagram of a structure of an electronic device provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0048] To make the purposes, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of description and illustration, and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn according to the actual proportions. The flowcharts used in the present application show the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowcharts can not be implemented in sequence, and the steps without logical context relationship can be reversed in sequence or implemented simultaneously. In addition, one or more other operations can be added to the flowcharts or one or more operations can be removed from the flowcharts under the guidance of the content of the present application.
[0049] In addition, the described embodiments are only some of the embodiments of the present application, not all the embodiments. The components of the embodiments of the present application described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0050] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.
[0051] Based on this, the embodiments of the present application provide a temperature control method and device, electronic equipment and storage medium, which are described below by embodiments.
[0052] The PID algorithm is widely used in various industrial control systems such as temperature control, speed control, and position control due to its simplicity, effectiveness, and wide range of applications. For example, in temperature control, the PID algorithm can adjust the power of heating or cooling equipment based on the error between the temperature value fed back by the temperature sensor and the set temperature value through proportional, integral, and differential operations to achieve precise temperature control.
[0053] In the prior art, in the process of high-precision control, high-precision control is often achieved by adjusting the control parameters of the PID model, which often has difficulty in balancing the relationship between overshoot and rate: too large rate is easy to overshoot and even cause short-time oscillation; too low rate prolongs the adjustment time, which is not conducive to achieving the working condition. Some solutions often increase the accuracy and control precision by introducing more sensor variables, which are often limited by the use of field working conditions, and also increase more system uncertainties.
[0054] Figure 1 A flowchart of a temperature control method provided by an embodiment of the application is shown, wherein the method acts on a temperature control system, the temperature control system implements temperature control based on a PID algorithm, and the method includes steps S101-S104; specifically:
[0055] S101, determining a target type of an adjustment process for reaching a target temperature value according to the target temperature value and a current temperature value of the temperature control system; wherein the target type includes a first type or a second type;
[0056] S102, if the adjustment process is of the first type, determining a target control parameter of the PID algorithm according to a first determination manner corresponding to the first type;
[0057] S103, if the adjustment process is of the second type, determining a target control parameter of the PID algorithm according to a second determination manner corresponding to the second type;
[0058] S104, adjusting the temperature control system based on the control parameter to reach the target temperature value.
[0059] Embodiments of the application adaptively control the temperature rate according to the temperature difference, optimize the entire temperature control process, achieve accurate temperature control, and effectively suppress overshoot.
[0060] Some embodiments of the application are described in detail below. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
[0061] An embodiment of the application provides a temperature control method, which acts on a temperature control system. The temperature control system can be a liquid cooling system or a heating system. In actual temperature control systems, a water pump and a compressor are generally included to adjust the temperature. The temperature control is implemented based on a PID algorithm by controlling the flow of liquid by the water pump and controlling the temperature of liquid by the compressor. Before the temperature control method of the application is executed, the maximum output capacity Cmax and the minimum output capacity Cmin of the temperature control system need to be determined. The maximum output capacity and the minimum output capacity can be obtained by testing the temperature control system.
[0062] The maximum output capacity is the temperature difference ΔTmax generated when the temperature control system outputs the maximum control power in a PID control period tp: Cmax = ΔTmax / tp.
[0063] The minimum output capacity is the temperature difference ΔTmin generated in the period tp when the temperature control system outputs the minimum control power (usually the minimum unit of the output control): Cmin = ΔTmin / tp.
[0064] For the convenience of description, the control period is referred to as a first control period in the embodiments of the present application, which is artificially set according to experience or obtained by analyzing historical data. In addition, by adjusting the temperature control system, a required temperature needs to be reached, which is referred to as a target temperature value in the embodiments of the present application, and the current temperature of the temperature control system is referred to as a current temperature value. That is, the embodiments of the present application need to achieve is to adjust the PID algorithm of the temperature control system to make the temperature rise / fall from the current temperature value to the target temperature value.
[0065] In order to make the above adjustment process more efficient, the embodiments of the present application determine the target type of the adjustment process before the adjustment. The target type includes a first type or a second type. The target control parameters of the PID algorithm are determined in different ways for different types.
[0066] Specifically, the target type of the adjustment process is determined according to the difference between the target temperature value and the current temperature value of the temperature control system. For example, the target temperature value is denoted as Sv, and the current temperature value is denoted as Sa. The first temperature difference between the two is compared with a preset type temperature threshold (ΔTdif) to determine the target type of the adjustment process. That is, when (Sv-Sa)>ΔTdif, the adjustment process is of the first type, and when (Sv-Sa)≤ΔTdif, the adjustment process is of the second type. If the adjustment process is of the first type, the target control parameters of the PID algorithm are determined according to the first determination method corresponding to the first type. If the adjustment process is of the second type, the target control parameters of the PID algorithm are determined according to the second determination method corresponding to the second type.
[0067] For the first type of adjustment stage: when adjusting, the embodiments of the present application divide the adjustment process into a first adjustment stage and a second adjustment stage according to a preset stage temperature threshold. The first adjustment stage is to ensure the efficiency of adjustment, and the second adjustment stage is to avoid temperature overshoot. In the first adjustment stage, the temperature control system is controlled to reach the stage temperature threshold with maximum output capacity. In the second adjustment stage, the target control parameters of the PID algorithm are determined using an adjustment method corresponding to the actual working state of the temperature control system in the first adjustment stage.
[0068] Specifically, the stage temperature threshold is denoted as Sr, the whole adjustment process in the embodiment of the application can be expressed as Sv= Sr+n*Cmin, wherein the first adjustment stage needs to reach Sr, the second stage uses Cmin for adjustment, and the number of adjustments n needs to be determined. In the above formula, n is a number greater than 1, but should not be too large, otherwise the control of the first stage will lose its meaning, and if n is too small, the number of adjustments may be too small to effectively control the overshoot.
[0069] For the first adjustment stage, the temperature control time required for the temperature control system to reach the stage temperature threshold at the maximum output capacity is calculated; wherein the temperature control time includes a first number of first control periods; according to the temperature change difference in each first control period and the maximum output capacity, the actual working state of the temperature control system in the first control period is determined. If the temperature change difference in the first control period and the maximum output capacity are within a preset first deviation range, the actual working state of the temperature control system is linear state; if the temperature change difference in the first control period and the maximum output capacity are within a preset second deviation range, the actual working state of the temperature control system is limited state; if the temperature change difference in the first control period and the maximum output capacity are within a preset third deviation range, the actual working state of the temperature control system is saturated state.
[0070] Specifically, in the first adjustment stage, the temperature control system works at the maximum output capacity, and when Sr is reached, the theoretical temperature control time is tm=(Sv-Sa) / Cmax, so after m=tm / tp control periods, the temperature should be close to Sr. Before reaching Sr, record the temperature change difference Cn(n=1…m) in each tp time.
[0071] If Cn and Cmax are directly close (within a preset first deviation range, the first deviation range here can be used to indicate that the difference between Cn and Cmax is less than a preset first state temperature threshold), it is considered that the temperature control system is still in the linear working interval and has good dynamic response, and the linear state (state 1) at this time is recorded.
[0072] If the value of Cn becomes smaller and smaller and the gap between Cn and Cmax becomes larger and larger (within a preset second deviation range, the second deviation range here can be used to indicate that the difference between Cn and Cmax is greater than or equal to a preset first state temperature threshold), but the minimum value of Cn is still greater than Cmin, it indicates that the output capacity of the temperature control system has approached saturation and is limited, and the limited state (state 2) at this time is recorded.
[0073] If the value of Cn becomes smaller and smaller and has been smaller than Cmin (in a preset third deviation range, here the third deviation range can be used to represent that the difference between Cn and Cmin is greater than or equal to a preset second state temperature threshold), it indicates that the system has been saturated and its output capacity is severely limited, and the time when this happens is recorded as the saturated state (state 3).
[0074] For the temperature control system in different actual working states in the first adjustment stage, different processing methods are used in the second adjustment stage in the embodiments of the present application: for the temperature control system in the linear state, the target control parameter of the PID algorithm is determined in the second adjustment stage using the adjustment mode corresponding to the actual working state of the temperature control system in the first adjustment stage, including: the first control period and the first control parameter in the first adjustment stage are adjusted to obtain the adjusted second control period and the second control parameter; wherein the first control period is preset, and the first control parameter is the PID parameter corresponding to the maximum output capacity of the temperature control system; the temperature control system is controlled to work with the second control parameter, and the temperature control effect of each sub-stage of the temperature control system under the second control period is determined; the control parameter close to the minimum output capacity of the temperature control system is taken as the target, and the second control parameter is adjusted again according to the temperature control effect of each sub-stage to obtain the adjusted target control parameter. For the temperature control system in the limited state and the saturated state, the target control parameter of the PID algorithm is determined in the second adjustment stage using the adjustment mode corresponding to the actual working state of the temperature control system in the first adjustment stage, including: the first control period in the first adjustment stage is adjusted to obtain the adjusted second control period; the temperature control system is controlled to work with the second control parameter, and the temperature control effect of each sub-stage of the temperature control system under the second control period is determined; the control parameter close to the minimum output capacity of the temperature control system is taken as the target, and the second control parameter is adjusted again according to the temperature control effect of each sub-stage to obtain the adjusted target control parameter.
[0075] Specifically, as shown in Figure 2 For the system in state 1, the first control period can be adjusted to tp / 2 (second control period) when entering the second stage of the control process. n*Cmin is divided into k=2*n small stages, and the target temperature sub-value (Svm) of each small stage is obtained according to the following formula:
[0076] Svm=Sr+(k*Cmin / 2)(k=1…2*n);
[0077] The adjustment of the first control parameter (the first control parameter is the PID parameter corresponding to the maximum output capacity of the temperature control system, including the proportional term, the integral term and the differential term) is: the action of the proportional term is reduced to 0.8 times of the original, the action of the integral term is reduced to 0.75 times of the original, and the action of the differential term is reduced to 0.75 times of the original, which is used as the initial parameter of the second stage, and the temperature control system is started.
[0078] The second temperature difference between each small stage Svm and the actual temperature target is monitored: if the second temperature difference is significantly smaller than Svm (Svm and the second temperature difference differ by greater than or equal to a preset third state temperature threshold), the action of the proportional term is increased, and the action of the differential term is weakened;
[0079] If the second temperature difference is close to Svm (Svm and the second temperature difference differ by less than a preset fourth state temperature threshold), the PID process is continued to be executed using the set of parameters;
[0080] If the second temperature difference is significantly higher than Svm (the second temperature difference and Svm differ by greater than or equal to a preset fifth state temperature threshold), the action of the proportional term is weakened.
[0081] The ratio Q between the change value of the actual value of each second control period and Cmin is calculated, and the adjustment strategy of the action of the proportional term is as follows:
[0082] If Q>1, it means that the overshoot tendency is obvious, the action of the proportional term is reduced to (Q-1) times of the original, and the action of the differential term remains unchanged;
[0083] If Q=1, it means that the overshoot tendency is weak, the action of the proportional term remains unchanged, and the action of the differential term remains unchanged;
[0084] If Q<1, it means that the power output is weakened, the action of the proportional term is strengthened to 1 / Q times of the original, and the action of the differential term is weakened to Q times of the original.
[0085] The adjustment range of the parameters can be adjusted according to the actual effect, and through multiple dynamic adjustments, the rate is maintained at Cmin.
[0086] For the system in state 2 and state 3, the control process enters the second stage, and the reduction of the first control period can be adjusting the control period of PID to tp / 2 (second control period), and n*Cmin is decomposed into k=2*n small stages, and the target temperature sub-value (Svm) of each small stage is obtained according to the following formula:
[0087] Svm=Sr+(k*Cmin / 2)(k=1…2*n);
[0088] The original PID parameter combination is maintained, the integral term is cleared and recalculated, and the temperature control system is started.
[0089] monitoring a second temperature difference between each sub-stage Svm and the actual temperature target: if the second temperature difference is significantly smaller than Svm (Svm and the second temperature difference differ by greater than or equal to a preset third state temperature threshold), increasing the role of the proportional term and weakening the role of the differential term;
[0090] if the second temperature difference is close to Svm (Svm and the second temperature difference differ by less than a preset fourth state temperature threshold), continue to use the set of parameters to execute the PID process;
[0091] if the second temperature difference is significantly higher than Svm (the second temperature difference and Svm differ by greater than or equal to a preset fifth state temperature threshold), weakening the role of the proportional term.
[0092] Calculate the ratio Q between the change value of each second control cycle actual value and Cmin, and the adjustment strategy of the proportional term is as follows:
[0093] if Q>1, indicating that the overshoot tendency is obvious, the proportional term is reduced to (Q-1) times the original, and the differential term remains unchanged;
[0094] if Q=1, indicating that the overshoot tendency is weak, the proportional term remains unchanged, and the differential term remains unchanged;
[0095] if Q<1, indicating that the power output is weak, the proportional term is strengthened to 1 / Q times the original, and the differential term is weakened to Q times the original.
[0096] The adjustment range of the parameters can be adjusted according to the actual effect, and through multiple dynamic adjustments, the rate is maintained at Cmin.
[0097] In an optional implementation, when the adjustment process is of the second type, the target control parameter of the PID algorithm is determined according to a second determination manner corresponding to the second type, comprising:
[0098] reducing the first control cycle and the first control parameter to obtain the adjusted second control cycle and the second control parameter; wherein the first control cycle is preset, and the first control parameter is the PID parameter corresponding to the maximum output capacity of the temperature control system;
[0099] controlling the temperature control system to work with the second control parameter, and determining the temperature control effect of each sub-stage of the temperature control system under the second control cycle;
[0100] with the control parameter close to the minimum output capacity of the temperature control system as the goal, adjusting the second control parameter again according to the temperature control effect of each sub-stage, to obtain the adjusted target control parameter.
[0101] Specifically, the reduction for the first control period can be adjusting the control period of the PID to tp / 2 (the second control period), decomposing n*Cmin into k=2*n small stages, and obtaining a target temperature sub-value (Svm) for each small stage according to the following formula:
[0102] Svm=Sr+(k*Cmin / 2)(k=1…2*n);
[0103] The original PID parameter combination is maintained, the integral term is cleared and then recalculated, and the temperature control system is started.
[0104] The second temperature difference between each small stage Svm and the actual temperature target is monitored: if the second temperature difference is significantly smaller than Svm (Svm and the second temperature difference differ by greater than or equal to a preset third state temperature threshold), the role of the proportional term is increased and the role of the differential term is weakened;
[0105] If the second temperature difference is close to Svm (Svm and the second temperature difference differ by less than a preset fourth state temperature threshold), the PID process is continued to be executed using the parameter combination;
[0106] If the second temperature difference is significantly higher than Svm (the second temperature difference and Svm differ by greater than or equal to a preset fifth state temperature threshold), the role of the proportional term is weakened.
[0107] The proportion Q between the change value of the actual value of each second control period and Cmin is calculated, and the adjustment strategy for the role of the proportional term is as follows:
[0108] If Q>1, it indicates that the overshoot tendency is obvious, the role of the proportional term is reduced to (Q-1) times the original role, and the role of the differential term remains unchanged;
[0109] If Q=1, it indicates that the overshoot tendency is weak, the role of the proportional term remains unchanged, and the role of the differential term remains unchanged;
[0110] If Q<1, it indicates that the power output is weakened, the role of the proportional term is strengthened to 1 / Q times the original role, and the role of the differential term is weakened to Q times the original role.
[0111] The adjustment amplitude of the parameters can be adjusted according to the actual effect, and through multiple dynamic adjustments, the rate is maintained at Cmin.
[0112] The application improves the accuracy of temperature control: in the first stage of temperature control, the first stage target is reached as soon as possible through maximum power output, and in the second stage, the purpose of no overshoot or controllable amplitude overshoot is achieved through adaptive adjustment of the temperature control rate, improving the accuracy of temperature control. The time to reach the target temperature value is reduced. In the first stage of temperature control, maximum power output maintains the maximum temperature control rate, shortens the time, and in the second stage, through effective control of overshoot, the adjustment time of PID is reduced, thereby achieving the whole process of reducing the time to reach the temperature control target.
[0113] Figure 3 A structure diagram of a temperature control device provided by an embodiment of the application is shown, which acts on a temperature control system based on a PID algorithm to achieve temperature control. The device comprises:
[0114] A first determination module is configured to determine a target type of an adjustment process for reaching a target temperature value according to the target temperature value and a current temperature value of the temperature control system; wherein the target type comprises a first type or a second type.
[0115] A second determination module is configured to, if the adjustment process is of the first type, determine a target control parameter of the PID algorithm according to a first determination manner corresponding to the first type.
[0116] A third determination module is configured to, if the adjustment process is of the second type, determine a target control parameter of the PID algorithm according to a second determination manner corresponding to the second type.
[0117] An adjustment module is configured to adjust the temperature control system based on the control parameter to reach the target temperature value.
[0118] The second determination module comprises:
[0119] According to a preset stage temperature threshold, the adjustment process is divided into a first adjustment stage and a second adjustment stage.
[0120] In the first adjustment stage, the temperature control system is controlled to reach the stage temperature threshold with maximum output capacity.
[0121] In the second adjustment stage, an adjustment manner corresponding to an actual working state of the temperature control system in the first adjustment stage is used to determine the target control parameter of the PID algorithm.
[0122] The actual working state of the temperature control system in the first adjustment stage is determined in the following manner:
[0123] calculating a temperature control time required for the temperature control system to reach the stage temperature threshold with the maximum output capacity; wherein the temperature control time comprises a first number of first control periods;
[0124] determining an actual working state of the temperature control system in each of the first control periods according to a temperature change difference in the first control period and the maximum output capacity.
[0125] The determining an actual working state of the temperature control system in each of the first control periods according to a temperature change difference in the first control period and the maximum output capacity comprises:
[0126] if the temperature change difference in the first control period and the maximum output capacity are within a preset first deviation range, the actual working state of the temperature control system is a linear state;
[0127] if the temperature change difference in the first control period and the maximum output capacity are within a preset second deviation range, the actual working state of the temperature control system is a limited state;
[0128] if the temperature change difference in the first control period and the maximum output capacity are within a preset third deviation range, the actual working state of the temperature control system is a saturated state.
[0129] For the temperature control system in the linear state, the determining the target control parameter of the PID algorithm in the second adjustment stage using the adjustment mode corresponding to the actual working state of the temperature control system in the first adjustment stage comprises:
[0130] performing a reducing adjustment on the first control period and the first control parameter of the first adjustment stage to obtain an adjusted second control period and a second control parameter; wherein the first control period is preset, and the first control parameter is a PID parameter corresponding to the maximum output capacity of the temperature control system;
[0131] controlling the temperature control system to work with the second control parameter to determine a temperature control effect of each sub-stage of the temperature control system in the second control period;
[0132] adjusting the second control parameter again according to the temperature control effect of each sub-stage with a control parameter corresponding to the minimum output capacity of the temperature control system as a target to obtain an adjusted target control parameter.
[0133] For the temperature control system in the limited state and the saturated state, the determining the target control parameter of the PID algorithm in the second adjustment stage using the adjustment mode corresponding to the actual working state of the temperature control system in the first adjustment stage comprises:
[0134] reducing the first control period to obtain an adjusted second control period;
[0135] controlling the temperature control system to work with the second control parameter, and determining temperature control effects of each sub-stage of the temperature control system under the second control period;
[0136] adjusting the second control parameter again according to the temperature control effects of each sub-stage, so as to obtain an adjusted target control parameter, wherein the target control parameter is close to a control parameter corresponding to a minimum output capacity of the temperature control system.
[0137] If the adjustment process is the second type, the target control parameter of the PID algorithm is determined according to a second determination manner corresponding to the second type, and the second determination manner comprises:
[0138] reducing the first control period and the first control parameter to obtain an adjusted second control period and a second control parameter, wherein the first control period is preset, and the first control parameter is a PID parameter corresponding to a maximum output capacity of the temperature control system;
[0139] controlling the temperature control system to work with the second control parameter, and determining temperature control effects of each sub-stage of the temperature control system under the second control period;
[0140] adjusting the second control parameter again according to the temperature control effects of each sub-stage, so as to obtain an adjusted target control parameter, wherein the target control parameter is close to a control parameter corresponding to a minimum output capacity of the temperature control system.
[0141] As shown in Figure 4 The embodiment of the present application provides an electronic device for executing the temperature control method in the present application, the device comprises a memory, a processor, a bus, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to realize the steps of the temperature control method.
[0142] Specifically, the memory and the processor can be general memory and processor, which are not limited here, and when the processor runs the computer program stored in the memory, the temperature control method can be executed.
[0143] Corresponding to the temperature control method in the present application, the embodiment of the present application further provides a computer readable storage medium, the computer readable storage medium stores a computer program, and the computer program is executed by the processor to execute the steps of the temperature control method.
[0144] Specifically, the storage medium can be a general storage medium such as a mobile disk, a hard disk, etc., and the computer program on the storage medium can execute the temperature control method described above when the computer program is run.
[0145] In the embodiments provided by the present application, it should be understood that the disclosed system and method can be implemented in other manners. The embodiments described above are merely exemplary, for example, the division of the units is only a logical function division, and there can be another division manner in actual implementation; for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different units, can be indirect couplings or communication connections through some interfaces, and electrical, mechanical or other forms.
[0146] The units described as separate components can or can not be physically separate, and the components displayed as units can or can not be physical units, and can be located in one place, or can be distributed on a plurality of network units. In actual implementation, some or all of the units can be selected according to the actual needs to achieve the purposes of the embodiments.
[0147] In addition, each functional unit in the embodiments provided by the present application can be integrated into one processing unit, or each unit can exist physically, or two or more units can be integrated into one unit.
[0148] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the parts that make contributions to the prior art, or parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0149] It should be noted that: similar reference numerals and letters in the following drawings represent similar items, and therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. In addition, the terms "first", "second", "third", etc. are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.
[0150] Finally, it should be noted that the above-described embodiments are merely specific implementations of the present application, and are not intended to limit the technical solutions of the present application. The protection scope of the present application is not limited thereto. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can make modifications or easily think of changes to the technical solutions described in the foregoing embodiments, or make equivalent replacements to some of the technical features, within the technical scope disclosed by the present application. Such modifications, changes or replacements do not cause the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application. All should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method of temperature control, characterized by, Acting on a temperature control system, the temperature control system realizes temperature control based on a PID algorithm, and the method comprises: According to the target temperature value to be reached and the current temperature value of the temperature control system, the target type of the adjustment process reaching the target temperature value is determined; wherein the target type comprises a first type or a second type; If the adjustment process is the first type, the target control parameter of the PID algorithm is determined according to the first determination mode corresponding to the first type; If the adjustment process is the second type, the target control parameter of the PID algorithm is determined according to the second determination mode corresponding to the second type; Based on the control parameter, the temperature control system is adjusted to reach the target temperature value; If the adjustment process is the first type, the target control parameter of the PID algorithm is determined according to the first determination mode corresponding to the first type, comprising: According to a preset stage temperature threshold, the adjustment process is divided into a first adjustment stage and a second adjustment stage; In the first adjustment stage, the temperature control system is controlled to reach the stage temperature threshold with maximum output capacity; In the second adjustment stage, the target control parameter of the PID algorithm is determined using an adjustment mode corresponding to the actual working state of the temperature control system in the first adjustment stage; The actual working state of the temperature control system in the first adjustment stage is determined by: Calculate the temperature control time required for the temperature control system to reach the stage temperature threshold with the maximum output capacity; wherein the temperature control time comprises a first number of first control periods; If the temperature change difference in the first control period and the maximum output capacity are within a preset first deviation range, the actual working state of the temperature control system is linear state; If the temperature change difference in the first control period and the maximum output capacity are within a preset second deviation range, the actual working state of the temperature control system is limited state; If the temperature change difference in the first control period and the maximum output capacity are within a preset third deviation range, the actual working state of the temperature control system is saturated state; For the temperature control system in limited state and saturated state, the target control parameter of the PID algorithm is determined in the second adjustment stage using an adjustment mode corresponding to the actual working state of the temperature control system in the first adjustment stage, comprising: The first control period and the first control parameter of the first adjustment stage are reduced to obtain the adjusted second control period and the second control parameter; wherein the first control period is preset, and the first control parameter is the PID parameter corresponding to the maximum output capacity of the temperature control system; The temperature control system is controlled to work with the second control parameter to determine the temperature control effect of each sub-stage of the temperature control system in the second control period; According to the temperature control effect of each sub-stage, the second control parameter is adjusted again to obtain the adjusted target control parameter, with the control parameter close to the minimum output capacity of the temperature control system as the goal.
2. The method of claim 1, wherein, For the linear state of the temperature control system, the second adjustment stage uses the adjustment mode corresponding to the actual working state of the temperature control system in the first adjustment stage to determine the target control parameter of the PID algorithm, including: The first control period and the first control parameter of the first adjustment stage are adjusted to obtain the adjusted second control period and the second control parameter; wherein the first control period is preset, and the first control parameter is the PID parameter corresponding to the maximum output capacity of the temperature control system; The second control parameter is used to control the working of the temperature control system to determine the temperature control effect of each sub-stage of the temperature control system under the second control period; The control parameter corresponding to the minimum output capacity of the temperature control system is used as the target, and the second control parameter is adjusted again according to the temperature control effect of each sub-stage to obtain the adjusted target control parameter.
3. The method of claim 1, wherein, If the adjustment process is the second type, the target control parameter of the PID algorithm is determined according to the second determination mode corresponding to the second type, including: The first control period and the first control parameter are adjusted to obtain the adjusted second control period and the second control parameter; wherein the first control period is preset, and the first control parameter is the PID parameter corresponding to the maximum output capacity of the temperature control system; The second control parameter is used to control the working of the temperature control system to determine the temperature control effect of each sub-stage of the temperature control system under the second control period; The control parameter corresponding to the minimum output capacity of the temperature control system is used as the target, and the second control parameter is adjusted again according to the temperature control effect of each sub-stage to obtain the adjusted target control parameter.
4. A temperature controlled device, characterized by Acting on the temperature control system, the temperature control system realizes temperature control based on the PID algorithm, and the device comprises: A first determination module is configured to determine a target type of an adjustment process according to a target temperature value to be reached and a current temperature value of the temperature control system; wherein the target type includes a first type or a second type; A second determination module is configured to determine a target control parameter of the PID algorithm according to a first determination mode corresponding to the first type if the adjustment process is the first type; A third determination module is configured to determine a target control parameter of the PID algorithm according to a second determination mode corresponding to the second type if the adjustment process is the second type; An adjustment module is configured to adjust the temperature control system based on the control parameter to reach the target temperature value; If the adjustment process is the first type, the target control parameter of the PID algorithm is determined according to the first determination mode corresponding to the first type, including: The adjustment process is divided into a first adjustment stage and a second adjustment stage according to a preset stage temperature threshold; In the first adjustment stage, the temperature control system is controlled to reach the stage temperature threshold with maximum output capacity; In the second adjustment stage, the target control parameter of the PID algorithm is determined using an adjustment mode corresponding to the actual working state of the temperature control system in the first adjustment stage; The actual working state of the temperature control system in the first adjustment stage is determined in the following manner: A temperature control time required for the temperature control system to reach the stage temperature threshold with the maximum output capacity is calculated; wherein the temperature control time comprises a first number of first control periods; If the temperature change difference in the first control period and the maximum output capacity are within a preset first deviation range, the actual working state of the temperature control system is linear; If the temperature change difference in the first control period and the maximum output capacity are within a preset second deviation range, the actual working state of the temperature control system is limited; If the temperature change difference in the first control period and the maximum output capacity are within a preset third deviation range, the actual working state of the temperature control system is saturated; For the temperature control system in the limited state and the saturated state, in the second adjustment stage, the target control parameter of the PID algorithm is determined using an adjustment mode corresponding to the actual working state of the temperature control system in the first adjustment stage, comprising: The first control period and the first control parameter of the first adjustment stage are adjusted to obtain an adjusted second control period and a second control parameter; wherein the first control period is preset, and the first control parameter is the PID parameter corresponding to the maximum output capacity of the temperature control system; The temperature control system is controlled to work with the second control parameter to determine the temperature control effect of each sub-stage of the temperature control system under the second control period; The second control parameter is adjusted again according to the temperature control effect of each sub-stage with the control parameter corresponding to the minimum output capacity of the temperature control system as the target to obtain an adjusted target control parameter.
5. An electronic device, comprising: It comprises: A processor, a memory and a bus, the memory stores machine readable instructions executable by the processor, when the electronic device is running, the processor and the memory communicate through the bus, the machine readable instructions are executed by the processor to execute the steps of the temperature control method in any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, which is executed by the processor to execute the steps of the temperature control method in any one of claims 1 to 3.
Citation Information
Patent Citations
Temperature control system and control method thereof, electronic equipment and storage medium
CN112612314A
Burner combustion type furnace
JP2010019474A