A PID controller self-tuning method and system for air separation system
Through the initialization setting and calculation of PID parameters, the problem of complex and long time of self-tuning process of PID controller is solved, and accurate and efficient self-tuning without manual tracing is achieved, which simplifies the adjustment process.
Patent Information
- Application Number
- CN202311190438.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-15
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2043-09-15
AI Technical Summary
In the prior art, the self-tuning process of the PID controller has high requirements and may be relatively long, and there are errors in manual tracing and inconvenient operation, resulting in inaccurate self-tuning results.
By initializing the gain, integration time and differential time of the PID controller, and obtaining the PV value based on the preset sampling interval, we judge whether the fluctuation of the PV value is less than the threshold. If it is less than, the PV curve will be output and the maximum tangent slope of the PV curve will be filtered. , calculate the intersection point between the target tangent and the axis, calculate the PID parameters according to empirical formulas, and avoid manual tracing.
It realizes the direct calculation of the coordinates and setting parameters of the response curve without manual tracing, simplifies the setting process, improves accuracy and efficiency, reduces the requirements of the self-tuning environment, and shortens the setting time.
Smart Images

Figure CN117111443B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of electric power automation, and in particular relates to a PID controller self-tuning method and system for an air separation system. Background Art
[0002] PID controller has simple structure and algorithm and is widely used, but the parameter setting method is relatively complicated and is usually determined by trial and error. Specifically, it is based on the regulation law and the characteristics of different regulation objects, through closed-loop experiments and repeated trials. If mathematical software simulation calculations are effectively used and combined with engineering empirical formulas, the dynamic characteristics and steady-state characteristics of the system under different parameter environments can be easily and quickly obtained.
[0003] In air separation systems, the trial and error method is usually used to determine PID parameters. Usually, according to the specific regulation rules and the characteristics of different regulation objects, closed-loop tests are carried out and repeated trials are carried out. This method requires a lot of time for testing, and the commissioning personnel need high testing experience and a full understanding of the PID principle. The results obtained by the trial and error method may not necessarily be satisfactory dynamic and steady-state responses. Later, a more efficient method was developed, which is the engineering tuning method, including the Ziegler-Nichols tuning method, the critical proportionality method, and the attenuation curve method. However, in general, the commissioning personnel are required to trace the feedback PV curve to find the key coordinate points. However, manual tracing has errors and is not convenient
[0004] Of course, the latest configuration software also has PID self-tuning function. Before self-tuning adjustment, the feedback PV value of the entire PID control loop must be close to the given SV value, and the closed-loop output will not change irregularly and change around the center of the control range. Therefore, if a step change occurs during the self-tuning process, the output value may exceed the range limit. If this happens, a completely wrong self-tuning result can be generated. Therefore, the self-tuning process is demanding and may take a long time. Summary of the invention
[0005] The present invention provides a PID controller self-tuning method and system for an air separation system, which are used to solve the technical problem that the self-tuning process has high requirements and may take a long time.
[0006] In a first aspect, the present invention provides a PID controller self-tuning method for an air separation system, comprising:
[0007] Initialize the gain, integral time and differential time of the PID controller, put the initialized PID controller into a closed loop and keep the SP value at a first value;
[0008] Acquire the PV value output by the PID controller based on a preset sampling interval, and determine whether the fluctuation of the PV value is less than a preset threshold, wherein the fluctuation of the PV value is the difference between the real-time PV value corresponding to the current sampling moment and the historical PV value corresponding to the previous sampling moment;
[0009] If the fluctuation of the PV value is less than a preset threshold, the SP value is set to a second value, and a PV curve with respect to time and PV value is output;
[0010] Determine whether the tangent slope of the PV curve continues to increase during the step response process;
[0011] If the tangent slope of the PV curve during the step response process continues to increase, the time of the step response process is assigned to the array t, and the PV value of the step response process is assigned to the array c;
[0012] Derivative the array c to obtain the array dc, and divide each element in the array dc by the sampling interval to obtain the array dc1;
[0013] Select the maximum value in the array dc1, and assign the element position corresponding to the maximum value to position k;
[0014] Obtain the elements at position k in the array t and the array c respectively, and assign the first element at position k in the array t and the second element at position k in the array c to max_t and max_y respectively, wherein the coordinates (max_t, max_y) are the tangent points with the largest slope of the tangent line in the PV curve;
[0015] Calculate the ordinate of the intersection point of the target tangent line of the PV curve passing through the coordinates (max_t, max_y) with the y-axis, and calculate the abscissa of the intersection point of the target tangent line of the PV curve passing through the coordinates (max_t, max_y) with the x-axis, and assign the ordinate to parameter b and the abscissa to parameter L;
[0016] Assign the maximum PV value on the PV curve as parameter k, determine a target point with a ordinate of parameter k on the target tangent line, and subtract parameter L from the abscissa of the target point to obtain parameter T;
[0017] The parameter K, the parameter L and the parameter T are calculated according to a preset empirical formula to obtain the gain, integral time and differential time of the PID controller under different control modes.
[0018] In a second aspect, the present invention provides a PID controller self-tuning system for an air separation system, comprising:
[0019] A first setting module is configured to initialize the gain, integral time and differential time of the PID controller, and put the initialized PID controller into a closed loop and keep the SP value at a first value;
[0020] A first judgment module is configured to obtain a PV value output by the PID controller based on a preset sampling interval, and judge whether a fluctuation of the PV value is less than a preset threshold, wherein the fluctuation of the PV value is a difference between a real-time PV value corresponding to a current sampling moment and a historical PV value corresponding to a previous sampling moment;
[0021] a second setting module configured to set the SP value to a second value if the fluctuation of the PV value is less than a preset threshold, and output a PV curve regarding time and PV value;
[0022] A second judgment module is configured to judge whether the tangent slope of the PV curve continues to increase during the step response process;
[0023] A first assignment module is configured to assign the time of the step response process to an array t and the PV value of the step response process to an array c if the tangent slope of the PV curve during the step response process continues to increase;
[0024] A derivation module is configured to derive the array c to obtain an array dc, and divide each element in the array dc by the sampling interval to obtain an array dc1;
[0025] A screening module, configured to screen the maximum value in the array dc1, and assign a position k to the element position corresponding to the maximum value;
[0026] A second assignment module is configured to obtain the elements at position k in the array t and the array c, and assign the first element at position k in the array t and the second element at position k in the array c to max_t and max_y, respectively, wherein the coordinates (max_t, max_y) are the tangent points with the largest tangent slope in the PV curve;
[0027] a calculation module configured to respectively calculate the ordinate of the intersection point of the target tangent line of the PV curve passing through the coordinates (max_t, max_y) with the y-axis, and calculate the abscissa of the intersection point of the target tangent line of the PV curve passing through the coordinates (max_t, max_y) with the x-axis, and assign the ordinate to parameter b, and assign the abscissa to parameter L;
[0028] a determination module configured to assign the maximum PV value on the PV curve to parameter k, determine a target point on the target tangent line whose ordinate is parameter k, and subtract parameter L from the abscissa of the target point to obtain parameter T;
[0029] The output module is configured to calculate the parameter K, the parameter L and the parameter T according to a preset empirical formula to obtain the gain, integral time and differential time of the PID controller under different control modes.
[0030] According to a third aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the PID self-tuning method for an air separation system according to any embodiment of the present invention.
[0031] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the program instructions are executed by a processor, the processor executes the steps of the PID self-tuning method for an air separation system according to any embodiment of the present invention.
[0032] The PID self-tuning method and system for the air separation system of the present application do not require manual drawing and calculation of T, L and K setting parameters, but directly use the MATLAB platform to calculate the key point coordinates of the response curve and T, L and K setting parameters, so it is more convenient and accurate; finally, compared with the self-tuning function of the configuration software, the self-tuning scheme of the present application does not have very high requirements for the self-tuning environment. It only needs to find a step response curve that meets the conditions to perform calculation and tuning. The tuning process will not be re-tuned due to sudden step changes, so the tuning time is relatively shortened. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0034] Figure 1 A flow chart of a PID self-tuning method for an air separation system provided by one embodiment of the present invention;
[0035] Figure 2 A step response diagram of a specific embodiment is provided for an embodiment of the present invention;
[0036] Figure 3 A flowchart of a PID self-tuning program according to a specific embodiment of the present invention;
[0037] Figure 4A flowchart of a PID self-tuning program according to another specific embodiment of the present invention;
[0038] Figure 5 A structural block diagram of a PID self-tuning system for an air separation system provided by one embodiment of the present invention;
[0039] Figure 6 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] Please refer to 1, which shows a flow chart of a PID self-tuning method for an air separation system of the present application.
[0042] like Figure 1 As shown, the PID self-tuning method for the air separation system specifically includes the following steps:
[0043] Step S101, initializing the gain, integral time and differential time of the PID controller, and putting the initialized PID controller into a closed loop and keeping the SP value at a first value;
[0044] Step S102, obtaining the PV value output by the PID controller based on a preset sampling interval, and determining whether the fluctuation of the PV value is less than a preset threshold, wherein the fluctuation of the PV value is the difference between the real-time PV value corresponding to the current sampling moment and the historical PV value corresponding to the previous sampling moment;
[0045] Step S103, if the fluctuation of the PV value is less than a preset threshold, the SP value is set to a second value, and a PV curve of time and PV value is output;
[0046] Step S104, determining whether the tangent slope of the PV curve continues to increase during the step response process;
[0047] Step S105, if the tangent slope of the PV curve during the step response process continues to increase, the time of the step response process is assigned to the array t, and the PV value of the step response process is assigned to the array c;
[0048] Step S106, deriving the array c to obtain the array dc, and dividing each element in the array dc by the sampling interval to obtain the array dc1;
[0049] Step S107, screening the maximum value in the array dc1, and assigning the element position corresponding to the maximum value to position k;
[0050] Step S108, respectively obtaining the elements at position k in the array t and the array c, and assigning the first element at position k in the array t and the second element at position k in the array c to max_t and max_y, respectively, wherein the coordinate (max_t, max_y) is the tangent point with the maximum slope of the tangent line in the PV curve;
[0051] Step S109, respectively calculating the ordinate of the intersection point of the target tangent line of the PV curve passing through the coordinates (max_t, max_y) and the y-axis, and calculating the abscissa of the intersection point of the target tangent line of the PV curve passing through the coordinates (max_t, max_y) and the x-axis, and assigning the ordinate to parameter b and the abscissa to parameter L;
[0052] Step S110, assigning the maximum PV value on the PV curve as parameter k, determining a target point whose ordinate is parameter k on the target tangent line, and subtracting parameter L from the abscissa of the target point to obtain parameter T;
[0053] Step S111, calculating the parameter K, the parameter L and the parameter T according to a preset empirical formula to obtain the gain, integral time and differential time of the PID controller under different control modes.
[0054] In this step, the parameter K, the parameter L and the parameter T are calculated according to the first empirical formula to obtain the gain, integral time and differential time of the PID controller under proportional control; the parameter K, the parameter L and the parameter T are calculated according to the second empirical formula to obtain the gain, integral time and differential time of the PID controller under proportional-integral control; the parameter K, the parameter L and the parameter T are calculated according to the third empirical formula to obtain the gain, integral time and differential time of the PID controller under proportional-integral-differential control.
[0055] Specifically, the gain, integral time, and derivative time of the PID controller under proportional integral control are T / (K*L), ∞, and 0, respectively.
[0056] The gain, integral time and derivative time of the PID controller under proportional-integral control are 0.9*T / (K*L), L / 0.3 and 0 respectively.
[0057] The gain, integral time and differential time of the PID controller under proportional-integral-derivative control are 1.2*T / (K*L), 2.2L and 0.5L respectively.
[0058] In a specific embodiment, the PID self-tuning method specifically includes the following steps:
[0059] a. In the programming software, set the gain Kp, integral time Ti and differential time Td of the PID module to 0.0s, 99999.999s and 0.0s respectively.
[0060] b. Set the configuration software sampling time to 0.001s, put the control system into a closed loop and keep the initial SP value at 0. When the PV value fluctuation is less than ±5% of the feedback range, enter the given SP value as 10% of the feedback range, and then call the PV value curve of the control object in the configuration software. This curve is the step response of the control object. Through observation, we found that there is a large gap between the steady-state value K of this curve and the given value SP, and the rise time is also long.
[0061] It should be noted that the sampling time is the interval at which the sensor feedback value is collected. If the time is shorter, it means that the collection is more frequent. For feedback values that do not change much over time, a slightly longer time (for example, 1 second) can be set. However, if you blindly pursue efficient data collection, the scale of data calculation will increase, thereby reducing the computing efficiency. Therefore, the setting of the sampling time is not fixed and needs to be set according to different computing environments. In general, the sampling time of the temperature closed-loop system does not need to be set very short. The sampling time is directly related to the precision (data scale) of the PV curve. The shorter the time, the higher the resolution.
[0062] c. If the step response is Figure 2 The S-shaped curve shown in the figure can be adjusted using Ziegler-Nichols.
[0063] d. In general, the delay time L, amplification factor K and time constant T obtained by drawing are often not very accurate. If the response curve data is retrieved in the form of EXCEL with the help of configuration software, and combined with MATLAB programming, the parameters can be automatically obtained. Reference program as follows Figure 3 shown.
[0064] for Figure 3 The first line “C2=xlsread('E:\Patent\Step Response.xlsx');” means the program reads the xlsx file in the corresponding path of drive E.
[0065] The second and third rows assign the first and second columns in the C2 matrix to arrays t and c respectively, where t is the step response process time and c is the PV feedback value data of the step response process.
[0066] The fourth line takes the derivative of the c array 1 and assigns the result to the array dc.
[0067] Since the sampling time of the data is 0.001s, the fifth line needs to multiply each element of the dc array by 1000 and assign it to the dc1 array.
[0068] The sixth line finds the maximum value in array dc1 and assigns it to max_dc, and the element position of the maximum value max_dc is assigned to k.
[0069] The seventh and eighth lines take the elements of the time array t and the feedback array c corresponding to the maximum position of the array dc1, and assign these two elements to max_t and max_y respectively. The coordinates (max_t, max_y) are the tangent points with the largest slope in the corresponding step response curve.
[0070] The ninth line calculates the ordinate of the point where the tangent line with the highest slope of the curve intersects the y-axis and assigns it to b.
[0071] The tenth line calculates the horizontal coordinate of the point where the tangent line with the highest slope of the curve intersects the x-axis and assigns it to L.
[0072] Line 11 assigns the step response steady-state value to K.
[0073] The last twelfth line finds the point with ordinate K on the maximum slope line and subtracts L from the abscissa of the point. The result is assigned to T.
[0074] In summary, the parameters L, K and T are accurately calculated through the program.
[0075] e. Edit the program according to the calculation formula in Table 1, refer to the program segment as follows Figure 4 As shown in the figure, a more accurate PID value will be obtained.
[0076] Table 1 is:
[0077] Controller Type Proportional Integration time Derivative time P T / (K*L) ∞ 0 PI 0.9*T / (K*L) L / 0.3 0 PID 1.2*T / (K*L) 2.2L 0.5L
[0078] for Figure 4 The first line "P1 = T / (K*L);" calculates the P parameter corresponding to the system with only proportional control and assigns the result to P1.
[0079] The second line sets the I parameter corresponding to the system with only proportional control to infinity and assigns the result to T1.
[0080] The third line sets the D parameter corresponding to the system with only proportional control to 0 and assigns the result to t1.
[0081] The fourth line calculates the P parameter corresponding to the proportional-integral control system and assigns the result to P2.
[0082] The fifth line calculates the I parameter corresponding to the proportional-integral control system and assigns the result to T2.
[0083] The sixth line sets the D parameter corresponding to the proportional-integral control system to 0 and assigns the result to t2.
[0084] The seventh line calculates the P parameter corresponding to the proportional integral differential control system and assigns the result to P3.
[0085] The eighth line calculates the I parameter corresponding to the proportional integral differential control system and assigns the result to T3.
[0086] The ninth line calculates the D parameter corresponding to the proportional-integral-derivative control system and assigns the result to t3.
[0087] Common closed-loop control is required in air separation systems, such as pressure, flow, liquid level and temperature. According to their respective control characteristics, the following conclusions can be drawn about the response speed of closed-loop feedback: pressure, flow and liquid level are systems with fast feedback response speed. In these systems, only the intervention of proportional integral control system is needed to obtain ideal results, so P2, T2 and t2 are the ideal PID values for these systems. However, for systems with slow feedback response speed such as temperature, the intervention of proportional integral differential control system is needed to obtain ideal results, so P3, T3 and t3 are the ideal PID values for these systems.
[0088] Finally, substitute the PID value into the program module for testing. Under normal circumstances, the response curve will be faster than when the PID controller is not added, but the overshoot will not be too large.
[0089] See also Figure 5 , which shows a structural block diagram of a PID self-tuning system for an air separation system of the present application.
[0090] like Figure 5 As shown, the PID self-tuning system 200 includes a first setting module 210, a first judgment module 220, a second setting module 230, a second judgment module 240, a first assignment module 250, a derivation module 260, a screening module 270, a second assignment module 280, a calculation module 290, a determination module 211 and an output module 212.
[0091] The first setting module 210 is configured to initialize the gain, integral time and differential time of the PID controller, and put the initialized PID controller into a closed loop and keep the SP value at the first value;
[0092] The first judgment module 220 is configured to obtain the PV value output by the PID controller based on a preset sampling interval, and judge whether the fluctuation of the PV value is less than a preset threshold, wherein the fluctuation of the PV value is the difference between the real-time PV value corresponding to the current sampling moment and the historical PV value corresponding to the previous sampling moment;
[0093] A second setting module 230 is configured to set the SP value to a second value if the fluctuation of the PV value is less than a preset threshold value, and output a PV curve regarding time and PV value;
[0094] The second determination module 240 is configured to determine whether the tangent slope of the PV curve continues to increase during the step response process;
[0095] A first assignment module 250 is configured to assign the time of the step response process to an array t and the PV value of the step response process to an array c if the tangent slope of the PV curve during the step response process continues to increase;
[0096] The derivation module 260 is configured to derive the array c to obtain the array dc, and divide each element in the array dc by the sampling interval to obtain the array dc1;
[0097] A screening module 270 is configured to screen the maximum value in the array dc1 and assign the element position corresponding to the maximum value to position k;
[0098] A second assignment module 280 is configured to obtain the elements at position k in the array t and the array c, and assign the first element at position k in the array t and the second element at position k in the array c to max_t and max_y, respectively, wherein the coordinate (max_t, max_y) is the tangent point with the maximum slope of the tangent line in the PV curve;
[0099] A calculation module 290 is configured to calculate the ordinate of the intersection point of the target tangent line of the PV curve passing through the coordinates (max_t, max_y) with the y-axis, and calculate the abscissa of the intersection point of the target tangent line of the PV curve passing through the coordinates (max_t, max_y) with the x-axis, and assign the ordinate to parameter b and the abscissa to parameter L;
[0100] A determination module 211 is configured to assign the maximum PV value on the PV curve to a parameter k, determine a target point on the target tangent line whose ordinate is the parameter k, and subtract the parameter L from the abscissa of the target point to obtain a parameter T;
[0101] The output module 212 is configured to calculate the parameter K, the parameter L and the parameter T according to a preset empirical formula to obtain the gain, integral time and differential time of the PID controller under different control modes.
[0102] It should be understood that Figure 5 Modules and references documented in Figure 1 Therefore, the operations and features described above for the method and the corresponding technical effects are also applicable to Figure 5 The modules in it will not be described in detail here.
[0103] In other embodiments, the present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein when the program instructions are executed by a processor, the processor executes the PID self-tuning method for an air separation system in any of the above method embodiments;
[0104] As an implementation mode, the computer-readable storage medium of the present invention stores computer-executable instructions, and the computer-executable instructions are configured as follows:
[0105] Initialize the gain, integral time and differential time of the PID controller, put the initialized PID controller into a closed loop and keep the SP value at a first value;
[0106] Acquire the PV value output by the PID controller based on a preset sampling interval, and determine whether the fluctuation of the PV value is less than a preset threshold, wherein the fluctuation of the PV value is the difference between the real-time PV value corresponding to the current sampling moment and the historical PV value corresponding to the previous sampling moment;
[0107] If the fluctuation of the PV value is less than a preset threshold, the SP value is set to a second value, and a PV curve with respect to time and PV value is output;
[0108] Determine whether the tangent slope of the PV curve continues to increase during the step response process;
[0109] If the tangent slope of the PV curve during the step response process continues to increase, the time of the step response process is assigned to the array t, and the PV value of the step response process is assigned to the array c;
[0110] Derivative the array c to obtain the array dc, and divide each element in the array dc by the sampling interval to obtain the array dc1;
[0111] Select the maximum value in the array dc1, and assign the element position corresponding to the maximum value to position k;
[0112] Obtain the elements at position k in the array t and the array c respectively, and assign the first element at position k in the array t and the second element at position k in the array c to max_t and max_y respectively, wherein the coordinates (max_t, max_y) are the tangent points with the largest slope of the tangent line in the PV curve;
[0113] Calculate the ordinate of the intersection point of the target tangent line of the PV curve passing through the coordinates (max_t, max_y) with the y-axis, and calculate the abscissa of the intersection point of the target tangent line of the PV curve passing through the coordinates (max_t, max_y) with the x-axis, and assign the ordinate to parameter b and the abscissa to parameter L;
[0114] Assign the maximum PV value on the PV curve as parameter k, determine a target point with a ordinate of parameter k on the target tangent line, and subtract parameter L from the abscissa of the target point to obtain parameter T;
[0115] The parameter K, the parameter L and the parameter T are calculated according to a preset empirical formula to obtain the gain, integral time and differential time of the PID controller under different control modes.
[0116] The computer-readable storage medium may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of the PID self-tuning system for the air separation system, etc. In addition, the computer-readable storage medium may include a high-speed random access memory, and may also include a memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the computer-readable storage medium may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the PID self-tuning system for the air separation system via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0117] Figure 6 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Figure 6 As shown, the device includes: a processor 310 and a memory 320. The electronic device may also include: an input device 330 and an output device 340. The processor 310, the memory 320, the input device 330 and the output device 340 may be connected via a bus or other means. Figure 6In the example, the connection via bus is taken as an example. The memory 320 is the above-mentioned computer-readable storage medium. The processor 310 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 320, that is, the PID self-tuning method for the air separation system of the above-mentioned method embodiment is implemented. The input device 330 can receive input digital or character information, and generate key signal input related to user settings and function control of the PID self-tuning system for the air separation system. The output device 340 may include a display device such as a display screen.
[0118] The electronic device can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.
[0119] As an embodiment, the electronic device is applied to a PID self-tuning system for an air separation system, and is used for a client, and includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can:
[0120] Initialize the gain, integral time and differential time of the PID controller, put the initialized PID controller into a closed loop and keep the SP value at a first value;
[0121] Acquire the PV value output by the PID controller based on a preset sampling interval, and determine whether the fluctuation of the PV value is less than a preset threshold, wherein the fluctuation of the PV value is the difference between the real-time PV value corresponding to the current sampling moment and the historical PV value corresponding to the previous sampling moment;
[0122] If the fluctuation of the PV value is less than a preset threshold, the SP value is set to a second value, and a PV curve with respect to time and PV value is output;
[0123] Determine whether the tangent slope of the PV curve continues to increase during the step response process;
[0124] If the tangent slope of the PV curve during the step response process continues to increase, the time of the step response process is assigned to the array t, and the PV value of the step response process is assigned to the array c;
[0125] Derivative the array c to obtain the array dc, and divide each element in the array dc by the sampling interval to obtain the array dc1;
[0126] Select the maximum value in the array dc1, and assign the element position corresponding to the maximum value to position k;
[0127] Obtain the elements at position k in the array t and the array c respectively, and assign the first element at position k in the array t and the second element at position k in the array c to max_t and max_y respectively, wherein the coordinates (max_t, max_y) are the tangent points with the largest slope of the tangent line in the PV curve;
[0128] Calculate the ordinate of the intersection point of the target tangent line of the PV curve passing through the coordinates (max_t, max_y) with the y-axis, and calculate the abscissa of the intersection point of the target tangent line of the PV curve passing through the coordinates (max_t, max_y) with the x-axis, and assign the ordinate to parameter b and the abscissa to parameter L;
[0129] Assign the maximum PV value on the PV curve as parameter k, determine a target point with a ordinate of parameter k on the target tangent line, and subtract parameter L from the abscissa of the target point to obtain parameter T;
[0130] The parameter K, the parameter L and the parameter T are calculated according to a preset empirical formula to obtain the gain, integral time and differential time of the PID controller under different control modes.
[0131] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.
[0132] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A PID controller self-tuning method for an air separation system, characterized in that: include: Initialize the gain, integral time and differential time of the PID controller, put the initialized PID controller into a closed loop and keep the SP value at a first value; Acquire the PV value output by the PID controller based on a preset sampling interval, and determine whether the fluctuation of the PV value is less than a preset threshold, wherein the fluctuation of the PV value is the difference between the real-time PV value corresponding to the current sampling moment and the historical PV value corresponding to the previous sampling moment; If the fluctuation of the PV value is less than a preset threshold, the SP value is set to a second value, and a PV curve with respect to time and PV value is output; Determine whether the tangent slope of the PV curve continues to increase during the step response process; If the tangent slope of the PV curve during the step response process continues to increase, the time of the step response process is assigned to the array t, and the PV value of the step response process is assigned to the array c; Derivative the array c to obtain the array dc, and divide each element in the array dc by the sampling interval to obtain the array dc1; Select the maximum value in the array dc1, and assign the element position corresponding to the maximum value to position k; Obtain the elements at position k in the array t and the array c respectively, and assign the first element at position k in the array t and the second element at position k in the array c to max_t and max_y respectively, wherein the coordinate (max_t, max_y) is the tangent point with the maximum slope of the tangent line in the PV curve; Calculate the ordinate of the intersection point of the target tangent line of the PV curve passing through the coordinates (max_t, max_y) and the y-axis, and calculate the abscissa of the intersection point of the target tangent line of the PV curve passing through the coordinates (max_t, max_y) and the x-axis, and assign the ordinate to parameter b and the abscissa to parameter L; Assign the maximum PV value on the PV curve as parameter K, determine a target point with a ordinate of parameter K on the target tangent line, and subtract parameter L from the abscissa of the target point to obtain parameter T; The parameter K, the parameter L and the parameter T are calculated according to a preset empirical formula to obtain the gain, integral time and differential time of the PID controller under different control modes.
2. A PID controller self-tuning method for an air separation system according to claim 1, characterized in that: The setting of the gain, integral time and differential time of the PID controller includes: The gain, integral time and differential time of the PID controller are set to 0.0, 99999.999s and 0.0s respectively.
3. A PID controller self-tuning method for an air separation system according to claim 1, characterized in that: The first value is 0.
4. A PID controller self-tuning method for an air separation system according to claim 1, characterized in that: The second value is 10 percent of the control analog value.
5. A PID controller self-tuning method for an air separation system according to claim 1, characterized in that: The parameter K, the parameter L and the parameter T are calculated according to a preset empirical formula to obtain the PID parameters under different control modes: Calculate the parameter K, the parameter L and the parameter T according to the first empirical formula to obtain the gain, integral time and differential time of the PID controller under proportional control; The parameter K, the parameter L and the parameter T are calculated according to the second empirical formula to obtain the gain, integral time and differential time of the PID controller under proportional integral control; The parameter K, the parameter L and the parameter T are calculated according to the third empirical formula to obtain the gain, the integral time and the differential time of the PID controller under proportional integral differential control.
6. A PID controller self-tuning method for an air separation system according to claim 5, characterized in that: The gain, integral time and derivative time of the PID controller under proportional control are , and .
7. A PID controller self-tuning method for an air separation system according to claim 5, characterized in that: The gain, integral time and derivative time of the PID controller under proportional integral control are , and .
8. A PID controller self-tuning method for an air separation system according to claim 5, characterized in that: The gain, integral time and differential time of the PID controller under proportional integral derivative control are , and .
9. A PID controller self-tuning system for an air separation system, characterized in that: include: A first setting module is configured to initialize the gain, integral time and differential time of the PID controller, and put the initialized PID controller into a closed loop and keep the SP value at a first value; A first judgment module is configured to obtain a PV value output by the PID controller based on a preset sampling interval, and judge whether a fluctuation of the PV value is less than a preset threshold, wherein the fluctuation of the PV value is a difference between a real-time PV value corresponding to a current sampling moment and a historical PV value corresponding to a previous sampling moment; a second setting module configured to set the SP value to a second value if the fluctuation of the PV value is less than a preset threshold, and output a PV curve regarding time and PV value; A second judgment module is configured to judge whether the tangent slope of the PV curve continues to increase during the step response process; The first assignment module is configured to assign the time of the step response process to an array t and the PV value of the step response process to an array c if the tangent slope of the PV curve during the step response process continues to increase; A derivation module is configured to derive the array c to obtain an array dc, and divide each element in the array dc by the sampling interval to obtain an array dc1; A screening module, configured to screen the maximum value in the array dc1, and assign a position k to the element position corresponding to the maximum value; A second assignment module is configured to obtain the elements at position k in the array t and the array c, and assign the first element at position k in the array t and the second element at position k in the array c to max_t and max_y, respectively, wherein the coordinates (max_t, max_y) are the tangent points with the largest slope of the tangent line in the PV curve; A calculation module, configured to respectively calculate the ordinate of the intersection point of the target tangent line of the PV curve passing through the coordinates (max_t, max_y) with the y-axis, and calculate the abscissa of the intersection point of the target tangent line of the PV curve passing through the coordinates (max_t, max_y) with the x-axis, and assign the ordinate to parameter b, and assign the abscissa to parameter L; a determination module configured to assign the maximum PV value on the PV curve to parameter K, determine a target point on the target tangent line whose ordinate is parameter K, and subtract parameter L from the abscissa of the target point to obtain parameter T; The output module is configured to calculate the parameter K, the parameter L and the parameter T according to a preset empirical formula to obtain the gain, integral time and differential time of the PID controller under different control modes.
