A regulating valve opening degree detection method, system, device and medium
By periodically initializing and correcting the relationship between the rotation angle and pulse count of the control valve, the problem of insufficient accuracy in detecting the valve opening is solved, and accurate judgment of the valve status is achieved.
Patent Information
- Application Number
- CN202211594998.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-13
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2042-12-13
AI Technical Summary
In the existing technology, the opening degree detection of control valves cannot accurately reflect their actual state, especially when the valve performance and state change, resulting in insufficient detection accuracy.
The control valve is initialized at preset intervals to determine the relationship between the rotation angle and the number of pulses. The relationship is then corrected based on the difference in historical relationships to obtain the target relationship. The valve is then judged to be abnormal in combination with the number of pulses during operation.
It enables precise detection of the valve opening, avoiding the impact of valve performance or state changes on detection accuracy and ensuring the accuracy of the detection.
Smart Images

Figure CN115931341B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of valve detection, and in particular to a regulating valve opening degree detection method, system, device and medium. BACKGROUND
[0002] The regulating valve is also known as a control valve. In the field of industrial automation control, the regulating valve changes process parameters such as medium flow, pressure, temperature and liquid level by means of power operation according to a control signal output by a control unit. The regulating valve plays a crucial role in the field of fluid control. Once the regulating valve as a terminal of a control system fails, it will directly affect the normal operation of the control system. In order to detect whether the regulating valve fails, the opening degree of the regulating valve needs to be obtained in real time. Therefore, how to obtain the opening degree of the regulating valve is becoming a research hotspot in the prior art.
[0003] In actual detection, the performance and state of the regulating valve change over time. If the compensation coefficient calibrated at the factory or just after installation is used to compensate the pulse every time the valve is detected, the opening degree of the regulating valve cannot be accurately detected. SUMMARY
[0004] In view of the defects in the prior art, the present application provides a regulating valve opening degree detection method, system, device and medium.
[0005] In a first aspect, a regulating valve opening degree detection method is provided. The method comprises the following steps:
[0006] S1, initializing the regulating valve at intervals of a preset period to determine the relationship between the rotation angle of the regulating valve and the pulse number, correcting the relationship according to the difference between the relationship and a historical relationship to obtain a target relationship;
[0007] S2, obtaining the pulse number of the regulating valve in a working state, and determining whether the regulating valve is abnormal according to the pulse number and the target relationship.
[0008] Preferably, the method for initializing the regulating valve at intervals of a preset period to determine the relationship between the rotation angle of the regulating valve and the pulse number comprises the following steps:
[0009] S11, rotating the regulating valve by a first preset angle to make the angle of the regulating valve reach a first angle from an initial angle, and obtaining the corresponding pulse number;
[0010] S12, obtaining the relationship between the rotation angle of the regulating valve and the pulse number according to the initial angle, the first angle and the pulse number.
[0011] Preferably, the method for correcting the relationship to obtain a target relationship according to the difference between the relationship and a historical relationship includes the following steps:
[0012] S13, calculating the total difference between the number of pulses in the relationship and the number of pulses in the historical relationship, and determining whether the difference is greater than a first preset threshold value;
[0013] S14, when the difference is greater than the preset threshold value, segmenting the number of pulses and the historical number of pulses according to a preset segmentation parameter to obtain a plurality of segmented numbers of pulses and historical segmented numbers of pulses;
[0014] S15, respectively calculating a segmented difference value of a plurality of the segmented numbers of pulses and the historical segmented numbers, and calculating a variance of a plurality of the segmented difference values;
[0015] S16, determining a correction parameter from a preset correction table according to the variance, and correcting the relationship according to the correction parameter to obtain a target relationship.
[0016] Preferably, the preset parameter is determined according to the corresponding relationship between the opening degree and the rotation angle.
[0017] Preferably, S2. obtaining the number of pulses of the regulating valve in the working state, and determining whether the regulating valve is abnormal according to the number of pulses and the target relationship includes:
[0018] S21, obtaining a first rotation angle and a first number of pulses of the regulating valve when the regulating valve receives a control instruction;
[0019] S22, calculating a target number of pulses corresponding to the first rotation angle according to the target relationship and the first rotation angle;
[0020] S23, calculating the difference between the first number of pulses and the target number of pulses, if the difference is greater than a second preset threshold value, the opening degree of the regulating valve is abnormal, and if the difference is less than or equal to the second preset threshold value, the opening degree of the regulating valve is normal.
[0021] Secondly, a regulating valve opening degree detection device includes:
[0022] A correction module is configured to initialize the regulating valve at intervals of a preset period to determine a relationship between the rotation angle and the number of pulses of the regulating valve, correct the relationship according to the difference between the relationship and a historical relationship, and obtain a target relationship.
[0023] A detection module is configured to obtain the number of pulses of the regulating valve in the working state, and determine whether the regulating valve is abnormal according to the number of pulses and the target relationship.
[0024] In a third aspect, an electronic device includes a memory and a processor, the memory having stored thereon a computer program that, when run by the processor, performs the method of any of the above aspects.
[0025] In a fourth aspect, a storage medium stores a program that, when run by a processor, performs the method of any of the above aspects.
[0026] The beneficial effects of the present application are embodied in a regulating valve opening degree detection method, system, device and medium, which can correct the relationship between the rotation angle and the pulse in each preset period, and detect the regulating valve opening degree based on the corrected relationship, so as to avoid excessive changes in valve performance or state, and affect the accuracy of regulating valve opening degree detection. BRIEF DESCRIPTION OF DRAWINGS
[0027] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the drawings required to be used in the specific embodiments or prior art description will be briefly introduced below. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, each element or part is not necessarily drawn according to the actual scale.
[0028] Figure 1 A flowchart of a regulating valve opening degree detection method provided by an embodiment of the present application;
[0029] Figure 2 A structural schematic diagram of a regulating valve opening degree detection system provided by an embodiment of the present application;
[0030] Figure 3 A structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0031] The embodiments of the technical solutions of the present application will be described in detail below with reference to the drawings. The following embodiments are only used to more clearly illustrate the technical solutions of the present application, and therefore only serve as examples, and cannot limit the protection scope of the present application.
[0032] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in the present application should be understood as the usual meanings understood by the skilled in the art to which the present application belongs.
[0033] As Figure 1 shown, Figure 1 A flowchart of a regulating valve opening degree detection method provided by an embodiment of the present application, the method comprising the following steps:
[0034] S1. initialize the regulating valve at intervals of a preset period to determine a relationship between a rotation angle of the regulating valve and a pulse number, correct the relationship according to a difference between the relationship and a historical relationship to obtain a target relationship;
[0035] The preset period can be a time interval, and can be a time period with the same time interval or a time period with different time intervals, which can be set according to a performance attenuation period of the regulating valve, and is not limited in the embodiment of the present application.
[0036] In the embodiment of the present application, the method for initializing the regulating valve at intervals of a preset period to determine the relationship between the rotation angle of the regulating valve and the pulse number comprises the following steps: S11, rotating the regulating valve by a first preset angle to make the angle of the regulating valve reach a first angle from an initial angle, and obtaining a corresponding pulse number; S12, obtaining the relationship between the rotation angle of the regulating valve and the pulse number according to the initial angle, the first angle and the pulse number.
[0037] The first preset angle is not less than 360 degrees, and if the rotation angle of the regulating valve is too small, the recorded pulse number can be too small, resulting in inaccurate counting, so the regulating valve should be rotated at least one circle.
[0038] Specifically, when the first preset angle is 360°, the corresponding pulse number is 1000, and it can be known that 360° corresponds to 1000 pulses, while in the last historical relationship, 360° corresponds to 980 pulses.
[0039] In the embodiment of the present application, the method for correcting the relationship according to a difference between the relationship and a historical relationship to obtain a target relationship comprises the following steps: S13, calculating a total difference between the pulse number in the relationship and the pulse number in the historical relationship, and judging whether the difference is greater than a first preset threshold; S14, when the difference is greater than the preset threshold, segmenting the pulse number and the historical pulse data according to a preset segmentation parameter to obtain a plurality of segmented pulse numbers and historical segmented pulse numbers; S15, respectively calculating a plurality of segmented differences of the segmented pulse numbers and the historical segmented numbers, and calculating a variance of the plurality of segmented differences; S16, determining a correction parameter from a preset correction table according to the variance, correcting the relationship according to the correction parameter to obtain a target relationship.
[0040] Specifically, the preset parameter is determined according to a corresponding relationship between the opening degree and the rotation angle. For example, 10 rotations of the rotary regulating valve can change the regulating valve from full closing to full opening, that is, the opening degree is adjusted from 0% to 100%. When the valve rotates 360 degrees, the angle of rotation of the valve is 360*10 / 100=36 degrees when the opening degree is adjusted by 1%, and the preset parameter is 360° / 36°=10. At this time, the pulse number is divided according to the angle to obtain the pulse number corresponding to each unit rotation angle.
[0041] Specifically, the target relationship is: S=F+kf Wherein, S is the corrected pulse number, F is the pulse number before correction, f is the total difference value, and k is the correction parameter.
[0042] The sensor for acquiring the pulse is an encoder. When the difference between the pulse number of the regulating valve rotating the preset angle and the historical pulse number exceeds the preset threshold, it indicates that the performance attenuation of the regulating valve exceeds the preset threshold or the regulating valve is in an unstable state. At this time, the pulse number collected by the photoelectric encoder is incorrect, and the pulse number needs to be compensated to ensure the smooth progress of subsequent detection.
[0043] The total difference value is used as the first evaluation standard, and the variance is used as the second evaluation standard. The pulse number is corrected and compensated according to the evaluation result to ensure the accuracy of the opening degree detection.
[0044] S2. Acquire the pulse number of the regulating valve in the working state, and judge whether the regulating valve is abnormal according to the target relationship and the pulse number.
[0045] In the embodiment of the application, the method for acquiring the pulse number of the regulating valve in the working state and judging whether the regulating valve is abnormal according to the target relationship and the pulse number comprises the following steps: S21, acquiring the first rotation angle and the first pulse number of the regulating valve when the regulating valve receives a control instruction; S22, calculating the target pulse number corresponding to the first rotation angle according to the target relationship and the first rotation angle; S23, calculating the difference between the first pulse number and the target pulse number. If the difference is greater than a second preset threshold, the opening degree of the regulating valve is abnormal, and if the difference is less than or equal to the second preset threshold, the opening degree of the regulating valve is normal.
[0046] According to the target relationship, the pulse number corresponding to the unit rotation angle can be obtained. At this time, the corresponding relationship between the rotation angle of each regulating valve and the pulse number is determined. Therefore, when the regulating valve is in the working state, the measured pulse number is compared with the pulse data obtained according to the target relationship, and the opening degree of the regulating valve can be accurately detected.
[0047] In summary, the embodiment of the present application provides a regulating valve opening degree detection method, which can correct the relationship between the rotation angle and the pulse in each preset period, and uses the corrected relationship as a calibration relationship to detect the regulating valve opening degree, so as to avoid the change of the valve performance or state being too large and affecting the accuracy of the regulating valve opening degree detection.
[0048] As shown in Figure 2 On the basis of the above-mentioned embodiment of the present application, the embodiment of the present application further provides a regulating valve opening degree detection system 200, which comprises: a correction module 201, configured to initialize the regulating valve at intervals of a preset period to determine the relationship between the rotation angle of the regulating valve and the pulse number, and correct the relationship according to the difference between the relationship and a historical relationship to obtain a target relationship; and a detection module 202, configured to acquire the pulse number of the regulating valve in a working state, and determine whether the regulating valve is abnormal according to the pulse number and the target relationship.
[0049] Since the regulating valve opening degree detection system provided by the embodiment of the present application and the regulating valve opening degree detection method and the opening degree detection method provided by the above-mentioned embodiment are based on the same inventive concept, the more specific working principles of each module in the embodiment of the present application can be referred to the above-mentioned embodiment, which will not be described here.
[0050] It should be noted that, in the embodiment of the present application, if the above-mentioned regulating valve opening degree detection method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk, and various storage media that can store program codes. Therefore, the embodiments of the present application are not limited to any specific hardware and software combination.
[0051] Correspondingly, the embodiment of the present application provides a storage medium having a computer program stored thereon, characterized by comprising computer program instructions, which, when executed by a processor, implement the steps of the regulating valve opening degree detection method provided in the above-mentioned embodiment.
[0052] As shown in Figure 3As shown, the embodiment of the present application further provides an electronic device, which comprises a memory 302 and a processor 301, the memory 302 stores a computer program, and the computer program runs through the processor to execute the method according to any one of the above embodiments.
[0053] The above description of the storage medium embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the computer device and storage medium embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
[0054] It should be pointed out here that the above description of the storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
[0055] Finally, it should be pointed out that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the above embodiments, or make equivalent replacement for part or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application, and they should be covered in the scope of the claims and description of the present application.
Claims
1. A method of detecting a valve opening degree adjustment, characterized by, The method comprises the following steps: S1, initializing the regulating valve at intervals of a preset period to determine the relationship between the rotation angle of the regulating valve and the pulse number, correcting the relationship according to the difference between the relationship and a historical relationship to obtain a target relationship; S2, obtaining the pulse number of the regulating valve in a working state, and judging whether the regulating valve is abnormal according to the pulse number and the target relationship; S1, the method for initializing the regulating valve at intervals of a preset period to determine the relationship between the rotation angle of the regulating valve and the pulse number comprises the following steps: S11, rotating the regulating valve by a first preset angle to make the angle of the regulating valve reach a first angle from an initial angle, and obtaining the corresponding pulse number; S12, obtaining the relationship between the rotation angle of the regulating valve and the pulse number according to the initial angle, the first angle and the corresponding pulse number; S1, the method for correcting the relationship according to the difference between the relationship and a historical relationship to obtain a target relationship comprises the following steps: S13, calculating the total difference between the pulse number in the relationship and the pulse number in the historical relationship, and judging whether the difference is greater than a first preset threshold; S14, when the difference is greater than the preset threshold, segmenting the pulse number and the historical pulse number according to a preset segmentation parameter to obtain a plurality of segmented pulse numbers and historical segmented pulse numbers; S15, respectively calculating a plurality of segmented differences of the segmented pulse numbers and the historical segmented pulse numbers, and calculating the variance of a plurality of the segmented differences; S16, determining a correction parameter from a preset correction table according to the variance, and correcting the relationship according to the correction parameter to obtain a target relationship; The preset segmentation parameter is determined according to the corresponding relationship between the opening degree and the rotation angle.
2. The valve opening degree detection method according to claim 1, wherein S2. Obtaining the pulse number of the regulating valve in a working state, and judging whether the regulating valve is abnormal according to the pulse number and the target relationship comprises: S21, when the regulating valve receives a control instruction, obtaining a first rotation angle and a first pulse number of the regulating valve; S22, calculating the target pulse number corresponding to the first rotation angle according to the target relationship and the first rotation angle; S23, calculating the difference between the first pulse number and the target pulse number, if the difference is greater than a second preset threshold, the opening degree of the regulating valve is abnormal, and if the difference is less than or equal to the second preset threshold, the opening degree of the regulating valve is normal.
3. A valve opening degree adjustment detecting device characterized by comprising: The regulating valve opening degree detection device is applied to the regulating valve opening degree detection method of claim 1 or 2, and comprises: A correction module is configured to initialize the regulating valve at intervals of a preset period to determine the relationship between the rotation angle of the regulating valve and the pulse number, correct the relationship according to the difference between the relationship and a historical relationship to obtain a target relationship; A detection module is configured to obtain the pulse number of the regulating valve in a working state, and judge whether the regulating valve is abnormal according to the pulse number and the target relationship.
4. An electronic device, comprising: The electronic device comprises a memory and a processor, the memory stores a computer program, and the computer program runs through the processor to execute the method of claim 1 or 2.
5. A storage medium, characterized by The storage medium stores a program, and the program is run by the processor to execute the method in claim 1 or 2. The storage medium stores a program, and the program is run by the processor to execute the method in claim 1 or 2.
Citation Information
Patent Citations
Method and device for testing throttle valve
CN101825521A
Method for controlling opening of electronic expansion valve in heat pump water heater system
CN102384618A