Method and device for controlling intelligent valve positioner based on PID (Proportion Integration Differentiation) control algorithm

Through the intelligent valve positioner control method based on the PID control algorithm, through automatic range calibration and adaptive learning to adjust the PID parameters, the problems of long self-tuning time and large dead zone width in the intelligent valve positioner are solved, and the control accuracy and sensitivity.

CN118778422APending Publication Date: 2024-10-15HARBIN TONGDA IND ENVIRONMENTAL PROTECTION AUTOMATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410997017.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing intelligent valve positioners are prone to problems such as long self-tuning time, long adjustment time, easy overcharging, easy over-discharge, and large dead zone width when parameter settings are improper.

Method used

The intelligent valve positioner control method based on PID control algorithm is used to adjust the proportional, integral and differential links of the PID control algorithm and optimize the valve control signal through automatic range calibration, action time measurement, PID parameter configuration and adaptive learning action duration calibration.

Benefits of technology

It achieves more intelligent control, reduces the impact of the dead zone width, improves the sensitivity and control accuracy of the system, and avoids the problems of too long self-tuning time and long adjustment time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778422A_ABST
    Figure CN118778422A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent valve positioner control method and device based on a PID control algorithm, and relates to the field of valve positioners, in particular to the field of intelligent valve positioner control. In order to solve the problems that in the prior art, self-tuning time is too long, adjusting time is too long, overcharging and overdischarging are prone to occurring, and a large dead zone width is needed, the control method of the intelligent valve positioner based on the PID control algorithm is provided and comprises the steps that S1, automatic range calibration is conducted; s2, measuring action time; s3, configuring PID (Proportion Integration Differentiation) parameters; s4, calibrating adaptive learning action time; and S5, parameters of the PID control algorithm are corrected and optimized through the action duration, and positioning of the position of the valve is achieved. The method has a good application prospect in the technical field needing to accurately control the fluid flow.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of valve positioners, and in particular to the field of intelligent valve positioner control. Background Art

[0002] With the rapid development of industrial automation and digital technology, higher requirements are placed on the accuracy and real-time performance of valve control. The existing intelligent valve positioner is designed with an intelligent microprocessor to provide the real-time PWM wave required for closed-loop control to adjust the pneumatic piezoelectric valve according to the target valve position and the real-time valve position value. However, in the operation of the intelligent valve positioner, improper parameter settings will result in long self-tuning time, long adjustment time, easy overcharging, easy over-discharge, and the need for a large dead zone width. Summary of the invention

[0003] In order to solve the problems in the prior art such as too long self-tuning time, too long adjustment time, easy overcharging, easy over-discharging, and the need for a large dead zone width, the present invention provides the following solutions:

[0004] A control method for an intelligent valve positioner based on a PID control algorithm, the method comprising:

[0005] S1, performing automatic range calibration on the pneumatic piezoelectric valve to be controlled to obtain the lowest point value and the highest point value of the pneumatic piezoelectric valve;

[0006] S2, action time measurement, measuring the action time of the pneumatic piezoelectric valve according to the minimum point value and the maximum point value;

[0007] S3, PID parameter configuration, setting the parameters of the PID control algorithm according to the minimum point value, the maximum point value and the action time;

[0008] S4, adaptive learning action duration calibration, adjusting and determining the action duration of the pneumatic piezoelectric valve at 50% opening by adaptive learning;

[0009] S5, correcting the parameters of the PID control algorithm through the action duration, and then adjusting the proportional link, integral link and differential link of the PID control algorithm, so as to optimize the valve control signal and realize the control of the valve opening.

[0010] Further, in S1, the automatic range calibration method is:

[0011] Control the pneumatic piezoelectric valve to move from the highest point to the lowest point. During the movement of the pneumatic piezoelectric valve, continuously collect the valve opening value of the pneumatic piezoelectric valve n times per unit time, where n is an integer greater than 2, compare the values ​​collected twice in succession, and when the difference between the values ​​collected twice in succession is less than or equal to 2, save the current position as the lowest point value;

[0012] The pneumatic piezoelectric valve is controlled to move from the lowest point to the highest point. During the movement of the pneumatic piezoelectric valve, the valve opening value of the pneumatic piezoelectric valve is continuously collected n times per unit time, where n is an integer greater than 2. The values ​​collected twice in succession are compared. When the difference between the values ​​collected twice in succession is less than or equal to 2, the current position is saved as the highest point value.

[0013] Further, in S2, the action time is measured as:

[0014] Control the pneumatic piezoelectric valve to move from the lowest point to the highest point, and record the action time of the pneumatic piezoelectric valve moving from the lowest point to the highest point;

[0015] The pneumatic piezoelectric valve is controlled to move from the highest point to the lowest point, and the action time of the pneumatic piezoelectric valve moving from the highest point to the lowest point is recorded.

[0016] Further, in S4, the adaptive learning action duration is calibrated as follows:

[0017] S401: Control the pneumatic piezoelectric valve to increase its opening, with the initial action duration set to 10ms;

[0018] S402: if the actual value of the valve opening is greater than 50%, then reducing the action duration; if the actual value of the valve opening is less than 50%, then increasing the action duration;

[0019] S403: Repeat S402 until the actual value of the valve opening reaches 50% or the number of calibrations reaches 20 times, and then save the action duration.

[0020] Further, in S5, the parameters of the PID control algorithm modified by the action duration are:

[0021] S501: If the action time is greater than 10S, the proportional coefficient K p Increase by 10%; if the action time is less than 10S, increase the proportionality factor K p 10% reduction;

[0022] S502: If there is a steady-state error in the movement of the pneumatic voltage valve, the integral coefficient K i Increase by 10%; if there is oscillation during the movement of the pneumatic voltage valve, the integral coefficient Ki 10% reduction;

[0023] S503: If the pneumatic voltage valve is under-regulated during movement, the differential coefficient K d Reduce by 10%; if the pneumatic voltage valve overshoots during movement, the differential coefficient K d 10% increase;

[0024] S504: Repeat the above steps until a preset number of calibrations is reached, and then save the parameter information.

[0025] Further, the PID control algorithm is:

[0026]

[0027] Among them, u(k) represents the valve control signal, e(k) is the steady-state error at the current moment, and e(k-1) is the error at the previous moment.

[0028] A control device for an intelligent valve positioner based on a PID control algorithm, the device comprising an MCU controller, a signal acquisition data processing circuit, a handheld device, a code break screen and a sensor;

[0029] The sensor is used to collect the opening information of the pneumatic piezoelectric valve to be controlled, and send the opening information to the signal acquisition data processing circuit;

[0030] The handheld device is used to generate control instructions and send them to the signal acquisition data processing circuit;

[0031] The signal acquisition data processing circuit is used to perform analog-to-digital conversion on the opening information and send the converted digital signal to the MCU controller, and is also used to start or end according to the control instruction;

[0032] The MCU controller has a module implemented by a computer program embedded inside, and the module executes any one of the control methods described above when running; the MCU controller outputs the valve opening and sends it to the code screen for display output; the MCU controller outputs a valve control signal to the pneumatic piezoelectric valve to be controlled.

[0033] The beneficial effects of the present invention are as follows: due to the use of adaptive learning and calibration technology, the system can automatically adjust control parameters to achieve more intelligent control, thereby avoiding the problem of requiring a large dead zone width.

[0034] Adaptive learning and calibration techniques can reduce the impact of dead zone width because they allow the control system to dynamically adjust control parameters based on real-time data and operating conditions, optimize system response, and correct for non-ideal characteristics of sensors and pneumatic voltage valves, thereby improving system sensitivity and control accuracy and reducing the area of ​​no response under small signal changes. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A control principle diagram of a control method for an intelligent valve positioner based on a PID control algorithm in implementation mode 1;

[0036] Figure 2 It is a schematic diagram of the PID control algorithm in implementation mode six;

[0037] Figure 3 It is a schematic diagram of a control device of an intelligent valve positioner based on a PID control algorithm in implementation mode six;

[0038] Figure 4 This is a schematic diagram of a control device of an intelligent valve positioner based on a PID control algorithm in implementation mode seven; the actuator in the figure is the part of a pneumatic piezoelectric valve that converts electrical signals into mechanical motion to control the opening or closing of the valve. DETAILED DESCRIPTION

[0039] Implementation method 1: Combination Figure 1 This embodiment describes a control method for an intelligent valve positioner based on a PID control algorithm, the method comprising:

[0040] S1, performing automatic range calibration on the pneumatic piezoelectric valve to be controlled to obtain the lowest point value and the highest point value of the pneumatic piezoelectric valve;

[0041] S2, action time measurement, measuring the action time of the pneumatic piezoelectric valve according to the minimum point value and the maximum point value;

[0042] S3, PID parameter configuration, setting the parameters of the PID control algorithm according to the minimum point value, the maximum point value and the action time;

[0043] S4, adaptive learning action duration calibration, adjusting and determining the action duration of the pneumatic piezoelectric valve at 50% opening by adaptive learning;

[0044] S5, correcting the parameters of the PID control algorithm through the action duration, and then adjusting the proportional link, integral link and differential link of the PID control algorithm, so as to optimize the valve control signal and realize the control of the valve opening.

[0045] Valve opening refers to the degree to which the valve is opened, reflecting the valve's ability to allow fluid to pass through.

[0046] The highest point value indicates the position information of the highest point, and the lowest point value indicates the position information of the lowest point.

[0047] The lowest point and the highest point of the pneumatic piezoelectric valve are determined through the automatic range calibration, and these values ​​are saved for use in subsequent PID control.

[0048] Through the action time measurement, the time required for the pneumatic piezoelectric valve to move from the lowest point to the highest point (and reverse) is measured to understand the response speed of the valve.

[0049] The information collected through steps S1 and S2 can be used to preliminarily set the initial values ​​of Kp, Ki and Kd.

[0050] The optimal action duration of the pneumatic piezoelectric valve at a specific opening is determined through the adaptive learning action time calibration.

[0051] In the actual operation process, these three parameters are gradually adjusted according to the action duration to achieve the best control effect.

[0052] Implementation method 2: This implementation method further limits the control method of the intelligent valve positioner based on the PID control algorithm described in implementation method 1. In this implementation method, in S1, the automatic range calibration method is:

[0053] Control the pneumatic piezoelectric valve to move from the highest point to the lowest point. During the movement of the pneumatic piezoelectric valve, continuously collect the valve opening value of the pneumatic piezoelectric valve n times per unit time, where n is an integer greater than 2, compare the values ​​collected twice in succession, and when the difference between the values ​​collected twice in succession is less than or equal to 2, save the current position as the lowest point value;

[0054] The pneumatic piezoelectric valve is controlled to move from the lowest point to the highest point. During the movement of the pneumatic piezoelectric valve, the valve opening value of the pneumatic piezoelectric valve is continuously collected n times per unit time, where n is an integer greater than 2. The values ​​collected twice in succession are compared. When the difference between the values ​​collected twice in succession is less than or equal to 2, the current position is saved as the highest point value.

[0055] The highest point refers to the position when the valve is fully open, that is, the state of maximum opening. The lowest point refers to the position when the valve is fully closed, that is, the state of minimum opening.

[0056] Implementation method 3: This implementation method further limits the control method of the intelligent valve positioner based on the PID control algorithm described in implementation method 1. In this implementation method, in S2, the action time is measured as follows:

[0057] Control the pneumatic piezoelectric valve to move from the lowest point to the highest point, and record the action time of the pneumatic piezoelectric valve moving from the lowest point to the highest point;

[0058] The pneumatic piezoelectric valve is controlled to move from the highest point to the lowest point, and the action time of the pneumatic piezoelectric valve moving from the highest point to the lowest point is recorded.

[0059] Implementation 4: This implementation is a further limitation of the control method of the intelligent valve positioner based on the PID control algorithm described in Implementation 1. In this implementation, in S4, the adaptive learning action duration is calibrated as follows:

[0060] S401: Control the pneumatic piezoelectric valve to increase its opening, with the initial action duration set to 10ms;

[0061] S402: if the actual value of the valve opening is greater than 50%, then reducing the action duration; if the actual value of the valve opening is less than 50%, then increasing the action duration;

[0062] S403: Repeat S402 until the actual value of the valve opening reaches 50% or the number of calibrations reaches 20 times, and then save the action duration.

[0063] First, the integral coefficient K i and the differential coefficient K d Set to zero, the microprocessor controls the valve to 50% opening, obtains the actual valve position signal and the set target position signal, and calculates the deviation. According to the proportional coefficient, the proportional control part outputs, which will cause the valve to produce an immediate push in the direction of reducing the deviation. Gradually increase the proportional coefficient K p , according to the proportionality coefficient K p , the output of the proportional control part is, which will cause the valve to produce an immediate push in the direction of reducing the deviation. Until the system oscillates, then reduce the proportional coefficient until the oscillation disappears. The proportional coefficient at this time can be used as a reference value.

[0064] Then gradually introduce the integral action and increase the integral coefficient, which accumulates the deviation over time, helps to eliminate the long-standing steady-state error, and prompts the valve to continuously adjust to approach the target position. Observe the system response until a smooth and satisfactory control effect is achieved.

[0065] Finally, add the differential effect and fine-tune the differential coefficient. By calculating the rate of change of the deviation and combining the differential coefficient K d , and obtain the differential output, which can fine-tune the valve action in advance according to the trend of deviation change, improve dynamic response and reduce overshoot.

[0066] Implementation 5: This implementation is a further limitation of the control method of the intelligent valve positioner based on the PID control algorithm described in Implementation 1. In this implementation, in S5, the parameter of the PID control algorithm corrected by the action duration is:

[0067] S501: If the action time is greater than 10S, the proportional coefficient K p Increase by 10%; if the action time is less than 10S, increase the proportionality factor K p 10% reduction;

[0068] S502: If there is a steady-state error in the movement of the pneumatic voltage valve, the integral coefficient K i Increase by 10%; if there is oscillation during the movement of the pneumatic voltage valve, the integral coefficient K i 10% reduction;

[0069] S503: If the pneumatic voltage valve is under-regulated during movement, the differential coefficient K d Reduce by 10%; if the pneumatic voltage valve overshoots during movement, the differential coefficient K d 10% increase;

[0070] S504: Repeat the above steps until a preset number of calibrations is reached, and then save the parameter information.

[0071] Steady-state error refers to the continuous deviation between the position of the pneumatic voltage valve and the set target position after it reaches a stable state; oscillation refers to the periodic fluctuation of the pneumatic voltage valve during movement, which cannot stabilize at the target position.

[0072] Undershoot refers to the phenomenon that the final position of the pneumatic voltage valve is lower than the set target position; overshoot refers to the phenomenon that the pneumatic voltage valve exceeds the set target position and then falls back.

[0073] Implementation method 6: Combination Figure 2 and Figure 3 This embodiment is described. This embodiment further limits the control method of the intelligent valve positioner based on the PID control algorithm described in the first embodiment. In this embodiment, the PID control algorithm is:

[0074]

[0075] Among them, u(k) represents the valve control signal, e(k) is the steady-state error at the current moment, and e(k-1) is the error at the previous moment.

[0076] The control method of the intelligent valve positioner based on the PID control algorithm is to adjust the proportional coefficient K in the PID control algorithm. p , integral coefficient Ki and the differential coefficient K d To achieve fast and accurate control of valve position.

[0077] pass Figure 2 It can be seen that the valve position input signal is used as the initial instruction of the control system. The deviation is obtained by comparing the difference between the valve position input signal and the actual valve position signal (obtained through valve position signal acquisition). This deviation is then passed to the proportional link, integral link and differential link. These three links together constitute the core of the PID controller, and a valve control signal is calculated based on the deviation. The valve control signal is adjusted by increasing or decreasing and driving the valve through the pneumatic piezoelectric valve to adjust its opening, thereby affecting the actual state of the system. Increase usually refers to increasing the opening of the valve, while decrease refers to reducing the opening of the valve. The actual position of the valve is detected through valve position signal acquisition and converted into an electrical signal. This signal returns to the link of comparing the deviation and is compared with the set valve position input signal to form a closed-loop feedback.

[0078] Proportional link (P): multiply the deviation by the proportional coefficient K p To adjust the control output to speed up the system's response to errors.

[0079] Integral phase (I): Integrate the deviation and multiply it by the integral coefficient K i , in order to eliminate the steady-state error.

[0080] Differentiation (D): predict the future change of the deviation and multiply it by the differential coefficient K d , to adjust the control output and reduce overshoot and oscillation.

[0081] Figure 3 A schematic diagram showing the control device of an intelligent valve positioner based on a PID control algorithm.

[0082] Implementation method seven: combining Figure 4 This embodiment is described as a control device for an intelligent valve positioner based on a PID control algorithm, the device comprising an MCU controller, a signal acquisition and processing circuit, a handheld device, a code break screen and a sensor; the characteristics are:

[0083] The sensor is used to collect the opening information of the pneumatic piezoelectric valve to be controlled, and send the opening information to the signal acquisition and processing circuit;

[0084] The handheld device is used to generate a control instruction and send it to the signal acquisition and processing circuit;

[0085] The signal acquisition and processing circuit is used to perform analog-to-digital conversion on the opening information and send the converted digital signal to the MCU controller, and is also used to start or end according to the control instruction;

[0086] The MCU controller has a module implemented by a computer program embedded inside, and the module executes the control method described in any one of embodiments 1 to 6 when running; the MCU controller outputs the valve opening and sends it to the code screen for display output; the MCU controller outputs a valve control signal to the pneumatic piezoelectric valve to be controlled.

[0087] Figure 4 is a schematic diagram of the device described in this embodiment; Figure 4 It can be known that the intelligent valve positioner executes the PID control algorithm through the MUC controller, calculates and sends the valve control signal to the piezoelectric valve according to the information fed back by the sensor, so as to accurately adjust the valve opening and realize automatic control of the valve. The user can monitor the status through the code screen and use the handheld device to configure and adjust the parameters. The control method is implemented by a computer program embedded in the MCU.

Claims

1. A control method for an intelligent valve positioner based on a PID control algorithm, characterized in that: The method comprises: S1, performing automatic range calibration on the pneumatic piezoelectric valve to be controlled to obtain the lowest point value and the highest point value of the pneumatic piezoelectric valve; S2, action time measurement, measuring the action time of the pneumatic piezoelectric valve according to the minimum point value and the maximum point value; S3, PID parameter configuration, setting the parameters of the PID control algorithm according to the minimum point value, the maximum point value and the action time; S4, adaptive learning action duration calibration, adjusting and determining the action duration of the pneumatic piezoelectric valve at 50% opening by adaptive learning; S5, correcting the parameters of the PID control algorithm through the action duration, and then adjusting the proportional link, integral link and differential link of the PID control algorithm, so as to optimize the valve control signal and realize the control of the valve opening.

2. The control method of the intelligent valve positioner based on the PID control algorithm according to claim 1 is characterized in that: In S1, the automatic range calibration method is: Control the pneumatic piezoelectric valve to move from the highest point to the lowest point. During the movement of the pneumatic piezoelectric valve, continuously collect the valve opening value of the pneumatic piezoelectric valve n times per unit time, where n is an integer greater than 2, compare the values ​​collected twice in succession, and when the difference between the values ​​collected twice in succession is less than or equal to 2, save the current position as the lowest point value; The pneumatic piezoelectric valve is controlled to move from the lowest point to the highest point. During the movement of the pneumatic piezoelectric valve, the valve opening value of the pneumatic piezoelectric valve is continuously collected n times per unit time, where n is an integer greater than 2. The values ​​collected twice in succession are compared. When the difference between the values ​​collected twice in succession is less than or equal to 2, the current position is saved as the highest point value.

3. The control method of the intelligent valve positioner based on the PID control algorithm according to claim 1 is characterized in that: In S2, the action time is measured as: Control the pneumatic piezoelectric valve to move from the lowest point to the highest point, and record the action time of the pneumatic piezoelectric valve moving from the lowest point to the highest point; The pneumatic piezoelectric valve is controlled to move from the highest point to the lowest point, and the action time of the pneumatic piezoelectric valve moving from the highest point to the lowest point is recorded.

4. The control method of the intelligent valve positioner based on the PID control algorithm according to claim 1 is characterized in that: In S4, the adaptive learning action duration is calibrated as follows: S401: Control the pneumatic piezoelectric valve to increase its opening, with the initial action duration set to 10ms; S402: if the actual value of the valve opening is greater than 50%, then reducing the action duration; if the actual value of the valve opening is less than 50%, then increasing the action duration; S403: Repeat S402 until the actual value of the valve opening reaches 50% or the number of calibrations reaches 20 times, and then save the action duration.

5. The control method of the intelligent valve positioner based on the PID control algorithm according to claim 1 is characterized in that: In S5, the parameters of the PID control algorithm modified by the action duration are: S501: If the action time is greater than 10S, the proportional coefficient K p Increase by 10%; if the action time is less than 10S, increase the proportionality factor K p 10% reduction; S502: If there is a steady-state error in the movement of the pneumatic voltage valve, the integral coefficient K i Increase by 10%; if there is oscillation during the movement of the pneumatic voltage valve, the integral coefficient K i 10% reduction; S503: If the pneumatic voltage valve is under-regulated during movement, the differential coefficient K d Reduce by 10%; if the pneumatic voltage valve overshoots during movement, the differential coefficient K d 10% increase; S504: Repeat the above steps until a preset number of calibrations is reached, and then save the parameter information.

6. The control method of the intelligent valve positioner based on the PID control algorithm according to claim 1 is characterized in that: The PID control algorithm is: Among them, u(k) represents the valve control signal, e(k) is the steady-state error at the current moment, and e(k-1) is the error at the previous moment.

7. A control device for an intelligent valve positioner based on a PID control algorithm, the device comprising an MCU controller, a signal acquisition data processing circuit, a handheld device, a code break screen and a sensor; characterized in that: The sensor is used to collect the opening information of the pneumatic piezoelectric valve to be controlled, and send the opening information to the signal acquisition data processing circuit; The handheld device is used to generate control instructions and send them to the signal acquisition data processing circuit; The signal acquisition data processing circuit is used to perform analog-to-digital conversion on the opening information and send the converted digital signal to the MCU controller, and is also used to start or end according to the control instruction; The MCU controller has a module implemented by a computer program embedded inside, and the module executes the control method described in any one of claims 1 to 6 when running; the MCU controller outputs the valve opening and sends it to the code screen for display output; the MCU controller outputs a valve control signal to the pneumatic piezoelectric valve to be controlled.