CN115808872A - PID parameter self-tuning algorithm for temperature control - Google Patents

PID parameter self-tuning algorithm for temperature control Download PDF

Info

Publication number
CN115808872A
CN115808872A CN202211487031.5A CN202211487031A CN115808872A CN 115808872 A CN115808872 A CN 115808872A CN 202211487031 A CN202211487031 A CN 202211487031A CN 115808872 A CN115808872 A CN 115808872A
Authority
CN
China
Prior art keywords
temperature
thr
controlled environment
excitation
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211487031.5A
Other languages
Chinese (zh)
Inventor
李继磊
孙涛
周玉凯
宋小福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Yuntaili Automation Equipment Co ltd
Original Assignee
Chengdu Yuntaili Automation Equipment Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Yuntaili Automation Equipment Co ltd filed Critical Chengdu Yuntaili Automation Equipment Co ltd
Priority to CN202211487031.5A priority Critical patent/CN115808872A/en
Publication of CN115808872A publication Critical patent/CN115808872A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Feedback Control In General (AREA)
  • Control Of Temperature (AREA)

Abstract

The invention aims to provide a PID parameter self-tuning algorithm for temperature control, which can effectively avoid large overshoot, ensure the stability of temperature and has high tuning speed. The method comprises the steps of executing self-tuning when equipment starts temperature control, gradually changing the temperature in the controlled environment by recording the time of reaching the temperature limit value and the target temperature when the temperature is regulated at full power, executing output variable excitation to a temperature control module according to an excitation function after the target temperature is reached, then collecting the actual temperature limit value of the controlled environment and the time of returning to the temperature limit value after the target temperature is reached, and calculating PID control parameters according to the limit value of the actual temperature, the maximum excitation, the temperature limit value, t0, t1 and t2 and the control period TC of a controller and by combining a Ziegler-Nichols method. The invention is applied to the technical field of PID control.

Description

PID parameter self-tuning algorithm for temperature control
Technical Field
The invention is applied to the technical field of PID control, and particularly relates to a PID parameter self-tuning algorithm for temperature control.
Background
For products or places which are sensitive to the environmental temperature, in order to ensure that the products or articles in the places cannot be in the form or go bad due to the change of the temperature, the temperature of the places needs to be strictly controlled, such as places with strict temperature control requirements, such as a granary, a greenhouse and the like, and also such as a raw material melting and heat insulation structure in injection molding equipment. Most of the existing temperature control devices adopt a PID controller to automatically adjust the temperature basically so as to ensure that the temperature of a place is relatively constant.
The conventional temperature PID control parameters mainly comprise a step open loop self-setting method, a step closed loop self-setting method, a relay self-setting method and a relay feedback self-setting method.
The step open-loop self-setting method comprises the steps of applying steps to input and waiting until a steady state is reached (process variables are kept unchanged), supposing that a user can model any process into first-order lag and pure dead time, testing the dead time Td, the time constant T and the process gain K value of a controller by the step open-loop self-setting method, and multiplying the dead time Td, the time constant T and the process gain K value according to a formula of a heuristic method; for example, most PIDs use the Ziegler-Nichols method. The step closed loop self-setting method is similar to the step open loop method and reaches a steady state faster than the step open loop method. As shown in fig. 1, the relay self-tuning method is to determine information required for tuning a controller by using a set value relay experiment. The relay feedback self-tuning method is a variant of closed loop step test, but is more effective for a system with large time constant.
In the method, the open loop and relay algorithms are greatly overshot, and danger is possibly caused in high-temperature control occasions. Meanwhile, excitation can be suddenly cancelled (or reverse maximum excitation is applied) in setting of an open-loop and relay algorithm, so that noise is brought by sudden change of a system. In addition, the setting time of the relay algorithm is long, and at least two cycles are needed for stabilization.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a PID parameter self-tuning algorithm for temperature control, which can effectively avoid large overshoot, ensure the stability of temperature and has high tuning speed.
The technical scheme adopted by the invention is as follows: the invention comprises the following steps:
and step S1.Setting a target temperature T and a temperature threshold T thr
S2, executing self-tuning;
s3, initializing the initial stage with the initialization time t of 0, and outputting the maximum excitation E by the equipment Max The temperature control module is used for controlling the actual temperature A in the controlled environment to change to the target temperature T;
s4, when the actual temperature A reaches the temperature threshold T thr Then, recording the current time as time t0;
s5, recording the current time as a moment T1 when the actual temperature A reaches the target temperature T;
s6, the equipment executes and outputs the variable excitation E to the temperature control module according to the excitation function so as to change the temperature in the controlled environment, and extreme value T of the actual temperature A after the moment T1 is collected ext (ii) a The excitation function is
Figure SMS_1
Wherein t is the current moment;
s7, when the actual temperature A returns to the temperature threshold T at the moment T0 thr Then, recording the current time as a time t2;
s8, according to the extreme value T of the actual temperature ext Maximum excitation E Max Temperature threshold T thr T0, t1, t2 and a control period TC, and a Ziegler-Nichols method is combined to calculate PID control parameters.
According to the scheme, the function recorded in the step S6 is used as the excitation function, the excitation signal of the temperature control module can be adjusted in time, and further the situation that the actual temperature exceeds the set upper limit or lower limit due to the fact that the temperature is greatly overshot in the self-adjusting process is effectively restrained, and the fact that articles, raw materials and the like in a controlled scene cannot be damaged or deteriorated is guaranteed. Meanwhile, the excitation function can be adopted to complete parameter setting in a control period, so that the temperature is relatively constant in the setting process, and the temperature control effect is ensured. In addition, the method can also realize no mutation in the setting process, and is favorable for filtering and collecting disturbance when the actual temperature is collected.
Preferably, the temperature threshold T is thr Including an upper temperature limit T Max And a lower temperature limit T min (ii) a When the demand of the controlled environment is a temperature rise, the temperature threshold T in step S4 thr Is a lower limit of temperature T min (ii) a When the demand of the controlled environment is cooling, the temperature threshold T in step S4 thr Is the upper temperature limit T Max
One preferable scheme is that the Ziegler-Nichols method in the step S8 is to calculate a limit gain KU and an oscillation period TU according to the obtained parameters, and to select calculation coefficients of a proportional parameter Kc, an integral action parameter Ti, and a differential action parameter Td according to a temperature change speed of a controlled environment; wherein the ultimate gain KU satisfies
Figure SMS_2
Said oscillation period TU satisfying
Figure SMS_3
Preferably, the variation of the excitation function according to the controlled scene and the hardware parameters of the device is
Figure SMS_4
Wherein
Figure SMS_5
,
Figure SMS_6
Figure SMS_7
The coefficients are calculated according to the controlled scene and the hardware parameters of the device.
Drawings
FIG. 1 is a working schematic diagram of a conventional relay self-tuning method;
FIG. 2 is a diagram of the variation of the excitation signal according to the first embodiment of the present invention;
fig. 3 is a graph showing the temperature change according to the first embodiment of the present invention.
Detailed Description
The first embodiment is as follows:
in this embodiment, the temperature control mode is temperature rise control, the temperature of the controlled scene is reduced along with the time change, the device includes a temperature sensor for detecting the real-time temperature a in the controlled environment and a heating device for increasing the temperature in the controlled environment, the heating device is controlled by a PID controller or a P controller or a PI controller for heating power, and the heating power is adjusted by adjusting the output excitation signal; and PID algorithm parameter adjustment is carried out through the PID parameter self-tuning algorithm, so that temperature fluctuation is smaller when constant temperature is executed.
As shown in fig. 2 and 3, the PID parameter self-tuning algorithm includes the following steps:
s1, determining the temperature requirement in the environment according to the physical properties or chemical properties of the controlled environment and the articles in the environment, and communicating with equipment through a computer to carry out target temperature T and upper temperature limit T Max And a lower temperature limit T min Setting (2);
s2, starting the PID controller to self-tune;
s3, initializing the time t to be 0 at the initial stage of self-tuning, and outputting the maximum excitation E by the equipment at the time Max When the temperature control module is reached, the temperature control module heats the controlled environment at full power, so that the actual temperature A in the controlled environment is gradually increased;
s4, when the temperature sensor detects that the actual temperature A of the current time reaches the lower temperature limit T min Then, the system records the current time as the time t0 and keeps the full-power temperature rise;
s5, when the temperature sensor detects that the actual temperature A of the current time reaches the target temperature T, the system records the current time as a moment T1, and stops full-power temperature rise and shifts to a variable temperature mode;
s6, in the temperature changing mode, the equipment executes and outputs the variable excitation E to the temperature control module according to the excitation function, so that the power of the temperature control module is gradually reduced, the temperature in the controlled environment is influenced by the waste heat of the temperature control module to keep the temperature rise for a short time and then is reduced, the actual temperature A temperature change after the time t1 is monitored in real time, and the maximum value A of the real-time temperature in the temperature changing process is obtained Max
The excitation function is
Figure SMS_8
Wherein t is the current moment;
s7, when the actual temperature A falls back to the lower temperature limit T min Then, the system records the current time as the time t2;
s8, according to the maximum value A of the actual temperature Max Maximum excitation E Max Lower limit of temperature T min T0, t1, t2 and the control period TC of the PID controller, and the PID control parameters are calculated by combining a Ziegler-Nichols method.
In this embodiment, the control period TC of the PID controller is determined according to the parameter table corresponding to the model of the selected PID controller, and is an inherent parameter of the selected PID controller.
The Ziegler-Nichols method in the step S8 is a method for setting a PID controller and exploring the control parameters of the PID controller. The tuning is performed by first setting the integral and differential gains to 0, then gradually increasing the proportional gain from zero until a limit gain KU is reached, at which time the controller output value oscillates at a constant value, and the limit gain KU and the oscillation period TU set the proportional, integral and differential gains in the following table according to different types.
Controlling the temperature of the controlled environment by the temperature control module through the excitation function to further obtain the parameters, and calculating a limit gain KU and an oscillation period TU through the parameters, wherein the limit gain KU meets the requirement of
Figure SMS_9
Said oscillation period TU satisfying
Figure SMS_10
As shown in table 1, the calculation coefficients of the proportional parameter Kc, the integral action parameter Ti, and the derivative action parameter Td are selected according to the temperature change speed of the controlled environment and the type of the controller.
Figure SMS_11
For example, a calculation coefficient corresponding to the rapid performance is selected from the heating and melting scenes of the injection molding raw materials so as to meet the scene with rapid temperature change. And if the temperature of the granary is controlled and the like, in a scene with slow temperature change, the calculation coefficient corresponding to the normal performance or the slow performance is selected.
And calculating the values of the proportional parameter Kc, the integral action parameter Ti and the differential action parameter Td through the selected calculation coefficients, and outputting the values to the PID controller to execute the temperature control of the controlled environment so as to ensure that the temperature in the controlled environment is relatively constant.
Example two:
in this embodiment, the difference between this embodiment and the first embodiment is: the variation of the excitation function according to the controlled scene and the hardware parameters of the device is
Figure SMS_12
Wherein
Figure SMS_13
,
Figure SMS_14
Figure SMS_15
The coefficients are calculated according to the controlled scene and the hardware parameters of the device.
The speed of temperature change can be different because of hardware parameter difference in different temperature control modules and the controlled scene, in order to adapt to different temperature change speeds and adapt to the control cycle TC of different controllers, the change curve when the temperature falls back is adjusted through the deformation of the excitation function, and then the PID parameter which can satisfy the temperature stability of the corresponding scene is obtained.
While the embodiments of the present invention have been described in terms of practical embodiments, they are not to be construed as limiting the meaning of the present invention, and modifications of the embodiments and combinations with other embodiments will be apparent to those skilled in the art in light of the present description.

Claims (4)

1. A PID parameter self-tuning algorithm for temperature control is characterized by comprising the following steps:
s1, setting a target temperature T and a temperature threshold value T thr
S2, executing self-tuning;
s3, initializing the initial stage with the initialization time t of 0, and outputting the maximum excitation E by the equipment Max The temperature control module is used for controlling the actual temperature A in the controlled environment to change to the target temperature T;
s4, when the actual temperature A reaches a temperature threshold T thr Then, recording the current time as a moment t0;
s5, recording the current time as a moment T1 when the actual temperature A reaches the target temperature T;
s6, the equipment outputs the variable excitation E to the temperature control module according to the excitation function execution to change the temperature in the controlled environment, and collects an extreme value T of the actual temperature A after the moment T1 ext (ii) a The excitation function is
Figure QLYQS_1
Wherein t is the current moment;
s7, when the actual temperature A returns to the temperature threshold T at the moment T0 thr Then, recording the current time as a moment t2;
s8, according to the extreme value T of the actual temperature ext Maximum excitation E Max Temperature threshold T thr T0, t1, t2 and a control period TC, and calculating PID control parameters by combining a Ziegler-Nichols method.
2. The PID parameter self-tuning algorithm for temperature control according to claim 1, wherein the temperature threshold T is thr Including an upper temperature limit T Max And a lower temperature limit T min (ii) a When the demand of the controlled environment is a temperature rise, the temperature threshold T in step S4 thr Is a lower temperature limit T min (ii) a When the requirement of the controlled environment is temperature reduction, the temperature threshold T in the step S4 thr Is the upper temperature limit T Max
3. A method as claimed in claim 1The PID parameter self-tuning algorithm for temperature control is characterized in that the Ziegler-Nichols method in the step S8 is to calculate a limit gain KU and an oscillation period TU according to the obtained parameters, and to select the calculation coefficients of a proportional parameter Kc, an integral action parameter Ti and a differential action parameter Td according to the temperature change speed of the controlled environment; wherein the ultimate gain KU satisfies
Figure QLYQS_2
Said oscillation period TU satisfying
Figure QLYQS_3
4. The PID parameter self-tuning algorithm for temperature control according to claim 1, wherein the variation of the excitation function according to the controlled scene and the hardware parameter of the device is
Figure QLYQS_4
Wherein
Figure QLYQS_5
,
Figure QLYQS_6
Figure QLYQS_7
The coefficients are calculated according to the controlled scene and the hardware parameters of the device.
CN202211487031.5A 2022-11-25 2022-11-25 PID parameter self-tuning algorithm for temperature control Pending CN115808872A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211487031.5A CN115808872A (en) 2022-11-25 2022-11-25 PID parameter self-tuning algorithm for temperature control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211487031.5A CN115808872A (en) 2022-11-25 2022-11-25 PID parameter self-tuning algorithm for temperature control

Publications (1)

Publication Number Publication Date
CN115808872A true CN115808872A (en) 2023-03-17

Family

ID=85484084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211487031.5A Pending CN115808872A (en) 2022-11-25 2022-11-25 PID parameter self-tuning algorithm for temperature control

Country Status (1)

Country Link
CN (1) CN115808872A (en)

Similar Documents

Publication Publication Date Title
EP2985563B1 (en) Device for controlling cooling system
CN107783423B (en) PID parameter self-tuning method and device based on machine learning
Mudi et al. Performance improvement of PI controllers through dynamic set-point weighting
CN108508870B (en) Method for evaluating performance and optimizing parameters of boiler drum water level control system
CN107765741B (en) Decoupling control method and system for temperature and humidity of greenhouse
CN108268071A (en) A kind of heating boiler temprature control method based on Smith-PID
Padhan et al. Modified Smith predictor and controller for time delay processes
Sukede et al. Auto tuning of PID controller
Daful Comparative study of PID tuning methods for processes with large & small delay times
Visek et al. Performance analysis of a solar cooling system using self tuning fuzzy-PID control with TRNSYS
JP2001117603A (en) Control arithmetic unit and control arithmetic method
CN111413865B (en) Disturbance compensation single-loop superheated steam temperature active disturbance rejection control method
CN110094838B (en) Variable parameter model-free self-adaptive control method based on air conditioning system
JP2007045684A5 (en)
US6128586A (en) Method and device for controlling a self-regulating, delayed process
CN115808872A (en) PID parameter self-tuning algorithm for temperature control
JP4648448B2 (en) Closed loop process control device including PID regulator
Wang et al. Research on PID parameter tuning of coordinated control for ultra-supercritical units based on Ziegler Nichols method
JP5083611B2 (en) Auto tuning method, temperature controller and heat treatment apparatus
Hambali et al. Process controllability for air temperature oven system using open-loop Reformulated Tangent Method
Tsang Auto-tuning of fuzzy logic controllers for self-regulating processes
CN115097718A (en) Observer-based PID structure and setting method and device
Zhou et al. RBF-based sliding mode control method for lumber drying system
CN112327972A (en) Temperature controller and temperature control method for controlling heating assembly
Kungwalrut et al. Design MRAC PID control for fan and plate process

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination