Temperature control method and device, electronic equipment and storage medium
By introducing a target type division mechanism and adaptive temperature rate adjustment in the temperature control system, the problems of overshoot and rate balance in high-precision temperature control in the prior art are solved, and high-precision and efficient temperature control effects are achieved.
Patent Information
- Application Number
- CN202411863169.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-12-17
AI Technical Summary
When high-precision temperature control is required, it is difficult to balance the relationship between overshoot and rate, resulting in inaccurate control or overshoot.
By introducing a target type division mechanism in the temperature control system, the temperature rate is adaptively adjusted according to the temperature difference value, and the temperature control process is optimized. The specific method includes dividing the first and second adjustment stages in the adjustment process, and adjusting the target control parameters of the PID algorithm according to the actual working state.
Accurate temperature control is achieved, effectively suppressing overshoot, and improving the accuracy and efficiency of temperature control.
Smart Images

Figure CN119717938A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of temperature control technology, and in particular to a temperature control method, device, electronic device and storage medium. Background Art
[0002] The PID algorithm is widely used in various industrial control systems, such as temperature control, speed control, position control, etc., because of its simplicity, effectiveness and wide application range. For example, in temperature control, the PID algorithm can adjust the power of the heating or cooling equipment through proportional, integral and differential operations according to the error between the temperature value fed back by the temperature sensor and the set temperature value, so as to achieve the purpose of precise temperature control.
[0003] In the prior art, in the process that requires high-precision control, it is often difficult to balance the relationship between overshoot and rate by adjusting the control parameters of the PID model to achieve high-precision control: if the rate is too large, it is easy to overshoot and even cause short-term oscillation; if the rate is too low, the adjustment time is prolonged, which is not conducive to achieving the working conditions. Some solutions improve their accuracy and control precision by introducing more sensor variables, which are often easily restricted by the working conditions of the use site, and also increase more system uncertainties. Summary of the invention
[0004] In view of this, the purpose of the present application is to provide a temperature control method, device, electronic device and storage medium to overcome the problems in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a temperature control method, which acts on a temperature control system, wherein the temperature control system implements temperature control based on a PID algorithm, and the method includes:
[0006] Determining a target type of an adjustment process for reaching the target temperature value 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;
[0007] If the adjustment process is of the first type, determining a target control parameter of the PID algorithm according to a first determination method corresponding to the first type;
[0008] If the adjustment process is of the second type, determining the target control parameter of the PID algorithm according to a second determination method corresponding to the second type;
[0009] The temperature control system is adjusted based on the control parameter to achieve the target temperature value.
[0010] In some technical solutions of the present application, if the adjustment process is of the first type, determining the target control parameter of the PID algorithm according to the first determination method corresponding to the first type includes:
[0011] According to a preset stage temperature threshold, the adjustment process is divided into a first adjustment stage and a second adjustment stage;
[0012] In the first adjustment stage, controlling the temperature control system to reach the stage temperature threshold with the maximum output capacity;
[0013] In the second adjustment stage, the target control parameter of the PID algorithm is determined using an adjustment method corresponding to the actual working state of the temperature control system in the first adjustment stage.
[0014] In some technical solutions of the present application, the above method determines the actual working state of the temperature control system in the first adjustment stage in the following manner:
[0015] Calculating the temperature control time required for the temperature control system to reach the stage temperature threshold at the maximum output capacity; wherein the temperature control time includes a first number of first control cycles;
[0016] The actual working state of the temperature control system in each first control period is determined according to the temperature change difference in each first control period and the maximum output capacity.
[0017] In some technical solutions of the present application, determining the actual working state of the temperature control system in the first control period according to the temperature change difference in each first control period and the maximum output capacity includes:
[0018] If the temperature change difference within 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 within 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 restricted state;
[0020] If the temperature change difference within 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 saturation state.
[0021] In some technical solutions of the present application, for the temperature control system in the linear state, in the second adjustment stage, using an adjustment method 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 includes:
[0022] The first control period and the first control parameter of the first adjustment stage are adjusted downward 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 temperature control system at the maximum output capacity;
[0023] Controlling the temperature control system to work with the second control parameter, and determining the temperature control effect of the temperature control system in each sub-stage under the second control cycle;
[0024] With the goal of approaching the control parameter corresponding to the minimum output capacity of the temperature control system, the second control parameter is adjusted again according to the temperature control effect of each sub-stage to obtain the adjusted target control parameter.
[0025] In some technical solutions of the present application, 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 method corresponding to the actual working state of the temperature control system in the first adjustment stage, including:
[0026] Lowering and adjusting the first control period of the first adjustment stage to obtain an adjusted second control period;
[0027] Controlling the temperature control system to work with the second control parameter, and determining the temperature control effect of the temperature control system in each sub-stage under the second control cycle;
[0028] With the goal of approaching the control parameter corresponding to the minimum output capacity of the temperature control system, the second control parameter is adjusted again according to the temperature control effect of each sub-stage to obtain the adjusted target control parameter.
[0029] In some technical solutions of the present application, if the adjustment process is the second type, determining the target control parameter of the PID algorithm according to the second determination method corresponding to the second type includes:
[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 temperature control system at the maximum output capacity;
[0031] Controlling the temperature control system to work with the second control parameter, and determining the temperature control effect of the temperature control system in each sub-stage under the second control cycle;
[0032] With the goal of approaching the control parameter corresponding to the minimum output capacity of the temperature control system, the second control parameter is adjusted again according to the temperature control effect of each sub-stage to obtain the adjusted target control parameter.
[0033] In a second aspect, an embodiment of the present application provides a temperature control device, which acts on a temperature control system, wherein the temperature control system implements temperature control based on a PID algorithm, and the device includes:
[0034] A first determination module, configured to determine a target type of an adjustment process for reaching the target temperature value according to the target temperature value to be reached and the current temperature value of the temperature control system; wherein the target type includes a first type or a second type;
[0035] a second determination module, configured to determine, if the adjustment process is of the first type, a target control parameter of the PID algorithm according to a first determination method corresponding to the first type;
[0036] a third determination module, configured to determine, if the adjustment process is of the second type, a target control parameter of the PID algorithm according to a second determination method corresponding to the second type;
[0037] An adjustment module is used to adjust the temperature control system based on the control parameter to achieve the target temperature value.
[0038] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned temperature control method when executing the computer program.
[0039] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned temperature control method are executed.
[0040] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0041] The method of the present application includes determining the target type of the adjustment process to achieve the target temperature value according to the target temperature value to be achieved and the current temperature value of the temperature control system; wherein the target type includes a first type or a second type; if the adjustment process is of the first type, the target control parameters of the PID algorithm are determined according to a 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 a second determination method corresponding to the second type; and the temperature control system is adjusted based on the control parameters to achieve the target temperature value. The embodiment of the present application adaptively controls the temperature rate according to the temperature difference, optimizes the entire temperature control process, achieves accurate temperature control, and effectively suppresses overshoot.
[0042] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 A schematic flow chart of a temperature control method provided in an embodiment of the present application is shown;
[0045] Figure 2 A schematic flow chart of another temperature control method provided in an embodiment of the present application is shown;
[0046] Figure 3 A schematic diagram of a temperature control device provided in an embodiment of the present application is shown;
[0047] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with 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 explanation and description 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 in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0049] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various 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 application claimed for protection, but merely represents the 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 making creative work belong to 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 existence 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, device, electronic device and storage medium, which are described below through embodiments.
[0052] The PID algorithm is widely used in various industrial control systems, such as temperature control, speed control, position control, etc., because of its simplicity, effectiveness and wide application range. For example, in temperature control, the PID algorithm can adjust the power of the heating or cooling equipment through proportional, integral and differential operations according to the error between the temperature value fed back by the temperature sensor and the set temperature value, so as to achieve the purpose of precise temperature control.
[0053] In the prior art, in the process that requires high-precision control, it is often difficult to balance the relationship between overshoot and rate by adjusting the control parameters of the PID model to achieve high-precision control: if the rate is too large, it is easy to overshoot and even cause short-term oscillation; if the rate is too low, the adjustment time is prolonged, which is not conducive to achieving the working conditions. Some solutions improve their accuracy and control precision by introducing more sensor variables, which are often easily restricted by the working conditions of the use site, and also increase more system uncertainties.
[0054] Figure 1 A flow chart of a temperature control method provided in an embodiment of the present application is shown, wherein the method acts on a temperature control system, and the temperature control system implements temperature control based on a PID algorithm. The method includes steps S101-S104; specifically:
[0055] S101, determining a target type of an adjustment process for reaching the target temperature value 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;
[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 method 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 method corresponding to the second type;
[0058] S104: Adjust the temperature control system based on the control parameter to achieve the target temperature value.
[0059] The embodiment of the present application adaptively controls the temperature rate according to the temperature difference, optimizes the entire temperature control process, achieves accurate temperature control, and effectively suppresses overshoot.
[0060] Some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0061] The embodiment of the present application provides a method for temperature control, which acts on a temperature control system, where the temperature control system can be a liquid cooling system or a heating system, etc. In order to adjust the temperature, the actual temperature control system generally includes a water pump and a compressor. The temperature control is achieved based on the PID algorithm by controlling the flow of the liquid by the water pump and the temperature of the liquid by the compressor. Before executing the temperature control method in the present application, it is necessary to determine the maximum output capacity Cmax and the minimum output capacity Cmin of the temperature control system. This can be obtained by testing the temperature control system.
[0062] Among them, the maximum output capacity is the temperature difference ΔTmax generated when the temperature control system outputs the maximum control power within a PID control cycle tp: Cmax = ΔTmax / tp;
[0063] The minimum output capacity is when the temperature control system outputs the minimum control power (often the minimum unit of control output), and the temperature difference generated within the tp period is ΔTmin: Cmin = ΔTmin / tp.
[0064] For ease of description, the control period here is referred to as the first control period in the embodiment of the present application. The first control period is set artificially based on experience or obtained through analysis of historical data. In addition, by adjusting the temperature control system, a desired temperature needs to be reached. The embodiment of the present application refers to the desired temperature as the target temperature value, and the current temperature of the temperature control system as the current temperature value. That is, what the embodiment of the present application needs to achieve is to adjust the PID algorithm of the temperature control system so that the temperature rises / drops from the current temperature value to the target temperature value.
[0065] In order to make the above adjustment process more efficient, before making the adjustment, the embodiment of the present application first judges the adjustment process and determines the target type of the adjustment process. The target type here includes the first type or the second type. Different types correspond to different ways of determining the target control parameters of the PID algorithm.
[0066] Specifically, the basis for determining the target type of the adjustment process is the difference between the target temperature value to be achieved and the current temperature value of the temperature control system. For example, the target temperature value is recorded as Sv and the current temperature value is recorded as Sa; the first temperature difference between the two is compared with the 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 making adjustments, the embodiment of the present application divides the adjustment process into a first adjustment stage and a second adjustment stage according to a preset stage temperature threshold. Among them, the first adjustment stage is to ensure the efficiency of the 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 the 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 recorded as Sr; the entire adjustment process in the embodiment of the present application can be expressed as Sv = Sr + n*Cmin; wherein, the first adjustment stage needs to reach Sr, and 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. If it is too large, the control of the first stage will lose its meaning. If n is too small, it may result in too few adjustments and the overshoot cannot be effectively controlled.
[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 cycles; according to the temperature change difference in each of the first control cycles and the maximum output capacity, the actual working state of the temperature control system in the first control cycle is determined. If the temperature change difference in the first control cycle 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; if the temperature change difference in the first control cycle and the maximum output capacity are within a preset second deviation range, the actual working state of the temperature control system is a restricted state; if the temperature change difference in the first control cycle 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.
[0070] Specifically, in the first adjustment stage, the temperature control system works at the maximum output capacity. When Sr is reached, the theoretical temperature control time is tm = (Sv-Sa) / Cmax. Then, after the first number m = tm / tp control cycles, the temperature should be close to Sr. Before reaching Sr, the temperature change difference Cn (n = 1...m) within each tp time is recorded.
[0071] If Cn and Cmax are always close (within the preset first deviation range, where the first deviation range can be used to indicate that the difference between Cn and Cmax is less than the preset first state temperature threshold), it is considered that the temperature control system is still in the linear working range and has a good dynamic response, and it is recorded as being in the linear state (state 1) at this time.
[0072] If the value of Cn becomes smaller and smaller, and the gap between it and Cmax becomes larger and larger (within the preset second deviation range, where the second deviation range can be used to indicate that the difference between Cn and Cmax is greater than or equal to the preset first state temperature threshold), but the minimum value of Cn is still greater than Cmin, it means that the temperature control system is close to saturation and its output capacity is limited. It is recorded as a limited state (state 2).
[0073] If the value of Cn becomes smaller and smaller and is already smaller than Cmin (within the preset third deviation range, where the third deviation range can be used to indicate that the difference between Cn and Cmin is greater than or equal to the preset second state temperature threshold), it means that the system is saturated and its output capacity is severely limited, and it is recorded as a saturated state (state 3).
[0074] For temperature control systems in different actual working states in the first adjustment stage, the embodiments of the present application use different processing methods in the second adjustment stage: for the temperature control system in a linear state, 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, including: reducing and adjusting the first control period and the first control parameter of the first adjustment stage to obtain an adjusted second control period and 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; controlling the temperature control system 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; with the purpose of approaching the control parameter corresponding to the minimum output capacity of the temperature control system, adjusting the second control parameter 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, 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, including: reducing the first control period of the first adjustment stage to obtain an adjusted second control period; controlling the operation of the temperature control system with the second control parameters to determine the temperature control effect of each sub-stage of the temperature control system in the second control period; with the purpose of approaching the control parameter corresponding to the minimum output capacity of the temperature control system, 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, Figure 2 As shown, for a system in state 1, entering the second stage of control process, the reduction of the first control cycle can be to adjust the PID control cycle to tp / 2 (second control cycle). 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:
[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 temperature control system at the maximum output capacity, including the proportional term, the integral term and the differential term) is as follows: reducing the effect of the proportional term to 0.8 times the original, the effect of the integral term to 0.75 times the original, and the effect of the differential term to 0.75 times the original, as the initial parameters of the second stage, and starting the temperature control system.
[0078] Monitor the second temperature difference between each small stage Svm and the actual temperature target: if the second temperature difference is significantly smaller than Svm (indicated by the difference between Svm and the second temperature being greater than or equal to a preset third state temperature threshold), increase the effect of the proportional term and weaken the effect of the differential term;
[0079] If the second temperature difference is close to Svm (indicated by the difference between Svm and the second temperature being less than a preset fourth state temperature threshold), continue to use the set of parameters to execute the PID process;
[0080] If the second temperature difference is significantly higher than Svm (indicated by the difference between the second temperature difference and Svm being greater than or equal to a preset fifth state temperature threshold), the effect of the proportional term is weakened.
[0081] The ratio Q between the change value of the actual value and Cmin in each second control period is calculated, and the adjustment strategy of the proportional term is as follows:
[0082] If Q>1, it means that the overshoot trend is obvious, the effect of the proportional term is reduced to (Q-1) times the original, and the effect of the differential term remains unchanged;
[0083] If Q = 1, it means that the overshoot trend is very weak, the proportional term effect remains unchanged, and the differential term effect remains unchanged;
[0084] If Q<1, it means that the power output becomes weaker, the proportional effect is strengthened to 1 / Q times of the original, and the differential effect is weakened to Q times of the original.
[0085] The adjustment range of the parameters can be carried out according to the actual effect, and the rate can be maintained at Cmin through multiple dynamic adjustments.
[0086] For the system in state 2 and state 3, the control process of entering the second stage can be reduced by adjusting the control period of PID to tp / 2 (second control period), decomposing n*Cmin into k=2*n small stages, and obtaining the target temperature sub-value (Svm) of each small stage according to the following formula:
[0087] Svm=Sr+(k*Cmin / 2)(k=1...2*n);
[0088] Keep the original PID parameter combination, clear the integral item and recalculate, then start the temperature control system.
[0089] Monitor the second temperature difference between each small stage Svm and the actual temperature target: if the second temperature difference is significantly smaller than Svm (indicated by the difference between Svm and the second temperature being greater than or equal to a preset third state temperature threshold), increase the effect of the proportional term and weaken the effect of the differential term;
[0090] If the second temperature difference is close to Svm (indicated by the difference between Svm and the second temperature being 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 (indicated by the difference between the second temperature difference and Svm being greater than or equal to a preset fifth state temperature threshold), the effect of the proportional term is weakened.
[0092] The ratio Q between the change value of the actual value and Cmin in each second control period is calculated, and the adjustment strategy of the proportional term is as follows:
[0093] If Q>1, it means that the overshoot trend is obvious, the effect of the proportional term is reduced to (Q-1) times the original, and the effect of the differential term remains unchanged;
[0094] If Q = 1, it means that the overshoot trend is very weak, the proportional term effect remains unchanged, and the differential term effect remains unchanged;
[0095] If Q<1, it means that the power output becomes weaker, the proportional effect is strengthened to 1 / Q times of the original, and the differential effect is weakened to Q times of the original.
[0096] The adjustment range of the parameters can be carried out according to the actual effect, and the rate can be maintained at Cmin through multiple dynamic adjustments.
[0097] In an optional implementation, if the adjustment process is the second type, determining the target control parameter of the PID algorithm according to a second determination method corresponding to the second type includes:
[0098] 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 temperature control system at the maximum output capacity;
[0099] Controlling the temperature control system to work with the second control parameter, and determining the temperature control effect of the temperature control system in each sub-stage under the second control cycle;
[0100] With the goal of approaching the control parameter corresponding to the minimum output capacity of the temperature control system, the second control parameter is adjusted again according to the temperature control effect of each sub-stage to obtain the adjusted target control parameter.
[0101] Specifically, the reduction of the first control period can be achieved by adjusting the control period of PID to tp / 2 (second control period), decomposing n*Cmin into k=2*n small stages, and obtaining the target temperature sub-value (Svm) of each small stage according to the following formula:
[0102] Svm=Sr+(k*Cmin / 2)(k=1...2*n);
[0103] Keep the original PID parameter combination, clear the integral item and recalculate, then start the temperature control system.
[0104] Monitor the second temperature difference between each small stage Svm and the actual temperature target: if the second temperature difference is significantly smaller than Svm (indicated by the difference between Svm and the second temperature being greater than or equal to a preset third state temperature threshold), increase the effect of the proportional term and weaken the effect of the differential term;
[0105] If the second temperature difference is close to Svm (indicated by the difference between Svm and the second temperature being less than a preset fourth state temperature threshold), continue to use the set of parameters to execute the PID process;
[0106] If the second temperature difference is significantly higher than Svm (indicated by the difference between the second temperature difference and Svm being greater than or equal to a preset fifth state temperature threshold), the effect of the proportional term is weakened.
[0107] The ratio Q between the change value of the actual value and Cmin in each second control period is calculated, and the adjustment strategy of the proportional term is as follows:
[0108] If Q>1, it means that the overshoot trend is obvious, the effect of the proportional term is reduced to (Q-1) times the original, and the effect of the differential term remains unchanged;
[0109] If Q = 1, it means that the overshoot trend is very weak, the proportional term effect remains unchanged, and the differential term effect remains unchanged;
[0110] If Q<1, it means that the power output becomes weaker, the proportional effect is strengthened to 1 / Q times of the original, and the differential effect is weakened to Q times of the original.
[0111] The adjustment range of the parameters can be carried out according to the actual effect, and the rate can be maintained at Cmin through multiple dynamic adjustments.
[0112] This application improves the accuracy of temperature control: in the first stage of temperature control, the maximum power output is used to achieve the first stage target as quickly as possible. In the second stage, the temperature control rate is adaptively adjusted to achieve the purpose of no overshoot or controllable overshoot, thereby improving the accuracy of temperature control. The time to reach the target temperature value is reduced. In the first stage of temperature control, the maximum power output is used to maintain the maximum temperature control rate, shortening the time. In the second stage, the PID adjustment time is reduced by effectively controlling the overshoot, thereby reducing the time to reach the temperature control target throughout the entire process.
[0113] Figure 3 A schematic diagram of the structure of a temperature control device provided in an embodiment of the present application is shown, which acts on a temperature control system. The temperature control system implements temperature control based on a PID algorithm. The device includes:
[0114] A first determination module, configured to determine a target type of an adjustment process for reaching the target temperature value according to the target temperature value to be reached and the current temperature value of the temperature control system; wherein the target type includes a first type or a second type;
[0115] a second determination module, configured to determine, if the adjustment process is of the first type, a target control parameter of the PID algorithm according to a first determination method corresponding to the first type;
[0116] a third determination module, configured to determine, if the adjustment process is of the second type, a target control parameter of the PID algorithm according to a second determination method corresponding to the second type;
[0117] An adjustment module is used to adjust the temperature control system based on the control parameter to achieve the target temperature value.
[0118] If the adjustment process is of the first type, determining the target control parameter of the PID algorithm according to a first determination method corresponding to the first type includes:
[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, controlling the temperature control system to reach the stage temperature threshold with the maximum output capacity;
[0121] In the second adjustment stage, the target control parameter of the PID algorithm is determined using an adjustment method corresponding to the actual working state of the temperature control system in the first adjustment stage.
[0122] The actual working state of the temperature control system in the first adjustment phase is determined by:
[0123] Calculating the temperature control time required for the temperature control system to reach the stage temperature threshold at the maximum output capacity; wherein the temperature control time includes a first number of first control cycles;
[0124] The actual working state of the temperature control system in each first control period is determined according to the temperature change difference in each first control period and the maximum output capacity.
[0125] Determining the actual working state of the temperature control system in each first control period according to the temperature change difference in each first control period and the maximum output capacity includes:
[0126] If the temperature change difference within 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 within 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 restricted state;
[0128] If the temperature change difference within 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 saturation state.
[0129] For the temperature control system in a linear state, in the second adjustment stage, determining the target control parameter of the PID algorithm using an adjustment method corresponding to the actual working state of the temperature control system in the first adjustment stage includes:
[0130] The first control period and the first control parameter of the first adjustment stage are adjusted downward 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 temperature control system at the maximum output capacity;
[0131] Controlling the temperature control system to work with the second control parameter, and determining the temperature control effect of the temperature control system in each sub-stage under the second control cycle;
[0132] With the goal of approaching the control parameter corresponding to the minimum output capacity of the temperature control system, the second control parameter is adjusted again according to the temperature control effect of each sub-stage to obtain the adjusted target control parameter.
[0133] For the temperature control system in the limited state and the saturated state, in the second adjustment stage, determining the target control parameter of the PID algorithm using an adjustment method corresponding to the actual working state of the temperature control system in the first adjustment stage includes:
[0134] Lowering and adjusting the first control period of the first adjustment stage to obtain an adjusted second control period;
[0135] Controlling the temperature control system to work with the second control parameter, and determining the temperature control effect of the temperature control system in each sub-stage under the second control cycle;
[0136] With the goal of approaching the control parameter corresponding to the minimum output capacity of the temperature control system, the second control parameter is adjusted again according to the temperature control effect of each sub-stage to obtain the adjusted target control parameter.
[0137] If the adjustment process is of the second type, determining the target control parameter of the PID algorithm according to a second determination method corresponding to the second type includes:
[0138] 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 temperature control system at the maximum output capacity;
[0139] Controlling the temperature control system to work with the second control parameter, and determining the temperature control effect of the temperature control system in each sub-stage under the second control cycle;
[0140] With the goal of approaching the control parameter corresponding to the minimum output capacity of the temperature control system, the second control parameter is adjusted again according to the temperature control effect of each sub-stage to obtain the adjusted target control parameter.
[0141] like Figure 4 As shown, an embodiment of the present application provides an electronic device for executing the temperature control method in the present application, the device includes a memory, a processor, a bus, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the temperature control method when executing the computer program.
[0142] Specifically, the above-mentioned memory and processor may be general-purpose memory and processor, which are not specifically limited here. When the processor runs the computer program stored in the memory, the above-mentioned temperature control method can be executed.
[0143] Corresponding to the temperature control method in the present application, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned temperature control method are executed.
[0144] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, the above-mentioned temperature control method can be executed.
[0145] In the embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. The system embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.
[0146] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0147] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0148] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0149] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0150] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A temperature control method, characterized in that: Acting on a temperature control system, the temperature control system realizes temperature control based on a PID algorithm, and the method comprises: Determining a target type of an adjustment process for reaching the target temperature value 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; If the adjustment process is of the first type, determining a target control parameter of the PID algorithm according to a first determination method corresponding to the first type; If the adjustment process is of the second type, determining the target control parameter of the PID algorithm according to a second determination method corresponding to the second type; The temperature control system is adjusted based on the control parameter to achieve the target temperature value.
2. The method according to claim 1, characterized in that If the adjustment process is of the first type, determining the target control parameter of the PID algorithm according to a first determination method corresponding to the first type includes: 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, controlling the temperature control system to reach the stage temperature threshold with the maximum output capacity; In the second adjustment stage, the target control parameter of the PID algorithm is determined using an adjustment method corresponding to the actual working state of the temperature control system in the first adjustment stage.
3. The method according to claim 2, characterized in that The method determines the actual working state of the temperature control system in the first adjustment phase by: Calculating the temperature control time required for the temperature control system to reach the stage temperature threshold at the maximum output capacity; wherein the temperature control time includes a first number of first control cycles; The actual working state of the temperature control system in each first control period is determined according to the temperature change difference in each first control period and the maximum output capacity.
4. The method according to claim 3, characterized in that The determining, 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 includes: If the temperature change difference within 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; If the temperature change difference within 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 restricted state; If the temperature change difference within 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 saturation state.
5. The method according to claim 4, characterized in that For the temperature control system in a linear state, in the second adjustment stage, determining the target control parameter of the PID algorithm using an adjustment method corresponding to the actual working state of the temperature control system in the first adjustment stage includes: The first control period and the first control parameter of the first adjustment stage are adjusted downward 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 temperature control system at the maximum output capacity; Controlling the temperature control system to work with the second control parameter, and determining the temperature control effect of the temperature control system in each sub-stage under the second control cycle; With the goal of approaching the control parameter corresponding to the minimum output capacity of the temperature control system, the second control parameter is adjusted again according to the temperature control effect of each sub-stage to obtain the adjusted target control parameter.
6. The method according to claim 4, characterized in that For the temperature control system in the limited state and the saturated state, in the second adjustment stage, determining the target control parameter of the PID algorithm using an adjustment method corresponding to the actual working state of the temperature control system in the first adjustment stage includes: Lowering and adjusting the first control period of the first adjustment stage to obtain an adjusted second control period; Controlling the temperature control system to work with the second control parameter, and determining the temperature control effect of the temperature control system in each sub-stage under the second control cycle; With the goal of approaching the control parameter corresponding to the minimum output capacity of the temperature control system, the second control parameter is adjusted again according to the temperature control effect of each sub-stage to obtain the adjusted target control parameter.
7. The method according to claim 1, characterized in that If the adjustment process is of the second type, determining the target control parameter of the PID algorithm according to a second determination method corresponding to the second type includes: 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 temperature control system at the maximum output capacity; Controlling the temperature control system to work with the second control parameter, and determining the temperature control effect of the temperature control system in each sub-stage under the second control cycle; With the goal of approaching the control parameter corresponding to the minimum output capacity of the temperature control system, the second control parameter is adjusted again according to the temperature control effects of each sub-stage to obtain an adjusted target control parameter.
8. A temperature control device, characterized in that: Acting on a temperature control system, the temperature control system realizes temperature control based on a PID algorithm, and the device comprises: A first determination module, configured to determine a target type of an adjustment process for reaching the target temperature value according to the target temperature value to be reached and the current temperature value of the temperature control system; wherein the target type includes a first type or a second type; a second determination module, configured to determine, if the adjustment process is of the first type, a target control parameter of the PID algorithm according to a first determination method corresponding to the first type; a third determination module, configured to determine, if the adjustment process is of the second type, a target control parameter of the PID algorithm according to a second determination method corresponding to the second type; An adjustment module is used to adjust the temperature control system based on the control parameter to achieve the target temperature value.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the temperature control method as described in any one of claims 1 to 7 are performed.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the temperature control method according to any one of claims 1 to 7 are executed.
Citation Information
Patent Citations
Electric vehicle controller and motor over-temperature protection method thereof
CN105553385A
3D printer temperature control system
CN106444899A
Temperature control method and related device
CN110716592A
Temperature control system and control method thereof, electronic equipment and storage medium
CN112612314A
Method for controlling temperature of flowing liquid through temperature control device
CN113050725A